/* =========================================================================
   d15play — marketing + docs design system
   Palette: warm-white canvas, coral (adverts) × electric-blue (digital) duotone,
   deep-navy "screen". Type: Bricolage Grotesque display / Inter body / Space Mono code.
   ========================================================================= */

:root {
  --canvas: #FBFAF6;
  --panel: #FFFFFF;
  --ink: #14161B;
  --haze: #5B6070;
  --line: #ECE6DA;
  --line-strong: #DED7C7;

  --signal: #FF5A3C;   /* coral — adverts / attention */
  --signal-ink: #C7341C;
  --beam: #2B4CF0;     /* electric blue — digital screens */
  --beam-ink: #1B36BE;

  --screen: #0A0E1A;   /* device body */
  --screen-2: #131A30;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10,14,26,.06), 0 2px 6px rgba(10,14,26,.05);
  --shadow-md: 0 10px 30px rgba(10,14,26,.10);
  --shadow-lg: 0 30px 70px rgba(10,14,26,.18);
  --ease: cubic-bezier(.2,.7,.2,1);

  --wrap: 1140px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  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%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--signal-ink);
  margin: 0 0 14px;
}
.eyebrow.beam { color: var(--beam-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.03; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--haze); line-height: 1.5; max-width: 44ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,90,60,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- code chip (the signature motif) ---- */
.code-chip {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-sm);
}
.code-chip .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--haze); }
.code-chip .digits { display: inline-flex; gap: 5px; }
.code-chip .digits span {
  width: 30px; height: 38px; display: grid; place-items: center;
  background: var(--screen); color: #fff; border-radius: 8px;
  font-size: 19px; font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.06);
}
.code-chip .digits span.lit { background: linear-gradient(160deg, var(--signal), var(--beam)); }

/* =====================  HEADER  ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(160deg, var(--signal), var(--beam)); box-shadow: 0 0 0 4px rgba(43,76,240,.10); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--haze); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* =====================  HERO  ===================== */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); }
.hero h1 .mark {
  white-space: nowrap;
  background-image: linear-gradient(90deg, rgba(255,90,60,.32), rgba(43,76,240,.32));
  background-repeat: no-repeat;
  background-size: 100% .24em;
  background-position: 0 92%;
  padding: 0 .04em;
}
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero-note { margin-top: 22px; color: var(--haze); font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.hero-note b { color: var(--ink); font-weight: 600; }

/* the device / screen */
.stage { position: relative; }
.device {
  position: relative; border-radius: 20px; padding: 14px;
  background: linear-gradient(180deg, #1a2240, var(--screen));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.device::after { /* stand */
  content: ""; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  width: 120px; height: 18px; border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #1a2240, #0a0e1a);
}
.viewport {
  position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background: #000; isolation: isolate;
}
.viewport .glow { position: absolute; inset: -30% -20% auto -20%; height: 70%; filter: blur(40px); opacity: .34;
  background: radial-gradient(60% 100% at 30% 0%, rgba(255,90,60,.6), transparent), radial-gradient(60% 100% at 80% 20%, rgba(43,76,240,.6), transparent); z-index: 3; pointer-events: none; }
.viewport .scan { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.slide-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); display: grid; }
.slide-frame.on { opacity: 1; }

.sf-advert { place-items: center; text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 20% 0%, #ff7a52, #e23c1f 60%, #b52a12); }
.sf-advert .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; opacity: .85; }
.sf-advert .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 46px); line-height: .98; margin: 8px 0; }
.sf-advert .sub { font-size: 14px; opacity: .9; }

