/* Panindo marketing + legal site.
   Direction: neighborhood corner store. Kraft-paper page, day-glo price-tag
   yellow, painted-green counter, receipt paper. Dark theme = the store after
   closing: same props under one warm bulb.
   Type: Bricolage Grotesque (self-hosted, everything); hand-lettered tags use
   the system handwriting stack (no webfont, no third-party requests).
   Radius rule: UI controls 8px, paper props 3px, device 44px, tags clipped. */

/* Variable woff2 from @fontsource-variable/bricolage-grotesque (wght, wdth, opsz). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --bg: #eadbc0;
  --bg-deep: #dfcca9;
  --surface: #f8f2e4;
  --paper: #fbf8f0;
  --paper-ink: #1b2420;
  --paper-soft: #545c56;
  --ink: #1b2420;
  --ink-soft: #4a524c;
  --line: rgb(27 36 32 / 0.16);
  --tag: #f4c430;
  --tag-ink: #1b2420;
  --go: #1d6b48;
  --go-ink: #fff8ec;
  --alert: #b73a1f;
  --paper-go: #1d6b48;
  --paper-alert: #b73a1f;
  --counter: #2c5a45;
  --counter-top: #3f7a5f;
  --device: #1c1f1d;
  --shadow: 74 48 12;
  --focus: #1b2420;
  --grain-opacity: 0.55;

  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;

  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  --step-4: clamp(2.45rem, 1.7rem + 3.6vw, 4.6rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --max: 1200px;
  --radius: 8px;
  --radius-paper: 3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --bg-deep: #1c1a14;
    --surface: #222019;
    --paper: #e6dece;
    --paper-soft: #4e554f;
    --ink: #efe7d5;
    --ink-soft: #b8ae9a;
    --line: rgb(239 231 213 / 0.14);
    --tag: #f2c230;
    --go: #5cc495;
    --go-ink: #0f231a;
    --alert: #ff8063;
    --counter: #10201a;
    --counter-top: #24453a;
    --device: #050605;
    --shadow: 0 0 0;
    --focus: #f2c230;
    --grain-opacity: 0.35;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}

/* Cardboard grain lives on a fixed layer behind content, never on scrollers. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .26 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 5px, rgb(110 72 20 / 0.035) 5px 6px);
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 760;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 30;
  padding: 0.7rem 1rem;
  background: var(--tag);
  color: var(--tag-ink);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hand { font-family: var(--font-hand); font-weight: 700; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand svg { flex: none; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  font-weight: 560;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color var(--dur) var(--ease-out);
}
.nav-links a:hover { background: var(--line); }
.site-header .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0.5rem; }

/* Phones: the links drop to their own full-width row and scroll sideways if needed. */
@media (max-width: 759.98px) {
  .site-header .wrap { padding-top: 0.6rem; }
  .site-header nav { order: 3; flex-basis: 100%; min-width: 0; }
  .nav-links { gap: 0; margin: 0 -0.75rem; overflow-x: auto; }
  .nav-links a { white-space: nowrap; }
  html { scroll-padding-top: 132px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}
.btn-tag {
  background: var(--tag);
  color: var(--tag-ink);
  border-color: var(--paper-ink);
  box-shadow: 0 3px 0 var(--paper-ink);
}
.btn-tag:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--paper-ink); }
.btn-tag:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--paper-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-ghost:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: var(--step--1); }

