/* Counterkit sales site
   Brand tokens come from brand/palette/tokens.css (keep in sync by hand).
   Mobile first. Light and dark. No framework. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see /fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 72% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-var.woff2") format("woff2-variations"), url("../fonts/martian-mono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto"), local("Helvetica");
  size-adjust: 98.3%;
  ascent-override: 89.3%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Bold");
  font-weight: 800;
  size-adjust: 76.8%;
  ascent-override: 114.3%;
  descent-override: 27.3%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --carbon: #24248F;
  --carbon-soft: #4A4C7E;
  --haldi: #FFC21A;
  --haldi-hover: #FFD04F;
  --stamp: #C8243A;
  --steel: #ECEEF3;
  --slip: #FFFFFF;
  --rule: #C5C9D8;

  /* roles (light) */
  --bg: var(--steel);
  --fg: var(--carbon);
  --fg-soft: var(--carbon-soft);
  --surface: var(--slip);
  --line: var(--rule);
  --accent: var(--haldi);
  --accent-hover: var(--haldi-hover);
  --on-accent: var(--carbon);
  --stamp-fg: var(--stamp);
  --focus: var(--carbon);
  --band: var(--carbon);
  --band-fg: #FFFFFF;
  --band-soft: #CDCEF2;
  --band-line: #4646A6;
  --paper: #FFFFFF;
  --paper-ink: var(--carbon);
  --paper-soft: var(--carbon-soft);
  --paper-rule: var(--rule);
  --paper-stamp: var(--stamp);
  --shadow-paper: 0 1px 1px rgba(36, 36, 143, .10), 0 18px 30px -16px rgba(36, 36, 143, .45);

  /* type */
  --font-sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Archivo Display Fallback", "Archivo Fallback", system-ui, sans-serif;
  --font-mono: "Martian Mono", "Archivo", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 74rem;
  --gutter: 1rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121238;
    --fg: #E6E7F4;
    --fg-soft: #A9ACD6;
    --surface: #1C1D4D;
    --line: #34366B;
    --on-accent: #121238;
    --stamp-fg: #FF7A86;
    --focus: var(--haldi);
    --band: #1C1D4D;
    --band-fg: #E6E7F4;
    --band-soft: #A9ACD6;
    --band-line: #34366B;
    --paper: #E9EAF2;
    --paper-rule: #B4B8CE;
    --paper-stamp: #B81F33;
    --shadow-paper: 0 1px 1px rgba(0, 0, 0, .3), 0 20px 34px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121238;
  --fg: #E6E7F4;
  --fg-soft: #A9ACD6;
  --surface: #1C1D4D;
  --line: #34366B;
  --on-accent: #121238;
  --stamp-fg: #FF7A86;
  --focus: var(--haldi);
  --band: #1C1D4D;
  --band-fg: #E6E7F4;
  --band-soft: #A9ACD6;
  --band-line: #34366B;
  --paper: #E9EAF2;
  --paper-rule: #B4B8CE;
  --paper-stamp: #B81F33;
  --shadow-paper: 0 1px 1px rgba(0, 0, 0, .3), 0 20px 34px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; color: inherit; }
