/* ───────────────────────────────────────────────────────────────────────────
   Bento Bundle — marketing site
   Aesthetic: editorial Japanese-craft. Washi paper, lacquer red, ink.
   Brand palette reused from the app's own tokens so site + product feel as one.
─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Ink */
  --ink-900: #0e0e10;
  --ink-700: #2c2d31;
  --ink-500: #56575c;
  --ink-400: #8a8b92;
  --ink-300: #b8b9bf;

  /* Paper */
  --paper-0:   #ffffff;
  --paper-50:  #faf8f3;
  --paper-100: #f3efe6;
  --paper-200: #e8e3d6;
  --paper-300: #d4cebd;

  /* Lacquer (primary accent) */
  --lacquer-50:  #fdeee9;
  --lacquer-100: #f9d3c7;
  --lacquer-300: #e88b6e;
  --lacquer-500: #c9472b;
  --lacquer-600: #a83721;
  --lacquer-700: #872a18;

  /* State */
  --tatami-500: #6e7a3d;
  --tatami-100: #eef0e0;
  --shoyu-700:  #3a2818;
  --info-500:   #3b6ea5;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-logo: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-md: 0 2px 6px rgba(14,14,16,.06), 0 1px 2px rgba(14,14,16,.04);
  --shadow-lg: 0 8px 24px rgba(14,14,16,.08), 0 2px 6px rgba(14,14,16,.04);
  --shadow-xl: 0 24px 64px rgba(14,14,16,.14), 0 6px 16px rgba(14,14,16,.07);
  --shadow-accent: 0 10px 30px rgba(201,71,43,.28);

  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper-50);
  color: var(--ink-700);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* warm paper grain over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: .85em 1.4em;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out),
              background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn--sm { padding: .6em 1.05em; font-size: .9rem; border-radius: 10px; }
.btn--accent {
  background: var(--lacquer-500);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--accent:hover {
  background: var(--lacquer-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--paper-300);
}
.btn--ghost:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn--ghost:hover .arrow { transform: translateY(3px); }

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  /* translucent washi bar */
  background: rgba(250, 248, 243, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--paper-200);
  position: -webkit-sticky;
}
/* full-bleed bar background while content stays centred */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: rgba(250, 248, 243, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--paper-200);
  z-index: -1;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__icon { display: block; width: 26px; height: 26px; border-radius: 7px; }
.brand__word {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.logo-accent { color: var(--lacquer-500); }
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-500);
}
.nav__links a { position: relative; padding: 4px 0; transition: color .15s var(--ease-out); }
.nav__links a:hover { color: var(--ink-900); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--lacquer-500); transition: width .25s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }
.nav > .btn--accent { margin-left: 8px; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) 32px clamp(56px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lacquer-600);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.9rem, 6.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-900);
}
.ink-accent { color: var(--lacquer-500); font-style: italic; }
.hero__sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 30ch;
}
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust {
  margin-top: 22px;
  font-size: .9rem;
  color: var(--ink-400);
  letter-spacing: 0.01em;
}

/* ─── Hero art: a faithful slice of the real storefront ───────────────── */
.hero__art { position: relative; }
.pdp {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.1fr;
  gap: 16px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-xl);
  rotate: 1.2deg;
}
@media (max-width: 560px) { .pdp { grid-template-columns: 1fr; } }

.pdp__media { display: flex; flex-direction: column; gap: 10px; }
.pdp__image {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 14px;
  background: var(--paper-200);
}
.pdp__thumbs { display: flex; gap: 8px; }
.pdp__thumb {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--paper-200);
}
.pdp__thumb.is-active { box-shadow: 0 0 0 2px var(--lacquer-500); border-color: transparent; }

.pdp__panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pdp__eyebrow {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 600;
}
.pdp__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink-900); margin-top: -6px;
}

/* compartments — mirrors the real configurator: numbered step that turns into
   a green check when picked, title + from-price, preview thumbnails. */
