/* =====================================================================
   PatternScouts -- the website

   One stylesheet for every page. Colours are tokens on :root and are
   redefined for dark mode, so nothing below names a colour twice. Each
   product brings its own accent colour from the database (--accent);
   a new product needs no CSS.
   ===================================================================== */

:root {
  --bg:         #F6F5F0;
  --surface:    #FFFFFF;
  --surface-2:  #EFEDE5;
  --ink:        #11161A;
  --ink-2:      #485259;
  --ink-3:      #7B848A;
  --line:       #E1DED4;
  --brand:      #17624F;
  --brand-ink:  #0C3A2F;
  --brand-soft: #E2EFE9;
  --saffron:    #E39A2D;
  --danger:     #B4441F;
  --shadow:     0 1px 2px rgba(17, 22, 26, .05), 0 8px 24px rgba(17, 22, 26, .06);
  --shadow-lg:  0 2px 6px rgba(17, 22, 26, .06), 0 24px 60px rgba(17, 22, 26, .12);
  --on-brand:   #FFFFFF;

  --accent: var(--brand);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0D1113;
    --surface:    #151B1E;
    --surface-2:  #1C2428;
    --ink:        #ECEFEA;
    --ink-2:      #AAB4AF;
    --ink-3:      #7F8A86;
    --line:       #263137;
    --brand:      #3DB08D;
    --brand-ink:  #9FE0C9;
    --brand-soft: #14302A;
    --saffron:    #F0B154;
    --danger:     #F07B57;
    --shadow:     0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg:  0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
    --on-brand:   #08201A;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--saffron); border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }

/* ----------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 750 1.15rem/1 var(--display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { color: var(--on-brand); filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-small { padding: 9px 14px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--ink-3); box-shadow: none; cursor: not-allowed; filter: none; border-color: var(--line); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: .9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

/* The app window drawn in the hero: HTML, not a picture. */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .86rem; max-width: 560px; justify-self: center; width: 100%;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; font: 600 .8rem/1 var(--sans); color: var(--ink-2); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-files { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font: 500 .78rem/1 var(--mono); }
.chip::before { content: ""; width: 8px; height: 10px; border-radius: 2px; background: var(--brand); }
.mock-ask { align-self: end; justify-self: end; max-width: 85%; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.mock-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock-table th, .mock-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mock-table th { font: 600 .74rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.mock-table td:last-child, .mock-table th:last-child { text-align: right; }
.mock-table tr:last-child td { border-bottom: 0; font-weight: 700; }
.mock-done { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: .8rem; }
.mock-done strong { color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.mock-done strong::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .7rem; }

/* ----------------------------------------------------------- strips */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 22px 8px; }
.trust-item svg { width: 26px; height: 26px; flex: none; color: var(--brand); margin-top: 2px; }
.trust-item strong { display: block; font-weight: 600; }
.trust-item span { color: var(--ink-2); font-size: .9rem; }

/* --------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

/* ------------------------------------------------------------ cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.product-card { transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.product-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.product-card .tagline { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.product-card .one-liner { color: var(--ink-2); font-size: .95rem; flex: 1; }
.product-card .from { font-size: .9rem; color: var(--ink-2); margin: 6px 0 18px; }
.product-card .from strong { font: 700 1.25rem/1 var(--display); color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.future-card { border-style: dashed; background: transparent; box-shadow: none; justify-content: center; }
.future-card .product-icon { background: var(--surface-2); }

.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font: 600 .7rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.badge-soon { background: color-mix(in srgb, var(--saffron) 22%, var(--surface)); color: var(--ink); }
.badge-beta { background: var(--brand-soft); color: var(--brand-ink); }
.badge-best { background: var(--accent); color: var(--on-brand); }

/* ------------------------------------------------------------ steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 16px;
  background: var(--brand); color: var(--on-brand); font: 700 1rem/1 var(--display);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------- split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .8rem;
}
.launcher {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 120%); color: #fff; border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.launcher h3 { color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.launcher-app { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 14px; margin-top: 10px; }
.launcher-app .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 1.3rem; }
.launcher-app div { flex: 1; min-width: 0; }
.launcher-app strong { display: block; }
.launcher-app span { opacity: .75; font-size: .85rem; }
.launcher-app em { font-style: normal; font: 600 .75rem/1 var(--mono); background: #fff; color: var(--brand-ink); padding: 7px 10px; border-radius: 8px; }
.launcher-app em.dim { background: rgba(255, 255, 255, .14); color: #fff; }

/* ------------------------------------------------------------ combo */
.combo {
  display: grid; gap: 24px; align-items: center; padding: 30px; border-radius: 22px;
  background: var(--ink); color: var(--bg);
}
@media (min-width: 820px) { .combo { grid-template-columns: 1.4fr 1fr; padding: 40px; } }
.combo h3 { color: var(--bg); font-size: 1.6rem; }
.combo p { opacity: .8; }
.combo ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.combo li { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 12%, transparent); font-size: .88rem; }
.combo-price { display: grid; gap: 6px; justify-items: start; }
@media (min-width: 820px) { .combo-price { justify-items: end; text-align: right; } }
.combo-price .price { font: 800 2.4rem/1 var(--display); color: var(--bg); }
.combo-price .strike { text-decoration: line-through; opacity: .6; }
.combo-price .saving { color: var(--saffron); font-weight: 600; margin-bottom: 8px; }
.combo .btn[aria-disabled="true"] { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); border-color: transparent; white-space: normal; text-align: center; }

