
/* AI CEO Box brand stylesheet.
   Layout: a packaging spec sheet. A kraft box is the hero object; everything else is set like
   the printing on its side panels: expanded caps, mono serials, thin rules, one cobalt accent. */
:root {
  --bg: #eceef3;
  --bg-2: #e2e5ec;
  --ink: #151925;
  --muted: #586074;
  --rule: #c9cdd8;
  --accent: #2b3de0;
  --accent-ink: #ffffff;
  --panel: #f7f8fb;
  --bad: #b8322a;
  --good: #1d7a4c;
  --input: #ffffff;

  /* physical materials: same in both themes */
  --kraft: #c59a6b;
  --kraft-lite: #d4ad82;
  --kraft-dark: #8f6a43;
  --kraft-inner: #a77d52;
  --print: #2a1d10;
  --card-paper: #fbfaf7;
  --card-ink: #17181d;
  --card-muted: #6b6d75;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131b; --bg-2: #161a24; --ink: #eceef5; --muted: #9aa2b6; --rule: #2a3040;
    --accent: #7f8cff; --accent-ink: #0d1020; --panel: #171b26; --bad: #ff8a80; --good: #6fd39c; --input: #0f121a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10131b; --bg-2: #161a24; --ink: #eceef5; --muted: #9aa2b6; --rule: #2a3040;
  --accent: #7f8cff; --accent-ink: #0d1020; --panel: #171b26; --bad: #ff8a80; --good: #6fd39c; --input: #0f121a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 22px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; text-decoration: none;
  font-variation-settings: "wdth" 110; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }

/* ---------- header ---------- */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 125;
  letter-spacing: .02em; text-transform: uppercase; font-size: 15px; text-decoration: none; }
.mark i { width: 22px; height: 22px; border-radius: 4px; background: var(--kraft); position: relative; flex: none;
  box-shadow: inset 0 -6px 0 var(--kraft-dark); }
.mark i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 3px; background: var(--accent); border-radius: 2px; }
nav.links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
nav.links a { text-decoration: none; } nav.links a:hover { color: var(--ink); }
header .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.mark { white-space: nowrap; }
@media (max-width: 760px) { nav.links { display: none; } }
@media (max-width: 400px) { .mark { font-size: 13px; } header .btn { padding: 9px 13px; font-size: 13px; } }

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; padding-block: 48px 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: .98; font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 30em; margin-top: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero .price { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero .price b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 32px 8px; } }

/* ---------- 3D box ---------- */
.stage { position: relative; width: 100%; }
.scene { position: absolute; left: 50%; top: 0; width: 620px; height: 640px; margin-left: -310px; transform-origin: 50% 0;
  perspective: 1500px; perspective-origin: 50% 12%; }
.box3d { position: absolute; left: 50%; top: 66%; transform-style: preserve-3d; transform: rotateX(-17deg) rotateY(-26deg); }
.face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kraft { background-color: var(--kraft); background-image: var(--kraft-tex, none), linear-gradient(180deg, var(--kraft-lite), var(--kraft)); background-blend-mode: multiply, normal; }
.kraft.in { background-color: var(--kraft-inner); background-image: var(--kraft-tex, none), linear-gradient(180deg, var(--kraft-dark), var(--kraft-inner)); }
.kraft.side { background-image: var(--kraft-tex, none), linear-gradient(180deg, var(--kraft), var(--kraft-dark)); }

/* box size: W 290, D 260, H 170 */
.f-front, .f-front-in { width: 290px; height: 170px; left: -145px; top: -85px; }
.f-front { transform: translateZ(130px); }
.f-front-in { transform: translateZ(129px) rotateY(180deg); }
.f-back, .f-back-in { width: 290px; height: 170px; left: -145px; top: -85px; }
.f-back { transform: translateZ(-130px) rotateY(180deg); }
.f-back-in { transform: translateZ(-129px); }
.f-side { width: 260px; height: 170px; left: -130px; top: -85px; }
.f-left { transform: rotateY(-90deg) translateZ(145px); }
.f-left-in { transform: rotateY(90deg) translateZ(-144px); }
.f-right { transform: rotateY(90deg) translateZ(145px); }
.f-right-in { transform: rotateY(-90deg) translateZ(-144px); }
.f-floor { width: 290px; height: 260px; left: -145px; top: -130px; transform: rotateX(90deg) translateZ(-55px); }
.f-shadow { width: 520px; height: 420px; left: -260px; top: -210px; transform: rotateX(90deg) translateZ(-86px);
  background: radial-gradient(closest-side, rgba(20,15,10,.32), rgba(20,15,10,0)); backface-visibility: visible; }
