@import url("fonts/fonts.css");

:root {
  --paper: #fff;
  --panel: #f3f2ed;
  --ink: #121212;
  --ink-soft: #55554f;
  --line: #d8d8d0;
  --accent: #269dff;
  --accent-deep: #155da8;
  --highlight: #ffe01b;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "DynaPuff", "Archivo", sans-serif;
  --font-mono: "Space Mono", Menlo, monospace;
  --radius-pill: 999px;
  --radius: 22px;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 5px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: white; padding: 12px 20px; z-index: 200; }
.skip-link:focus { left: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.narrow { max-width: 800px; margin: 0 auto; }
.eyebrow { font: 700 .72rem/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 18px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.07; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
.sub { color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 48ch; }
.highlight { display: inline-block; background: var(--highlight); padding: .03em .14em .08em; border-radius: .13em; transform: rotate(-2deg); }
.text-link { display: inline-block; margin-top: 24px; font-weight: 700; }

.nav-wrap { position: sticky; top: 16px; z-index: 100; display: flex; justify-content: center; padding: 0 var(--pad); margin-top: 16px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px); background: rgba(255,255,255,.96); border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 10px 14px 10px 22px; width: 100%; max-width: 930px; box-shadow: 0 4px 0 var(--ink); }
.nav-brand { display: inline-flex; align-items: center; gap: 5px; font: 700 1.55rem/1 var(--font-display); letter-spacing: -.05em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav-brand img { width: 37px; height: 39px; }
.nav a:not(.nav-brand) { text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.nav a[aria-current="page"]:not(.nav-brand) { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav-cart { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: white !important; border: 0; font: 600 .88rem var(--font); border-radius: var(--radius-pill); padding: 11px 16px; min-height: 44px; cursor: pointer; }
.nav-cart:hover { background: var(--accent-deep); }
.cart-dot { min-width: 23px; text-align: center; background: var(--highlight); color: var(--ink); font: 700 .75rem/23px var(--font-mono); border-radius: 50%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 .9rem/1.5 var(--font-mono); text-decoration: none; border-radius: var(--radius-pill); padding: 15px 28px; cursor: pointer; border: 2px solid var(--ink); min-height: 48px; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--highlight); }
.btn-accent { background: var(--highlight); color: var(--ink); }
.btn-accent:hover { background: white; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.hero { text-align: center; padding-top: clamp(54px, 6vw, 80px); }
.hero h1 { font-size: clamp(3.1rem, 7.2vw, 6.2rem); }
.hero .sub { margin: 24px auto 28px; }
.hero-cta { display: flex; justify-content: center; }
.hero-stage { position: relative; max-width: 560px; margin: clamp(36px, 5vw, 56px) auto 0; }
.hero-stage > img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius); }
.stage-sticker { position: absolute; top: 24px; left: -28px; z-index: 1; padding: 12px 17px; background: white; border: 2px solid var(--ink); border-radius: 8px; font: 700 .75rem/1.5 var(--font-mono); text-align: left; transform: rotate(-8deg); }
.benefit-grid { display: grid; grid-template-columns: 1fr minmax(220px, 350px) 1fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.benefit-col { display: grid; gap: 44px; }
.benefit-col.left { text-align: right; }
.pair strong { display: block; font-size: 1.23rem; font-weight: 700; line-height: 1.3; margin-bottom: 7px; }
.pair span { display: block; color: var(--ink-soft); font-size: .95rem; }
.benefit-center img { width: 100%; border-radius: var(--radius); }
.word-band { background: var(--highlight); border-block: 2px solid var(--ink); overflow: hidden; padding: 22px var(--pad); text-align: center; font: 700 clamp(1.5rem, 3.5vw, 3rem)/1.2 var(--font-display); word-spacing: .14em; }
.word-band span { color: var(--ink); }

.ritual-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.ritual-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.ritual-card:nth-child(2) { background: var(--highlight); }
.ritual-card .step { font: 700 3.8rem/1 var(--font-display); color: var(--ink); }
.ritual-card h3 { font-size: 1.65rem; margin: 22px 0 12px; }
.ritual-card p:not(.step) { color: var(--ink-soft); }
.safety-note { margin-top: 26px; padding: 18px 22px; background: var(--ink); color: white; border-radius: 12px; font-size: .92rem; }
.safety-note strong { color: var(--highlight); }
.routine-link { text-align: center; }
.devices { border-block: 2px solid var(--ink); background: var(--panel); }
.devices-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.devices-heading .sub { max-width: 35ch; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin: 36px 0 24px; }
.device-card { border-top: 2px solid var(--ink); padding-top: 24px; }
.device-card h3 { margin: 18px 0 8px; }
.device-card p { color: var(--ink-soft); font-size: .9rem; }
.device-icon { width: 54px; height: 72px; color: var(--ink); }
.fine-print { font-size: .82rem; color: var(--ink-soft); max-width: 90ch; }
.story-band { text-align: center; }
.story-band h2 { max-width: 20ch; margin: 0 auto; }
.story-band .sub { margin: 24px auto 0; }
.cta-band { position: relative; overflow: hidden; background: var(--highlight); border: 2px solid var(--ink); border-radius: 28px; text-align: center; padding: clamp(42px, 6vw, 72px) var(--pad); }
.cta-band .mascot { width: 105px; height: 105px; margin: 0 auto 18px; transform: rotate(8deg); }
.cta-band h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.cta-band .sub { color: var(--ink); margin: 20px auto 28px; }
.cta-band .eyebrow { margin-top: 22px; margin-bottom: 0; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery-main { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 9/10; object-fit: cover; }
.gallery-thumbs { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; background: var(--panel); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.buy-card h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 24px 0 18px; }
.price { font-size: 1.6rem; font-weight: 700; }
.ship-note { color: var(--ink-soft); font-size: .85rem; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 26px 0 22px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { border: 0; background: transparent; font: inherit; font-size: 1.2rem; width: 44px; height: 44px; cursor: pointer; }
.qty button:hover { background: var(--highlight); }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }
.buy-actions { display: grid; gap: 10px; max-width: 420px; }
.accordion { border-top: 2px solid var(--ink); margin-top: 34px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: none; border: 0; font: 700 1rem/1.5 var(--font); text-align: left; padding: 22px 2px; cursor: pointer; }
.accordion-trigger .chev { transition: transform .2s; font-size: 1.4rem; }
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(45deg); }
.accordion-panel { padding: 0 2px 24px; color: var(--ink-soft); max-width: 64ch; }
.accordion-panel p + p { margin-top: 12px; }
.accordion-panel ul { padding-left: 20px; }
.page-head { text-align: center; padding-top: clamp(54px, 7vw, 90px); }
.page-head .sub { margin: 24px auto 0; }
.page-head .mascot { width: 96px; margin: 0 auto 24px; }

.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border-radius: 14px; padding: 12px; }
.cart-line img { border-radius: 8px; }
.cart-line .meta { min-width: 0; }
.cart-line .meta strong { display: block; font-size: .88rem; }
.cart-line .meta span { color: var(--ink-soft); font-size: .8rem; }
.cart-line .line-end { text-align: right; display: grid; gap: 6px; justify-items: end; font-size: .85rem; }
.remove-line { border: 0; background: none; font: inherit; padding: 8px 0; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }
.cart-summary { margin-top: 26px; border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 14px; }
.cart-summary .row { display: flex; justify-content: space-between; font-weight: 700; }
.cart-empty { color: var(--ink-soft); padding: 30px 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(18,18,18,.45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 94vw); background: var(--paper); z-index: 160; transform: translateX(105%); transition: transform .25s; display: flex; flex-direction: column; padding: 24px; overflow-y: auto; border-left: 2px solid var(--ink); }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.drawer-close { border: 2px solid var(--ink); background: var(--highlight); border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }

footer { border-top: 2px solid var(--ink); margin-top: clamp(64px, 8vw, 100px); padding: 36px 0 44px; font-size: .85rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-row > span { font: .7rem/1.6 var(--font-mono); color: var(--ink-soft); }
.footer-row nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-row a { text-decoration: none; padding: 8px 0; }
.footer-row a:hover { text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 26px; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, 20px); background: var(--ink); color: white; border: 2px solid white; border-radius: 16px; padding: 12px 22px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 170; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-family: var(--font); font-size: 1.2rem; margin: 34px 0 12px; letter-spacing: -.02em; }
.prose h3 { font-size: 1rem; margin: 24px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a:hover { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--panel); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose .updated { color: var(--ink-soft); font-size: .85rem; margin-bottom: 30px; }
.email-link { font-size: clamp(1.05rem, 3.3vw, 1.7rem); overflow-wrap: anywhere; }
.manifesto { counter-reset: point; padding-inline: var(--pad); }
.manifesto article { border-top: 2px solid var(--ink); padding: 36px 0; display: grid; grid-template-columns: 60px 1fr; gap: 24px; }
.manifesto article::before { counter-increment: point; content: "0" counter(point); font: 700 2rem/1 var(--font-display); color: var(--ink); }
.manifesto h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 18px; }
.manifesto p { color: var(--ink-soft); margin-top: 14px; }
.citation { font: 700 .7rem var(--font-mono); white-space: nowrap; }
.science-notes { padding-inline: var(--pad); margin-bottom: 64px; font-size: .85rem; color: var(--ink-soft); }
.science-notes h2 { font: 700 1.1rem var(--font); margin-bottom: 16px; }
.science-notes ol { padding-left: 22px; margin-bottom: 16px; }
.science-notes li + li { margin-top: 12px; }

@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-layout > :first-child { max-width: 540px; width: 100%; margin: 0 auto; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-center { grid-column: 1 / -1; grid-row: 1; max-width: 340px; margin: 0 auto 16px; }
  .benefit-col, .benefit-col.left { text-align: left; align-self: start; }
  .benefit-col { gap: 28px; }
  .devices-heading { display: block; }
  .devices-heading .sub { margin-top: 24px; max-width: 50ch; }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .nav a.nav-story { display: none; }
}
@media (max-width: 720px) {
  .ritual-strip { grid-template-columns: 1fr; }
  .ritual-card { display: grid; grid-template-columns: 50px 1fr; gap: 10px 20px; padding: 24px; }
  .ritual-card .step { grid-row: 1 / 3; font-size: 3rem; }
  .ritual-card h3 { margin: 0; }
  .ritual-card p:not(.step) { grid-column: 2; }
}
@media (max-width: 560px) {
  .nav-wrap { top: 10px; margin-top: 10px; padding: 0 12px; }
  .nav { gap: 12px; padding: 8px 10px; }
  .nav-brand { font-size: 1.2rem; gap: 2px; }
  .nav-brand img { width: 28px; height: 34px; }
  .nav a:not(.nav-brand) { font-size: .8rem; }
  .nav a.nav-link-hide-sm { display: none; }
  .nav-cart { padding: 9px 12px; font-size: .8rem; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 3.8rem); }
  .hero .eyebrow { font-size: .63rem; letter-spacing: .02em; }
  .hero-stage > img { max-height: 430px; }
  .stage-sticker { top: 18px; left: -8px; font-size: .63rem; padding: 9px 12px; }
  .device-card h3 { font-size: 1.15rem; }
  .drawer { padding: 18px; }
  .cart-line { grid-template-columns: 46px 1fr auto; gap: 10px; }
  .manifesto article { grid-template-columns: 36px 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