/* ----------------------------------------------------------- pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.plan { position: relative; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .badge-best { position: absolute; top: -12px; left: 24px; }
.plan-name { font: 600 .82rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 14px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price { font: 800 2.4rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.strike { color: var(--ink-3); text-decoration: line-through; }
.per { color: var(--ink-2); font-size: .95rem; margin: 6px 0 16px; }
.plan .blurb { color: var(--ink-2); font-size: .95rem; flex: 1; }
.plan ul { padding-left: 18px; color: var(--ink-2); font-size: .92rem; margin: 0 0 18px; }

/* ------------------------------------------------------------- prose */
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 12px; padding: 22px 24px; }
.callout h2, .callout h3 { margin-top: 0; }
.callout p { color: var(--ink); margin: 0; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 28px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.specs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.spec span { display: block; font: 500 .75rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.spec strong { font-weight: 600; }

/* --------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* -------------------------------------------------------------- cta */
.cta-band { border-radius: 26px; padding: clamp(32px, 6vw, 64px); text-align: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 140%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .85; max-width: 52ch; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* ------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-error { color: var(--danger); font-weight: 500; margin: 0; }
.form-ok { background: var(--brand-soft); color: var(--brand-ink); border-radius: 12px; padding: 16px 18px; font-weight: 500; }

/* -------------------------------------------------------------- buy */
.checkout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 360px; } .summary { position: sticky; top: 90px; } }
.pay-steps { display: grid; gap: 24px; }
.step-label { font: 600 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.pay-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 220px 1fr; } }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; width: 220px; max-width: 100%; justify-self: center; }
.qr svg { display: block; width: 100%; height: auto; }
.upi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.upi code { font: 500 .95rem/1.2 var(--mono); background: var(--brand-soft); color: var(--brand-ink); padding: 8px 12px; border-radius: 10px; word-break: break-all; }
.apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.apps span { font-size: .8rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.open-app { margin-top: 16px; }
@media (hover: hover) and (pointer: fine) { .open-app { display: none; } }
.summary h3 { margin-bottom: 18px; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.summary .total dd { font: 800 1.6rem/1 var(--display); }
.summary .next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.summary .next ol { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }
.done-card { max-width: 640px; margin: 0 auto; text-align: center; }
.done-card .big-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--brand); color: var(--on-brand); font-size: 1.8rem; }

/* ------------------------------------------------------------ states */
.state { padding: 40px 24px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.state.error { color: var(--danger); border-color: var(--danger); }
.skeleton { min-height: 280px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--line); border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } .product-card:hover { transform: none; } }

/* ---------------------------------------------------------- page top */
.page-head { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.page-head .lede { margin-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; margin-bottom: 22px; }
.product-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .product-hero { grid-template-columns: auto 1fr; } }
.product-hero .product-icon { width: 96px; height: 96px; border-radius: 26px; font-size: 3rem; margin: 0; }
.product-hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; background: var(--surface); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-grid > div:first-child { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-grid > div:first-child { grid-column: auto; } }
.foot h4 { font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { color: var(--ink-2); font-size: .93rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--ink-3); font-size: .86rem; }
