/* Goosmart — design tokens */
:root {
  --bg: #f6f1e7;
  --surface: #ffffff;
  --ink: #1d2a26;
  --muted: #5b6a65;
  --brand: #07503f;
  --brand-2: #0b6b55;
  --accent: #ffd166;
  --accent-ink: #07503f;
  --line: #e4dccd;
  --logo: #07503f;
  --radius: 16px;
  --max: 1120px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101a17;
    --surface: #17241f;
    --ink: #eef3f0;
    --muted: #a7b6b0;
    --brand: #ffd166;
    --brand-2: #ffe29a;
    --accent: #ffd166;
    --accent-ink: #07503f;
    --line: #2a3b35;
    --logo: #f6f1e7;
  }
}
:root[data-theme="dark"] {
  --bg: #101a17;
  --surface: #17241f;
  --ink: #eef3f0;
  --muted: #a7b6b0;
  --brand: #ffd166;
  --brand-2: #ffe29a;
  --accent: #ffd166;
  --accent-ink: #07503f;
  --line: #2a3b35;
  --logo: #f6f1e7;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font: 700 clamp(2rem, 5vw, 3.2rem)/1.08 Fraunces, Georgia, serif; letter-spacing: -.01em; }
h2 { font: 700 clamp(1.5rem, 3.5vw, 2rem)/1.2 Fraunces, Georgia, serif; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.muted, .fine { color: var(--muted); }
.fine { font-size: .9rem; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; margin-bottom: .6em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* Buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--bg); font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
input, select, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 5px; }
.form-status { min-height: 1.4em; color: var(--brand-2); font-weight: 600; margin-top: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem Fraunces, Georgia, serif; }
.brand .logo { display: block; height: 44px; width: auto; color: var(--logo); }
.brand .logo-footer { height: 56px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-list a[aria-current="page"] { color: var(--brand-2); text-decoration: underline; text-underline-offset: 6px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 26px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-search { display: flex; gap: 10px; margin: 24px 0 16px; }
.hero-search input { flex: 1; min-width: 0; font-size: 1.05rem; padding: 14px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }

/* Steps & cards */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.theme-card { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); }
.theme-card:hover { border-color: var(--brand-2); }
.theme-card p { color: var(--muted); font-size: .95rem; }
.link-arrow { color: var(--brand-2); font-weight: 600; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.inline-form .row { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }
.cta-band { background: var(--brand); color: var(--bg); padding: 56px 0; text-align: center; }
.cta-band h2, .cta-band p { color: var(--bg); }
.cta-band .btn { margin-top: 8px; }

/* Stylist */
.page-hero { padding: 48px 0 16px; }
.stylist-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field-wide { grid-column: 1 / -1; }
.field-action { grid-column: 1 / -1; }
.field-action .btn { width: 100%; }
.result { margin-top: 36px; }
.result-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; margin-top: 16px; }
.ideas { padding-left: 18px; }
.ideas li { margin-bottom: 10px; }
.stylist-note { margin: 16px 0; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 12px; font-size: 1.05rem; }
.notice { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); padding: 12px 14px; border-radius: 12px; }
.set-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.set-name { font-weight: 600; }
.set-buy { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.totals { margin: 16px 0 8px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.totals dd { margin: 0; }
.totals dt { color: var(--muted); }
.privacy-note { margin-top: 24px; }

/* Forms (contact) */
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.contact-form .field { display: grid; gap: 4px; }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 48px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h2 { font: 600 .8rem Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.footer-col a, .footer-col .social a { display: block; color: var(--ink); text-decoration: none; margin-bottom: 6px; font-size: .95rem; }
.footer-brand p { color: var(--muted); max-width: 36ch; }
.social a { display: inline-block !important; margin-right: 12px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-legal p { margin: 0 0 4px; }
.footer-bottom { margin-top: 16px; color: var(--muted); font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .result-grid { grid-template-columns: 1fr; }
  .stylist-form { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 22px; display: none; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 14px; }
  .steps, .theme-grid { grid-template-columns: 1fr; }
  .stylist-form { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .inline-form .row { flex-direction: column; }
  .set-buy { flex-direction: column; align-items: flex-end; gap: 6px; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .set-preview { max-width: 100%; }
  .set-row { flex-direction: column; align-items: stretch; }
  .set-buy { justify-content: space-between; align-items: center; }
}

/* ---------- v2: brand, outfit board, docs ---------- */
.btn-ghost { background: transparent; color: var(--brand); }
.section-tight { padding-top: 24px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: inline-grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); margin: 0 !important; }
.social a:hover { background: var(--brand); color: var(--bg); border-color: var(--brand); }

/* Hero outfit board */
.hero-board { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, auto); gap: 10px; background: linear-gradient(160deg, #eadfca, #d9e6de); border: 1px solid var(--line); border-radius: 28px; padding: 18px; text-decoration: none; }
.hero-board img { width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.hb-top { grid-column: 1 / 5; grid-row: 1 / 4; }
.hb-hat { grid-column: 5 / 7; grid-row: 1; }
.hb-socks { grid-column: 5 / 7; grid-row: 2; }
.hb-bag { grid-column: 5 / 7; grid-row: 3; }
.hb-pants { display: none; }
.hero-board-label { grid-column: 1 / -1; font-weight: 600; color: #07503f; font-size: .9rem; }

/* Theme + style cards */
.theme-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.theme-card img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.theme-card-body { padding: 18px 20px 20px; }
.style-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; }
.style-card { display: block; text-decoration: none; color: var(--ink); text-align: center; font-weight: 600; }
.style-card img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 8px; display: block; }
.style-card:hover img { border-color: var(--brand-2); }

/* Stylist outfit board */
.style-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 14px; }
.style-switch span { font-weight: 600; margin-right: 4px; }
.style-switch a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
.style-switch a[aria-current="true"] { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.board { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.board-tile { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.board-tile img { width: 100%; height: auto; display: block; }
.board-tile figcaption { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.board-tile.is-addon img { opacity: .55; }
.board-hero figcaption .set-name { font-size: 1.1rem; }
.set-thumb { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.set-row { justify-content: flex-start; }
.set-info { flex: 1; min-width: 0; }

/* Long-form pages */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .9rem; }
.toc-title { font-weight: 700; margin-bottom: 8px; }
.toc ol { padding-left: 18px; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.prose h2 { scroll-margin-top: 90px; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; padding: 10px 14px 0; color: var(--muted); font-size: .85rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.help-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.help-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.help-card span { color: var(--muted); font-size: .9rem; }

@media (max-width: 960px) {
  .board { grid-template-columns: 1fr; }
  .style-row { grid-template-columns: repeat(3, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .help-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .style-row { grid-template-columns: 1fr 1fr; }
  .brand .logo { height: 38px; }
  .set-row { flex-direction: row; flex-wrap: wrap; }
  .set-buy { width: 100%; }
}

.doc > *, .prose { min-width: 0; }
.hero-board .hb-top { height: 100%; object-fit: contain; background: #fbf8f2; }

/* ---------- Ask Goo ---------- */
.goo { display: block; flex: none; }
.goo .goo-body { fill: var(--brand); }
.goo .goo-smile { stroke: #f6f1e7; }
.goo .goo-pupil { fill: #07503f; transition: transform .15s ease-out; }
.goo .goo-eyes { transform-origin: 32px 27px; animation: goo-blink 5s infinite; }
@keyframes goo-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .goo .goo-eyes { animation: none; } .goo .goo-pupil { transition: none; } }
:root[data-theme="dark"] .goo .goo-pupil { fill: #101a17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .goo .goo-pupil { fill: #101a17; } }

.ask-goo { position: relative; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 8px; gap: 8px; box-shadow: 0 6px 24px rgba(7, 80, 63, .08); }
.ask-goo input { border: 0; background: transparent; padding: 10px 6px; }
.ask-goo input:focus { outline: none; }
.ask-goo:focus-within { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.goo-input { width: 44px; height: 44px; }
.chip-surprise { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.trust-line { margin-top: 14px; font-size: .9rem; color: var(--muted); font-style: italic; }

.ask-head { display: flex; gap: 20px; align-items: center; }
.goo-head { width: 88px; height: 88px; }
.goo-says { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; }
.goo-small { width: 48px; height: 48px; margin-top: 6px; }
.goo-says .stylist-note { margin: 0; flex: 1; }
.goo-name { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); font-weight: 700; margin-bottom: 4px; }
.field-action { display: flex; gap: 10px; }
.field-action .btn { width: auto; }
.field-action .btn-accent { flex: 2; }
.field-action .btn-ghost { flex: 1; }

.cta-band .goo-cta { width: 72px; height: 72px; margin: 0 auto 12px; }
.cta-band .goo-cta .goo-body { fill: var(--accent); }
.btn-ghost-light { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 60%, transparent); }

@media (max-width: 760px) {
  .hero-search.ask-goo { flex-direction: row; flex-wrap: wrap; border-radius: 22px; }
  .ask-goo input { flex: 1 1 60%; }
  .ask-goo .btn { flex: 1 1 100%; }
  .ask-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .goo-head { width: 64px; height: 64px; }
  .field-action { flex-direction: column; }
}

.btn-block { display: flex; width: 100%; margin: 14px 0 6px; }