@media (prefers-color-scheme: dark) {
  .btn-tag { border-color: var(--tag); box-shadow: 0 3px 0 #8a6b12; }
  .btn-tag:hover { box-shadow: 0 5px 0 #8a6b12; }
  .btn-tag:active { box-shadow: 0 1px 0 #8a6b12; }
}

/* ---------- Price tag motif ---------- */

.tag {
  --hole: 5px;
  position: relative;
  display: inline-block;
  padding: 0.35em 0.9em 0.35em 1.6em;
  background: var(--tag);
  color: var(--tag-ink);
  clip-path: polygon(0.9em 0, 100% 0, 100% 100%, 0.9em 100%, 0 50%);
  -webkit-mask: radial-gradient(circle var(--hole) at 0.95em 50%, transparent 96%, #000 100%);
  mask: radial-gradient(circle var(--hole) at 0.95em 50%, transparent 96%, #000 100%);
}

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy { padding-bottom: clamp(1rem, 4vw, 4.5rem); }
.eyebrow {
  margin-bottom: 1.1rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.hero h1 { max-width: 13ch; }
.lede {
  max-width: 36ch;
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta-note { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .phone { animation: rise 900ms 120ms var(--ease-out) both; }
  .push { animation: drop 650ms 1100ms var(--ease-out) both; }
  .hang-tag { animation: swing 1200ms 700ms var(--ease-out) both; }
  .laser { animation: sweep 2.2s ease-in-out infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-22px) scale(0.97); } }
@keyframes swing { from { opacity: 0; transform: rotate(-14deg); } }
@keyframes sweep { from { transform: translateY(-28%); } to { transform: translateY(28%); } }

/* The phone stands on the store counter. */
.counter {
  height: 34px;
  background:
    linear-gradient(var(--counter-top) 0 7px, rgb(0 0 0 / 0.18) 7px 9px, transparent 9px),
    repeating-linear-gradient(90deg, transparent 0 140px, rgb(0 0 0 / 0.12) 140px 142px),
    var(--counter);
}

.stage {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  padding-top: 3.5rem;
  --w: clamp(224px, calc((100svh - 190px) * 0.47), 300px);
}

.phone {
  position: relative;
  container-type: inline-size;
  width: var(--w);
  aspect-ratio: 300 / 612;
  padding: 10px;
  background: var(--device);
  border-radius: 44px;
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.08),
    0 1px 0 rgb(255 255 255 / 0.1),
    22px 18px 38px rgb(var(--shadow) / 0.28);
}
.screen {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  border-radius: 35px;
  background: var(--surface);
  color: var(--ink);
  font-size: 4.3cqi;
  line-height: 1.3;
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 1.6em 0.2em;
  font-size: 0.85em;
  font-weight: 700;
}
.island { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--device); }
.status span:last-child { width: 2.2em; height: 0.95em; border-radius: 0.3em; border: 2px solid currentColor; opacity: 0.8; }

.app-bar { display: flex; align-items: baseline; justify-content: space-between; padding: 0.6em 1.1em 0.5em; }
.app-bar strong { font-size: 1.45em; letter-spacing: -0.02em; }
.app-bar span { font-size: 0.78em; color: var(--ink-soft); }

.viewfinder {
  position: relative;
  margin: 0 0.8em;
  min-height: 0;
  border-radius: 0.9em;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 40% 30%, #6d5232, #2b2016 70%);
}
/* A cardboard box with a barcode label, seen through the camera. */
.viewfinder::before {
  content: "";
  position: absolute;
  inset: 18% 18% 18% 18%;
  border-radius: 0.3em;
  background:
    repeating-linear-gradient(90deg, #1b1b1b 0 2px, transparent 2px 4px, #1b1b1b 4px 5px, transparent 5px 8px, #1b1b1b 8px 11px, transparent 11px 12px, #1b1b1b 12px 13px, transparent 13px 16px) 12% 22% / 76% 50% no-repeat,
    #f3efe4;
  transform: rotate(-4deg);
}
.viewfinder::after {
  content: "";
  position: absolute;
  inset: 10%;
  --c: #f4c430;
  background:
    linear-gradient(var(--c) 0 0) 0 0 / 16% 3px, linear-gradient(var(--c) 0 0) 0 0 / 3px 20%,
    linear-gradient(var(--c) 0 0) 100% 0 / 16% 3px, linear-gradient(var(--c) 0 0) 100% 0 / 3px 20%,
    linear-gradient(var(--c) 0 0) 0 100% / 16% 3px, linear-gradient(var(--c) 0 0) 0 100% / 3px 20%,
    linear-gradient(var(--c) 0 0) 100% 100% / 16% 3px, linear-gradient(var(--c) 0 0) 100% 100% / 3px 20%;
  background-repeat: no-repeat;
}
.laser {
  position: absolute;
  inset: 50% 14% auto;
  height: 2px;
  background: #ff5a3c;
  box-shadow: 0 0 10px 1px rgb(255 90 60 / 0.7);
  z-index: 1;
}

.sheet {
  position: relative;
  margin: -0.9em 0 0;
  padding: 0.9em 1.1em 0.6em;
  background: var(--surface);
  border-radius: 1.1em 1.1em 0 0;
  box-shadow: 0 -6px 14px rgb(0 0 0 / 0.12);
  z-index: 2;
}
.sheet .item { font-weight: 750; font-size: 1.12em; letter-spacing: -0.01em; }
.sheet .meta { font-size: 0.8em; color: var(--ink-soft); }
.stepper {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 0.45em;
  margin-top: 0.8em;
}
.stepper span {
  display: grid;
  place-items: center;
  height: 2.6em;
  border-radius: 0.6em;
  border: 2px solid var(--line);
  font-size: 1.25em;
  font-weight: 750;
}
.stepper .qty { border-color: var(--ink); font-size: 1.4em; }
.save {
  display: grid;
  place-items: center;
  margin-top: 0.6em;
  height: 2.6em;
  border-radius: 0.6em;
  background: var(--go);
  color: var(--go-ink);
  font-weight: 750;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 0.4em 0.4em 1.1em;
  border-top: 1px solid var(--line);
  font-size: 0.66em;
  font-weight: 650;
  text-align: center;
  color: var(--ink-soft);
}
.tabs .scan {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  margin-top: -1.8em;
  border-radius: 50%;
  background: var(--tag);
  color: var(--tag-ink);
  border: 2px solid var(--paper-ink);
  font-weight: 800;
}

.push {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: min(100%, calc(var(--w) + 36px));
  translate: -50% 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.7rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 14px 30px rgb(var(--shadow) / 0.25), 0 0 0 1px var(--line);
}
.push .app-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tag);
  color: var(--tag-ink);
}
.push .head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--ink-soft); }
.push .head b { color: var(--ink); }
.push .body { font-weight: 650; }
.push .body em { font-style: normal; color: var(--alert); }

.hang-tag {
  position: absolute;
  left: 0;
  top: 40%;
  z-index: 3;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  line-height: 1.15;
  max-width: 9.5em;
  transform-origin: 0 50%;
  rotate: -7deg;
  filter: drop-shadow(3px 4px 0 rgb(var(--shadow) / 0.22));
}
.hang-tag .tag { padding-block: 0.5em; }

@media (max-width: 420px) {
  .hang-tag { top: 44%; font-size: 0.95rem; left: -4px; }
}

/* ---------- Sections (shared) ---------- */

.section { padding-block: var(--section); }
.section-head { max-width: 40rem; }
.section-head p { margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

/* ---------- Problem: the notebook ---------- */

.problem-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; }
  .problem-grid .notebook { order: -1; }
}
.problem-copy p { margin-top: 1.1rem; max-width: 34rem; color: var(--ink-soft); }
.problem-copy p.turn { color: var(--ink); font-weight: 600; }

