/* Read Receipts: Receipt Noir. Midnight grounds, thermal-paper receipts with torn
   edges, "seen" blue for read ticks, stamp red for verdicts, lamp amber for stars. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url(/fonts/BigShouldersDisplay_800ExtraBold.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url(/fonts/BigShouldersDisplay_900Black.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url(/fonts/DMMono_400Regular.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url(/fonts/DMMono_500Medium.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(/fonts/DMSans_400Regular.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(/fonts/DMSans_500Medium.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url(/fonts/DMSans_700Bold.woff2) format("woff2"); }

:root {
  --midnight: #0A0E1A;
  --raised: #0F1424;
  --night: #121829;
  --night2: #1B2236;
  --border: #232B42;
  --text: #EEF0F6;
  --muted: #9AA3BA;
  --faint: #646D84;
  --paper: #F2EEE4;
  --paper-text: #1A1B20;
  --paper-muted: #6F6A60;
  --blue: #4A78FF;
  --red: #E4412F;
  --green: #5CC08C;
  --lamp: #F2B661;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--midnight); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--paper-text); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(52px, 11vw, 96px); padding-top: .06em; }
h2 { font-size: clamp(36px, 6vw, 56px); padding-top: .06em; }
h3 { font-size: 28px; font-weight: 800; }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lead { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.small { font-size: 14px; color: var(--faint); }
.blue { color: var(--blue); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 2; }
.logo img { width: 150px; }
.top nav { white-space: nowrap; }
.top nav { display: flex; gap: 18px; font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

/* Ticks: the two blue read ticks */
.ticks { display: inline-block; width: 1.1em; height: .7em; vertical-align: .02em; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M1.5 9.5 6.5 14.5 15.5 3.5M10.5 14.5 12 16 26.5 1.5' fill='none' stroke='%234A78FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 auto 0; height: min(118vw, 760px); z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.55) 0%, rgba(10,14,26,0) 22%, rgba(10,14,26,0) 52%, var(--midnight) 98%); }
.hero .copy { padding-top: min(82vw, 500px); padding-bottom: 24px; }
.hero .label, .hero h1 { text-shadow: 0 2px 18px rgba(10,14,26,.9); }
.hero .label { color: var(--paper); }
.hero h1 .two { display: block; color: var(--paper); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 8px; }
.badge { display: inline-flex; height: 52px; text-decoration: none; }
.badge img { height: 52px; width: auto; }
.badge .fb { display: none; }
.badge.nobadge img { display: none; }
.badge.nobadge .fb { display: inline-flex; flex-direction: column; justify-content: center; background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 9px; padding: 4px 16px; line-height: 1.1; }
.badge .fb small { font-size: 10px; }
.badge .fb strong { font-size: 19px; }
html:not(.ios-out) .badge.app-store, html:not(.android-out) .badge.google-play { display: none; }
.soon { font-size: 13px !important; display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); background: var(--night); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(74,120,255,.2); }
html.ios-out.android-out .soon { display: none; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: baseline; }
.points li .ticks { flex: none; }
.points small { display: block; color: var(--muted); font-size: 15px; }