.cfg { display: flex; flex-direction: column; gap: 8px; }
.cmp {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; padding: 10px 12px;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: 12px;
  transition: border-color .2s var(--ease-out);
}
.cmp:hover { border-color: var(--lacquer-300); }
.cmp--done { background: var(--paper-0); }
.cmp__step {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-100); color: var(--ink-500);
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
}
.cmp__step--done { background: var(--tatami-500); color: #fff; font-family: var(--font-sans); }
.cmp__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cmp__title { font-size: .9rem; font-weight: 600; color: var(--ink-900); letter-spacing: -.01em; }
.cmp__from { font-size: .72rem; color: var(--ink-400); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp__chosen { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-700); }
.cmp__chip { width: 24px; height: 24px; border-radius: 6px; display: block; flex-shrink: 0; }
.cmp__preview { display: flex; align-items: center; gap: 6px; }
.cmp__preview i { width: 28px; height: 28px; border-radius: 6px; display: block; border: 1px solid var(--paper-200); }
.cmp__more { font-size: .72rem; font-weight: 600; color: var(--ink-400); }
.cmp__chev { color: var(--ink-300); font-size: 1.3rem; line-height: 1; }

.cfg__foot {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 2px; padding-top: 14px;
  border-top: 1px solid var(--paper-200);
}
.cfg__totals { display: flex; align-items: baseline; gap: 8px; }
.cfg__was { color: var(--ink-400); text-decoration: line-through; font-size: .9rem; }
.cfg__now {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; color: var(--ink-900); letter-spacing: -.02em;
}
.cfg__save {
  background: var(--tatami-100); color: var(--tatami-500);
  font-size: .72rem; font-weight: 600; padding: .25em .6em; border-radius: 999px;
  margin-left: auto;
}
.cfg__add {
  width: 100%; text-align: center;
  background: var(--lacquer-500); color: #fff; border: none;
  font-family: var(--font-sans); font-weight: 600; font-size: .9rem;
  padding: .7em 1em; border-radius: 10px; cursor: pointer;
  transition: background .2s var(--ease-out);
}
.cfg__add:hover { background: var(--lacquer-600); }

/* product-image placeholders (stand in for real product photos) */
.thumb--machine  { background: radial-gradient(120% 120% at 30% 20%, #f6cbbb, var(--lacquer-300) 68%, var(--lacquer-500)); }
.thumb--machine2 { background: radial-gradient(120% 120% at 30% 20%, #f4d9cf, var(--lacquer-300)); }
.thumb--machine3 { background: radial-gradient(120% 120% at 30% 20%, #d9b3a6, var(--lacquer-600)); }
.thumb--grinder  { background: radial-gradient(120% 120% at 30% 20%, #cfd6ad, var(--tatami-500)); }
.thumb--grinder2 { background: radial-gradient(120% 120% at 30% 20%, #dfe3c6, #8a9555); }
.thumb--grinder3 { background: radial-gradient(120% 120% at 30% 20%, #b9c089, var(--tatami-500)); }
.thumb--beans    { background: radial-gradient(120% 120% at 30% 20%, #8a6347, var(--shoyu-700)); }
.thumb--beans2   { background: radial-gradient(120% 120% at 30% 20%, #a07a59, #4a3220); }
.thumb--beans3   { background: radial-gradient(120% 120% at 30% 20%, #6b4a35, var(--shoyu-700)); }
.thumb--wine     { background: radial-gradient(120% 120% at 30% 20%, #9c3350, #441026 78%); }
.thumb--wine2    { background: radial-gradient(120% 120% at 30% 20%, #b35068, #5e1a30); }
.thumb--wine3    { background: radial-gradient(120% 120% at 30% 20%, #7a2440, #360c1d); }
.thumb--skin     { background: radial-gradient(120% 120% at 30% 20%, #fbe3d3, #e6a585 82%); }
.thumb--skin2    { background: radial-gradient(120% 120% at 30% 20%, #f6d6c1, #dc9670); }
.thumb--skin3    { background: radial-gradient(120% 120% at 30% 20%, #f1c8ac, #d18a64); }

.float-tag {
  position: absolute;
  font-size: .8rem; font-weight: 600; color: var(--ink-700);
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  box-shadow: var(--shadow-lg);
  padding: .5em .85em; border-radius: 999px;
  white-space: nowrap;
}
.float-tag--one { left: -18px; bottom: 58px; rotate: -3deg; }
.float-tag--two { right: -14px; top: 28px; rotate: 4deg; }

/* ─── Reveal animations ───────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .8s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.reveal-pop { opacity: 0; animation: pop .7s var(--ease-spring) forwards; animation-delay: var(--d, 0ms); }

/* ─── Scroll-triggered reveal ─────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-on-scroll.is-in { opacity: 1; transform: none; }

/* ─── Section shell ───────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 32px;
  border-top: 1px solid var(--paper-200);
}
.section__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-top: 16px;
}

/* ─── Deal types ──────────────────────────────────────────────────────── */
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 640px; }
.section__lede { margin-top: 18px; font-size: 1.1rem; line-height: 1.55; color: var(--ink-500); }

/* tabs */
.modes__tabs {
  display: flex; gap: 4px; justify-content: center;
  width: max-content; max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  border-radius: 999px;
}
.mode-tab {
  appearance: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: .92rem;
  color: var(--ink-500); background: transparent;
  padding: .55em 1.15em; border-radius: 999px; white-space: nowrap;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.mode-tab:hover { color: var(--ink-900); }
.mode-tab.is-active { background: var(--lacquer-500); color: #fff; }

/* the product-page stage — one frame, contents swap per tab */
.pdpx {
  display: none;
  position: relative;
  max-width: 720px; margin: 0 auto;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 22px;
  padding: 20px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}
.pdpx.is-active { display: grid; }
@media (max-width: 720px) { .pdpx { grid-template-columns: 1fr; } }

.pdpx__media { display: flex; flex-direction: column; gap: 10px; }
.pdpx__image { width: 100%; aspect-ratio: 9 / 10; border-radius: 14px; background: var(--paper-200); }
.pdpx__thumbs { display: flex; gap: 8px; }
.pdpx__thumb { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--paper-200); }
.pdpx__thumb.is-active { box-shadow: 0 0 0 2px var(--lacquer-500); border-color: transparent; }

.pdpx__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pdpx__eyebrow { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }
.pdpx__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink-900); margin: -6px 0 0; }
.pdpx__price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink-900); }
.pdpx__note { font-size: .82rem; color: var(--ink-400); }

/* "view on a real store" — only on storefront-facing previews */
.live-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--lacquer-600);
  background: var(--lacquer-50); border: 1px solid var(--lacquer-100);
  padding: .5em 1.05em; border-radius: 999px;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.live-cta:hover { background: var(--lacquer-100); border-color: var(--lacquer-300); }
.live-cta--sm { font-size: .76rem; padding: .4em .8em; }
.modes__live { text-align: center; margin-top: 26px; }

/* mini previews */
.cfg-mini { display: flex; flex-direction: column; gap: 8px; }
.cfg__add--full { width: 100%; }

/* bundle "what you've chosen" summary (mirrors .bento-summary) */
.bsum {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: 12px;
}
.bsum__title { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); font-weight: 600; }
.bsum__list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.bsum__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; }
.bsum__name { color: var(--ink-700); font-weight: 600; }
.bsum__price { color: var(--ink-700); font-variant-numeric: tabular-nums; }
.bsum__item--todo .bsum__name { color: var(--ink-400); }
.bsum__hint { color: var(--lacquer-600); font-weight: 600; font-size: .8rem; }
.bsum__perks {
  font-size: .76rem; color: var(--ink-500);
  padding-top: 8px; border-top: 1px solid var(--paper-200);
}
.bsum__perks::before { content: "\2713  "; color: var(--tatami-500); font-weight: 700; }
.bsum__foot {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--paper-200);
}

/* volume / bulk widget (mirrors .bento-volume) */
.vol { display: flex; flex-direction: column; gap: 14px; }
.vol__tiers { display: flex; flex-direction: column; gap: 8px; }
.vol__tier {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; text-align: left;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 11px;
}
.vol__tier-main { display: flex; flex-direction: column; gap: 2px; }
.vol__tier--active {
  border-color: var(--tatami-500);
  box-shadow: inset 0 0 0 1px var(--tatami-500);
  background: color-mix(in srgb, var(--tatami-100) 35%, var(--paper-0));
}
.vol__best {
  background: var(--lacquer-500); color: #fff;
  font-size: .58rem; font-weight: 700; letter-spacing: .04em;
  padding: .3em .6em; border-radius: 999px; white-space: nowrap;
}
.vol__tier-right { display: flex; align-items: center; gap: 8px; }
.vol__tier--best { border-color: var(--lacquer-300); }
.vol__qty { font-size: .88rem; font-weight: 600; color: var(--ink-900); }
.vol__save { font-size: .8rem; font-weight: 600; color: var(--tatami-500); }
.vol__unit { font-size: .68rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.vol__nudge {
  padding: 10px 12px; border-radius: 9px;
  background: color-mix(in srgb, var(--tatami-100) 55%, var(--paper-0));
  font-size: .8rem; font-weight: 600; color: var(--ink-700);
}
.vol__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--paper-200);
}
.vol__qtybox { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--paper-200); border-radius: 9px; padding: 2px; }
.vol__step { width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink-700); border-radius: 6px; }
.vol__step:hover { background: var(--paper-100); }
.vol__qtyval { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.vol__totals { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
.vol__amounts { display: inline-flex; align-items: baseline; gap: 8px; }
.vol__savenote { font-size: .72rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }

/* offer toast (mirrors .bento-offers, floats over the page) */
.offer-toast {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 11px;
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
}
.offer-toast__img { width: 28px; height: 28px; border-radius: 6px; display: block; flex: none; }
.offer-toast__text { font-size: .82rem; font-weight: 550; color: var(--ink-700); }
.offer-toast__text strong { color: var(--lacquer-600); font-weight: 700; }
.offer-toast__bar { width: 84px; height: 6px; border-radius: 999px; background: var(--paper-200); overflow: hidden; flex: none; }
.offer-toast__fill { display: block; height: 100%; background: var(--lacquer-500); border-radius: 999px; }
/* on phones the toast can't float over a narrow card without covering the
   button, so drop it into normal flow below the card, bar on its own line. */
@media (max-width: 720px) {
  .offer-toast {
    position: static; transform: none;
    max-width: 100%; margin-top: 10px;
    flex-wrap: wrap;
  }
  .offer-toast__bar { order: 3; flex-basis: 100%; width: 100%; }
}
.mini-cmp {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 9px;
}
.mini-step {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--paper-100); color: var(--ink-500);
  font-family: var(--font-display); font-weight: 600; font-size: .7rem;
}
.mini-step--done { background: var(--tatami-500); color: #fff; font-family: var(--font-sans); }
.mini-cmp__t { font-size: .8rem; font-weight: 600; color: var(--ink-700); flex: 1; min-width: 0; }
.mini-chev { color: var(--ink-300); font-size: 1.1rem; line-height: 1; }

/* an opened compartment: header + the options grid (mirrors compartment__scroller) */
.mini-open {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  background: var(--paper-0);
  border: 1px solid var(--lacquer-300);
  border-radius: 9px;
}
.mini-open__head { display: flex; align-items: center; gap: 10px; }
.mini-step--active {
  background: var(--lacquer-50);
  color: var(--lacquer-600);
  box-shadow: 0 0 0 2px var(--lacquer-300);
}
.mini-opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 252px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-300) transparent;
  padding-right: 4px;
}
.mini-opts::-webkit-scrollbar { width: 6px; }
.mini-opts::-webkit-scrollbar-thumb { background: var(--paper-300); border-radius: 999px; }
.mini-opt {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 8px;
  transition: border-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.mini-opt:hover { border-color: var(--ink-700); transform: translateY(-1px); }
.mini-opt__img {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 5px; display: block;
  background: var(--paper-100);
}
.mini-opt__t { font-size: .72rem; font-weight: 600; color: var(--ink-700); letter-spacing: -.01em; }
.mini-opt__p { font-size: .68rem; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.mini-opt__pick {
  font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--lacquer-500);
}
.mini-opt--chosen {
  border-color: var(--tatami-500);
  background: color-mix(in srgb, var(--tatami-100) 55%, var(--paper-0));
}
.mini-opt--chosen:hover { border-color: var(--tatami-500); }
.mini-opt--chosen .mini-opt__pick { color: var(--tatami-500); }

/* ─── Builder simulator ───────────────────────────────────────────────── */
.bench {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: start; max-width: 1080px; margin: 0 auto;
}
@media (max-width: 900px) { .bench { grid-template-columns: 1fr; } }
.bench__panel {
  background: var(--paper-0); border: 1px solid var(--paper-200);
  border-radius: 18px; box-shadow: var(--shadow-md); padding: 20px;
}
.bench__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bench__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); font-weight: 600; }
.bench__count { font-size: .8rem; color: var(--ink-400); font-weight: 500; }

/* bento canvas — faithful b-bento-N shapes from the real editor */
.bbento { display: grid; gap: 12px; min-height: 300px; }
.bbento__right { display: contents; }
.bbento__anchor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bbento__anchor > .bcell { flex: 1 1 0; }
.bbento-2 { grid-template-columns: 1.4fr 1fr; }
.bbento-3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.bbento-3 .bbento__anchor { grid-row: 1 / span 2; }
.bbento-4 { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bbento-4 .bbento__anchor { grid-row: 1 / span 2; }
.bbento-4 .bcell--add { grid-column: 2 / span 2; }
.bbento-5 { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.bbento-5 .bbento__anchor { grid-row: 1 / span 3; }
.bbento-5 .bbento__right > .bcell:first-child { grid-column: 2 / span 2; }
.bbento-5 .bcell--add { grid-column: 2 / span 2; }
.bbento-6 { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.bbento-6 .bbento__anchor { grid-row: 1 / span 3; }
.bbento-6 .bcell--add { grid-column: 2 / span 2; }
.bbento-7 { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.bbento-7 .bbento__anchor { grid-row: 1 / span 3; }
/* phones: keep the REAL bento grid shapes (main one fixed height on the left,
   compartments fill the right grid two-across, Add included). Just size the
   cells down to fit. The fixed min-height keeps the main from growing as you
   add compartments. */
@media (max-width: 560px) {
  .bbento { min-height: 280px; gap: 7px; }
  /* narrow the main column a touch so compartments get more width */
  .bbento-2 { grid-template-columns: 1.2fr 1fr; }
  .bbento-3 { grid-template-columns: 1.3fr 1fr; }
  .bbento-4, .bbento-5, .bbento-6, .bbento-7 { grid-template-columns: 1.2fr 1fr 1fr; }
  .bcell { padding: 8px; border-radius: 10px; gap: 4px; }
  .bcell__t { font-size: .72rem; line-height: 1.15; }
  .bcell:not(.bcell--main) .bcell__sub { display: none; }
  .bcell--main .bcell__sub { font-size: .62rem; }
  .bcell--main .bcell__thumb { min-height: 56px; }
  .bcell--add { font-size: .68rem; gap: 3px; }
  .bcell__plus { width: 22px; height: 22px; font-size: 13px; }
  .bcell__tag { font-size: .52rem; top: 7px; left: 7px; padding: .18em .42em; }
}

.bcell {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: 13px;
  min-height: 92px;
  overflow: hidden;
}
.bcell--main { background: var(--paper-0); border-color: var(--lacquer-100); }
.bcell__thumb { flex: 1; width: 100%; min-height: 38px; border-radius: 9px; background: var(--paper-200); }
.bcell--main .bcell__thumb { min-height: 120px; }
.bcell__t { font-size: .85rem; font-weight: 600; color: var(--ink-900); letter-spacing: -.01em; }
.bcell__sub { font-size: .68rem; color: var(--ink-400); }
.bcell__tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--lacquer-500); color: #fff; padding: .25em .5em; border-radius: 999px;
}
.bcell__x {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.85); color: var(--ink-500);
  font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .15s var(--ease-out);
}
.bcell--comp:hover .bcell__x { opacity: 1; }
.bcell__x:hover { background: var(--lacquer-500); color: #fff; }
.bcell--add {
  align-items: center; justify-content: center; gap: 6px;
  border-style: dashed; border-color: var(--paper-300);
  background: transparent; color: var(--ink-400);
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.bcell--add:hover { border-color: var(--lacquer-500); color: var(--lacquer-600); background: var(--lacquer-50); }
.bcell__plus {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid currentColor; font-size: 16px;
}
.bcell--in { animation: pop .45s var(--ease-spring); }

/* discount control */
.disc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--paper-200); display: flex; flex-direction: column; gap: 12px; }
.disc__label { font-size: .8rem; font-weight: 600; color: var(--ink-700); }
.disc__types {
  display: inline-flex; gap: 4px; width: max-content; max-width: 100%;
  padding: 4px; background: var(--paper-100); border: 1px solid var(--paper-200); border-radius: 999px;
}
.disc__type { appearance: none; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .8rem; color: var(--ink-500); background: transparent; padding: .4em .85em; border-radius: 999px; white-space: nowrap; }
.disc__type:hover { color: var(--ink-900); }
.disc__type.is-active { background: var(--lacquer-500); color: #fff; }
.disc__control { display: flex; align-items: center; gap: 14px; }
.disc__range { flex: 1; accent-color: var(--lacquer-500); }
.disc__value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-900); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }

/* live preview inside the bench — storefront steps + the "What you've chosen" summary */
.bprev__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-900); margin-bottom: 14px; }
.bprev .cfg-mini { margin-bottom: 4px; }
.mini-tag { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); background: var(--paper-100); padding: .2em .5em; border-radius: 999px; }
.csum { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--paper-200); }
.csum .cfg__add { margin-top: 14px; }
.csum__hint--opt { color: var(--ink-400) !important; }
.csum__title { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); font-weight: 600; margin-bottom: 14px; }
.csum__list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.csum__item { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; }
.csum__name { font-weight: 600; color: var(--ink-900); }
.csum__tag { font-size: .7rem; color: var(--tatami-500); font-weight: 600; }
.csum__price { margin-left: auto; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.csum__hint { margin-left: auto; font-size: .76rem; color: var(--lacquer-600); font-weight: 600; }
.csum__item--anchor { padding-bottom: 11px; border-bottom: 1px solid var(--paper-200); }
.csum__perks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.csum__perks-intro { font-size: .76rem; color: var(--ink-400); width: 100%; }
.csum__perk { font-size: .76rem; font-weight: 600; color: var(--ink-700); background: var(--paper-100); padding: .28em .65em; border-radius: 999px; }
.csum__perk::before { content: "\2713 "; color: var(--tatami-500); }
.csum__savings { margin-bottom: 16px; }
.csum__pill { display: inline-block; background: var(--tatami-100); color: var(--tatami-500); font-size: .78rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.csum__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--paper-200); }
.csum__total-label { font-size: .9rem; color: var(--ink-500); }
.csum__pay { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* "what you can edit in the full builder" — outside the demo box */
.editnote { max-width: 1080px; margin: 28px auto 0; }
.editnote__label { font-size: .92rem; color: var(--ink-500); }
.editnote__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.editnote__list li {
  font-size: .82rem; font-weight: 600; color: var(--ink-700);
  background: var(--paper-0); border: 1px solid var(--paper-200);
  padding: .45em .85em; border-radius: 999px;
}
.editnote__list li::before { content: "\270E\00a0"; color: var(--lacquer-500); }

/* ─── Features ────────────────────────────────────────────────────────── */
.feats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 860px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat__icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--lacquer-50); color: var(--lacquer-600);
  display: grid; place-items: center;
}
.feat__icon svg { width: 22px; height: 22px; }
.feat__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink-900); }
.feat__body { font-size: .92rem; line-height: 1.55; color: var(--ink-500); }

/* ─── Pricing ─────────────────────────────────────────────────────────── */
.billing-toggle {
  display: flex; gap: 4px; width: max-content; margin: 0 auto 32px;
  padding: 4px; background: var(--paper-100); border: 1px solid var(--paper-200); border-radius: 999px;
}
.bt {
  appearance: none; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem;
  color: var(--ink-500); background: transparent; padding: .55em 1.15em; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.bt:hover { color: var(--ink-900); }
.bt.is-active { background: var(--lacquer-500); color: #fff; }
.bt__save { font-size: .66rem; font-weight: 700; background: var(--tatami-100); color: var(--tatami-500); padding: .2em .5em; border-radius: 999px; }
.bt.is-active .bt__save { background: rgba(255,255,255,.24); color: #fff; }

.plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 760px; margin: 0 auto; align-items: start;
}
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px;
  background: var(--paper-0); border: 1px solid var(--paper-200);
  border-radius: 20px; box-shadow: var(--shadow-md);
}
.plan--featured { position: relative; border-color: var(--lacquer-300); box-shadow: var(--shadow-lg); }
.plan__badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--lacquer-500); color: #fff;
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .35em .7em; border-radius: 999px;
}
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink-900); }
.plan__tagline { display: block; font-size: .88rem; color: var(--ink-500); margin-top: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__amt { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; color: var(--ink-900); letter-spacing: -.03em; }
.plan__per { font-size: .95rem; color: var(--ink-400); }
.plan__cta { width: 100%; justify-content: center; }
.plan__plus { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.plan__feats { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan__feats li { display: flex; gap: 9px; font-size: .9rem; color: var(--ink-700); line-height: 1.4; }
.plan__feats li::before { content: "\2713"; color: var(--tatami-500); font-weight: 700; flex: none; }
.plans__note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: .85rem; color: var(--ink-400); }

/* ─── Closing CTA ─────────────────────────────────────────────────────── */
.cta {
  position: relative; z-index: 2;
  background: radial-gradient(120% 140% at 50% 0%, var(--lacquer-500), var(--lacquer-600));
}
.cta__inner {
  max-width: 720px; margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 32px;
  text-align: center;
}
.cta__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em;
  color: #fff;
}
.cta__sub { margin-top: 18px; font-size: 1.1rem; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.cta__inner .btn { margin-top: 30px; }
.btn--onlacquer { background: #fff; color: var(--lacquer-600); }
.btn--onlacquer:hover { background: var(--paper-50); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 0, 0, .22); }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.foot {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px 32px 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--paper-200);
  color: var(--ink-400); font-size: .9rem;
}
.foot__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-logo); font-weight: 800; letter-spacing: -0.025em; color: var(--ink-900); }
.foot__brand .brand__icon { width: 22px; height: 22px; }
.foot__by a { color: var(--lacquer-600); font-weight: 600; }
.foot__by a:hover { text-decoration: underline; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__sub { max-width: 46ch; }
  .hero__art { margin-top: 12px; max-width: 460px; }
  .float-tag--one { left: 0; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { gap: 12px; }
  .nav > .btn--accent { margin-left: auto; }
}

/* phones — tighten padding, drop decorative overflow, keep headings in bounds */
@media (max-width: 720px) {
  .nav { padding-left: 18px; padding-right: 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .float-tag { display: none; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 2.9rem); overflow-wrap: break-word; }
  .section__title { font-size: clamp(1.55rem, 7.5vw, 2.1rem); overflow-wrap: break-word; word-break: break-word; }
  .hero__sub, .section__lede { overflow-wrap: break-word; }
  .section__head, .section__head--center, .section__title, .section__lede { max-width: 100%; }
  .modes__tabs { max-width: 100%; flex-wrap: wrap; }
  .disc__types { flex-wrap: wrap; }
  .pdpx, .bench, .feats, .plans, .modes, .editnote, .deals { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal, .reveal-pop, .reveal-on-scroll { animation: none; opacity: 1; transform: none; }
}
