/* SVY Studio — warm editorial / printed-document system
   Palette locked: paper, ink, vermilion accent, one warm grey family.
   One mono used for figures and clause marks. */

:root {
  color-scheme: light;
  --paper: #faf7f1;
  --surface: #ffffff;
  --tint: #f2eee4;
  --ink: #1a1b1d;
  --ink-2: #4b4c47;
  --muted: #6b6c62;
  --line: #e2ddd0;
  --line-2: #cdc6b5;
  --accent: #bf4318;
  --accent-hover: #9f3511;
  --accent-ink: #ffffff;
  --accent-soft: #f8e9e0;
  --ok: #1f5c4a;
  --ok-soft: #e3efe9;
  --r-sm: 4px;
  --r-ctl: 8px;
  --r-card: 14px;
  --r-panel: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15140f;
  --surface: #1c1b15;
  --tint: #24231b;
  --ink: #f3efe3;
  --ink-2: #cdc8b8;
  --muted: #a5a08f;
  --line: #343229;
  --line-2: #4a463a;
  --accent: #ea7546;
  --accent-hover: #f28b60;
  --accent-ink: #1c0d05;
  --accent-soft: #2d1c12;
  --ok: #7fc3a6;
  --ok-soft: #1c2a24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; }
button, select, summary, input:not([type="checkbox"]):not([type="radio"]), textarea { min-height: 44px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; scroll-margin-top: 88px; }
.sec-tight { padding-top: 0; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h2.display { font-size: clamp(29px, 3.6vw, 42px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.lede { color: var(--ink-2); font-size: 18px; max-width: 62ch; }
.small { font-size: 14px; color: var(--muted); font-weight: 500; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }

/* Clause mark — the studio's signature: every section numbered like a contract */
.clause {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 16px;
}
.clause::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.clause b { color: var(--accent); font-weight: 500; }

.sec-head { max-width: 780px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-radius: var(--r-ctl);
  padding: 12px 24px;
  min-height: 46px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav.hairline { border-bottom-color: var(--line-2); }
.nav-inner { display: flex; align-items: center; gap: 8px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-main { display: flex; align-items: baseline; gap: 8px; }
.brand .mark { font-family: var(--display); font-weight: 600; font-size: 29px; letter-spacing: -0.03em; line-height: 1; }
.brand .mark em { font-style: normal; color: var(--accent); }
.brand .studio-word { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-2); padding-left: 8px; border-left: 1px solid var(--line-2); }
.brand-tagline { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand-tagline b { color: var(--accent); font-weight: 500; }

.nav-links { display: flex; gap: 0; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.nav-links a:hover { color: var(--accent); background: var(--tint); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: var(--r-ctl);
  padding: 8px 12px;
  min-height: 42px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  transition: border-color 140ms var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.tt-track { width: 30px; height: 16px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line-2); position: relative; display: block; flex: none; }
.tt-knob { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: left 160ms var(--ease); }
:root[data-theme="dark"] .tt-knob { left: 16px; }
.tt-label-dark { display: none; }
:root[data-theme="dark"] .tt-label-light { display: none; }
:root[data-theme="dark"] .tt-label-dark { display: inline; }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ink);
}
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 1000px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .theme-toggle { padding: 8px 8px; }
}
@media (max-width: 430px) {
  .brand .mark { font-size: 25px; }
  .brand .studio-word { display: none; }
  .brand-tagline { font-size: 8.5px; }
}

/* ---------- Hero ---------- */
.hero { padding: 68px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(40px, 5.3vw, 62px); margin-bottom: 24px; }
.hero .lede { margin-bottom: 16px; }
.hero-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; margin-bottom: 24px; }
.hero-mail:hover { border-bottom-color: var(--accent); color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 52ch; }
.hero-note b { color: var(--ink); font-weight: 600; }
.hero-note a { font-weight: 500; }

.svy-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.svy-strip div { padding: 16px 16px 0 0; }
.svy-strip div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.svy-strip b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 2px; }
.svy-strip span { font-size: 13px; color: var(--muted); }

/* The quote sheet — moment one */
.sheet {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: 0 1px 0 var(--line), 0 16px 40px -28px rgba(26, 27, 29, 0.45);
  overflow: hidden;
  position: relative;
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.sheet-head .sheet-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); display: block; margin-bottom: 4px; }
.sheet-head b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sheet-ref { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.7; }
.sheet-body { padding: 8px 24px 0; }
.sheet-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sheet-row:last-child { border-bottom: none; }
.sheet-row .item { font-size: 14.5px; font-weight: 500; }
.sheet-row .item small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.sheet-row s { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.sheet-row .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; min-width: 56px; text-align: right; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 24px; background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet-total span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.sheet-total b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.sheet-foot { padding: 16px 24px 16px; display: grid; gap: 8px; }
.sheet-foot p { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; }
.sheet-foot p b { color: var(--ink); font-weight: 600; }
.sheet-stamp {
  position: absolute;
  top: 84px;
  right: 18px;
  transform: rotate(-4deg);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

/* ---------- Capability line (replaces marquee) ---------- */
.cap-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; background: var(--tint); }
.cap-line ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; }
.cap-line li { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding: 16px 16px; border-left: 1px solid var(--line); }
.cap-line li:first-child { border-left: none; padding-left: 0; }

/* ---------- Facts ---------- */
.facts { padding: 24px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.facts span { font-size: 13px; color: var(--muted); }

/* ---------- Logo / 3D moment ---------- */
.logo-sec { padding: 76px 0; border-bottom: 1px solid var(--line); }
.logo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.logo-copy h2 { margin-bottom: 16px; }
.logo-copy p { color: var(--ink-2); margin-bottom: 16px; max-width: 48ch; }
.logo-copy ul { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.logo-copy li { font-size: 15px; color: var(--ink-2); padding-left: 24px; position: relative; }
.logo-copy li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 1px; background: var(--accent); }
.logo-stage {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-panel);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 900px;
}
.logo-stage .stage-label { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.logo-stage .stage-hint { position: absolute; bottom: 14px; left: 16px; right: 16px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.logo-tilt { transform-style: preserve-3d; transition: transform 180ms ease-out; }
.logo-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(80px, 11vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--paper);
  user-select: none;
  text-shadow: 2px 2px 0 #7e2c10, 4px 4px 0 #5f210c, 6px 8px 18px rgba(0, 0, 0, 0.45);
}
.logo-word em { font-style: normal; color: var(--accent); text-shadow: 2px 2px 0 #0d3a30, 4px 4px 0 #092a23, 6px 8px 16px rgba(0, 0, 0, 0.4); }
.logo-sub { text-align: center; margin-top: 16px; transform: translateZ(30px); }
.logo-sub b { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.28em; font-weight: 500; color: var(--paper); }
.logo-sub span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: color-mix(in srgb, var(--paper) 60%, transparent); margin-top: 8px; }

/* ---------- Services: spec sheet rows ---------- */
.svc-list { border-top: 1px solid var(--line-2); }
.svc-row { display: grid; grid-template-columns: 64px 1.05fr 1.3fr 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-row .idx { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.svc-row h3 { font-size: 20px; margin-bottom: 8px; }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-row .tags span { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 8px; }
.svc-row p { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.svc-row ul { list-style: none; display: grid; gap: 4px; }
.svc-row li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; }
.svc-row li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 1px; }
@media (max-width: 940px) {
  .svc-row { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .svc-row .svc-desc { grid-column: 2; }
  .svc-row .svc-points { grid-column: 2; }
}

/* ---------- Demos ---------- */
.demos { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.demo figure { position: relative; border-bottom: 1px solid var(--line); }
.demo figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.demo-badge { position: absolute; top: 10px; left: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 4px 8px; border-radius: var(--r-sm); }
.demo-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo-body .niche { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.03em; }
.demo-body h3 { font-size: 20px; }
.demo-body p { color: var(--ink-2); font-size: 14.5px; }
.demo-body ul { list-style: none; display: grid; gap: 4px; margin-top: 2px; }
.demo-body li { font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.demo-body li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.step { padding: 24px 20px 24px; border-left: 1px solid var(--line); }
.step:first-child { border-left: none; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 32px; }
.step.pay .n { color: var(--accent); }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.step.pay { background: var(--accent-soft); }
.step.pay .n::after { content: " · payment"; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .step .n { margin-bottom: 12px; }
}

/* ---------- Templates ---------- */
.templates { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.tpl-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.tpl-preview img { width: 100%; height: 100%; object-fit: cover; }
.tpl-type { position: absolute; top: 10px; left: 10px; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; padding: 4px 8px; border-radius: var(--r-sm); z-index: 2; }
.tpl-off { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 10.5px; padding: 4px 8px; border-radius: var(--r-sm); z-index: 2; }
.tpl-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-body h3 { font-size: 19px; }
.tpl-body > p { color: var(--ink-2); font-size: 14px; }
.tpl-body ul { list-style: none; display: grid; gap: 4px; }
.tpl-body li { font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.tpl-body li::before { content: "–"; position: absolute; left: 0; color: var(--ink-2); }
.tpl-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tpl-price s { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; }
.tpl-price strong { font-family: var(--mono); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; display: block; font-variant-numeric: tabular-nums; }
.tpl-price small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tpl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 940px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tpl-grid { grid-template-columns: 1fr; } }

/* CSS-only preview mock for templates without photography */
.tpl-mock { position: absolute; inset: 18px 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px 10px 0 0; overflow: hidden; }
.tpl-mock-bar { height: 22px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.tpl-mock-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); display: block; }
.tpl-mock-body { padding: 12px 16px; }
.tpl-mock-body b { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.tpl-mock-body span { display: block; height: 5px; border-radius: 2px; background: var(--tint); margin-bottom: 8px; }
.tpl-mock-body span.short { width: 58%; }
.tpl-mock-body .tpl-mock-btn { display: inline-block; margin-top: 4px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 9.5px; padding: 4px 8px; border-radius: var(--r-sm); height: auto; }
.tpl-note { margin-top: 24px; font-size: 13.5px; color: var(--muted); max-width: 92ch; }

/* ---------- Hero templates ---------- */
.hero-tpl { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line); }
.hero-tpl .clause { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.hero-tpl .clause::after { background: color-mix(in srgb, var(--paper) 18%, transparent); }
.hero-tpl .sec-head h2 { color: var(--paper); }
.hero-tpl .sec-head p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.hero-tpl .sec-head a { color: var(--paper); }
.ht-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ht-filter { background: transparent; color: var(--paper); border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent); font-family: var(--mono); font-size: 12px; padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer; min-height: 40px; transition: background-color 140ms var(--ease), border-color 140ms var(--ease); }
.ht-filter:hover { border-color: var(--paper); }
.ht-filter.active { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.ht-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ht-card { border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.ht-card.ht-hidden { display: none; }
.ht-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); background: var(--ht-bg, #1a1b1d); }
.ht-scene { position: absolute; inset: 0; }
.ht-scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--paper) 25%, transparent); }
.ht-scene::after { content: ""; position: absolute; top: 0; bottom: 0; left: 34%; width: 1px; background: color-mix(in srgb, var(--paper) 16%, transparent); }
.ht-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 16px; }
.ht-overlay b { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.08; letter-spacing: -0.02em; color: var(--ht-fg, #fff); max-width: 15ch; }
.ht-overlay span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--ht-accent, #ff8a5c); margin-top: 8px; }
.ht-cat, .ht-play { position: absolute; top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; padding: 4px 8px; border-radius: var(--r-sm); color: var(--ht-fg, #fff); border: 1px solid color-mix(in srgb, var(--ht-fg, #fff) 30%, transparent); z-index: 2; }
.ht-cat { left: 10px; }
.ht-play { right: 10px; }
.ht-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ht-body h3 { font-size: 18px; color: var(--paper); }
.ht-body > p { font-size: 13.5px; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.ht-body ul { list-style: none; display: grid; gap: 4px; }
.ht-body li { font-size: 13px; color: color-mix(in srgb, var(--paper) 82%, transparent); padding-left: 16px; position: relative; }
.ht-body li::before { content: "–"; position: absolute; left: 0; }
.ht-formats { display: flex; gap: 4px; flex-wrap: wrap; }
.ht-formats span { font-family: var(--mono); font-size: 10px; border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); border-radius: var(--r-sm); padding: 4px 8px; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.ht-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ht-price s { font-family: var(--mono); font-size: 11.5px; color: color-mix(in srgb, var(--paper) 55%, transparent); display: block; }
.ht-price strong { font-family: var(--mono); font-weight: 500; font-size: 22px; line-height: 1.1; color: var(--paper); display: block; font-variant-numeric: tabular-nums; }
.ht-price small { display: block; font-size: 11px; color: color-mix(in srgb, var(--paper) 58%, transparent); margin-top: 2px; }
.hero-tpl .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.hero-tpl .btn-ghost:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); border-color: var(--paper); }
.hero-tpl .btn-primary { background: var(--accent); color: var(--accent-ink); }
.ht-note { margin-top: 24px; font-size: 13px; color: color-mix(in srgb, var(--paper) 62%, transparent); max-width: 96ch; }
@media (max-width: 940px) { .ht-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ht-grid { grid-template-columns: 1fr; } }

/* Hero style scenes — flat colour fields, no gradients */
.ht-scene--pay { --ht-bg: #16302a; --ht-accent: #e8c48a; }
.ht-scene--pay::after { left: 68%; }
.ht-scene--ai { --ht-bg: #241a14; --ht-accent: #ec8a63; }
.ht-scene--ai::after { left: 22%; }
.ht-scene--midnight { --ht-bg: #0d0e10; --ht-accent: #7fc3a6; }
.ht-scene--midnight::after { left: 50%; }
.ht-scene--summit { --ht-bg: #23392c; --ht-accent: #efe0b8; }
.ht-scene--summit::after { left: 78%; }
.ht-scene--verdant { --ht-bg: #e8f0e6; --ht-fg: #1d3325; --ht-accent: #2e7d4f; }
.ht-scene--verdant::before { background: rgba(29, 51, 37, 0.2); }
.ht-scene--verdant::after { background: rgba(29, 51, 37, 0.14); left: 30%; }
.ht-scene--atelier { --ht-bg: #2a1c11; --ht-accent: #ff9a63; }
.ht-scene--atelier::after { left: 40%; }

/* ---------- Template sample viewer ---------- */
.tpl-viewer { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--paper); }
.tpl-viewer[hidden] { display: none; }
.tv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tv-title { margin-right: auto; min-width: 200px; }
.tv-title b { font-family: var(--display); font-weight: 600; font-size: 18px; display: block; line-height: 1.2; }
.tv-title span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tv-devices { display: inline-flex; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 2px; gap: 2px; }
.tv-devices button { font-family: var(--mono); font-size: 12px; border: none; background: transparent; color: var(--muted); border-radius: 6px; padding: 8px 12px; cursor: pointer; min-height: 34px; }
.tv-devices button.active { background: var(--surface); color: var(--ink); }
.tv-close { width: 42px; height: 42px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tv-close:hover { border-color: var(--ink); }
.tv-note { padding: 8px 20px; font-size: 12.5px; color: var(--ink-2); background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.tv-note b { color: var(--accent); font-weight: 600; }
.tv-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--tint); padding: 24px 16px 48px; }
.tv-frame { margin: 0 auto; max-width: 1080px; background: #fff; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; transition: max-width 240ms var(--ease); }
.tv-frame.mobile { max-width: 400px; border-radius: 22px; }
.tv-frame.mobile .mobile-state { display: none; }
html.tv-lock { overflow: hidden; }
@media (max-width: 700px) { .tv-title { min-width: 0; } .tv-devices { order: 3; } .tv-scroll { padding: 12px 8px 32px; } }

/* ---------- Pricing ---------- */
.offer { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: 16px 20px; margin-bottom: 24px; }
.offer b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.offer p { font-size: 13.5px; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.offer .offer-pill { font-family: var(--mono); font-size: 11.5px; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); color: var(--paper); padding: 4px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.price.featured { border-color: var(--line-2); box-shadow: inset 0 3px 0 var(--accent); }
.price .kind { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.price.featured .kind { color: var(--accent); }
.price h3 { font-size: 22px; }
.was { display: flex; align-items: center; gap: 8px; }
.was s { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.save-badge { font-family: var(--mono); font-size: 10.5px; background: var(--accent-soft); color: var(--accent); padding: 4px 8px; border-radius: var(--r-sm); }
.price-amount { display: flex; align-items: baseline; gap: 4px; }
.price-amount .cur { font-family: var(--mono); font-size: 20px; color: var(--accent); }
.price-amount .amt { font-family: var(--mono); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-amount .per { color: var(--muted); font-size: 13px; }
.price .bdt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.price > p { color: var(--ink-2); font-size: 14px; }
.price ul { list-style: none; display: grid; gap: 4px; margin: 2px 0 8px; }
.price li { font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.price li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.price .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.price .meta-row span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: var(--r-sm); }
.price .btn { margin-top: auto; width: 100%; }
.price-note { margin-top: 24px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); padding: 20px 24px; display: flex; gap: 24px; align-items: flex-start; background: var(--surface); }
.price-note b { font-family: var(--display); font-size: 17px; font-weight: 600; white-space: nowrap; }
.price-note p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } .price-note { flex-direction: column; gap: 8px; } }

/* ---------- Payments (one dark printed panel) ---------- */
.payments { background: var(--ink); color: var(--paper); }
.payments .clause { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.payments .clause::after { background: color-mix(in srgb, var(--paper) 16%, transparent); }
.payments .sec-head h2 { color: var(--paper); }
.payments .sec-head p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pay-card { border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: var(--r-card); padding: 24px; }
.pay-card .tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: color-mix(in srgb, var(--paper) 62%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); padding: 4px 8px; border-radius: var(--r-sm); margin-bottom: 12px; }
.pay-card h3 { font-size: 19px; color: var(--paper); margin-bottom: 8px; }
.pay-card p { color: color-mix(in srgb, var(--paper) 74%, transparent); font-size: 14px; }
.pay-card p b { color: var(--paper); }
.pay-card ul { list-style: none; display: grid; gap: 4px; margin-top: 12px; }
.pay-card li { font-size: 13px; color: color-mix(in srgb, var(--paper) 78%, transparent); padding-left: 16px; position: relative; }
.pay-card li::before { content: "–"; position: absolute; left: 0; }
.pay-card a { color: var(--paper); font-weight: 600; }
.bd-strip { margin-top: 16px; background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 24px; }
.bd-strip h3 { font-size: 20px; margin-bottom: 8px; }
.bd-strip > p { color: var(--ink-2); font-size: 14px; max-width: 78ch; }
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.bd-card { border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 16px; }
.bd-card .bd-brand { font-family: var(--display); font-weight: 600; font-size: 21px; }
.bd-card.bkash .bd-brand { color: #b31b4c; }
.bd-card.nagad .bd-brand { color: #b83a1c; }
:root[data-theme="dark"] .bd-card.bkash .bd-brand { color: #f06a9a; }
:root[data-theme="dark"] .bd-card.nagad .bd-brand { color: #f2866a; }
.bd-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.bd-card ol { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.bd-note { margin-top: 16px; background: var(--tint); border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; color: var(--ink-2); }
.pay-flow { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); }
.pay-flow div { padding: 16px 16px 0 0; }
.pay-flow b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--paper); margin-bottom: 4px; }
.pay-flow span { font-size: 13px; color: color-mix(in srgb, var(--paper) 66%, transparent); }
.pay-note { margin-top: 24px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); padding-top: 16px; font-size: 13px; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.pay-note a { color: var(--paper); }
@media (max-width: 960px) { .pay-grid { grid-template-columns: 1fr 1fr; } .pay-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pay-grid { grid-template-columns: 1fr; } .bd-grid { grid-template-columns: 1fr; } .pay-flow { grid-template-columns: 1fr; } }

/* ---------- Instagram ---------- */
.insta { background: var(--surface); border-bottom: 1px solid var(--line); }
.insta-grid { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.insta-card-profile { border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; }
.insta-top { padding: 16px; border-bottom: 1px solid var(--line); }
.insta-user { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.insta-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 18px; flex: none; }
.insta-stats { display: flex; gap: 16px; flex: 1; justify-content: space-between; }
.insta-stats b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.insta-stats span { font-size: 12px; color: var(--ink); }
.insta-bio { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.insta-bio b { display: block; font-size: 14.5px; color: var(--ink); }
.insta-bio a { font-weight: 600; }
.insta-actions { display: flex; gap: 8px; padding: 12px 16px; }
.insta-actions a { flex: 1; text-align: center; text-decoration: none; font-weight: 600; font-size: 13.5px; padding: 8px 8px; border-radius: var(--r-ctl); }
.insta-actions .follow { background: var(--accent); color: var(--accent-ink); }
.insta-actions .msg { background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
.insta-highlights { display: flex; gap: 8px; padding: 4px 16px 16px; flex-wrap: wrap; }
.hl-item { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 8px; }
.insta-posts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.insta-posts div { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10.5px; color: var(--muted); border-left: 1px solid var(--line); text-align: center; padding: 8px; }
.insta-posts div:first-child { border-left: none; }
.insta-posts div:nth-child(1) { background: var(--accent-soft); color: var(--accent); }
.insta-posts div:nth-child(2) { background: var(--ok-soft); color: var(--ok); }
.insta-posts div:nth-child(3) { background: var(--tint); }
.insta-note { padding: 12px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.insta-plan { display: grid; gap: 16px; }
.insta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insta-item { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 16px; }
.insta-item h3 { font-size: 16px; margin-bottom: 8px; }
.insta-item p, .insta-item li { font-size: 13.5px; color: var(--ink-2); }
.insta-item ul { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.dm-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.dm-flow div { padding: 12px 16px 0 0; }
.dm-flow b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.dm-flow span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; display: block; }
.insta-cta { border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.insta-cta h3 { font-size: 17px; margin-bottom: 4px; }
.insta-cta p { font-size: 13.5px; color: var(--ink-2); max-width: 62ch; }
.insta-safety { font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) { .insta-grid { grid-template-columns: 1fr; } .insta-card-profile { max-width: 400px; } .insta-cards { grid-template-columns: 1fr; } .dm-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dm-flow { grid-template-columns: 1fr; } }

/* ---------- Stack ---------- */
.stack { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.stack-group { padding: 20px 24px 24px 0; border-bottom: 1px solid var(--line); }
.stack-group + .stack-group { padding-left: 24px; border-left: 1px solid var(--line); }
.stack-group h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.stack-group .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-group .tags span { font-size: 13px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 4px 8px; }
@media (max-width: 860px) { .stack-groups { grid-template-columns: 1fr 1fr; } .stack-group:nth-child(odd) { padding-left: 0; border-left: none; } }
@media (max-width: 520px) { .stack-groups { grid-template-columns: 1fr; } .stack-group { padding-left: 0 !important; border-left: none !important; } }

/* ---------- Method ---------- */
.method { background: var(--surface); border-bottom: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); margin-bottom: 24px; }
.method-card { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.method-card + .method-card { padding-left: 24px; border-left: 1px solid var(--line); }
.method-card .src { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.03em; }
.method-card h3 { font-size: 19px; }
.method-card p { color: var(--ink-2); font-size: 14px; }
.method-card ul { list-style: none; display: grid; gap: 4px; }
.method-card li { font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.method-card li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.method-card a { font-size: 13px; font-weight: 500; margin-top: auto; padding-top: 8px; }
.ds-spec { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.ds-spec > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.ds-spec > div:first-child { border-left: none; }
.ds-spec b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 8px; }
.ds-spec span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ds-spec .swatches { display: flex; gap: 4px; margin-top: 8px; }
.ds-spec .swatches i { width: 22px; height: 22px; border-radius: var(--r-sm); display: block; border: 1px solid var(--line); }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } .method-card { padding: 20px 0; border-left: none !important; } .ds-spec { grid-template-columns: 1fr; } .ds-spec > div { border-left: none; border-top: 1px solid var(--line); } .ds-spec > div:first-child { border-top: none; } }

/* ---------- Brief builder ---------- */
.brief-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; }
form.brief { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  padding: 8px 12px;
  width: 100%;
  transition: border-color 140ms var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief-out { position: sticky; top: 96px; }
.brief-doc { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 1px 0 var(--line), 0 16px 40px -30px rgba(26, 27, 29, 0.4); overflow: hidden; }
.brief-doc .doc-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brief-doc .doc-head b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.brief-doc .doc-head span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.brief-doc pre { margin: 0; padding: 16px 20px; white-space: pre-wrap; word-wrap: break-word; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); max-height: 320px; overflow: auto; border-bottom: 1px solid var(--line); }
.brief-actions { padding: 16px 20px 16px; display: grid; gap: 8px; }
.brief-actions .btn { width: 100%; }
.brief-status { font-size: 12.5px; color: var(--muted); min-height: 20px; padding: 0 20px 16px; }
.brief-send { margin-top: 16px; font-size: 13px; color: var(--muted); }
.brief-send a { font-weight: 600; }
@media (max-width: 960px) { .brief-grid { grid-template-columns: 1fr; } .brief-out { position: static; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; border-top: 1px solid var(--line-2); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 500; font-size: 16px; padding: 16px 40px 16px 0; display: flex; align-items: center; list-style: none; position: relative; min-height: 60px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 18px; color: var(--accent); }
details.faq[open] summary::after { content: "−"; }
details.faq summary:hover { color: var(--accent); }
details.faq .a { padding: 0 60px 20px 0; color: var(--ink-2); font-size: 14.5px; }
details.faq .a a { font-weight: 600; }

/* ---------- Launch status ---------- */
.status { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.status-col { padding: 24px 28px 24px 0; }
.status-col + .status-col { padding-left: 28px; border-left: 1px solid var(--line); }
.status-col h3 { font-size: 19px; margin-bottom: 4px; }
.status-col .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.status-list { list-style: none; display: grid; gap: 12px; }
.status-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.45; }
.status-list .ic { flex: none; width: 22px; height: 22px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; background: var(--tint); border: 1px solid var(--line-2); color: var(--muted); margin-top: 1px; }
.status-list .done .ic { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.status-list small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; } .status-col { padding: 24px 0; } .status-col + .status-col { padding-left: 0; border-left: none; border-top: 1px solid var(--line); } }

/* ---------- Final CTA ---------- */
.final { background: var(--ink); color: var(--paper); border-radius: var(--r-panel); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.final h2 { color: var(--paper); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.final p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 15px; margin-bottom: 8px; }
.final a { color: var(--paper); }
.final .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.final .btn-ghost:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); border-color: var(--paper); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; margin-bottom: 36px; }
.foot-grid h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.foot-grid p, .foot-grid li { color: var(--ink-2); font-size: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-grid a:hover { color: var(--accent); }
.handle { font-weight: 600; }
.mail-link { color: var(--accent) !important; word-break: break-all; }
.foot-base { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Reduced motion — fades only, nothing loops */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Template samples — 12 small design systems, one flat palette each
   ============================================================ */
.smpl { --sb:#fff; --ss:#fff; --si:#14161a; --sm:#5b6470; --sa:#bf4318; --sai:#fff; --sl:#e5e2da; --sd:"Fraunces", Georgia, serif; background:var(--sb); color:var(--si); font-family:var(--sans); font-size:15px; line-height:1.55; }
.smpl * { box-sizing:border-box; }
.s-nav { display:flex; align-items:center; gap: 16px; padding: 16px 28px; border-bottom:1px solid var(--sl); flex-wrap:wrap; background:var(--ss); }
.s-logo { font-family:var(--sd); font-weight:600; font-size:21px; letter-spacing:-0.02em; margin-right: auto; white-space:nowrap; }
.s-logo em { font-style:normal; color:var(--sa); }
.s-links { display:flex; gap: 16px; font-size:13px; color:var(--sm); flex-wrap:wrap; }
.s-btn { background:var(--sa); color:var(--sai); font-weight:600; font-size:13.5px; padding: 8px 16px; border-radius:6px; display:inline-flex; align-items:center; white-space:nowrap; }
.s-btn2 { border:1px solid var(--sl); color:var(--si); background:transparent; font-weight:600; font-size:13.5px; padding: 8px 16px; border-radius:6px; display:inline-flex; white-space:nowrap; }
.s-hero { padding: 48px 28px 40px; }
.s-hero--split { display:grid; grid-template-columns:1.05fr .95fr; gap: 32px; align-items:center; }
.s-eyebrow { display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:0.02em; color:var(--sa); margin-bottom: 12px; }
.s-h1 { font-family:var(--sd); font-weight:600; font-size:clamp(31px,4vw,44px); line-height:1.06; letter-spacing:-0.02em; margin: 0 0 16px; }
.s-lede { color:var(--sm); font-size:16px; max-width:44ch; margin: 0 0 20px; }
.s-cta-row { display:flex; gap: 8px; flex-wrap:wrap; margin-bottom: 16px; }
.s-proof { font-size:13px; color:var(--sm); }
.s-proof b { color:var(--si); }
.s-hero-img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; display:block; }
.s-strip { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--sl); border-bottom:1px solid var(--sl); background:var(--ss); }
.s-strip div { padding: 16px 24px; border-left:1px solid var(--sl); }
.s-strip div:first-child { border-left:none; }
.s-strip b { display:block; font-family:var(--sd); font-weight:600; font-size:16px; }
.s-strip span { font-size:12.5px; color:var(--sm); }
.s-sec { padding: 40px 28px; }
.s-sec--alt { background:var(--ss); border-top:1px solid var(--sl); border-bottom:1px solid var(--sl); }
.s-h2 { font-family:var(--sd); font-weight:600; font-size:clamp(23px,2.8vw,29px); line-height:1.14; margin: 0 0 8px; letter-spacing:-0.01em; }
.s-sub { color:var(--sm); margin: 0 0 24px; max-width:58ch; font-size:14px; }
.s-grid2 { display:grid; grid-template-columns:1fr 1fr; gap: 12px; }
.s-grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap: 12px; }
.s-card { background:var(--ss); border:1px solid var(--sl); border-radius:10px; padding: 16px; }
.s-sec--alt .s-card { background:var(--sb); }
.s-card h5 { font-family:var(--sd); font-size:16.5px; font-weight:600; margin: 0 0 4px; }
.s-card p { color:var(--sm); font-size:13.5px; margin: 0; }
.s-card .s-price { font-family:var(--mono); font-weight:500; font-size:14px; color:var(--sa); }
.s-cardhead { display:flex; justify-content:space-between; align-items:baseline; gap: 8px; margin-bottom: 4px; }
.s-cardhead h5 { margin: 0; }
.s-avatar { width:42px; height:42px; border-radius:50%; background:var(--sa); color:var(--sai); display:flex; align-items:center; justify-content:center; font-family:var(--sd); font-weight:600; font-size:15px; margin-bottom: 8px; }
.s-stars { color:var(--sa); letter-spacing:1px; font-size:12px; margin-bottom: 8px; }
.s-rows { display:grid; border:1px solid var(--sl); border-radius:10px; overflow:hidden; background:var(--ss); }
.s-row { display:flex; justify-content:space-between; align-items:baseline; gap: 16px; padding: 12px 16px; border-top:1px solid var(--sl); }
.s-row:first-child { border-top:none; }
.s-row b { font-size:14px; }
.s-row span { color:var(--sm); font-size:12.5px; display:block; }
.s-row .s-price { font-family:var(--mono); font-weight:500; color:var(--sa); white-space:nowrap; }
.s-chips { display:flex; gap: 8px; flex-wrap:wrap; margin-bottom: 16px; }
.s-chip { font-size:12.5px; font-weight:600; padding: 8px 12px; border-radius:6px; border:1px solid var(--sl); color:var(--sm); }
.s-chip.on { background:var(--sa); border-color:var(--sa); color:var(--sai); }
.s-tile { border-radius:8px; aspect-ratio:4/3; display:flex; align-items:flex-end; padding: 12px; color:#fff; font-family:var(--sd); font-weight:600; font-size:16px; line-height:1.2; margin-bottom: 12px; }
.s-form { display:grid; gap: 8px; }
.s-input { border:1px solid var(--sl); border-radius:6px; padding: 12px 12px; font-size:13.5px; color:var(--sm); background:var(--ss); }
.s-slots { display:flex; gap: 8px; flex-wrap:wrap; }
.s-slot { border:1px solid var(--sl); border-radius:6px; padding: 8px 12px; font-size:12.5px; font-weight:600; }
.s-slot.on { border-color:var(--sa); background:var(--sa); color:var(--sai); }
.s-cta-band { margin: 0 28px 40px; background:var(--sa); color:var(--sai); border-radius:10px; padding: 24px 24px; display:flex; flex-wrap:wrap; gap: 16px; align-items:center; justify-content:space-between; }
.s-cta-band h4 { font-family:var(--sd); font-weight:600; font-size:22px; margin: 0; }
.s-cta-band p { margin: 4px 0 0; font-size:13.5px; opacity:.85; }
.s-cta-band .s-btn { background:var(--sai); color:var(--sa); }
.s-foot { border-top:1px solid var(--sl); padding: 20px 28px; display:flex; flex-wrap:wrap; gap: 8px 24px; font-size:12.5px; color:var(--sm); background:var(--ss); }
.s-foot b { color:var(--si); font-family:var(--sd); }
.s-cine { padding: 56px 28px 48px; position:relative; overflow:hidden; background:var(--sc, var(--ss)); }
.s-cine .s-h1 { font-size:clamp(34px,5vw,52px); max-width:14ch; }
.s-cine .s-lede { max-width:48ch; }
.s-signup { display:flex; gap: 8px; flex-wrap:wrap; max-width:470px; }
.s-signup .s-input { flex:1 1 220px; }

/* App screens */
.s-phones { display:flex; gap: 20px; flex-wrap:wrap; justify-content:center; padding: 36px 20px 40px; }
.s-phone { width:280px; flex:none; background:var(--ss); border:1px solid var(--sl); border-radius:28px; padding: 16px 16px 12px; }
.s-phone .s-notch { width:56px; height:4px; border-radius:2px; background:var(--sl); margin: 0 auto 16px; }
.s-phone h5 { font-family:var(--sd); font-size:18px; font-weight:600; margin: 0 0 2px; }
.s-phone .s-psub { font-size:12px; color:var(--sm); margin-bottom: 16px; }
.s-appcard { background:var(--sb); border:1px solid var(--sl); border-radius:10px; padding: 12px; margin-bottom: 8px; }
.s-appcard b { display:block; font-size:14px; }
.s-appcard span { font-size:12px; color:var(--sm); }
.s-appcard.hero-card { background:var(--sa); color:var(--sai); border-color:var(--sa); }
.s-appcard.hero-card span { color:var(--sai); opacity:.82; }
.s-ring { width:60px; height:60px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-size:14px; background:conic-gradient(var(--sa) 0 68%, var(--sl) 68% 100%); position:relative; }
.s-ring::before { content:""; position:absolute; inset:5px; border-radius:50%; background:var(--ss); }
.s-ring i { position:relative; font-style:normal; }
.s-week { display:flex; gap: 4px; margin: 4px 0 12px; }
.s-week i { flex:1; text-align:center; font-style:normal; font-size:10.5px; font-weight:600; color:var(--sm); padding: 8px 0; border-radius:6px; background:var(--sb); border:1px solid var(--sl); }
.s-week i.on { background:var(--sa); color:var(--sai); border-color:var(--sa); }
.s-tabbar { display:flex; justify-content:space-around; border-top:1px solid var(--sl); padding-top: 8px; margin-top: 8px; }
.s-tabbar span { font-size:10.5px; font-weight:600; color:var(--sm); display:flex; flex-direction:column; align-items:center; gap: 4px; }
.s-tabbar span i { width:16px; height:16px; border-radius:4px; background:var(--sl); display:block; }
.s-tabbar span.on { color:var(--sa); }
.s-tabbar span.on i { background:var(--sa); }
.s-progress { height:6px; border-radius:99px; background:var(--sl); overflow:hidden; margin-top: 8px; }
.s-progress i { display:block; height:100%; background:var(--sa); border-radius:99px; }

/* Per-template palettes */
.smpl--saffron { --sb:#FBF5EA; --ss:#FFFDF8; --si:#2B2015; --sm:#7A6A58; --sa:#BC4415; --sai:#FFF7EC; --sl:#EADFC9; --sc:#F3E8D4; }
.smpl--carepoint { --sb:#F6FAF9; --ss:#FFFFFF; --si:#16302C; --sm:#5E7A74; --sa:#0E7C6B; --sai:#FFFFFF; --sl:#DCEAE6; --sc:#EAF3F0; }
.smpl--nexa { --sb:#FFFFFF; --ss:#F6F7F9; --si:#15181E; --sm:#5C6470; --sa:#2456C8; --sai:#FFFFFF; --sl:#E4E7EC; --sc:#F0F2F5; }
.smpl--glow { --sb:#FDF5F3; --ss:#FFFFFF; --si:#33232B; --sm:#8A6E78; --sa:#B03A6B; --sai:#FFF5F8; --sl:#F0DDE1; --sc:#F9EBEF; }
.smpl--estate { --sb:#FBFAF6; --ss:#FFFFFF; --si:#16232E; --sm:#61707C; --sa:#1E5A46; --sai:#F2F8F4; --sl:#E3E0D3; --sc:#F2EFE4; }
.smpl--fitcoach { --sb:#0E1114; --ss:#171C21; --si:#F2F5F0; --sm:#9AA7A0; --sa:#C6F24E; --sai:#131A0E; --sl:#262E35; --sc:#141A1E; }
.smpl--novapay { --sb:#0C1F1A; --ss:#122A21; --si:#F2F7F3; --sm:#A7BDB2; --sa:#F5C86E; --sai:#241A02; --sl:#24402F; --sc:#16352B; }
.smpl--lumina { --sb:#140E09; --ss:#1E150E; --si:#FBF3E8; --sm:#C4AE97; --sa:#FF7A3D; --sai:#22100A; --sl:#3A2A1B; --sc:#241A12; }
.smpl--midnight { --sb:#060708; --ss:#101315; --si:#F4F5F3; --sm:#9BA3A0; --sa:#3EC9B2; --sai:#05231D; --sl:#23282B; --sc:#0C1012; }
.smpl--summit { --sb:#0E1A12; --ss:#16281D; --si:#F3F7EF; --sm:#AFC4B2; --sa:#F2D492; --sai:#241B04; --sl:#2A4232; --sc:#1A2F23; }
.smpl--verdant { --sb:#F4F9F4; --ss:#FFFFFF; --si:#1D3325; --sm:#64806C; --sa:#2E7D4F; --sai:#FFFFFF; --sl:#DCE9DC; --sc:#E7F2E4; }
.smpl--atelier { --sb:#171008; --ss:#211810; --si:#FAF2E6; --sm:#C9B294; --sa:#FF8A4D; --sai:#22100A; --sl:#3B2A19; --sc:#2B2118; }
.smpl--fitcoach, .smpl--novapay, .smpl--lumina, .smpl--midnight, .smpl--summit, .smpl--atelier { --sd:"IBM Plex Sans", system-ui, sans-serif; }
.smpl--saffron .s-h1, .smpl--saffron .s-h2, .smpl--glow .s-h1, .smpl--glow .s-h2 { font-weight:500; }
.smpl--glow .s-hero { background:#F9EBEF; }

/* Sample responsiveness inside the phone frame */
.tv-frame.mobile .s-hero--split,
.tv-frame.mobile .s-grid3,
.tv-frame.mobile .s-grid2 { grid-template-columns:1fr; }
.tv-frame.mobile .s-strip { grid-template-columns:1fr; }
.tv-frame.mobile .s-strip div { border-left:none; border-top:1px solid var(--sl); }
.tv-frame.mobile .s-strip div:first-child { border-top:none; }
.tv-frame.mobile .s-links { display:none; }
.tv-frame.mobile .s-h1 { font-size:30px; }
.tv-frame.mobile .s-cine .s-h1 { font-size:32px; }
.tv-frame.mobile .s-nav,
.tv-frame.mobile .s-sec,
.tv-frame.mobile .s-hero,
.tv-frame.mobile .s-cine { padding-left: 16px; padding-right: 16px; }
.tv-frame.mobile .s-cta-band { margin-left: 16px; margin-right: 16px; }
.tv-frame.mobile .s-phones { padding-left: 8px; padding-right: 8px; }
.tv-frame.mobile .s-phone { width:100%; max-width:288px; }
.tv-frame.mobile .s-form { grid-template-columns:1fr !important; }
@media (max-width:760px) {
  .s-hero--split, .s-grid3, .s-strip { grid-template-columns:1fr; }
  .s-strip div { border-left:none; border-top:1px solid var(--sl); }
  .s-strip div:first-child { border-top:none; }
}
@media (max-width:520px) { .s-grid2 { grid-template-columns:1fr; } .s-links { display:none; } }

/* Quiet entrance (applied by JS only, so content stays visible without JS) */
.rv-init { opacity: 0; transform: translateY(10px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.rv-init.rv-in { opacity: 1; transform: none; }

/* ---------- Responsive shell ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sheet { max-width: 580px; }
  .logo-grid { grid-template-columns: 1fr; gap: 32px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .nav-inner { gap: 8px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
  .nav > .wrap { padding-left: 16px; padding-right: 16px; }
  .brand .mark { font-size: 25px; }
  .brand .studio-word { display: none; }
  .brand-tagline { font-size: 8px; letter-spacing: 0.02em; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero .lede { font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .svy-strip { grid-template-columns: 1fr; }
  .svy-strip div { padding: 8px 0; }
  .svy-strip div + div { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
  .cap-line li { padding: 8px 12px; font-size: 11.5px; }
  .cap-line li:first-child { padding-left: 0; }
  .sheet-head { padding: 16px 16px 16px; }
  .sheet-body { padding: 4px 16px 0; }
  .sheet-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sheet-ref { align-items: flex-start; text-align: left; }
  .sheet-row { gap: 8px; grid-template-columns: 1fr auto auto; }
  .sheet-total { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .sheet-foot { padding: 12px 16px 16px; }
  .sheet-stamp { top: 76px; right: 12px; }
  .facts .wrap { grid-template-columns: 1fr; gap: 16px; }
  .tpl-note, .ht-note { font-size: 12.5px; }
  .price { padding: 20px; }
  .price-amount .amt { font-size: 36px; }
  .bd-strip { padding: 16px; }
  .final { border-radius: var(--r-card); }
  .tv-head { gap: 8px; padding: 8px 12px; }
  .tv-title b { font-size: 16px; }
  .tv-note { padding: 8px 12px; font-size: 11.5px; }
}
@media (max-width: 380px) {
  .brand-tagline { display: none; }
  .theme-toggle { padding: 8px; }
}

/* Nav fits on one line at 1280 (review fix) */
.nav-links a { font-size: 13.5px; padding: 8px 8px; white-space: nowrap; }
.nav-cta { white-space: nowrap; }
.brand { margin-right: 12px; }
@media (min-width: 1001px) and (max-width: 1180px) {
  .nav-links a { font-size: 12.5px; padding: 8px 8px; }
  .brand-tagline { letter-spacing: 0.02em; }
  .nav > .wrap { padding-left: 20px; padding-right: 20px; }
}

/* Compact desktop nav lockup so all links and the CTA stay on one row */
@media (min-width: 1001px) {
  .nav .brand-tagline { font-size: 8.5px; letter-spacing: 0.01em; }
  .nav-inner { gap: 8px; }
  .nav-links a { font-size: 13px; padding: 8px 8px; }
  .theme-toggle { padding: 8px 8px; font-size: 12px; }
  .nav-cta { padding: 8px 16px; font-size: 13.5px; min-height: 40px; }
}
@media (min-width: 1001px) and (max-width: 1140px) {
  .nav .brand-tagline { display: none; }
  .nav-links a { font-size: 12.5px; padding: 8px 8px; }
}

/* Image elements carry width/height attributes — let CSS own the crop */
.demo figure img { height: auto; aspect-ratio: 4 / 3; }
.tpl-preview img { height: 100%; }
.s-hero-img { height: auto; }

/* Icons: one family, one stroke */
.status-list .ic svg { width: 13px; height: 13px; }
.tv-close svg { width: 16px; height: 16px; }
.brand .studio-word { letter-spacing: 0.1em; }
.sheet-head .sheet-kicker, .logo-stage .stage-label { letter-spacing: 0.04em; }
.logo-sub b { letter-spacing: 0.2em; }

/* Stamp lives in the header block, not over the line items */
.sheet-stamp { position: static; display: inline-block; transform: rotate(-3deg); margin-top: 8px; }
.sheet-ref { display: flex; flex-direction: column; align-items: flex-end; }

.hero-social { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.hero-social:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Inverted "printed panel" stays dark in both themes */
:root { --panel: #1a1b1d; --panel-ink: #faf7f1; }
:root[data-theme="dark"] { --panel: #211f18; --panel-ink: #f3efe3; }
.payments, .hero-tpl, .offer, .final, .logo-stage { --ink: var(--panel); --paper: var(--panel-ink); }

/* Bangladesh block is always a light printed slip, inside the dark panel */
.bd-strip { background: #faf7f1; color: #1a1b1d; --ink: #1a1b1d; --ink-2: #4b4c47; --muted: #6b6c62; --line: #e2ddd0; --line-2: #cdc6b5; --tint: #f2eee4; --surface: #ffffff; }
:root[data-theme="dark"] .bd-card.bkash .bd-brand { color: #b31b4c; }
:root[data-theme="dark"] .bd-card.nagad .bd-brand { color: #b83a1c; }
.payments .pay-card, .hero-tpl .ht-card { border-color: color-mix(in srgb, var(--panel-ink) 18%, transparent); }

/* Clause marks never split the section number from § */
.clause { flex-wrap: wrap; }
.clause b { white-space: nowrap; }
@media (max-width: 640px) { .clause::after { display: none; } }

/* Final polish */
.stack-group { border-bottom: 0; }
.stack-groups { border-bottom: 1px solid var(--line); }
.sec-head h2 { text-wrap: balance; }
