/* Receipts website. Direction A "Night Shift". Tokens match design/tokens/receipts-tokens.css. */
@font-face { font-family: "Archivo Black"; src: url("/assets/fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --hl: #FFD23F;
  --ink: #111014;
  --ink-2: #1B1920;
  --ink-3: #26232B;
  --thermal: #F6F1E6;
  --graphite: #5B5862;
  --muted: #9A9488;
  --soft: #C2BCB1;
  --display: "Archivo Black", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --tooth: 9px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--thermal); font-family: var(--mono); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hl); text-underline-offset: 3px; }
a:hover { color: #FFE27E; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hl); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 800; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* Receipt edges: a torn zigzag made with a CSS mask, no images */
.slip { position: relative; background: var(--thermal); color: var(--ink); padding: 28px 28px calc(28px + var(--tooth));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%; }
.zig { height: 14px; background: inherit; }
.zig-top { -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%;
                   mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%; }
.zig-bottom { -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%;
                      mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 28px 100%; }

.stamp { position: absolute; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px var(--thermal), inset 0 0 0 5px var(--ink);
  color: var(--ink); font: 800 15px/1 var(--mono); letter-spacing: .12em; transform: rotate(-14deg); right: 18px; top: 18px; }
.stamp-sm { width: 70px; height: 70px; font-size: 11px; right: 14px; top: 14px; border-width: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 800 15px/1 var(--mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--hl); color: var(--ink); }
.btn-primary:hover { color: var(--ink); background: #FFDC63; transform: translateY(-1px); }
.btn-soon { cursor: default; }
.btn-soon:hover { transform: none; background: var(--hl); }
.btn-ghost { color: var(--thermal); box-shadow: inset 0 0 0 2px #4A4652; }
.btn-ghost:hover { color: var(--thermal); box-shadow: inset 0 0 0 2px var(--thermal); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid #221F27; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--thermal); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-word { font: 400 24px/1 var(--display); letter-spacing: -.01em; }
.brand:hover { color: var(--thermal); }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--thermal); }
.header-cta .btn { min-height: 42px; padding: 0 18px; font-size: 13px; }
@media (max-width: 900px) { .site-nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 480px) { .header-cta .btn-soon { font-size: 0; padding: 0 16px; } .header-cta .btn-soon::after { content: "Coming soon"; font-size: 12px; } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { font: 800 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--hl); margin-bottom: 18px; }
.hero-title { font: 400 clamp(46px, 7.2vw, 98px)/.98 var(--display); letter-spacing: -.02em; }
.hl { color: var(--hl); }
.hero-sub { margin-top: 24px; max-width: 34em; font-size: clamp(16px, 1.6vw, 18px); color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.privacy-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 16px; border-radius: 999px; background: var(--ink-3);
  font-size: 13px; font-weight: 700; color: var(--thermal); }
.privacy-chip svg { color: var(--hl); flex: none; }

.hero-visual { position: relative; display: grid; justify-items: end; padding-bottom: 40px; }
.phone { background: #050506; border-radius: 46px; padding: 10px; box-shadow: 0 0 0 2px #2C2932, 0 40px 80px -30px rgba(0,0,0,.8); }
.phone img { border-radius: 37px; width: 100%; }
.phone-hero { width: min(330px, 78vw); transform: rotate(3deg); }
.slip-print { position: absolute; left: 0; bottom: 0; width: min(290px, 70vw); padding: 22px 22px calc(22px + var(--tooth)); transform: rotate(-4deg);
  box-shadow: none; font-size: 13px; }
.slip-head { font: 800 15px/1.2 var(--mono); letter-spacing: .1em; }
.slip-sub { font-size: 11px; color: var(--graphite); letter-spacing: .06em; margin-top: 4px; }
.slip-rule { border-top: 2px dashed var(--ink); margin: 12px 0; opacity: .7; }
.slip-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; padding: 3px 0; }
.slip-row span:last-child { font-weight: 800; }
.slip-total { font-size: 14px; font-weight: 800; }
.slip-print .stamp { right: 14px; top: 14px; width: 64px; height: 64px; font-size: 10px; border-width: 3px; }
.sample-note { position: absolute; right: 0; bottom: -28px; font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-items: center; margin-top: 12px; padding-bottom: 64px; }
  .phone-hero { width: min(300px, 72vw); }
  .slip-print { left: 50%; margin-left: calc(-1 * min(290px, 70vw) + 40px); width: min(260px, 64vw); }
  .sample-note { right: auto; left: 0; width: 100%; text-align: center; bottom: 8px; }
}

/* Print animation for the hero slip */
html.js .slip-print { clip-path: inset(0 0 100% 0); }
html.js .slip-print.in { animation: print 1.6s steps(14, end) .5s forwards; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }

/* Ticker */
.ticker { background: var(--hl); color: var(--ink); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: 0 -20px; }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-track span { font: 800 clamp(15px, 1.8vw, 20px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding: 0 22px; }
.ticker-track span::after { content: "\2022"; margin-left: 44px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-title { font: 400 clamp(34px, 5vw, 60px)/1.02 var(--display); letter-spacing: -.015em; max-width: 16em; }
.section-title.big { font-size: clamp(40px, 6vw, 76px); }
.section-sub { margin-top: 20px; max-width: 40em; color: var(--soft); font-size: 17px; }
.text-link { display: inline-block; margin-top: 24px; font-weight: 800; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step h3 { font: 400 26px/1.1 var(--display); margin: 14px 0 10px; }
.step p { font: 400 16px/1.55 var(--body); color: #3A3742; }
.step-num { font: 800 14px/1 var(--mono); letter-spacing: .14em; color: var(--graphite); }
.step:nth-child(2) { transform: translateY(18px); }
.step:nth-child(3) { transform: translateY(36px); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step:nth-child(n) { transform: none; } }

.section-story { background: var(--ink-2); }
.story-strip { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 48px; padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px;
  scrollbar-width: thin; scrollbar-color: #3A3742 transparent; }
.story-item { flex: 0 0 auto; width: clamp(220px, 24vw, 260px); margin: 0; scroll-snap-align: center; }
.story-item .phone { border-radius: 38px; padding: 8px; }
.story-item .phone img { border-radius: 31px; }
.story-item figcaption { margin-top: 16px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); text-align: center; }

.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.award { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .2s ease; }
.award:nth-child(odd) { transform: rotate(-1.2deg); }
.award:nth-child(even) { transform: rotate(1deg); }
.award:hover { transform: rotate(0) translateY(-4px); }
.award-title { font: 400 28px/1.05 var(--display); max-width: 9em; }
.award-line { margin-top: 10px; font: 400 16px/1.5 var(--body); color: #3A3742; max-width: 20em; }
@media (max-width: 900px) { .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .awards { grid-template-columns: 1fr; } }

.section-privacy { background: radial-gradient(circle at 85% 20%, #2A2620 0, transparent 45%), var(--ink); border-top: 1px solid #221F27; border-bottom: 1px solid #221F27; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.privacy-grid .section-title { color: var(--hl); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.fact { display: grid; grid-template-columns: 36px 1fr; gap: 18px; }
.fact h3 { font: 800 18px/1.3 var(--mono); }
.fact p { margin-top: 6px; color: var(--soft); font: 400 16px/1.6 var(--body); }
.tick { width: 36px; height: 36px; border-radius: 50%; background: var(--hl); position: relative; }
.tick::after { content: ""; position: absolute; left: 12px; top: 8px; width: 9px; height: 16px; border: solid var(--ink); border-width: 0 4px 4px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; max-width: 880px; }
.plan-name { font: 400 30px/1 var(--display); }
.plan-price { margin-top: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--graphite); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { font-weight: 700; padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.plan-pass { background: var(--hl); }
.plan-pass .stamp { box-shadow: inset 0 0 0 3px var(--hl), inset 0 0 0 5px var(--ink); }
.plan-note { margin-top: 20px; font: 400 14px/1.5 var(--body); color: #2A2620; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.faq-wrap { max-width: calc(880px + 2 * var(--gutter)); }
.faq { margin-top: 40px; border-top: 1px solid #2C2932; }
.faq details { border-bottom: 1px solid #2C2932; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 800 18px/1.35 var(--mono); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 800 28px/1 var(--mono); color: var(--hl); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--soft); font: 400 17px/1.65 var(--body); max-width: 44em; }

.final-cta { background: var(--hl); color: var(--ink); position: relative; margin-top: 40px; }
.final-cta .zig-top { position: absolute; top: -14px; left: 0; right: 0; background: var(--hl); }
.final-cta .zig-bottom { position: absolute; bottom: -14px; left: 0; right: 0; background: var(--hl); z-index: 1; }
.final-inner { padding: clamp(72px, 10vw, 120px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 22px; }
.final-title { font: 400 clamp(52px, 10vw, 128px)/.95 var(--display); letter-spacing: -.02em; }
.final-sub { font-size: 17px; font-weight: 700; max-width: 30em; }
.final-cta .btn-primary { background: var(--ink); color: var(--hl); }
.final-cta .btn-primary:hover { background: #000; color: var(--hl); }

/* Footer */
.site-footer { background: var(--ink-2); position: relative; margin-top: 14px; }
.page-index .site-footer { margin-top: 0; }
.site-footer .zig-top { position: absolute; top: -14px; left: 0; right: 0; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.footer-tag { margin-top: 16px; color: var(--soft); font-size: 14px; max-width: 22em; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: var(--thermal); text-decoration: none; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: var(--hl); }
.footer-legal p { font-size: 13px; color: var(--soft); line-height: 1.7; }
.footer-legal p + p { margin-top: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Legal and support documents */
.doc-wrap { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.doc { max-width: 860px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(22px, 6vw, 64px) calc(clamp(28px, 6vw, 64px) + var(--tooth)); }
.doc h1 { font: 400 clamp(36px, 6vw, 60px)/1.02 var(--display); letter-spacing: -.015em; }
.doc .doc-meta { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.doc .summary { margin-top: 28px; padding: 20px 22px; background: #ECE5D6; border-radius: 12px; font: 400 17px/1.6 var(--body); }
.doc .summary strong { font-weight: 700; }
.doc h2 { font: 400 26px/1.15 var(--display); margin-top: 44px; scroll-margin-top: 96px; }
.doc h3 { font: 800 17px/1.4 var(--mono); margin-top: 26px; }
.doc p, .doc li { font: 400 17px/1.7 var(--body); color: #26232B; }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc a { color: #8A5A00; font-weight: 600; }
.doc a:hover { color: var(--ink); }
.doc .toc { margin-top: 28px; padding: 18px 22px; border: 2px dashed #CFC6B4; border-radius: 12px; }
.doc .toc p { margin: 0; font: 800 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.doc .toc ol { columns: 2; column-gap: 32px; margin-top: 12px; }
.doc .toc li { font-size: 15px; margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc .address { font-style: normal; font: 400 17px/1.7 var(--body); margin-top: 12px; }
.contact-card { margin-top: 18px; display: grid; gap: 6px; padding: 18px 22px; background: #ECE5D6; border-radius: 12px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.notfound h1 { font: 400 clamp(44px, 8vw, 96px)/1 var(--display); }
.notfound p { margin-top: 18px; color: var(--soft); }
.notfound .btn { margin-top: 28px; }

/* Scroll reveal (only when JS runs) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .award.reveal.in:nth-child(odd) { transform: rotate(-1.2deg); }
html.js .award.reveal.in:nth-child(even) { transform: rotate(1deg); }
html.js .award.reveal.in:hover { transform: rotate(0) translateY(-4px); }
html.js .step.reveal.in:nth-child(2) { transform: translateY(18px); }
html.js .step.reveal.in:nth-child(3) { transform: translateY(36px); }
@media (max-width: 860px) { html.js .step.reveal.in:nth-child(n) { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .slip-print { clip-path: none; animation: none; }
  .ticker-track { animation: none; }
  .btn, .award { transition: none; }
}