.sf-news { color: #fff; background: linear-gradient(160deg, #16204a, #0a0e1a); grid-template-rows: 1fr auto; }
.sf-news .headline { align-self: center; padding: 26px; }
.sf-news .headline .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: #7fa0ff; }
.sf-news .headline .h { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3.4vw, 30px); line-height: 1.05; margin-top: 8px; }
.sf-news .ticker { background: #000; overflow: hidden; white-space: nowrap; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sf-news .ticker span { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: #ffd08a; animation: ticker 14s linear infinite; }
@keyframes ticker { from { transform: translateX(30%); } to { transform: translateX(-100%); } }

.sf-menu { color: #14161B; background: #F6F1E7; place-items: stretch; grid-template-columns: 1.1fr 1fr; }
.sf-menu .left { padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.sf-menu .left .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .28em; color: var(--signal-ink); }
.sf-menu .left h4 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px,3.2vw,30px); margin: 6px 0 12px; letter-spacing: -.02em; }
.sf-menu .left .row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #d8cfbc; }
.sf-menu .left .row b { font-variant-numeric: tabular-nums; }
.sf-menu .right { background: linear-gradient(160deg, #2B4CF0, #16204a); }

/* activation moment under the device */
.activate {
  margin-top: 34px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.activate .step-n { font-family: var(--font-mono); color: var(--haze); font-size: 12px; letter-spacing: .1em; }
.activate .txt { font-size: 14.5px; color: var(--haze); }
.activate .txt b { color: var(--ink); font-weight: 600; }

/* =====================  MARQUEE (use cases)  ===================== */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.marquee { display: flex; gap: 44px; overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 44px; margin: 0; padding: 0; list-style: none; flex: 0 0 auto; animation: slide 26s linear infinite; }
.marquee li { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #B8B2A6; }
.marquee li .d { width: 8px; height: 8px; border-radius: 999px; background: var(--signal); opacity: .5; }
@keyframes slide { to { transform: translateX(calc(-100% - 44px)); } }

/* =====================  SECTIONS  ===================== */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--haze); font-size: 18px; }

/* how it works — a genuine 3-step sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-mono); font-size: 13px; color: #fff; background: var(--ink); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.step:nth-child(3) .n { background: linear-gradient(160deg, var(--signal), var(--beam)); }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--haze); font-size: 15.5px; margin: 0; }
.step .rail { position: absolute; top: 43px; right: -22px; width: 22px; height: 2px; background: var(--line-strong); }
.step:last-child .rail { display: none; }

/* bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: #FBF4EE; color: var(--signal-ink); margin-bottom: 16px; }
.card.beam .ic { background: #EEF1FE; color: var(--beam-ink); }
.card h3 { margin-bottom: 7px; }
.card p { color: var(--haze); font-size: 15px; margin: 0; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-6 { grid-column: span 6; }
.card.wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-family: var(--font-mono); padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--haze); }
.chips span:hover { border-color: var(--signal); color: var(--signal-ink); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.02em; background: linear-gradient(160deg, var(--signal), var(--beam)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lab { color: var(--haze); font-size: 15px; margin-top: 4px; }

/* CTA band */
.cta-band { background: var(--screen); color: #fff; border-radius: 26px; padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40% 40% auto -10%; height: 80%; filter: blur(70px); opacity: .5; background: radial-gradient(circle, rgba(255,90,60,.7), transparent 60%); }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -50% 40%; height: 90%; filter: blur(70px); opacity: .45; background: radial-gradient(circle, rgba(43,76,240,.8), transparent 60%); }
.cta-band .inner { position: relative; z-index: 1; max-width: 620px; }
.cta-band h2 { font-size: clamp(32px, 5vw, 54px); }
.cta-band p { color: rgba(255,255,255,.7); font-size: 18px; margin: 16px 0 28px; }

/* =====================  FOOTER  ===================== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--haze); margin: 0 0 14px; }
.foot-grid a { display: block; color: var(--haze); font-size: 15px; padding: 5px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--haze); font-size: 14px; flex-wrap: wrap; gap: 12px; }

/* reveal on scroll — only hidden when JS is present, so no-JS still shows content */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee ul, .sf-news .ticker span, .slide-frame { animation: none !important; }
}

/* =====================  SIGNUP  ===================== */
.signup { padding: clamp(40px, 7vw, 84px) 0; }
.signup-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 52px; align-items: start; }
.signup-copy h1 { font-size: clamp(34px, 5vw, 52px); }
.signup-copy .lede { margin-top: 18px; }
.signup-points { list-style: none; padding: 0; margin: 26px 0 24px; }
.signup-points li { display: flex; gap: 12px; align-items: flex-start; margin: 13px 0; color: var(--haze); font-size: 15.5px; }
.signup-points li .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(160deg, var(--signal), var(--beam)); margin-top: 1px; }
.signup-points li b { color: var(--ink); font-weight: 600; }
.form-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-md); min-height: 520px;
}
@media (max-width: 960px) {
  .signup-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* =====================  PRICING  ===================== */
.pricing { padding: clamp(48px, 8vw, 92px) 0; }
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pricing-head p { color: var(--haze); font-size: 18px; margin-top: 14px; }

.calc { max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); }
.calc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.calc-top .q { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.calc-count { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; }
.calc-count small { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--haze); margin-left: 6px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: #EDE7DB; outline: none; margin: 6px 0 8px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 10px rgba(10,14,26,.25), inset 0 0 0 7px var(--signal); cursor: pointer; }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 10px rgba(10,14,26,.25), inset 0 0 0 7px var(--signal); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--haze); }

.bill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.bill { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.bill.best { border-color: transparent; box-shadow: 0 0 0 2px var(--signal), var(--shadow-md); }
.bill .cycle { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--haze); }
.bill.best .cycle { color: var(--signal-ink); }
.bill .amt { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 46px); letter-spacing: -.02em; line-height: 1; margin: 10px 0 2px; }
.bill .amt span { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--haze); letter-spacing: 0; }
.bill .sub { color: var(--haze); font-size: 14.5px; margin: 4px 0 0; }
.save-badge { position: absolute; top: -12px; right: 16px; background: linear-gradient(160deg, var(--signal), var(--beam)); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }

