@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/SpaceGrotesk-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/assets/fonts/SpaceMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/assets/fonts/SpaceMono-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e0e0e;
  --bg-2: #171614;
  --line: rgba(246, 243, 236, 0.12);
  --text: #f6f3ec;
  --muted: rgba(246, 243, 236, 0.62);
  --paper: #f6f3ec;
  --ink: #141414;
  --accent: #ff4a1c;
  --accent-ink: #1a0700;
  --ok: #3ddc84;
  --radius: 18px;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(120% 70% at 50% -10%, #2a2420 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--display);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(42px, 11vw, 92px); }
h2 { font-size: clamp(26px, 5.4vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); font-weight: 500; }
.hl { color: var(--accent); }
.eyebrow { font: 400 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin-top: 18px; }

/* film grain over everything, very subtle */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  background: linear-gradient(var(--bg) 40%, transparent);
  max-width: 720px; margin: 0 auto;
}
.topbar-wide { max-width: 1180px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: 0.32em; text-decoration: none; }
.logo-mark {
  width: 22px; height: 26px; background: var(--paper); position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 87.5% 100%, 75% 86%, 62.5% 100%, 50% 86%, 37.5% 100%, 25% 86%, 12.5% 100%, 0 86%);
}
.logo-mark::after { content: ''; position: absolute; left: 4px; right: 4px; top: 6px; height: 3px; background: var(--accent); box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink); }
.chip { font: 700 12px var(--mono); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.toplinks { display: flex; gap: 22px; font: 400 13px var(--mono); }
.toplinks a { text-decoration: none; color: var(--muted); transition: color .2s; }
.toplinks a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--text);
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 700 15px var(--display); letter-spacing: 0.01em;
  transition: transform .25s var(--ease-spring), background .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--paper); color: var(--ink); box-shadow: 0 8px 30px -10px rgba(246, 243, 236, 0.45); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 34px -10px rgba(255, 74, 28, 0.7); }
.btn-ghost { background: rgba(246, 243, 236, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }

/* ---------- reveal on load/scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { animation: none; }
.js .reveal.in { animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms); }

/* ================= DOWNLOAD PAGE ================= */
.dl { max-width: 720px; margin: 0 auto; padding: 8px 20px 40px; }
.dl-hero { padding: 18px 0 26px; }
.dl-hero .lead { font-size: 15px; }

.seg {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  background: rgba(246, 243, 236, 0.06); box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 999px; padding: 5px; margin-bottom: 26px;
}
.seg-btn {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--muted);
  font: 700 14px var(--display); padding: 12px 6px; border-radius: 999px; cursor: pointer; transition: color .3s;
  -webkit-tap-highlight-color: transparent;
}
.seg-btn[aria-selected='true'] { color: var(--ink); }
.seg-pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / var(--n)); border-radius: 999px; background: var(--paper);
  transform: translateX(calc(var(--active, 0) * 100%)); transition: transform .45s var(--ease-spring);
}