.notebook {
  position: relative;
  max-width: 30rem;
  margin: 0;
  padding: 2.2rem 1.5rem 2.2rem 3.4rem;
  background:
    linear-gradient(90deg, transparent 2.4rem, rgb(183 58 31 / 0.45) 2.4rem 2.55rem, transparent 2.55rem),
    var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius-paper);
  rotate: -1.5deg;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 14px 16px 0 -4px rgb(var(--shadow) / 0.14);
}
.notebook ol {
  margin: 0;
  padding: 0;
  list-style: none;
  background: repeating-linear-gradient(transparent 0 calc(2.3rem - 1px), rgb(40 90 140 / 0.25) calc(2.3rem - 1px) 2.3rem);
}
.notebook li {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  line-height: 2.3rem;
}
.notebook s { text-decoration-color: var(--paper-alert); text-decoration-thickness: 2px; }
.notebook .circled {
  padding: 0 0.3em;
  border: 2px solid var(--paper-alert);
  border-radius: 50% 45% 55% 40%;
}

/* ---------- How it works ---------- */

.how { background: var(--bg-deep); border-block: 1px solid var(--line); }
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding-top: 1.1rem;
  border-top: 3px solid var(--ink);
}
.steps h3 { font-size: var(--step-2); }
.steps p { margin-top: 0.5rem; max-width: 30ch; color: var(--ink-soft); }
@media (min-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr 1.2fr; gap: 2.5rem; }
  .steps li:last-child { border-top-color: var(--alert); }
}