.calc-cta { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.calc-cta .note { color: var(--haze); font-size: 14px; }

.includes { max-width: 760px; margin: 40px auto 0; }
.includes h3 { text-align: center; margin-bottom: 20px; }
.includes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.includes-grid li { list-style: none; display: flex; gap: 10px; align-items: flex-start; color: var(--haze); font-size: 15px; padding: 6px 0; }
.includes-grid li .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(160deg, var(--signal), var(--beam)); }
.includes-grid { padding: 0; }

@media (max-width: 620px) {
  .bill-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
}

/* =====================  TEMPLATES GALLERY  ===================== */
.tpl-wrap { padding: clamp(40px, 7vw, 80px) 0; }
.tpl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.tpl-filter button { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--haze); cursor: pointer; transition: .15s var(--ease); }
.tpl-filter button:hover { border-color: var(--ink); color: var(--ink); }
.tpl-filter button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.tpl-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tpl-preview { position: relative; aspect-ratio: 16/9; background: #000; border-bottom: 1px solid var(--line); }
.tpl-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tpl-preview .cat { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--ink); padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.tpl-meta { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tpl-meta h3 { font-size: 18px; }
.tpl-meta .sub { color: var(--haze); font-size: 13.5px; margin-top: 2px; }
.btn-copy { font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; transition: .15s var(--ease); white-space: nowrap; }
.btn-copy:hover { border-color: var(--ink); }
.btn-copy.done { background: var(--signal); color: #fff; border-color: var(--signal); }
.tpl-how { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 34px; display: flex; gap: 16px; align-items: flex-start; }
.tpl-how .n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--signal), var(--beam)); font-family: var(--font-mono); font-size: 15px; }
.tpl-how p { margin: 0; color: var(--haze); font-size: 15px; }
.tpl-how b { color: var(--ink); }
@media (max-width: 760px) { .tpl-grid { grid-template-columns: 1fr; } }

/* =====================  DOCS  ===================== */
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding: 40px 0 96px; }
.docs-nav { position: sticky; top: 92px; border-right: 1px solid var(--line); padding-right: 20px; }
.docs-nav .grp { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--haze); margin: 22px 0 8px; }
.docs-nav a { display: block; color: var(--haze); font-size: 14.5px; padding: 6px 10px; border-radius: 8px; }
.docs-nav a:hover { background: #fff; color: var(--ink); }
.docs-nav a.active { background: #fff; color: var(--ink); box-shadow: inset 3px 0 0 var(--signal); }
.docs-body { max-width: 760px; }
.docs-body h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 10px; }
.docs-body h2 { font-size: 27px; margin: 52px 0 12px; padding-top: 12px; scroll-margin-top: 92px; }
.docs-body h3 { margin: 28px 0 8px; }
.docs-body p, .docs-body li { color: #2c3038; }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body li { margin: 6px 0; }
.docs-body code { font-family: var(--font-mono); font-size: .88em; background: #F3EEE4; padding: 2px 6px; border-radius: 6px; }
.docs-body .callout { background: #FFF7F4; border: 1px solid #FBD9CE; border-left: 3px solid var(--signal); border-radius: 12px; padding: 16px 18px; margin: 20px 0; font-size: 15.5px; }
.docs-body .callout.beam { background: #F4F6FF; border-color: #D6DEFF; border-left-color: var(--beam); }
.docs-body .callout b { color: var(--ink); }
.docs-lede { font-size: 20px; color: var(--haze); margin-bottom: 26px; }
.doc-steps { counter-reset: s; list-style: none; padding: 0; }
.doc-steps li { position: relative; padding: 4px 0 4px 40px; margin: 12px 0; }
.doc-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 13px; display: grid; place-items: center; }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step .rail { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-2, .col-6 { grid-column: span 2; }
  .card.wide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 10px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento, .stats, .foot-grid { grid-template-columns: 1fr; }
  .col-3, .col-2, .col-6 { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