/* Receipts */
.receipt { --tooth: 10px; position: relative; background: var(--paper); color: var(--paper-text); padding: 30px 26px; font-family: var(--mono); font-size: 15px; line-height: 1.6;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  mask-composite: intersect; }
.receipt .rule { border: 0; border-top: 2px dotted #A9A398; margin: 14px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; letter-spacing: .06em; }
.receipt .center { text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.barcode { height: 34px; margin-top: 12px; background: repeating-linear-gradient(90deg, var(--paper-text) 0 2px, transparent 2px 4px, var(--paper-text) 4px 5px, transparent 5px 8px, var(--paper-text) 8px 11px, transparent 11px 12px, var(--paper-text) 12px 13px, transparent 13px 17px); }

/* Sections */
section.block { padding: 64px 0; }
.block > .wrap > .label { margin-bottom: 10px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; background: var(--night); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.steps li::before { content: counter(step); width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; font: 900 24px/1 var(--display); }
.steps h3 { font-size: 26px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Screens */
.screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { flex: 0 0 min(62vw, 240px); margin: 0; scroll-snap-align: center; }
.screens img { border-radius: 26px; border: 1.5px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.screens figcaption { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 12px; }

/* Cases */
.shelf { margin-top: 38px; }
.shelf > h3 { margin-bottom: 4px; }
.shelf > p { margin: 0 0 18px; color: var(--muted); }
.cases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.case { background: var(--night); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.case .cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case .cover img { width: 100%; height: 100%; object-fit: cover; }
.case .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,0) 40%, rgba(10,14,26,.92)); }
.case .title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; }
.case .title h4 { margin: 4px 0 0; font: 900 34px/1.05 var(--display); text-transform: uppercase; padding-top: .06em; }
.case .title .label { color: rgba(255,255,255,.85); }
.case .chip { position: absolute; top: 12px; right: 12px; z-index: 1; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(10,14,26,.75); border: 1px solid rgba(255,255,255,.18); }
.case .chip.free { background: var(--paper); color: var(--paper-text); border-color: var(--paper); }
.case .body { padding: 14px 16px 18px; display: grid; gap: 8px; }
.case .body p { margin: 0; }
.case .meta { font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Price receipt */
.price { display: grid; gap: 28px; align-items: center; }
.price .receipt { max-width: 420px; width: 100%; transform: rotate(-1.5deg); justify-self: center; }
.stamp { display: inline-block; border: 3px solid var(--red); color: var(--red); font: 500 18px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; transform: rotate(-7deg); margin: 6px 0 0; }

/* Pages (policies, support, guides) */
.page { padding: 26px 0 70px; }
.page .back { font-weight: 500; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 26px; }
.page .back:hover { color: var(--text); }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(48px, 9vw, 76px); }
.doc .updated { font: 500 13px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 30px; }
.doc h2 { font-size: 34px; margin: 42px 0 10px; }
.doc h3 { font-size: 24px; margin: 26px 0 6px; }
.doc p, .doc li { color: #D5D9E4; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--text); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.doc .short { background: var(--night); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 14px; padding: 4px 20px; }
.doc address { font-style: normal; white-space: pre-line; color: #D5D9E4; }
.contact { display: grid; gap: 6px; margin: 6px 0 26px; }
.contact a { font: 500 clamp(20px, 5vw, 28px)/1.3 var(--mono); color: var(--paper); text-decoration: none; word-break: break-all; }
details { background: var(--night); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 20px/1 var(--mono); color: var(--muted); }
details[open] summary::after { content: "–"; }
details > p, details > ul { margin-top: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 20px; }
footer .in { padding: 30px 0 40px; display: grid; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; }
footer nav a, footer .guides a { text-decoration: none; }
footer nav a:hover, footer .guides a:hover, footer .co a:hover { text-decoration: underline; }
footer .guides { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); }
footer .guides span { color: var(--faint); }
footer .co, footer .tm { margin: 0; font-size: 13px; color: var(--faint); }
footer .co a { text-decoration: none; }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .logo img { width: 190px; }
  .hero { min-height: 700px; }
  .hero-art { inset: 0 0 0 auto; width: 52%; height: 100%; max-height: 860px; }
  .hero-art::after { background: linear-gradient(90deg, var(--midnight) 0%, rgba(10,14,26,0) 35%), linear-gradient(180deg, rgba(10,14,26,0) 70%, var(--midnight)); }
  .hero .copy { padding-top: 90px; padding-bottom: 80px; max-width: 560px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .price { grid-template-columns: 1.1fr 1fr; }
  .screens { justify-content: center; overflow: visible; }
  .screens figure { flex: 0 1 230px; }
  .screens figure:nth-child(odd) { transform: translateY(18px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