code { font-family: var(--font-mono); font-size: .86em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 50;
  background: var(--accent); color: var(--carbon); padding: .6rem 1rem; border-radius: var(--radius);
  font-weight: 650; text-decoration: none;
}
.skip:focus { top: .75rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.25rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 650 1.0625rem/1.2 var(--font-sans); font-stretch: 92%;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 2.75rem; padding: .5rem 1rem; font-size: 1rem; }
.btn-buy { background: var(--accent); color: var(--carbon); border-color: var(--accent); }
.btn-buy:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-buy:active { background: #F0B000; }
.btn-buy[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn-buy .logo-full { display: none !important; } /* Gumroad's script appends its logo to bound links */
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Masthead ---------- */
.masthead { padding-block: 1rem; }
.masthead-in { display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; margin-right: auto; border-radius: 4px; }
.wm { display: block; width: auto; height: 1.375rem; }
.wm-dark { display: none; }
.nav { display: none; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 550; }
.nav a:hover { text-decoration: underline; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-toggle .i-sun { display: none; }
@media (min-width: 56rem) {
  .nav { display: block; margin-right: .5rem; }
  .wm { height: 1.5rem; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm-light { display: none; }
  :root:not([data-theme="light"]) .wm-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .wm-light { display: none; }
:root[data-theme="dark"] .wm-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  font-stretch: 74%;
  line-height: 1;
  letter-spacing: -.005em;
  max-width: 22ch;
}
.section-lede {
  margin-top: 1rem; max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--fg-soft);
}
.band { background: var(--band); color: var(--band-fg); --fg-soft: var(--band-soft); --line: var(--band-line); --focus: var(--haldi); }
.split { display: grid; gap: 2rem; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .split-head, .faq-wrap > h2 { position: sticky; top: 2rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(3.5rem, 2rem + 5vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: start; }
.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.6rem);
  font-stretch: 72%;
  line-height: .94;
  letter-spacing: -.01em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem); line-height: 1.5; }
.lede-2 { margin-top: .9rem; max-width: 36rem; color: var(--fg-soft); }
.hero .cta-row { margin-top: 2rem; }
.fine { margin-top: .9rem; font-size: .9375rem; color: var(--fg-soft); max-width: 34rem; }
.facts { display: grid; gap: .45rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: .55rem; }
.facts li::before { content: ""; width: .6rem; height: .6rem; background: var(--accent); flex: none; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
}

/* The printer: an order ticket feeding out of a counter-top slot */
.printer { margin: 0 auto; width: 100%; max-width: 26rem; }
.slot {
  position: relative; z-index: 2; height: 1.4rem;
  background: var(--accent); border-radius: 999px;
}
.slot::after { /* the slit the ticket comes out of */
  content: ""; position: absolute; left: .9rem; right: .9rem; top: 50%; height: 3px; margin-top: -1px;
  background: var(--carbon); border-radius: 2px; opacity: .85;
}
.feed { margin-top: -.7rem; padding-inline: .6rem; clip-path: inset(0 -3rem -5rem -3rem); }
.ticket-shadow { filter: drop-shadow(0 16px 18px rgba(36, 36, 143, .18)) drop-shadow(0 2px 2px rgba(36, 36, 143, .12)); }
.ticket {
  --tooth: 16px;
  background: var(--paper); color: var(--paper-ink);
  padding: 1.75rem 1.15rem 2.25rem;
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.95;
  overflow-wrap: anywhere;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.t-strong { font-weight: 700; }
.t-total { font-weight: 700; font-size: 1.15em; }
.t-rule { border-top: 2px dashed var(--paper-rule); margin: .55rem 0; }
.printer figcaption { margin: 1.25rem .6rem 0; font-size: .9375rem; color: var(--fg-soft); }
@media (min-width: 23rem) { .ticket { font-size: .78rem; padding-inline: 1rem; } }
@media (min-width: 40rem) {
  .feed { padding-inline: 1.4rem; }
  .slot::after { left: 1.4rem; right: 1.4rem; }
  .printer figcaption { margin-inline: 1.4rem; }
  .ticket { font-size: .84rem; padding-inline: 1.4rem; }
}
@media (min-width: 60rem) { .printer { max-width: 30rem; margin-top: .5rem; } .ticket { font-size: .9rem; padding: 2rem 1.5rem 2.6rem; } }
@media (prefers-reduced-motion: no-preference) {
  .ticket-shadow { animation: feed 1.5s steps(16, end) .35s both; }
}
@keyframes feed { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- Demo video ---------- */
.player {
  position: relative; margin-top: 2.5rem; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: #0E0E2E; border: 1px solid var(--band-line);
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* data-video on .watch picks which half of the section shows (see the comment in index.html):
   "present" = the video, its chapter list and note; "missing" = the drawn storyboard and its note. */
.watch[data-video="missing"] .player,
.watch[data-video="missing"] .v-present,
.watch[data-video="present"] .v-missing { display: none; }

/* Storyboard: five drawn frames, the stand-in while the video is missing.
   Chapters: the same numbered captions without frames, listing what the recording shows. */
.steps {
  display: grid; gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step;
}
.steps li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; align-items: center; }
.steps p { display: flex; gap: .6rem; align-items: baseline; font-size: .9375rem; line-height: 1.4; color: var(--band-fg); }
.steps p::before {
  content: counter(step); flex: none;
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--haldi); color: var(--carbon); font: 700 .8125rem/1 var(--font-sans);
  transform: translateY(-.1em);
}
.steps.chapters { margin-top: 1.75rem; }
.chapters li { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .steps li { grid-template-columns: 1fr; align-items: start; gap: .9rem; }
  .chapters p { flex-direction: column; gap: .5rem; }
}

.frame {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: 8.5rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--band-line);
  font-family: var(--font-sans); color: var(--carbon);
}
@media (min-width: 48rem) { .frame { height: 11.5rem; } }
.frame i, .frame b { font-style: normal; }

/* 1. photo of a paper menu, inside a viewfinder */
.f-photo::before, .f-photo::after {
  content: ""; position: absolute; inset: .7rem; pointer-events: none;
  border: 2px solid var(--haldi);
  -webkit-mask: conic-gradient(at 1rem 1rem, #0000 75%, #000 0) 0 0 / calc(100% - 1rem) calc(100% - 1rem);
          mask: conic-gradient(at 1rem 1rem, #0000 75%, #000 0) 0 0 / calc(100% - 1rem) calc(100% - 1rem);
}
.f-photo::after { display: none; }
.menu-card {
  width: 74%; padding: .55rem .6rem .6rem; background: #FFFDF7; transform: rotate(-4deg);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); display: grid; gap: .2rem;
}
.menu-card b { font: 800 1rem/1 var(--font-display); font-stretch: 72%; text-align: center; margin-bottom: .15rem; color: var(--stamp); }
.menu-card span { display: flex; justify-content: space-between; gap: .3rem; font: 500 .625rem/1.3 var(--font-sans); border-bottom: 1px dotted #C5C9D8; padding-bottom: .1rem; }
.menu-card span i:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 48rem) { .menu-card span { font-size: .5625rem; } }
@media (min-width: 64rem) { .menu-card span { font-size: .6875rem; } }

/* 2. Claude Code in a terminal */
.f-term { background: #0B0B26; }
.term { width: 100%; padding: .7rem .8rem; display: grid; gap: .15rem; font: 400 .625rem/1.45 var(--font-mono); color: #C9CBEC; }
.term .cmd { color: var(--haldi); font-weight: 700; margin-bottom: .2rem; }
.term .warn { color: #FF9AA5; }

/* 3. the live site in a browser */
.browser {
  width: 82%; background: #FFFFFF; border-radius: 6px; overflow: hidden; display: grid;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
}
.browser .bar { height: .65rem; background: #DADCE8; border-bottom: 1px solid #C5C9D8; }
.browser .sign { padding: .35rem .5rem; background: var(--stamp); color: #FFFFFF; font: 800 .75rem/1 var(--font-display); font-stretch: 74%; }
.browser .item { display: flex; justify-content: space-between; align-items: center; gap: .3rem; padding: .3rem .5rem; border-top: 1px solid #ECEEF3; font-size: .5625rem; line-height: 1.2; }
.browser .item i { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser .item b { flex: none; padding: .1rem .35rem; border-radius: 3px; background: var(--haldi); font-weight: 700; font-size: .5rem; }

/* 4. the customer's phone */
.phone {
  width: 5.6rem; height: 110%; margin-top: 1.4rem; align-self: start;
  padding: .7rem .5rem; border-radius: 14px 14px 0 0; border: 3px solid #0B0B26; border-bottom: 0;
  background: #FFFFFF; display: flex; flex-direction: column; gap: .2rem; font-size: .5rem; line-height: 1.25;
}
.phone .ph-h { font: 800 .75rem/1 var(--font-display); font-stretch: 76%; margin-bottom: .2rem; }
.phone .ph-t { font-weight: 700; margin-top: .15rem; padding-top: .2rem; border-top: 1px dashed #C5C9D8; }
.phone b { margin-top: .3rem; padding: .3rem; text-align: center; border-radius: 4px; background: var(--haldi); font-size: .5625rem; }
@media (min-width: 48rem) { .phone { width: 6.4rem; margin-top: 1.6rem; } }

/* 5. the order message, as a ticket */
.mini-ticket {
  width: 82%; padding: .6rem .6rem 1rem; background: #FFFFFF; display: grid; gap: .25rem;
  font: 400 .5rem/1.4 var(--font-mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 8px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 8px 100%;
}
.mini-ticket b { font-weight: 700; }
.mini-ticket b:last-child { padding-top: .2rem; border-top: 1px dashed #C5C9D8; font-size: .5625rem; }

.video-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--band-line);
}
.video-note p { max-width: 40rem; color: var(--band-soft); }
.video-note strong { color: var(--band-fg); }

/* ---------- Demos ---------- */
.demo-list { display: grid; gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.demo { display: flex; flex-direction: column; }
.demo-card {
  display: flex; flex-direction: column; flex: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--fg);
  transition: border-color .15s ease;
}
.demo-card:hover { border-color: var(--fg); }
.fascia {
  display: block; padding: 1.5rem 1.25rem 1.1rem;
  font: 800 clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem)/1 var(--font-display); font-stretch: 72%;
  border-bottom: 6px solid rgba(0, 0, 0, .18);
}
.demo-kitchen .fascia { background: var(--stamp); color: #FFFFFF; }
.demo-kirana .fascia { background: var(--haldi); color: var(--carbon); }
.demo-bakery .fascia { background: var(--carbon); color: var(--haldi); }
.demo-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.demo-desc { color: var(--fg-soft); }
.demo-open { margin-top: auto; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.demo-card:hover .demo-open { text-decoration-thickness: 2px; }
.qr { display: none; }
@media (min-width: 48rem) { .demo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) and (hover: hover) and (pointer: fine) {
  .qr { display: flex; align-items: center; gap: .9rem; margin: .9rem 0 0; font-size: .875rem; color: var(--fg-soft); }
  .qr img { width: 5.5rem; height: 5.5rem; background: #FFFFFF; padding: .3rem; border-radius: 4px; border: 1px solid var(--line); }
  .qr figcaption { max-width: 10rem; }
}

/* ---------- What the shop gets ---------- */
.gets { display: grid; gap: 1.75rem 2.5rem; margin: 0; }
.gets > div { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.gets dt { display: flex; gap: .6rem; align-items: baseline; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.gets dt::before { content: ""; flex: none; width: .6rem; height: .6rem; background: var(--accent); transform: translateY(-.05em); }
.gets dd { margin: .45rem 0 0 1.2rem; color: var(--fg-soft); }
@media (min-width: 40rem) { .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- What you get ---------- */
.inside-grid { display: grid; gap: 3rem; margin-top: 2.75rem; align-items: start; }
@media (min-width: 64rem) { .inside-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.tree-slip {
  margin: 0; background: var(--paper); color: var(--paper-ink);
  border-radius: 4px; box-shadow: var(--shadow-paper);
  padding: 1.5rem 1.1rem 1.25rem;
}
.tree-slip figcaption { margin-top: 1.25rem; padding-top: .9rem; border-top: 2px dashed var(--paper-rule); font-size: .875rem; color: var(--paper-soft); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: .4rem; padding-left: 1rem; border-left: 1px dashed var(--paper-rule); }
.tree li { position: relative; padding: .3rem 0 .3rem .1rem; }
.tree ul > li::before { content: ""; position: absolute; left: -1rem; top: 1.05rem; width: .8rem; border-top: 1px dashed var(--paper-rule); }
.tree .row { display: flex; flex-direction: column; }
.tree .name { font-family: var(--font-mono); font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.tree .dir { font-weight: 700; }
.tree .note { font-size: .875rem; line-height: 1.4; color: var(--paper-soft); }
.tree .tag {
  display: inline-block; margin-right: .35rem; padding: 0 .4rem; border-radius: 3px;
  background: var(--haldi); color: var(--carbon); font-weight: 650; font-size: .8125rem;
}
@media (min-width: 40rem) {
  .tree-slip { padding: 1.75rem 1.75rem 1.5rem; }
  .tree .row { flex-direction: row; align-items: baseline; gap: 1rem; }
  .tree .name { flex: none; min-width: 11.5rem; }
  .tree ul ul .name { min-width: 10.25rem; }
}
.skills h3 { font-size: 1.75rem; font-stretch: 76%; line-height: 1.05; }
.cmds { margin: 1.5rem 0 0; display: grid; gap: 1.4rem; }
.cmds dt code {
  display: inline-block; padding: .2rem .5rem; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 700;
}
.cmds dd { margin: .45rem 0 0; color: var(--fg-soft); }
.note-box { margin-top: 2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Business pack ---------- */
.pack { background: var(--surface); }
.pack-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .pack-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; } }
.pack-preview {
  margin: 0; padding: 1.4rem 1.2rem 1.25rem;
  background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: var(--shadow-paper);
  border-top: 6px solid var(--haldi);
}
.pp-file { font: 700 .75rem/1.4 var(--font-mono); color: var(--paper-soft); overflow-wrap: anywhere; }
.pp-title { margin-top: .5rem; font: 800 1.5rem/1.05 var(--font-display); font-stretch: 76%; }
.pack-preview ol { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: flow; display: grid; gap: 0; }
.pack-preview li {
  counter-increment: flow; display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem;
  padding: .45rem 0; border-top: 1px dotted var(--paper-rule); font-size: .9375rem; line-height: 1.4;
}
.pack-preview li::before { content: counter(flow); font: 700 .8125rem/1.6 var(--font-mono); color: var(--paper-soft); }
.pack-preview figcaption { margin-top: .9rem; padding-top: .75rem; border-top: 2px dashed var(--paper-rule); font-size: .875rem; color: var(--paper-soft); }
.pack-list { display: grid; gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.pack-list li { display: flex; flex-direction: column; gap: .25rem; padding: .95rem 0 1rem; border-top: 2px dotted var(--line); }
.pack-list strong { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.pack-list span { color: var(--fg-soft); font-size: .9688rem; }
@media (min-width: 40rem) { .pack-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pack { background: #16164A; } }
:root[data-theme="dark"] .pack { background: #16164A; }

/* ---------- Fit ---------- */
.fit-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.fit h3 { font-size: 1.5rem; font-stretch: 78%; line-height: 1.1; }
.fit ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; }
.fit li { position: relative; padding-left: 2.1rem; }
.fit li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem; border-radius: 4px;
}
.fit li::after { content: ""; position: absolute; }
.fit-yes li::before { background: var(--accent); }
.fit-yes li::after { left: .47rem; top: .33rem; width: .4rem; height: .72rem; border: solid var(--carbon); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fit-no li::before { background: transparent; border: 2px solid var(--stamp-fg); }
.fit-no li::after { left: .35rem; top: .8rem; width: .65rem; height: 2.5px; background: var(--stamp-fg); }

/* ---------- Hosting ---------- */
.hosting-body { display: grid; gap: 1.1rem; max-width: 40rem; }
.quote {
  margin: .4rem 0; padding: 1.25rem 1.25rem 1.1rem;
  background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: var(--shadow-paper);
}
.quote p { font: 700 clamp(1.25rem, 1.1rem + .7vw, 1.6rem)/1.25 var(--font-display); font-stretch: 85%; }
.quote footer { margin-top: .75rem; padding-top: .7rem; border-top: 2px dashed var(--paper-rule); font-size: .875rem; color: var(--paper-soft); }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 650; font-size: 1.125rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-list summary::before {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 1rem; height: 2px; margin-top: -1px; background: currentColor;
  transition: transform .2s ease;
}
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0deg); }
.faq-list summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.faq-list .a { padding: 0 0 1.4rem; max-width: 42rem; color: var(--fg-soft); display: grid; gap: .75rem; }
.faq-list .a a { color: var(--fg); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .pricing-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3.5rem; } }
.bill {
  position: relative;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 4px 4px 0 0;
  padding: 1.5rem .9rem 2.4rem;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.bill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px dashed var(--paper-rule); }
.bill-title { font-family: var(--font-mono); font-weight: 700; font-size: .875rem; padding-top: .35rem; }
.stamp {
  display: inline-block; padding: .35rem .6rem; transform: rotate(-4deg);
  border: 2.5px solid var(--paper-stamp); border-radius: 5px; color: var(--paper-stamp);
  font: 800 .9375rem/1.05 var(--font-display); font-stretch: 78%; text-align: center;
}
.bill-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: .5rem; }
.bill-table th, .bill-table td { padding: .7rem .25rem; vertical-align: top; text-align: left; }
.bill-table thead th {
  font: 700 .75rem/1.3 var(--font-mono); color: var(--paper-soft); padding-bottom: .5rem;
  border-bottom: 1px solid var(--paper-rule);
}
.bill-table thead th:not(:first-child) { width: 4.4rem; }
.bill-table thead th:not(:first-child), .bill-table td { text-align: center; }
.bill-table tbody th { font-weight: 450; font-size: .9375rem; line-height: 1.4; }
.bill-table tbody tr + tr th, .bill-table tbody tr + tr td { border-top: 1px dotted var(--paper-rule); }
.bill-table .agency-row th { font-weight: 600; }
.bill-table tr:not(.agency-row) + .agency-row th,
.bill-table tr:not(.agency-row) + .agency-row td { border-top: 2px dashed var(--paper-rule); }
.yes, .no { display: inline-block; width: 1.25rem; height: 1.25rem; position: relative; vertical-align: -.2rem; }
.yes { background: var(--haldi); border-radius: 4px; }
.yes::after { content: ""; position: absolute; left: .43rem; top: .17rem; width: .36rem; height: .66rem; border: solid var(--carbon); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.no::after { content: ""; position: absolute; left: .3rem; right: .3rem; top: 50%; height: 2px; margin-top: -1px; background: var(--paper-rule); }
.bill-table .count { font-weight: 700; font-size: .9375rem; line-height: 1.4; }
.bill-table .sub { display: block; font-size: .8125rem; color: var(--paper-soft); }
.bill-table tfoot th, .bill-table tfoot td { border-top: 2px dashed var(--paper-rule); }
.price-row th { font: 700 .8125rem/1.4 var(--font-mono); padding-top: 1rem; }
.price-row td { padding-top: .9rem; }
.was { display: block; font-family: var(--font-mono); font-size: .8125rem; text-decoration: line-through; color: var(--paper-soft); }
.now { display: block; font: 800 1.9rem/1 var(--font-display); font-stretch: 80%; }
.bill-buy { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.25rem; }
.bill-buy .btn { padding-inline: .5rem; font-size: 1rem; }
@media (min-width: 40rem) {
  .bill { padding: 2rem 2rem 2.9rem; }
  .bill-table thead th:not(:first-child) { width: 7.5rem; }
  .bill-table tbody th { font-size: 1rem; }
  .bill-buy { display: flex; justify-content: flex-end; gap: .75rem; }
  .stamp { font-size: 1.05rem; }
}
.price-notes { display: grid; gap: 1.25rem; color: var(--band-soft); }
.price-notes strong { color: var(--band-fg); display: block; margin-bottom: .2rem; }
.price-notes a { color: var(--band-fg); }
@media (min-width: 64rem) { .price-notes { padding-top: .5rem; gap: 1.75rem; } }

/* ---------- Footer ---------- */
.site-foot { padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 6.5rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .foot-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4rem; } }
.foot-title { font: 800 1.9rem/1.05 var(--font-display); font-stretch: 74%; margin-bottom: .75rem; }
.foot-cta > p:not(.foot-title) { color: var(--fg-soft); max-width: 30rem; }
.foot-cta .cta-row { margin-top: 1.5rem; }
.foot-free ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.foot-free li { display: grid; gap: .25rem; }
.foot-free a { font-weight: 650; font-size: 1.0625rem; }
.foot-free span { color: var(--fg-soft); font-size: .9375rem; }
.foot-nav { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot-nav a { display: inline-block; padding-block: .35rem; font-weight: 550; }
.maker { margin-top: 1.5rem; }
.maker a { display: inline-block; padding-block: .35rem; font-weight: 650; }
.about { margin-top: 1.5rem; max-width: 40rem; }
.maker + .about { margin-top: .25rem; }
.tm, .copy { margin-top: .75rem; max-width: 46rem; font-size: .875rem; color: var(--fg-soft); }
@media (min-width: 48rem) { .site-foot { padding-bottom: clamp(3.5rem, 3rem + 3vw, 5.5rem); } }

/* ---------- Mobile buy bar ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--band); color: var(--band-fg);
  box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, .35);
  --focus: var(--haldi);
}
.buybar p { font-size: .9375rem; line-height: 1.3; }
.buybar p span { display: block; color: var(--band-soft); }
.js .buybar { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.js .buybar.is-shown { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .js .buybar, .js .buybar.is-shown { transition: none; } }
@media (min-width: 48rem) { .buybar { display: none; } }

/* ---------- Legal and small pages ---------- */
.doc { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--section); }
.doc h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); font-stretch: 72%; line-height: .98; max-width: 16ch; }
.doc .updated { margin-top: 1rem; color: var(--fg-soft); font-size: .9375rem; }
.doc .summary { margin-top: 2rem; max-width: 42rem; font-size: 1.1875rem; line-height: 1.5; }
.prose { max-width: 42rem; margin-top: 2.5rem; }
.prose h2 { font-size: 1.6rem; font-stretch: 80%; line-height: 1.1; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .45rem; }
.prose .cols { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 40rem) { .prose .cols { grid-template-columns: 1fr 1fr; } }
.prose .cols > div { padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.prose .cols h3 { font-size: 1.2rem; font-stretch: 85%; }
.prose > h3 { font-size: 1.2rem; font-stretch: 85%; line-height: 1.15; margin-top: 1.75rem; }
.prose .cols ul { margin-top: .6rem; }
.mini-foot { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--fg-soft); }
.mini-foot ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.mini-foot a { color: var(--fg); }

/* 404 */
.lost { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .lost { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; } }
.lost .cta-row { margin-top: 2rem; }

/* ---------- Print ---------- */
@media print {
  .masthead nav, .theme-toggle, .buybar, .player, .qr, .cta-row { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .band { background: none; color: #000000; }
}