.stage { position: relative; }
.panel { margin: 0; display: flex; flex-direction: column; align-items: center; }
.panel[hidden] { display: none; }
.printer-slot {
  width: min(92%, 420px); height: 16px; border-radius: 10px; background: #050505;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08); position: relative; z-index: 2;
}
.paper-wrap { width: min(86%, 390px); margin-top: -8px; overflow: hidden; padding-bottom: 30px; }
.paper {
  width: 100%; background: var(--paper); transform-origin: top center;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
  animation: print 1.9s var(--ease-out) both;
}
.paper-receipt {
  mix-blend-mode: normal; image-rendering: auto;
  -webkit-mask: linear-gradient(#000, #000) top/100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/16px 9px repeat-x;
          mask: linear-gradient(#000, #000) top/100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/16px 9px repeat-x;
}
.paper-story, .paper-gif { border-radius: 14px; }
.panel-story .paper-wrap { width: min(70%, 320px); }
@keyframes print {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(-4%); }
  72% { transform: translateY(-6%); }
  100% { transform: translateY(0); }
}
.panel:not(.first-run) .paper { animation-duration: 0.9s; }

.actions {
  position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; gap: 8px; justify-content: center; width: min(100%, 440px); margin-top: 6px; padding: 8px;
  border-radius: 999px; background: rgba(14, 14, 14, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.actions .btn { flex: 1 1 0; min-height: 48px; padding: 0 14px; }

.photos { margin-top: 46px; }
.photos h2 { font-size: 22px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.tile:active img { transform: scale(1.04); }
.tile-tag { position: absolute; left: 10px; bottom: 10px; font: 700 12px var(--mono); background: rgba(14, 14, 14, 0.7); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 999px; }

.tip { margin-top: 40px; display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: rgba(246, 243, 236, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.tip-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; font-size: 18px; }
.tip p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.cta { margin-top: 40px; padding: 30px 24px; border-radius: 24px; text-align: center; background: var(--paper); color: var(--ink); }
.cta .eyebrow { color: rgba(20, 20, 20, 0.6); }
.cta h2 { margin-bottom: 20px; }

.foot { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); font: 400 12px var(--mono); color: var(--muted); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 200%); opacity: 0; visibility: hidden; padding: 14px 20px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 700 14px var(--display); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transition: transform .5s var(--ease-spring), opacity .25s, visibility .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- waiting / 404 ---------- */
.dl-wait { min-height: 72dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.dl-wait h1 { font-size: clamp(36px, 9vw, 60px); margin-top: 26px; }
.dl-wait .lead { margin: 14px auto 26px; }
.mini-printer { position: relative; width: 150px; }
.mp-body { position: relative; z-index: 2; height: 64px; border-radius: 16px; background: linear-gradient(#2b2926, #1a1918); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.5); }
.mp-body::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 12px; height: 6px; border-radius: 4px; background: #050505; }
.mp-led { position: absolute; right: 16px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1s infinite; }
.mp-paper { position: relative; z-index: 1; margin: -16px auto 0; width: 100px; padding: 24px 12px 12px; background: var(--paper); display: grid; gap: 7px; animation: feed 2.4s var(--ease-out) infinite; transform-origin: top; }
.mp-paper i { display: block; height: 6px; background: var(--ink); opacity: 0.85; border-radius: 2px; }
.mp-paper i:nth-child(2) { width: 70%; } .mp-paper i:nth-child(3) { width: 85%; } .mp-paper i:nth-child(4) { width: 50%; }
@keyframes feed { 0% { clip-path: inset(0 0 100% 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: 0.3; } }
.dots { display: flex; gap: 8px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: bounce 1s infinite var(--ease-out); }
.dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-10px); opacity: 1; } }
.torn { font: 700 96px var(--display); letter-spacing: 0.1em; color: var(--paper); padding: 10px 26px 20px; background: rgba(246, 243, 236, 0.06); clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 80% 88%, 70% 100%, 60% 88%, 50% 100%, 40% 88%, 30% 100%, 20% 88%, 10% 100%, 0 88%); }

/* ================= LANDING ================= */
.land { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; gap: 40px; align-items: center; padding: 30px 0 60px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding: 70px 0 90px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { display: flex; justify-content: center; }
.machine { width: 300px; }
.machine-top { position: relative; z-index: 2; height: 92px; border-radius: 26px; background: linear-gradient(160deg, #34312d, #181716); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -10px rgba(0, 0, 0, 0.7); }
.machine-led { position: absolute; top: 20px; right: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: blink 1.4s infinite; }
.machine-slot { position: absolute; left: 30px; right: 30px; bottom: 18px; height: 10px; border-radius: 6px; background: #050505; }
.print-loop { margin: -26px auto 0; width: 236px; overflow: hidden; height: 470px; position: relative; z-index: 1;
  -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
.rcpt { background: var(--paper); color: var(--ink); padding: 40px 18px 22px; font: 400 10px var(--mono); animation: printloop 6s var(--ease-out) infinite; }
@keyframes printloop { 0% { transform: translateY(-100%); } 55%, 88% { transform: translateY(0); } 100% { transform: translateY(0); opacity: 0; } }
.rcpt-head { text-align: center; }
.rcpt-head b { display: block; font: 700 28px var(--display); letter-spacing: 0.3em; margin-left: 0.3em; }
.rcpt-head small { letter-spacing: 0.2em; font-size: 9px; }
.rcpt-rule { border-top: 2px dashed var(--ink); margin: 12px 0; }
.rcpt-row { display: flex; justify-content: space-between; margin: 3px 0; font-weight: 700; }
.rcpt-qr { width: 54px; height: 54px; margin: 14px auto 0;
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0/12px 12px; outline: 4px solid var(--paper); box-shadow: 0 0 0 7px var(--ink); }
/* CSS halftone "photos" */
.ht { height: 120px; margin-bottom: 8px; position: relative; background: #ddd8cc; overflow: hidden; }
.ht::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle, var(--ink) 1.1px, transparent 1.6px) 0 0/4px 4px;
  -webkit-mask: var(--shape); mask: var(--shape);
}
.face-a { --shape: radial-gradient(closest-side at 38% 44%, #000 55%, transparent 100%), radial-gradient(closest-side at 70% 60%, #000 40%, transparent 100%); }
.face-b { --shape: radial-gradient(closest-side at 55% 50%, #000 60%, transparent 100%), linear-gradient(transparent 70%, #000); }
.face-c { --shape: radial-gradient(closest-side at 30% 55%, #000 45%, transparent 100%), radial-gradient(closest-side at 64% 45%, #000 50%, transparent 100%); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; margin: 10px -20px 70px; }
.ticker-track { display: flex; width: max-content; animation: marquee 30s linear infinite; font: 700 15px var(--mono); letter-spacing: 0.1em; }
.ticker-track span { padding-right: 0; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.steps h2 { max-width: 16ch; margin-bottom: 40px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border-radius: var(--radius); background: rgba(246, 243, 236, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.step-n { display: inline-block; font: 700 13px var(--mono); color: var(--accent); margin-bottom: 30px; }
.step p { color: var(--muted); margin-top: 10px; font-size: 15px; }

.partners { margin: 90px 0 0; }
.partners h2 { max-width: 18ch; margin-bottom: 34px; }
.cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.card p { margin-top: 12px; color: rgba(20, 20, 20, 0.72); font-size: 15px; }
.card:nth-child(2) { background: var(--accent); color: #fff; } .card:nth-child(2) p { color: rgba(255, 255, 255, 0.85); }

/* ================= REPORT ================= */
.report { max-width: 860px; margin: 0 auto; padding: 10px 20px 40px; display: grid; gap: 34px; }
.report h1 { font-size: clamp(34px, 7vw, 56px); }
.report h2 { font-size: 22px; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { padding: 20px; border-radius: var(--radius); background: rgba(246, 243, 236, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { display: block; font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.kpi b { display: block; font: 700 28px var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi-accent { background: var(--accent); box-shadow: none; } .kpi-accent span { color: rgba(255, 255, 255, 0.8); }
.tbl { width: 100%; border-collapse: collapse; font: 400 14px var(--mono); }
.tbl th, .tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

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

/* ================= FOOTER LINKS ================= */
.foot { flex-direction: column; gap: 14px; border-top: 1px solid var(--line); margin-top: 30px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--text); text-decoration: none; opacity: .8; transition: opacity .2s, color .2s; }
.foot-links a:hover { opacity: 1; color: var(--accent); }
.foot-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-meta a { color: var(--muted); }

/* ================= DOC PAGES ================= */
.doc { max-width: 1080px; margin: 0 auto; padding: 10px 20px 20px; }
.doc-head { padding: 30px 0 34px; max-width: 760px; }
.doc-head h1 { font-size: clamp(38px, 8vw, 72px); }
.doc-head .lead a, .doc-body a:not(.btn):not(.doc-chip) { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.doc-updated { margin-top: 18px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: .06em; }
.doc-grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 900px) { .doc-grid { grid-template-columns: 240px 1fr; } }
.doc-grid:not(:has(.doc-toc)) { grid-template-columns: 1fr; }
.doc-toc { position: sticky; top: 84px; padding: 20px; border-radius: var(--radius); background: rgba(246, 243, 236, .04); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 899px) { .doc-toc { position: static; } }
.doc-toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.doc-toc a { color: var(--muted); text-decoration: none; transition: color .2s; }
.doc-toc a:hover { color: var(--text); }
.doc-body { display: grid; gap: 14px; min-width: 0; }
.doc-sec { padding: 26px; border-radius: 22px; background: rgba(246, 243, 236, .035); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.doc-sec h2 { font-size: 22px; display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; }
.doc-n { font: 700 13px var(--mono); color: var(--accent); }
.doc-sec p, .doc-sec li { color: rgba(246, 243, 236, .78); font-size: 16px; }
.doc-sec p + p { margin-top: 10px; }
.doc-sec ul, .doc-sec ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 9px; }
.doc-sec b { color: var(--text); }
.doc-sec .btn { margin-top: 18px; }
.doc-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.doc-card { padding: 18px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.doc-card b { display: block; color: var(--ink); font-size: 16px; }
.doc-card p { color: rgba(20, 20, 20, .7) !important; font-size: 14px !important; margin-top: 6px; }
.doc-steps li::marker { color: var(--accent); font-weight: 700; }
.doc-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.doc-chip { display: inline-flex; padding: 10px 16px; border-radius: 999px; font: 700 14px var(--display); text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); background: rgba(246, 243, 236, .05); transition: background .2s, transform .25s var(--ease-spring); }
.doc-chip:hover { background: rgba(246, 243, 236, .12); transform: translateY(-2px); }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.doc-sec:has(.faq) { padding: 0; background: none; box-shadow: none; }
.faq-item { border-radius: 18px; background: rgba(246, 243, 236, .04); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: background .3s; }
.faq-item[open] { background: rgba(246, 243, 236, .07); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 700 18px var(--display); -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease-spring), background .3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text); transform: translate(-50%, -50%); }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--accent); box-shadow: none; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: rgba(246, 243, 236, .75); font-size: 16px; }
.faq-item[open] .faq-a { animation: rise .5s var(--ease-out); }

/* Contact */
.doc-sec:has(.contact-grid) { padding: 0; background: none; box-shadow: none; }
.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 22px; text-decoration: none; color: var(--text); background: rgba(246, 243, 236, .05); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease-spring), background .25s; }
.contact-card:hover { transform: translateY(-3px); background: rgba(246, 243, 236, .09); }
.contact-card:first-child { background: var(--accent); box-shadow: none; }
.contact-card:first-child .eyebrow, .contact-card:first-child small { color: rgba(255, 255, 255, .8); }
.contact-card .eyebrow { margin: 14px 0 0; }
.contact-card b { font-size: 20px; word-break: break-word; }
.contact-card small { color: var(--muted); font-size: 13px; }
.contact-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(246, 243, 236, .1); }
.contact-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-address { display: flex; gap: 18px; align-items: flex-start; }
.contact-address .eyebrow { margin-bottom: 6px; }
.contact-addr { font: 500 18px/1.5 var(--display); color: var(--text) !important; margin-bottom: 14px; }
.contact-hours p:nth-child(2) { font: 700 20px var(--display); color: var(--text); }
.contact-hours .muted { margin-top: 6px; font-size: 14px; }

/* ================= PRICING ================= */
.pricing { margin: 90px 0 0; }
.pricing h2 { max-width: 18ch; }
.pricing .lead { margin-bottom: 30px; }
.price-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price { position: relative; padding: 26px; border-radius: var(--radius); background: rgba(246, 243, 236, .04); box-shadow: inset 0 0 0 1px var(--line); }
.price-hot { background: var(--paper); color: var(--ink); box-shadow: none; }
.price-badge { position: absolute; top: 20px; right: 20px; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 999px; }
.price-amount { font: 700 40px var(--display); letter-spacing: -0.02em; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.price ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 15px; color: var(--muted); }
.price-hot ul { color: rgba(20, 20, 20, .7); }
.price-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.price-note a { color: var(--text); }
.price-for { font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.price-per { font: 400 14px var(--mono); margin: -8px 0 16px; color: var(--muted); }
.price-hot .price-per { color: rgba(20, 20, 20, .65); }
.price-per b { color: var(--accent); }
.price ul b { color: inherit; }
.price-note-sm { margin-top: 14px; font-size: 14px; font-style: italic; opacity: .75; }

/* ================= CHECKOUT ================= */
.co { max-width: 1080px; margin: 0 auto; padding: 10px 20px 30px; }
.co-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 26px; }
.co-steps li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; font: 700 13px var(--display); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.co-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); background: rgba(246, 243, 236, .08); }
.co-steps .on { color: var(--ink); background: var(--paper); box-shadow: none; }
.co-steps .on span { background: var(--accent); color: #fff; }
.co-steps .done { color: var(--text); }
.co-steps .done span { background: var(--ok); color: #062; }
.co-head { margin-bottom: 26px; max-width: 720px; }
.co-head h1 { font-size: clamp(36px, 7vw, 64px); }
.co-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .co-grid { grid-template-columns: 1fr 360px; } }
.co-main { display: grid; gap: 14px; min-width: 0; }
.co-box { margin: 0; border: 0; padding: 22px; border-radius: 22px; background: rgba(246, 243, 236, .04); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.co-box legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); margin-bottom: 16px; padding: 0; }
.co-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 13px var(--mono); }
.co-pkgs { clear: both; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.co-pkg { position: relative; cursor: pointer; }
.co-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.co-pkg-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, box-shadow .25s, transform .3s var(--ease-spring); }
.co-pkg:hover .co-pkg-body { transform: translateY(-2px); }
.co-pkg input:checked + .co-pkg-body { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.co-pkg input:focus-visible + .co-pkg-body { outline: 3px solid var(--accent); outline-offset: 3px; }
.co-pkg-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co-pkg-top b { font-size: 22px; }
.co-pkg-top em { font: 700 10px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 999px; }
.co-pkg-price { font: 700 28px var(--display); margin: 4px 0; }
.co-pkg-meta { font-size: 13px; opacity: .72; }
.co-fields { clear: both; display: grid; gap: 14px; }
.co-f { display: grid; gap: 6px; }
.co-f > span { font: 700 14px var(--display); }
.co-f i { font-style: normal; color: var(--muted); font-weight: 500; }
.co-f input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(246, 243, 236, .05); color: var(--text); font: 500 16px var(--display); outline: none; transition: border-color .2s, box-shadow .2s; }
.co-f input:focus { border-color: var(--paper); box-shadow: 0 0 0 4px rgba(246, 243, 236, .1); }
.co-f small { color: var(--muted); font-size: 13px; }
.co-f.invalid input, .co-agree.invalid { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 74, 28, .2); border-radius: 14px; }
.co-method { clear: both; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; box-shadow: 0 0 0 2px var(--accent); background: rgba(255, 74, 28, .06); cursor: pointer; }
.co-method input { accent-color: var(--accent); width: 20px; height: 20px; }
.co-method span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.co-method small { color: var(--muted); font-size: 13px; }
.co-qris { font: 700 15px var(--display); letter-spacing: .08em; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 10px; }
.co-side { position: sticky; top: 84px; }
.co-summary { padding: 22px; border-radius: 22px; background: var(--paper); color: var(--ink); }
.co-summary .eyebrow { color: rgba(20, 20, 20, .6); }
.co-line, .co-total { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(20, 20, 20, .2); font-size: 15px; }
.co-total { border: 0; font-size: 18px; padding-top: 14px; }
.co-total b { font: 700 28px var(--display); }
.co-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0 4px; padding: 6px; }
.co-agree input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.co-agree a { color: var(--ink); }
.co-err { color: #c4250b; font-size: 14px; min-height: 20px; font-weight: 700; }
.co-pay { width: 100%; margin-top: 4px; }
.co-pay[disabled] { opacity: .6; pointer-events: none; }
.co-notes { margin: 16px 0 0; padding-left: 18px; font-size: 13px; color: rgba(20, 20, 20, .7); display: grid; gap: 4px; }
.co-order, .co-done { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .co-order, .co-done { grid-template-columns: 420px 1fr; } }
.co-invoice { padding: 28px; border-radius: 28px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.co-inv-head { display: flex; justify-content: center; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.co-inv-head b { font: 700 28px var(--display); letter-spacing: .08em; }
.co-inv-head span { font: 700 14px var(--mono); letter-spacing: .2em; opacity: .7; }
.co-qr { position: relative; width: min(100%, 320px); margin: 0 auto; aspect-ratio: 1; overflow: hidden; }
.co-qr svg { width: 100%; height: 100%; display: block; }
.co-qr.small { width: 120px; flex: none; }
.co-scan { position: absolute; left: -4%; right: -4%; height: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 18px 2px rgba(255, 74, 28, .6); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 2%; } 50% { top: 96%; } }
.co-amount { font: 700 40px var(--display); margin-top: 18px; }
.co-timer { font: 400 14px var(--mono); color: rgba(20, 20, 20, .65); margin-bottom: 10px; }
.co-invoice .btn-ghost { background: rgba(20, 20, 20, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .15); margin-top: 8px; }
.co-howto h1 { font-size: clamp(36px, 6vw, 60px); }
.co-howto .lead b { color: var(--text); }
.co-list { margin: 20px 0; padding-left: 22px; display: grid; gap: 10px; color: rgba(246, 243, 236, .8); }
.co-list li::marker { color: var(--accent); font-weight: 700; }
.co-status { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.co-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
.co-small { font-size: 13px; margin-top: 12px; }
.co-ticket { position: relative; border-radius: 26px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.co-ticket-top { padding: 26px; display: grid; gap: 6px; text-align: center; border-bottom: 3px dashed rgba(20, 20, 20, .25); }
.co-ticket-top .eyebrow { color: rgba(20, 20, 20, .6); margin: 0; }
.co-code { font: 700 clamp(38px, 9vw, 54px) var(--mono); letter-spacing: .08em; }
.co-valid { font: 400 13px var(--mono); opacity: .7; }
.co-ticket-bottom { display: flex; gap: 18px; align-items: center; padding: 22px 26px; }
.co-ticket-bottom ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 6px; }
.co-ticket.used .co-code { text-decoration: line-through; opacity: .5; }
.co-stamp { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font: 700 46px var(--display); color: var(--accent); border: 6px solid var(--accent); padding: 4px 18px; border-radius: 12px; opacity: .85; }
@media print {
  .topbar, .foot, .co-steps, .co-howto .hero-cta, .grain { display: none !important; }
  body { background: #fff !important; color: #000; }
  .co-ticket { box-shadow: none; border: 2px solid #000; }
}
.toplink-cta { color: #fff !important; background: var(--accent); padding: 8px 14px; border-radius: 999px; }