.lid { position: absolute; width: 290px; height: 260px; left: -145px; top: 0; transform-origin: 50% 0;
  transform: translate3d(0, -85px, -130px) rotateX(206deg); transform-style: preserve-3d; }
.lid .face { width: 100%; height: 100%; left: 0; top: 0; }
.lid .lid-in { transform: rotateX(180deg) translateZ(1px); display: grid; place-items: center; text-align: center; color: var(--print); }

/* packaging print */
.print { color: var(--print); }
.f-front { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 12px 14px 10px; overflow: hidden; }
.f-front .head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.f-front .head b { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 12px; letter-spacing: .16em; }
.f-front .stamp { align-self: center; justify-self: center; transform: rotate(-7deg); color: #a32a1f; border: 3px double #a32a1f; border-radius: 4px;
  padding: 4px 10px 3px; text-align: center; mix-blend-mode: multiply; opacity: .82;
  -webkit-mask: var(--kraft-tex, none) center / 140px, linear-gradient(#000 0 0); -webkit-mask-composite: source-in; }
.f-front .stamp b { display: block; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 22px; letter-spacing: .1em; line-height: 1; }
.f-front .stamp small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; margin-top: 3px; }
.f-front .seal { position: absolute; top: -1px; right: 16px; width: 46px; height: 34px; background: #17130e; color: #e9dcc0;
  font-family: var(--mono); font-size: 6px; letter-spacing: .12em; text-align: center; padding-top: 6px; line-height: 1.5;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 86% 100%, 72% 82%, 58% 100%, 44% 84%, 30% 100%, 16% 82%, 0 96%); }
.f-front .foot { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.f-front .foot .count { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 26px; line-height: .8; letter-spacing: -.02em; }
.f-right { padding: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; display: grid; align-content: space-between; }
.f-right table { border-collapse: collapse; width: 100%; }
.f-right td { border-top: 1px solid rgba(42,29,16,.35); padding: 4px 0; }
.f-right td:last-child { text-align: right; }
.barcode { height: 30px; background: repeating-linear-gradient(90deg, var(--print) 0 2px, transparent 2px 3px, var(--print) 3px 4px, transparent 4px 7px, var(--print) 7px 10px, transparent 10px 11px); opacity: .85; }
.lid-in .inside { font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 800; font-size: 19px; line-height: 1.1; text-transform: uppercase; max-width: 200px; }
.lid-in .inside small { display: block; font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .1em; margin-top: 10px; }

/* cards standing in the box */
#slots { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.slot { position: absolute; left: -120px; top: 0; width: 240px; height: 336px; font-size: 16px; cursor: pointer;
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.slot .card { width: 100%; height: 100%; box-shadow: 0 -1px 0 rgba(0,0,0,.08), 0 6px 14px rgba(30,20,10,.18); }
.slot.picked { visibility: hidden; }
.slot:focus-visible { outline: none; }
.slot:focus-visible .card { outline: 3px solid var(--accent); outline-offset: 2px; }

.picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; position: relative; z-index: 2; }
.picker button { border: 1px solid var(--rule); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 11px;
  font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.picker button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.picker button:hover { border-color: var(--ink); }
.stage-hint { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- agent card: premium credential (front + back) ---------- */
/* Jewel-tone stock, champagne foil, a security-print rosette unique to each agent,
   a hologram seal, and a sheen that follows the pointer (--mx / --my / --ang). */
.card { --foil: linear-gradient(105deg, #7b5c27 0%, #d9bb76 18%, #fff0c4 30%, #b88f42 46%, #f3dc9c 64%, #8a6a2f 82%, #e9cf8c 100%);
  position: relative; width: 15em; height: 21em; border-radius: .7em; overflow: hidden; isolation: isolate;
  color: #f1e6cc; font-family: var(--body); line-height: 1.3; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 50% 38%, var(--b1) 0%, var(--b2) 70%), var(--b2);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .14); }
.card .guil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.card .sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 18%), rgba(255, 238, 200, .26), rgba(255, 238, 200, 0) 42%),
    linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.06) 47%, rgba(255,255,255,0) 58%); }
.foil { background: var(--foil); background-size: 220% 100%; background-position: var(--mx, 30%) 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .tab { position: relative; z-index: 2; height: 1.625em; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 .85em; font-family: var(--mono); font-size: .62em; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.08)); border-bottom: 1px solid color-mix(in srgb, var(--c) 70%, transparent); }
.card .tab span:last-child { color: rgba(241, 230, 204, .55); }
.card .frame { position: absolute; inset: 2.05em .55em .55em; border-radius: .4em; z-index: 1; pointer-events: none;
  border: 1px solid transparent; background: var(--foil) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }
.card .inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding: 1.5em 1.15em 1.15em; min-height: 0; }
.card .top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-variation-settings: "wdth" 125;
  font-weight: 700; font-size: .48em; letter-spacing: .3em; text-transform: uppercase; color: rgba(241, 230, 204, .7); }
.card .numeral { font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; font-weight: 800; font-size: 6.1em; line-height: .9;
  letter-spacing: -.03em; text-align: center; margin-top: .14em; font-variant-numeric: lining-nums; filter: drop-shadow(0 .03em .05em rgba(0,0,0,.45)); }
.card .name { font-family: "Bodoni Moda", "Didot", Georgia, serif; font-weight: 600; font-style: italic; font-size: 1.32em; line-height: 1.05; text-align: center; margin-top: .2em; color: #f6ecd4; }
.card .role { font-size: .64em; text-align: center; color: rgba(241, 230, 204, .66); margin: .45em auto 0; max-width: 17em; text-wrap: balance; }
.card .rule { height: 1px; margin: .7em 1.6em 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 80%, #fff 0%), transparent); opacity: .8; }
.card .foot { margin-top: auto; display: flex; align-items: center; gap: .6em; }
.holo { --ang: 0deg; width: 2.9em; height: 2.9em; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(from var(--ang), #f7b6d9, #fde7a6, #b4f3dc, #a9cdfb, #d7b5fa, #f7b6d9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 .6em rgba(255,255,255,.55), 0 0 0 .14em rgba(0,0,0,.25); }
.holo::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.22) 0 .06em, transparent .06em .2em); mix-blend-mode: overlay; }
.holo svg { width: 1.7em; height: 1.7em; color: #1b1712; position: relative; z-index: 1; }
.card .qrwin { width: 3em; height: 3em; flex: none; padding: .18em; border-radius: .25em; background: #f3ead7;
  box-shadow: 0 0 0 1px rgba(233, 207, 140, .7); }
.card .qrwin svg { width: 100%; height: 100%; display: block; }
.card .meta { margin-left: auto; text-align: right; font-family: var(--mono); font-size: .5em; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(241, 230, 204, .6); line-height: 1.7; }
.card .meta b { display: block; font-size: 1.22em; letter-spacing: .1em; font-weight: 600; color: #f1e6cc; }

.card.back .inner { gap: .5em; padding-top: 1.3em; }
.card.back h3 { font-family: "Bodoni Moda", "Didot", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.28em; line-height: 1.05; color: #f6ecd4; }
.card.back .lbl { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 700; font-size: .44em; letter-spacing: .3em; text-transform: uppercase; margin-top: .35em; }
.card.back ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3em; font-size: .66em; color: rgba(241, 230, 204, .88); }
.card.back li { display: flex; gap: .6em; align-items: baseline; }
.card.back li::before { content: ""; width: .42em; height: .42em; transform: rotate(45deg) translateY(-.08em); background: var(--c); flex: none; }
.card.back .say { font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-size: .78em; line-height: 1.3; color: #f6ecd4;
  border-left: 2px solid var(--c); padding: .15em 0 .15em .65em; }
.card.back .saves { display: flex; align-items: center; gap: .55em; font-size: .66em; color: rgba(241, 230, 204, .88); }
.card.back .saves .holo { width: 1.9em; height: 1.9em; } .card.back .saves .holo svg { width: 1.15em; height: 1.15em; }
.card.back .act { margin-top: auto; display: grid; gap: .45em; }
.card.back .act button { border: 0; border-radius: 999px; padding: .7em; background: var(--foil); background-size: 220% 100%; background-position: var(--mx, 30%) 50%;
  color: #20180c; font-weight: 800; font-size: .66em; letter-spacing: .14em; text-transform: uppercase; font-variation-settings: "wdth" 115;
  box-shadow: 0 .2em .6em rgba(0,0,0,.35); }
.card.back .act button[aria-pressed="true"] { background: #f1e6cc; }
.card.back .act small { font-size: .48em; color: rgba(241, 230, 204, .55); text-align: center; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- fly-out overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.overlay .scrim { position: absolute; inset: 0; background: rgba(12, 14, 22, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.overlay.show .scrim { opacity: 1; }
.flyer { --cw: min(360px, 82vw, calc((100vh - 170px) * .714)); position: fixed; left: 50%; top: calc(50% - 30px); width: var(--cw); height: calc(var(--cw) * 1.4);
  margin-left: calc(var(--cw) / -2); margin-top: calc(var(--cw) * -.7); perspective: 1600px; font-size: calc(var(--cw) / 15); }
.tilt { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .25s ease-out; }
.flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.flipper .card { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.flipper .card.back { transform: rotateY(180deg); }
.controls { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease .2s, transform .3s ease .2s; }
.overlay.show .controls { opacity: 1; transform: none; }
.controls button { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.14); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font-variation-settings: "wdth" 108; }
.controls button.primary { background: #fff; color: #11131b; box-shadow: none; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1; font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -.01em; margin-top: 10px; }
.sec-head p { color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } section { padding-block: 52px; } }

.makes { background: var(--bg-2); border-block: 1px solid var(--rule); }
.makes .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.makes span { display: inline-flex; gap: 8px; align-items: center; }
.makes i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.step h3 { font-size: 22px; font-variation-settings: "wdth" 110; font-weight: 800; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.deck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.deck button { border: 0; padding: 0; background: none; text-align: left; display: grid; gap: 12px; color: var(--ink); container-type: inline-size; perspective: 900px; }
.deck .card { width: 100%; height: auto; aspect-ratio: 15 / 21; font-size: calc(100cqw / 15); max-width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .14), 0 2px 4px rgba(0,0,0,.12), 0 16px 34px rgba(20,25,40,.22);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; transform-style: preserve-3d; }
.deck button:hover .card { box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .2), 0 4px 8px rgba(0,0,0,.14), 0 26px 46px rgba(20,25,40,.3); }
.deck button.picked .card { visibility: hidden; }
.deck .cap { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.plan-grid .copy { display: grid; gap: 14px; color: var(--muted); max-width: 32em; }
.plan-grid .copy strong { color: var(--ink); }
.doc { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; box-shadow: 0 14px 40px rgba(20,25,40,.08); min-width: 0; }
.doc .doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.doc .doc-head b { font-family: var(--display); font-variation-settings: "wdth" 112; font-size: 20px; font-weight: 800; }
.doc ol { list-style: none; margin: 0; padding: 0; }
.doc li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
.doc li:last-child { border-bottom: 0; }
.doc li i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); transform: translateY(1px); }
.doc li .v { color: var(--muted); font-size: 13px; }
.doc li .by { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.doc li.todo { color: var(--muted); } .doc li.todo i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .doc li { grid-template-columns: 12px minmax(0, 1fr); } .doc li .by { grid-column: 2; } }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; }
.price-card { border: 1px solid var(--rule); border-radius: 14px; padding: 26px; background: var(--panel); display: grid; gap: 14px; align-content: start; }
.price-card.main { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.price-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-card h3 { font-size: 24px; font-variation-settings: "wdth" 112; font-weight: 800; }
.price-card .amt { font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 900; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card .amt small { font-size: 15px; font-weight: 500; color: var(--muted); font-variation-settings: "wdth" 100; margin-left: 6px; }
.price-card .then { font-size: 14px; color: var(--muted); margin-top: -6px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.price-card li { display: flex; gap: 10px; } .price-card li::before { content: "+"; font-family: var(--mono); color: var(--accent); font-weight: 600; }
.price-card .btn { justify-content: center; margin-top: 6px; }
.notice { font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 1.4em; }
@media (max-width: 700px) { .prices { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; font-variation-settings: "wdth" 106; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 40em; }

footer { border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slot, .deck .card, .btn { transition: none; }
}

/* ---------- app pages (account, activation, chat, plan) ---------- */
.app main { max-width: 760px; margin: 0 auto; padding-block: 28px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.app main.wide { max-width: 1160px; }
.app h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.02; font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.app h1.sm { font-size: 24px; }
.app .muted { color: var(--muted); }
.app p + p { margin-top: 8px; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; margin-top: 16px; }
.panel h1 { margin-bottom: 8px; }
.app label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 6px; font-variation-settings: "wdth" 106; }
.app input[type=email], .app input[type=password], .app input[type=text], .app input:not([type]) {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--input);
  border: 1px solid var(--rule); border-radius: 10px; }
.app input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.app form .btn, .app .panel .btn { margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.bad { color: var(--bad); } .good { color: var(--good); }
.code { font-family: var(--mono); letter-spacing: .06em; }
.flash { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--good) 12%, var(--panel)); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--good) 40%, var(--rule)); }
nav.app-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; color: var(--muted); }
nav.app-nav a { text-decoration: none; } nav.app-nav a:hover, nav.app-nav a[aria-current] { color: var(--ink); }
nav.app-nav form { margin: 0; display: flex; }
nav.app-nav a, nav.app-nav button { white-space: nowrap; }
@media (max-width: 520px) { nav.app-nav { gap: 12px; font-size: 13px; } nav.app-nav .btn { display: none; } }

/* activation card preview */
.act-wrap { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.act-wrap .mini { container-type: inline-size; }
.act-wrap .mini .card { width: 100%; height: auto; aspect-ratio: 15 / 21; font-size: calc(100cqw / 15); box-shadow: 0 18px 40px rgba(20,25,40,.25); }
@media (max-width: 640px) { .act-wrap { grid-template-columns: 1fr; } .act-wrap .mini { max-width: 190px; } }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.deck button.locked .card { filter: saturate(.25) brightness(.62); }
.deck button.locked .cap::before { content: "Locked · "; color: var(--ink); font-weight: 700; }
.deck button.mine .cap::before { content: "Active · "; color: var(--good); font-weight: 700; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1 1 220px; width: auto !important; }
.inline-form .btn { margin-top: 0 !important; }

/* chat */
.chat-head { display: flex; align-items: center; gap: 14px; }
.chat-head .glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 40%, var(--b1), var(--b2)); color: #e9cf8c; box-shadow: inset 0 0 0 1px rgba(233,207,140,.45); }
.chat-head .glyph svg { width: 24px; height: 24px; }
.chat-head h1 { font-size: 24px; }
#log { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 130px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); white-space: pre-wrap; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg.pending:empty { display: none; }
.msg p, .md p { margin: 0 0 8px; } .msg > :last-child, .md > :last-child { margin-bottom: 0; }
.msg h2, .msg h3, .msg h4, .md h2, .md h3, .md h4 { font-size: 16px; margin: 12px 0 4px; font-variation-settings: "wdth" 108; }
.msg ul, .msg ol, .md ul, .md ol { margin: 4px 0 8px; padding-left: 22px; }
.msg pre, .md pre { background: var(--bg-2); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.msg code, .md code { font-family: var(--mono); font-size: .88em; }
.msg a, .note a, .md a { color: var(--accent); }
.status { align-self: flex-start; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.note { align-self: flex-start; font-size: 13px; }
.note.bad { color: var(--bad); } .note.good { color: var(--good); }
#starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#starters button { background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; padding: 10px 15px; }
#starters button:hover { border-color: var(--ink); }
#composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
#composer .row { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
#composer textarea { flex: 1; resize: none; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--input); border: 1px solid var(--rule); border-radius: 14px; max-height: 200px; }
#composer .btn:disabled { opacity: .5; cursor: default; transform: none; }
.limit { max-width: 760px; margin: 6px auto 0; font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* business plan */
.section { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; margin-top: 14px; }
.section h2.title { font-size: 20px; font-variation-settings: "wdth" 110; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.section h2.title i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.section .meta { font-size: 12px; color: var(--muted); margin: 2px 0 12px; font-family: var(--mono); }

/* the box page */
.box-hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; padding-block: 40px 40px; }
.box-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1; font-weight: 850; font-variation-settings: "wdth" 112; }
.box-hero .lede { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 30em; }
.box-hero ol.how { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.box-hero ol.how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; counter-increment: s; }
.box-hero ol.how li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.progress { margin-top: 22px; display: flex; gap: 4px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); }
.progress span.on { background: var(--c); }
.keep { margin-top: 18px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 12px; max-width: 32em; }
@media (max-width: 900px) { .box-hero .wrap { grid-template-columns: 1fr; padding-block: 28px; } }
.card.back .act .act-btn { display: block; text-align: center; text-decoration: none; border-radius: 999px; padding: .7em; background: var(--foil);
  background-size: 220% 100%; background-position: var(--mx, 30%) 50%; color: #20180c; font-weight: 800; font-size: .66em; letter-spacing: .14em;
  text-transform: uppercase; font-variation-settings: "wdth" 115; box-shadow: 0 .2em .6em rgba(0,0,0,.35); }
.card.back .act .act-off { display: block; text-align: center; border-radius: 999px; padding: .7em; font-weight: 800; font-size: .66em; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(241,230,204,.75); box-shadow: inset 0 0 0 1px rgba(241,230,204,.35); }

/* footer and policy pages */
footer.site { border-top: 1px solid var(--rule); margin-top: 24px; }
footer.site .wrap { padding-block: 24px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { text-decoration: none; } footer.site a:hover { color: var(--ink); }
.notice a { color: inherit; }
.legal { max-width: 68ch; }
.legal .lede { font-size: 18px; color: var(--muted); margin-top: 14px; }
.legal h2 { font-size: 20px; font-variation-settings: "wdth" 110; font-weight: 800; margin: 34px 0 10px; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }
