/* Everything But The Pet — site styles. Tokens mirror the EBTP design system (tokens.json). */
:root {
  --surface: #faf6f0;
  --surface-raised: #ffffff;
  --surface-sunken: #f1eae0;
  --ink: #2a221b;
  --ink-muted: #655a50;
  --hairline: #e3d9cc;
  --brand: #1f6f6b;
  --brand-strong: #164f4c;
  --brand-soft: #dcebe9;
  --on-brand: #ffffff;
  --accent: #c8643c;
  --accent-soft: #f6e3d8;
  --success: #3d7a46;
  --danger: #b13a2e;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-6: 48px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-raised); padding: 8px 16px; border-radius: var(--radius-md); z-index: 10; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.band { background: var(--surface-raised); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.center { text-align: center; }
.center .stack, .center.stack, .center .stack-lg, .center.stack-lg { align-items: center; }

/* Type */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); }
.eyebrow-muted { color: var(--ink-muted); }
.h-xl { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 60px; letter-spacing: -0.01em; }
.h-md { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 42px; letter-spacing: -0.005em; }
.h-card { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; }
.h-title { font-size: 18px; line-height: 26px; font-weight: 700; }
.lead { max-width: 34em; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.tiny { font-size: 12px; line-height: 18px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 42px; }
.section-head { margin-bottom: 32px; }
.section-head p { margin-top: 8px; color: var(--ink-muted); }

@media (max-width: 640px) {
  .h-xl { font-size: 40px; line-height: 44px; }
  .h-md { font-size: 30px; line-height: 36px; }
  .section { padding: 48px 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-md);
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-secondary { background: var(--surface-raised); color: var(--brand-strong); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-light { background: var(--surface-raised); color: var(--brand-strong); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link-strong { font-weight: 700; }

/* Badges */
.badge { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-free { background: var(--accent-soft); color: var(--ink); }
.badge-live { background: var(--brand-soft); color: var(--brand-strong); }
.badge-soon { background: var(--surface-sunken); color: var(--ink-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 42px; letter-spacing: -0.005em; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark-mark { width: 44px; height: 55px; flex-shrink: 0; margin: -6px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav .cart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-raised); }
@media (max-width: 640px) {
  .wordmark { font-size: 26px; line-height: 32px; gap: 10px; }
  .wordmark-mark { width: 32px; height: 40px; margin: -4px 0; }
}
.preview-bar { background: var(--brand-strong); color: var(--on-brand); text-align: center; font-size: 14px; line-height: 22px; padding: 8px 24px; }

/* Cards */
.card { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.card-pad { padding: 24px; }
.card-lg { border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 640px) { .card-lg { padding: 24px; } }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-card .desc { flex-grow: 1; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.product-card .amount { font-size: 18px; line-height: 26px; font-weight: 700; }

/* Media */
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 25%; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.photo-flat { border-radius: 0; }
.photo-ph { width: 100%; aspect-ratio: 3 / 2; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.photo-ph svg { margin-bottom: 8px; }
.photo-ph-wrap { display: flex; flex-direction: column; align-items: center; }
.visual-log { width: 100%; aspect-ratio: 3 / 2; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.minilog { width: 78%; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.minilog span { height: 18px; border-radius: var(--radius-sm); background: var(--surface-sunken); }
.minilog span.on { background: var(--brand); }
figure { margin: 0; }
figcaption { margin-top: 10px; }

/* Lists */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; }
.inline-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.inline-checks li { display: flex; align-items: center; gap: 6px; }
.iconlist { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 22px; }
.iconlist li { display: flex; gap: 10px; align-items: flex-start; }
.iconlist svg { flex: none; }
.icon-dot { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; }
.icon-dot.accent { background: var(--accent-soft); color: var(--ink); }
.icon-dot.sunken { background: var(--surface-sunken); color: var(--ink-muted); }
.daylist { list-style: none; margin: 0; padding: 0; }
.daylist li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.daylist li:last-child { border-bottom: 0; }
.daylist .eyebrow { width: 64px; flex: none; }

/* Panels */
.panel-accent { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 48px; }
.panel-brand { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 40px; color: var(--brand-strong); }
.panel-brand .h-md { color: var(--ink); }
@media (max-width: 640px) { .panel-accent, .panel-brand { padding: 24px; } }
.band-dark { background: var(--brand-strong); color: var(--on-brand); padding: 48px 0; }
.band-dark .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.tip { background: var(--brand-soft); color: var(--brand-strong); border-radius: var(--radius-md); padding: 16px; font-size: 14px; line-height: 22px; }
.stuck { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 16px; font-size: 14px; line-height: 22px; }
.exercise { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px; }
.exercise ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 22px; display: flex; flex-direction: column; gap: 4px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-size: 16px; line-height: 24px; font-weight: 700; }
.optional { font-weight: 400; color: var(--ink-muted); }
input[type="email"], input[type="text"] {
  min-height: 48px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--surface-raised); font: inherit; color: var(--ink); width: 100%;
}
input[type="email"]:focus, input[type="text"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.inline-field { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-field input { flex: 1 1 220px; width: auto; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; margin-right: 24px; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--brand); }
.form-error { color: var(--danger); font-weight: 700; }
.form-panel { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 32px; }
@media (max-width: 640px) { .form-panel { padding: 24px; } }

/* Pills / tabs */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--hairline); display: inline-flex; align-items: center; text-decoration: none; }
.pill:hover { border-color: var(--brand); color: var(--ink); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { padding: 0; min-height: 44px; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: 8px; cursor: pointer; overflow: hidden; }
.thumb[aria-pressed="true"] { border: 2px solid var(--brand); }
.thumb img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 25%; }
.week-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 32px; }
@media (max-width: 640px) { .week-panel { padding: 20px; } }
.js .week-panel[hidden] { display: none; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px 24px; }
.faq summary { font-size: 18px; line-height: 26px; font-weight: 700; cursor: pointer; }
.faq details p { margin: 12px 0 4px; }

/* Breadcrumb */
.crumbs { font-size: 14px; line-height: 22px; color: var(--ink-muted); padding-top: 20px; }
.crumbs a { color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--hairline); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 22px; }
.site-footer nav a { color: var(--ink); }
.site-footer .legal { border-top: 1px solid var(--hairline); padding-top: 16px; padding-bottom: 32px; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.footer-min { background: var(--surface-sunken); }
.footer-min .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.footer-min a { color: var(--ink-muted); }

/* Prose pages */
.prose { max-width: 680px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; margin: 32px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

.success-line { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; font-weight: 700; color: var(--success); }