.flows {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .flows { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
}
.flow {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding: clamp(1.4rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
}
.flow p { color: inherit; opacity: 0.85; max-width: 46ch; }
.flow h3 { font-size: var(--step-2); max-width: 18ch; }
.flow-delivery {
  background: var(--surface);
  border: 1px solid var(--line);
}
.flow-offline {
  background: #1d2621;
  color: #efe7d5;
}
@media (prefers-color-scheme: dark) {
  .flow-offline { background: #0c110e; border: 1px solid var(--line); }
}

.slip {
  margin: 0;
  padding: 1rem 1.1rem 0.8rem;
  list-style: none;
  background: var(--tag);
  color: var(--tag-ink);
  border-radius: var(--radius-paper);
  max-width: 26rem;
  rotate: 0.8deg;
  box-shadow: 8px 10px 0 -3px rgb(var(--shadow) / 0.16);
}
.slip li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.3rem;
  font-weight: 560;
}
.slip li + li { border-top: 1px dashed rgb(27 36 32 / 0.3); }
.slip b { font-variant-numeric: tabular-nums; font-weight: 800; }
.slip .hand { font-size: 1.15rem; }

.offline-ui { display: grid; gap: 0.8rem; max-width: 24rem; }
.banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: #33402f;
  color: #f4ecd8;
  font-size: var(--step--1);
  font-weight: 650;
}
.banner span:last-child { color: var(--tag); }
.dialog {
  padding: 1rem;
  border-radius: var(--radius);
  background: #efe7d5;
  color: #1b2420;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.35);
}
.dialog p { opacity: 1; font-weight: 600; line-height: 1.4; }
.dialog .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.8rem; }
.dialog .choices span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 6px;
  border: 2px solid #1b2420;
  font-weight: 700;
  font-size: var(--step--1);
}
.dialog .choices span:last-child { background: #1b2420; color: #efe7d5; }

/* ---------- Activity log: the receipt ---------- */

.log { text-align: center; }
.log .section-head { margin-inline: auto; }
.receipt {
  --zig: 10px;
  width: min(100%, 27rem);
  margin: 3rem auto 0;
  padding: 1.8rem 1.4rem 2rem;
  background: var(--paper);
  color: var(--paper-ink);
  text-align: left;
  font-size: 0.95rem;
  rotate: 1deg;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zig) * 2) var(--zig) repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - var(--zig) * 2 + 2px) no-repeat;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zig) * 2) var(--zig) repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - var(--zig) * 2 + 2px) no-repeat;
  filter: drop-shadow(0 12px 18px rgb(var(--shadow) / 0.18));
}
.receipt header {
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
  border-bottom: 2px dashed rgb(27 36 32 / 0.35);
  text-align: center;
}
.receipt header strong { display: block; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.receipt header span { font-size: 0.82rem; color: var(--paper-soft); }
.receipt ol { margin: 0; padding: 0; list-style: none; }
.receipt li {
  display: grid;
  grid-template-columns: 4.4rem 1fr auto;
  gap: 0.1rem 0.75rem;
  padding-block: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.receipt li + li { border-top: 1px dotted rgb(27 36 32 / 0.3); }
.receipt time { color: var(--paper-soft); font-size: 0.85rem; padding-top: 0.1rem; }
.receipt .what { font-weight: 650; }
.receipt .who { grid-column: 2 / -1; font-size: 0.82rem; color: var(--paper-soft); }
.receipt .delta { font-weight: 800; }
.receipt .up { color: var(--paper-go); }
.receipt .down { color: var(--paper-alert); }
.receipt footer {
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 2px dashed rgb(27 36 32 / 0.35);
  font-size: 0.85rem;
  color: var(--paper-soft);
  text-align: center;
}
.log-note { margin-top: 2.5rem; color: var(--ink-soft); }

/* ---------- Team: the pegboard ---------- */

.team { background: var(--bg-deep); border-block: 1px solid var(--line); }
.pegboard {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin: 3.5rem 0 0;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
  list-style: none;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgb(27 36 32 / 0.28) 0 3px, transparent 3.5px) 0 0 / 28px 28px,
    #c9a978;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), inset 0 -10px 30px rgb(0 0 0 / 0.08);
}
@media (prefers-color-scheme: dark) {
  .pegboard {
    background:
      radial-gradient(circle at 50% 50%, rgb(0 0 0 / 0.55) 0 3px, transparent 3.5px) 0 0 / 28px 28px,
      #3a2f20;
  }
}
@media (min-width: 640px) { .pegboard { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pegboard { grid-template-columns: repeat(4, 1fr); } }

.key {
  position: relative;
  padding: 1.6rem 1.2rem 1.3rem;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius-paper) var(--radius-paper) 14px 14px;
  transform-origin: 50% -14px;
  box-shadow: 6px 8px 0 -2px rgb(0 0 0 / 0.16);
  transition: rotate 500ms var(--ease-out);
}
.key::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 12px;
  height: 12px;
  translate: -50% 0;
  border-radius: 50%;
  background: #c9a978;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.35);
}
@media (prefers-color-scheme: dark) { .key::before { background: #3a2f20; } }
.key:nth-child(1) { background: var(--tag); rotate: -2deg; }
.key:nth-child(2) { rotate: 1.5deg; }
.key:nth-child(3) { rotate: -1deg; }
.key:nth-child(4) { background: #e9dcc4; rotate: 2.5deg; }
.key:hover { rotate: 0deg; }
.key h3 { font-family: var(--font-hand); font-size: 1.7rem; line-height: 1.1; letter-spacing: 0; }
.key p { margin-top: 0.5rem; font-size: 0.97rem; line-height: 1.5; }
.key .limit { margin-top: 0.75rem; font-size: 0.82rem; font-weight: 700; color: var(--paper-soft); }

.removed {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-top: 2rem;
  max-width: 44rem;
}
.removed s { font-weight: 700; text-decoration-color: var(--alert); text-decoration-thickness: 2px; }
.removed span { color: var(--ink-soft); }

/* ---------- Pricing: labels on a shelf edge ---------- */

.pricing-head { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .pricing-head { grid-template-columns: 1fr auto; align-items: end; }
}

.currency {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
}
.currency legend {
  float: left;
  margin-right: 0.4rem;
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out);
}
.seg input:checked + label { background: var(--tag); color: var(--tag-ink); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.pricing .php { display: none; }
.pricing:has(#cur-php:checked) .php { display: inline; }
.pricing:has(#cur-php:checked) .usd { display: none; }

.shelf {
  display: grid;
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 960px) {
  .shelf {
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: end;
    gap: 1.25rem;
    padding-bottom: 0;
    background: linear-gradient(transparent calc(100% - 22px), var(--counter-top) calc(100% - 22px) calc(100% - 16px), var(--counter) calc(100% - 16px));
    padding-inline: 1.25rem;
  }
  .shelf > li { margin-bottom: 22px; }
}

.plan {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem 1.4rem 1.25rem;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius-paper);
  border-top: 8px solid var(--paper-ink);
  box-shadow: 0 10px 22px rgb(var(--shadow) / 0.16);
}
.plan h3 { font-size: var(--step-2); }
.plan .for { font-size: 0.95rem; color: var(--paper-soft); margin-top: 0.2rem; }
.plan .price { font-size: 1rem; font-weight: 600; line-height: 1.1; }
.plan .price b { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .alt { font-size: 0.95rem; color: var(--paper-soft); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.plan li { padding-left: 1.4rem; position: relative; line-height: 1.45; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42em;
  width: 0.5rem;
  height: 0.8rem;
  border: solid var(--paper-go);
  border-width: 0 2.5px 2.5px 0;
  rotate: 40deg;
}
.plan .limits { font-weight: 700; padding-block: 0.8rem; border-block: 1px dashed rgb(27 36 32 / 0.3); }
.plan .limits li::before { display: none; }
.plan .limits li { padding-left: 0; }
.barcode {
  height: 26px;
  margin-top: 0.4rem;
  background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 4px, var(--paper-ink) 4px 5px, transparent 5px 9px, var(--paper-ink) 9px 12px, transparent 12px 13px);
  width: 46%;
  opacity: 0.85;
}
.plan-pro { background: var(--tag); border-top-color: var(--paper-ink); }
.plan-pro .for, .plan-pro .alt { color: #3e3a22; }
.plan-pro { padding-block: 2rem 1.5rem; }
@media (min-width: 960px) {
  .plan-pro { padding-block: 3rem 1.75rem; box-shadow: 0 18px 34px rgb(var(--shadow) / 0.24); }
  .plan-pro .price b { font-size: clamp(3rem, 2.2rem + 2.4vw, 4rem); }
}
.trial-tag {
  position: absolute;
  top: -1.1rem;
  right: 1rem;
  font-size: 1.1rem;
  rotate: 6deg;
  filter: drop-shadow(2px 3px 0 rgb(0 0 0 / 0.2));
}
.trial-tag .tag { background: var(--paper); }

.pricing-notes {
  display: grid;
  gap: 0.6rem;
  margin-top: 2.5rem;
  max-width: 50rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 100px; }
}
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding-block: 1rem;
  font-size: var(--step-1);
  font-weight: 680;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-weight: 700;
  transition: rotate var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq-list details[open] summary::after { rotate: 45deg; background: var(--tag); color: var(--tag-ink); border-color: var(--paper-ink); }
.faq-list summary:hover::after { background: var(--line); }
.faq-list .answer { padding: 0 0 1.4rem; max-width: 60ch; color: var(--ink-soft); }
.faq-list .answer p + p { margin-top: 0.75rem; }

/* ---------- Closing sign ---------- */

.sign-wrap { display: grid; justify-items: center; text-align: center; }
.sign {
  position: relative;
  width: min(100%, 36rem);
  margin-top: 3rem;
  padding: clamp(2rem, 1.4rem + 3vw, 3.2rem) clamp(1.25rem, 4vw, 3rem);
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgb(90 55 15 / 0.07) 6px 7px),
    #c99d62;
  color: #1b2420;
  border-radius: var(--radius-paper);
  rotate: -1deg;
  box-shadow: 0 18px 30px rgb(var(--shadow) / 0.25), inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: -3rem;
  width: 2px;
  height: 3rem;
  background: var(--ink-soft);
}
.sign::before { left: 18%; rotate: 12deg; transform-origin: bottom; }
.sign::after { right: 18%; rotate: -12deg; transform-origin: bottom; }
.sign .hand { display: block; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.05; }
.sign h2 { margin-top: 0.75rem; font-size: var(--step-2); }
.sign p { margin: 1rem auto 0; max-width: 34ch; }
.sign .btn { margin-top: 1.75rem; }
.sign .btn-tag { border-color: #1b2420; box-shadow: 0 3px 0 #1b2420; }
.sign small { display: block; margin-top: 1rem; font-size: var(--step--1); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section);
  padding-block: 2.5rem 3rem;
  background: var(--counter);
  color: #efe7d5;
  box-shadow: inset 0 7px 0 var(--counter-top);
}
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.5rem; font-weight: 600; }
.site-footer nav li:first-child a { padding-left: 0; }
.site-footer small { font-size: var(--step--1); opacity: 0.85; }
@media (min-width: 820px) {
  .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; }
  .site-footer nav ul { justify-content: center; }
}

/* ---------- Legal + support pages ---------- */

.doc-page { padding-top: clamp(2rem, 1rem + 3vw, 4rem); }
.draft-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1rem;
  border: 2px dashed var(--alert);
  border-radius: var(--radius);
  background: var(--surface);
}
.draft-note strong { color: var(--alert); }
.draft-note span { color: var(--ink-soft); font-size: var(--step--1); }

.doc-head { max-width: 46rem; }
.doc-head h1 { font-size: var(--step-3); }
.doc-head p { margin-top: 0.9rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.doc-head .meta { font-size: var(--step--1); font-weight: 600; }

.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 1024px) {
  .doc-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow: auto; }
}
.toc {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--tag);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc h2 { font-size: var(--step--1); letter-spacing: 0.01em; margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: var(--step--1); }
.toc a { display: inline-block; padding-block: 0.3rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { max-width: 70ch; }
.support-prose { margin-top: 3.5rem; }
.support-prose section + section { margin-top: 3rem; }
.prose section + section { margin-top: 2.75rem; }
.prose h2 { font-size: var(--step-2); padding-top: 0.25rem; }
.prose h3 { margin-top: 1.5rem; font-size: var(--step-1); }
.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose .table-wrap { margin-top: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }
.prose dt { font-weight: 700; margin-top: 1rem; }
.prose dd { margin: 0.25rem 0 0; color: var(--ink-soft); }
.prose code { font-size: 0.92em; }
.placeholder {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--tag);
  color: var(--tag-ink);
  font-weight: 700;
  white-space: nowrap;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); }
.prose tbody tr + tr td, .prose tbody tr + tr th { border-top: 1px solid var(--line); }

.callout {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--tag);
}
.callout.warn { border-left-color: var(--alert); }

.path {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-weight: 700;
}
.path kbd {
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.95em;
}

.contact-card {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--tag);
  color: var(--tag-ink);
  max-width: 44rem;
}
.contact-card a.email { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-card .btn { justify-self: start; border-color: var(--paper-ink); color: var(--paper-ink); }

.link-list { display: grid; gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.link-list a:hover { background: var(--surface); transform: translateX(3px); }
.link-list a span { font-weight: 500; color: var(--ink-soft); font-size: var(--step--1); }

.not-found { min-height: 60dvh; display: grid; align-content: center; gap: 1.25rem; padding-block: var(--section); }
.not-found .tag { font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); rotate: -3deg; justify-self: start; }
