/* ═══════════════════════════════════════════════════════════
   MiniNova — "the worksheet"
   White paper, graphite ink, ruled-line blue, crayon accents.
   One loud moment (the tracing headline); everything else quiet.
   ═══════════════════════════════════════════════════════════ */
:root {
  --ink: #1d2b3a;          /* graphite navy: text, primary buttons */
  --ink-soft: #4a5a6b;
  --paper: #ffffff;
  --ruled: #eef4fb;        /* ruled-paper tint for quiet sections */
  --rule-line: #c9dcef;    /* notebook line blue */
  --margin-red: #ef8f8f;   /* notebook margin */
  --link: #1f5fbf;
  --line: #e3e8ee;
  --muted: #66768a;
  --sun: #ffd43b;  --sun-bg: #fff3c4;
  --sky: #74c0fc;  --sky-bg: #e3f1fd;
  --leaf: #51cf66; --leaf-bg: #e2f6e6;
  --gum: #f783ac;  --gum-bg: #fde4ee;
  --success: #237a45;
  --danger: #c92a2a;
  --font-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .45em; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--danger); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-line); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); color: var(--ink); }
.cat-link { display: inline-block; font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none; margin-bottom: .5em; }
.cat-link:hover { color: var(--ink); text-decoration: underline; }

/* ── Buttons: graphite primary, outlined secondary ─────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body); padding: .9em 1.4em; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #0f1a26; color: #fff; }
.btn-secondary { background: var(--leaf-bg); color: var(--success); border-color: #bfe6c8; }
.btn-secondary:hover { border-color: var(--success); color: var(--success); }
.btn-ghost { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ruled); color: var(--ink); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 1.05em 1.7em; }
.btn-small { font-size: .88rem; padding: .6em 1em; }
.btn-block { display: flex; width: 100%; }
.btn.is-disabled { background: var(--ruled); border-color: var(--line); color: var(--muted); cursor: not-allowed; pointer-events: none; }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; }
.link-btn:hover { color: var(--danger); }

/* ── Announcement & header ─────────────────────────────── */
.announce { background: var(--sun); color: var(--ink); text-align: center; font-size: .92rem; font-weight: 500; padding: 9px 16px; }
.announce a { color: var(--ink); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.logo b { font-weight: 800; }
.logo-mark { width: 36px; height: 36px; stroke: none; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav > a, .nav-drop-btn { color: var(--ink); text-decoration: none; font: 500 1rem var(--font-body); padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.site-nav > a:hover, .nav-drop-btn:hover { background: var(--ruled); color: var(--ink); }
.site-nav > a.is-active { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-dropdown { position: relative; }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(29, 43, 58, .12); padding: 8px; display: none; flex-direction: column; }
.nav-dropdown:hover .nav-drop-menu, .nav-dropdown.open .nav-drop-menu, .nav-dropdown:focus-within .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav-drop-menu a:hover { background: var(--ruled); }
.nav-drop-all { font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px !important; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 26px; height: 26px; }
.menu-toggle, .menu-close { display: none; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--ink); }
.cart-link:hover { border-color: var(--ink); color: var(--ink); }
.cart-link svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
.nav-backdrop { position: fixed; inset: 0; background: rgba(29, 43, 58, .4); z-index: 45; }

/* ── Flash messages ────────────────────────────────────── */
.flashes { margin-top: 16px; }
.flash { padding: 13px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 12px; border-left: 4px solid; }
.flash-success { background: var(--leaf-bg); border-color: var(--success); color: #1b5e36; }
.flash-error { background: #fdecec; border-color: var(--danger); color: #9b1c1c; }
.flash-info { background: var(--sky-bg); border-color: var(--link); color: var(--ink); }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding: 28px 0 80px; }
.section-flush { padding-top: 0; }
.section-tint { background: var(--ruled); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.page-hero { padding: 44px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-hero h1 { margin-bottom: .25em; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ── Hero: a sheet of notebook paper ───────────────────── */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-color: #fbfdff;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(max(24px, (100vw - var(--container)) / 2) + 0px), var(--margin-red) calc(max(24px, (100vw - var(--container)) / 2) + 0px), var(--margin-red) calc(max(24px, (100vw - var(--container)) / 2) + 2px), transparent calc(max(24px, (100vw - var(--container)) / 2) + 2px)),
    repeating-linear-gradient(180deg, transparent 0, transparent 39px, var(--rule-line) 39px, var(--rule-line) 40px);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero-copy { padding-left: 28px; }
.trace-title { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 0 18px -4px; overflow: visible; }
.trace-title text { font-family: var(--font-display); font-weight: 800; font-size: 108px; letter-spacing: -3px; }
.trace-guide { transform: translate(7px, 7px); }
.trace-guide text { fill: none; stroke: var(--link); stroke-width: 2; stroke-dasharray: 7 6; opacity: .55; }
.trace-fill text { fill: var(--ink); }
.trace-title .sweep { animation: color-in 1.5s cubic-bezier(.6, .05, .3, 1) .35s both; }
@keyframes color-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.hero .lead { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.hero-art { position: relative; min-height: 470px; }
.sheet { position: absolute; width: 62%; border-radius: 4px; box-shadow: 0 1px 0 rgba(29,43,58,.06), 0 22px 40px -12px rgba(29, 43, 58, .28); }
.sheet-front { left: 4%; top: 18px; transform: rotate(-4deg); z-index: 2; }
.sheet-back { right: 2%; top: 64px; transform: rotate(5deg); }
.crayon { position: absolute; height: 22px; width: 190px; border-radius: 4px 11px 11px 4px; z-index: 3; box-shadow: 0 6px 12px -4px rgba(29, 43, 58, .3); }
.crayon::after { content: ''; position: absolute; right: -24px; top: 0; border-left: 26px solid; border-left-color: inherit; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.crayon-a { background: var(--gum); border-color: var(--gum); bottom: 40px; left: 10%; transform: rotate(-12deg); }
.crayon-b { background: var(--sky); border-color: var(--sky); bottom: 82px; right: 4%; transform: rotate(18deg); width: 150px; }

/* ── Trust strip ───────────────────────────────────────── */
.trust-strip { border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-inner > div { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; border-left: 1px solid var(--line); }
.trust-inner > div:first-child { border-left: 0; padding-left: 0; }
.trust-inner svg { width: 26px; height: 26px; color: var(--ink); margin-top: 2px; }
.trust-inner span { font-size: .93rem; color: var(--muted); line-height: 1.45; }
.trust-inner strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* ── Product cards: no boxes, the cover is the card ────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 44px 28px; }
.product-card { display: flex; flex-direction: column; }
.product-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ruled); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card-media:hover img { transform: scale(1.03); }
.product-card-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.product-card-body h3 a { color: var(--ink); text-decoration: none; }
.product-card-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.product-meta { color: var(--muted); font-size: .93rem; margin: 0 0 8px; }
.product-card-price { margin: auto 0 14px; }
.product-card .add-form, .product-card .btn { width: 100%; }
.product-card .btn { display: flex; padding: .8em 1em; }
.product-card .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.product-card .btn-primary:hover { background: var(--ink); color: #fff; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.price-free { color: var(--success); }
.compare { color: var(--muted); font-size: .95rem; margin-left: 6px; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: 6px; }
.badge-free { background: var(--success); color: #fff; }
.badge-soon { background: var(--ink); color: #fff; }
.empty-state { border: 1.5px dashed var(--rule-line); border-radius: 12px; padding: 44px; text-align: center; }

/* ── Free banner: a torn-off worksheet strip ───────────── */
.free-banner { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; background: var(--sun-bg); border-radius: 16px; padding: 48px 56px; }
.free-banner img { border-radius: 4px; transform: rotate(3deg); box-shadow: 0 22px 40px -14px rgba(29, 43, 58, .35); }
.free-banner p { color: var(--ink-soft); font-size: 1.08rem; max-width: 36em; }
.free-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }

/* ── Categories: crayon-box tiles ──────────────────────── */
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.category-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 22px; border-radius: 12px; text-decoration: none; color: var(--ink); min-height: 150px; border-top: 8px solid; transition: transform .2s ease; }
.category-tile:hover { transform: translateY(-3px); color: var(--ink); }
.category-tile strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.category-tile span { font-size: .93rem; color: var(--ink-soft); }
.category-tile em { font-style: normal; font-weight: 600; margin-top: auto; padding-top: 12px; font-size: .9rem; color: var(--muted); }
.category-tiles.large .category-tile { min-height: 190px; }
.tone-0 { background: var(--sun-bg); border-color: var(--sun); }
.tone-1 { background: var(--sky-bg); border-color: var(--sky); }
.tone-2 { background: var(--leaf-bg); border-color: var(--leaf); }
.tone-3 { background: var(--gum-bg); border-color: var(--gum); }

/* ── Steps (a real sequence) & audiences ───────────────── */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 32px; border-left: 1.5px dashed var(--rule-line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.steps p { color: var(--ink-soft); }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.audiences > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.audiences p { color: var(--ink-soft); }

/* ── Shop toolbar ──────────────────────────────────────── */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 15px; border-radius: 8px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; background: #fff; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort-form { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.result-count { margin-bottom: 28px; font-size: .93rem; }

/* ── Product page ──────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.pdp-media { position: sticky; top: 100px; background: var(--ruled); border-radius: 10px; padding: 40px; }
.pdp-media img { border-radius: 4px; width: 100%; box-shadow: 0 22px 40px -14px rgba(29, 43, 58, .3); }
.pdp-media .badge { top: 20px; left: 20px; }
.pdp-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.pdp-price { margin: 10px 0 22px; }
.pdp-price .price { font-size: 1.9rem; }
.pdp-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 24px; }
.pdp-facts div { padding: 12px 14px; border-left: 1px solid var(--line); }
.pdp-facts div:first-child { border-left: 0; }
.pdp-facts span { display: block; font-size: .82rem; color: var(--muted); }
.pdp-facts strong { font-weight: 700; }
.pdp-cta { margin-bottom: 26px; }
.pdp-cta .btn, .pdp-cta form { width: 100%; }
.pdp-cta .btn { display: flex; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.checklist svg { color: var(--success); margin-top: 4px; stroke-width: 2.6; }
.pdp-assure { display: grid; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 8px; font-size: .95rem; color: var(--ink-soft); }
.pdp-assure div { display: flex; gap: 12px; align-items: center; }
.pdp-assure strong { color: var(--ink); }
.pdp-assure svg { width: 22px; height: 22px; color: var(--ink); }
.pdp-details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.pdp-details summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pdp-details summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.pdp-details[open] summary::after { content: '\2212'; }
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details p { margin: 12px 0 0; color: var(--ink-soft); }
.sticky-buy { display: none; }

/* ── Cart & checkout ───────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 390px; gap: 48px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item img { border-radius: 4px; }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.cart-item-title:hover { text-decoration: underline; }
.cart-item-price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.cart-items > .small { margin-top: 14px; }
.summary { background: var(--ruled); border-radius: 12px; padding: 28px; position: sticky; top: 100px; display: grid; gap: 14px; }
.summary h2 { font-size: 1.35rem; margin: 0; }
.summary-row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--rule-line); padding-top: 14px; font-weight: 700; color: var(--ink); font-size: 1.2rem; }
.summary-row small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-weight: 600; font-size: .95rem; }
.summary-item img { border-radius: 3px; }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); margin: 0; }
.secure-note svg { color: var(--success); }
.empty-cart { padding: 40px 0; }
.empty-cart > svg { width: 56px; height: 56px; color: var(--ink); margin: 0 auto 14px; stroke-width: 1.5; }
.big-num { display: block; font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; margin-bottom: 8px; color: transparent; -webkit-text-stroke: 2px var(--ink); }

.checkout-form { display: grid; gap: 26px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin: 0; display: grid; gap: 14px; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; padding: 0 12px 0 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cdd6e0; border-radius: 10px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky-bg); }
input[aria-invalid=true] { border-color: var(--danger); }
input[type=file] { font: inherit; font-size: .92rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.sort-form select { width: auto; padding: 8px 40px 8px 14px; }
.hint { font-size: .86rem; color: var(--muted); }
.field-error { color: var(--danger); font-weight: 600; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.stack-form { display: grid; gap: 16px; max-width: 560px; }

/* ── Order page: a completed worksheet ─────────────────── */
.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 48px 40px; text-align: center; background:
  linear-gradient(var(--paper), var(--paper)) padding-box; box-shadow: 0 24px 50px -24px rgba(29, 43, 58, .25); }
.order-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; border: 2px dashed var(--ink); font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.order-card.is-paid .order-icon { background: var(--success); border: 0; color: #fff; }
.order-icon svg { width: 36px; height: 36px; stroke-width: 3; }
.order-no { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.download-list { display: grid; gap: 12px; margin: 28px 0; text-align: left; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ruled); border-radius: 10px; padding: 16px 18px; }
.download-row > div { display: flex; flex-direction: column; }
.order-summary-mini { margin-top: 30px; border-top: 1.5px dashed var(--rule-line); padding-top: 18px; text-align: left; display: grid; gap: 6px; color: var(--ink-soft); }
.order-summary-mini div { display: flex; justify-content: space-between; gap: 12px; }
.order-summary-mini .total { font-weight: 700; color: var(--ink); }

/* ── Content pages ─────────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.7em; font-size: 1.45rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.faq { max-width: 800px; border-top: 1px solid var(--line); margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.contact-aside { background: var(--ruled); border-radius: 12px; padding: 28px; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #c4cfdb; margin-top: 40px; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; display: inline-flex; }
.site-footer .logo-mark rect { fill: #fff; }
.site-footer .logo-mark path { fill: var(--ink); }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.site-footer a:not(.logo) { display: block; color: #c4cfdb; text-decoration: none; padding: 3px 0; }
.site-footer a:not(.logo):hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 340px; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 22px; font-size: .88rem; }
.footer-bottom .secure-note { color: #c4cfdb; }
.footer-bottom .secure-note svg { color: var(--leaf); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-inner, .pdp, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .pdp-media, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-inner > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .free-banner { grid-template-columns: 1fr; padding: 36px 28px; }
  .free-banner img { max-width: 240px; }
}
@media (max-width: 860px) {
  .menu-toggle, .menu-close { display: inline-grid; }
  .header-inner { gap: 8px; height: 66px; }
  .logo { margin-right: auto; font-size: 1.4rem; }
  .site-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 50; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px; margin: 0; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; box-shadow: 0 0 40px rgba(29, 43, 58, .2); }
  .site-nav.open { transform: none; }
  .site-nav > a, .nav-drop-btn { padding: 14px; text-align: left; width: 100%; font-size: 1.05rem; }
  .menu-close { align-self: flex-end; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .nav-dropdown:hover .nav-drop-menu { display: none; }
  .nav-dropdown.open .nav-drop-menu { display: flex; }
  .steps, .audiences { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1.5px dashed var(--rule-line); padding: 24px 0; }
  .steps li:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-flush { padding-top: 0; }
  .hero-inner { padding-top: 32px; padding-bottom: 40px; gap: 16px; }
  .hero-copy { padding-left: 22px; }
  .hero-art { min-height: 300px; }
  .crayon { width: 120px; height: 16px; }
  .crayon::after { right: -18px; border-left-width: 18px; border-top-width: 8px; border-bottom-width: 8px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .product-card-body h3 { font-size: 1rem; }
  .product-card .btn { font-size: .88rem; padding: .7em .6em; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-inner > div { border-left: 0 !important; padding: 16px 0 !important; border-top: 1px solid var(--line); }
  .trust-inner > div:first-child { border-top: 0; }
  .pdp-media { padding: 22px; }
  .pdp-facts { grid-template-columns: repeat(2, 1fr); }
  .pdp-facts div:nth-child(3) { border-left: 0; }
  .pdp-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-price { grid-column: 2; }
  .download-row { flex-direction: column; align-items: stretch; }
  .order-card { padding: 34px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .free-banner { padding: 28px 22px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .25s ease; }
  .sticky-buy.show { transform: none; }
  .sticky-buy > div { display: flex; flex-direction: column; min-width: 0; }
  .sticky-buy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
  .sticky-buy .price { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════ Admin ═══════════════ */
body.admin { background: #f4f7fa; font-size: 15px; }
.admin-bar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.admin-bar-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.admin-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.admin-brand b { font-weight: 800; }
.admin-brand span { font-family: var(--font-body); font-size: .75rem; font-weight: 600; background: var(--sun); color: var(--ink); padding: 3px 8px; border-radius: 5px; vertical-align: middle; margin-left: 4px; letter-spacing: 0; }
.admin-brand.big { font-size: 2rem; color: var(--ink); text-align: center; margin-bottom: 20px; }
.admin-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.admin-nav a { color: #c4cfdb; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255,255,255,.1); color: #fff; }
.admin-bar-end { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.admin-bar-end a, .admin-bar-end .link-btn { color: #c4cfdb; text-decoration: none; }
.admin-main { max-width: 1320px; margin: 0 auto; padding: 28px 20px 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.9rem; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head a.muted { text-decoration: none; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.2rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-cols.wide-left { grid-template-columns: 1.5fr 1fr; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; }
.stat span { font-weight: 600; color: var(--muted); font-size: .88rem; }
.stat strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat em { font-style: normal; color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #f8fafc; }
.thumb { width: 44px; height: 55px; object-fit: cover; border-radius: 4px; }
.tag { font-size: .72rem; background: var(--sun); color: var(--ink); padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; background: #eef1f4; color: #4a5a6b; white-space: nowrap; font-family: var(--font-body); letter-spacing: 0; text-transform: capitalize; }
.status-paid, .status-active { background: var(--leaf-bg); color: var(--success); }
.status-pending, .status-coming_soon { background: var(--sun-bg); color: #7a5d00; }
.status-failed, .status-canceled { background: #fdecec; color: var(--danger); }
.status-refunded, .status-hidden { background: #eef1f4; color: #4a5a6b; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { padding: 8px 12px; min-width: 220px; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0 0 16px; }
.dl dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; word-break: break-word; }
.plain { padding-left: 1.2em; }
.panel form + form { margin-top: 12px; }
.checklist-admin { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist-admin li { display: flex; gap: 12px; align-items: flex-start; }
.checklist-admin li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .85rem; }
.checklist-admin .ok > span { background: var(--leaf-bg); color: var(--success); }
.checklist-admin .todo > span { border: 2px dashed #c3ccd6; }
.checklist-admin small { display: block; color: var(--muted); }
.admin-form .field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.cover-preview { width: 120px; border-radius: 4px; margin-bottom: 8px; border: 1px solid var(--line); }
.form-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, #f4f7fa 30%); padding: 20px 0 8px; }
.danger-zone { margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 20px; }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-row input { padding: 8px 10px; width: auto; flex: 1 1 140px; }
.cat-row .narrow-input { flex: 0 0 80px; }
.cat-row .cat-desc { flex: 1 1 100%; }
form.inline { display: inline; }
.login-card { max-width: 420px; margin: 10vh auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.message.unread { border-left: 4px solid var(--sun); }
.message-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.message-body { white-space: pre-wrap; background: var(--ruled); padding: 12px; border-radius: 8px; }
code { background: var(--ruled); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
@media (max-width: 900px) {
  .admin-cols, .admin-cols.wide-left { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
