/* Gila Receipt Tracker site. Mirrors the app's motifs (src/app/app.css): .tape, .paper, .stamp, .ticket. */
:root {
  color-scheme: dark;
  --bg: #101412; --glow: #17322A; --card: #1A211E; --line: rgba(244, 238, 221, 0.14);
  --text: #F4F1E8; --muted: #A9B3AC; --accent: #6FD8A0;
  --paper: #F4EEDD; --ink: #1E1D18; --ink-soft: #5E5A50;
  --stamp-warn: #C2410C; --stamp-good: #157F4A; --stamp-info: #2F5E9E;
  --font: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 18px; --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: radial-gradient(900px 620px at 50% -120px, var(--glow), transparent 70%); background-repeat: no-repeat; color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #9BE8C0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .tape :focus-visible { outline-color: var(--stamp-info); }
h1, h2, h3 { font-family: var(--font); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #0d1a14; padding: 10px 14px; border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font: 500 0.68rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.top nav { display: flex; gap: 6px; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 10px 14px; border-radius: 999px; }
.top nav a:hover { background: rgba(244, 238, 221, 0.08); color: var(--text); }
@media (max-width: 560px) { .top nav a.opt, .top .brand small { display: none; } }

/* ---------- Stamps ---------- */
.stamp { display: inline-block; font-family: var(--mono); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-4deg); white-space: nowrap; line-height: 1.35; color: var(--stamp-warn); }
.stamp-good { color: var(--stamp-good); } .stamp-info { color: var(--stamp-info); }
.dark-stamps .stamp, .stamp.on-dark { color: #FF9466; }
.dark-stamps .stamp-good, .stamp-good.on-dark { color: var(--accent); }
.stamp-lg { font-size: 0.82rem; padding: 4px 10px; border-width: 2.5px; }
.eyebrow { font: 700 0.78rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #D9D6CD; margin-top: 20px; max-width: 34em; }
.hero-art { position: relative; justify-self: center; }
.hero-art .stamp { position: absolute; z-index: 2; background: var(--paper); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.hero-art .s1 { top: -14px; right: -30px; transform: rotate(7deg); }
.hero-art .s2 { bottom: 8%; left: -44px; transform: rotate(-8deg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 20px 0 56px; }
  .hero-art .s1 { right: -14px; } .hero-art .s2 { left: -16px; }
}

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 18px 7px 14px; background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 10px; text-decoration: none; font-family: var(--body); transition: transform 0.15s ease, border-color 0.15s ease; }
.badge:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge small { font-size: 0.66rem; letter-spacing: 0.02em; }
.badge b { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
.badge-play small { text-transform: uppercase; letter-spacing: 0.06em; }
.soon { margin-top: 12px; font: 600 0.78rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.soon::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F2C14E; margin-right: 8px; }

/* ---------- Phone ---------- */
.phone { width: min(290px, 74vw); padding: 9px; border-radius: 46px; background: #0A0D0C; border: 1px solid rgba(244, 238, 221, 0.22); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px #000 inset; }
.phone img { width: 100%; border-radius: 37px; aspect-ratio: 600 / 1304; background: #101412; }
.phones { display: flex; justify-content: center; gap: 18px; }
.phones .phone { width: min(250px, 43vw); padding: 7px; border-radius: 38px; }
.phones .phone img { border-radius: 31px; }
.phones .phone:nth-child(2) { margin-top: 44px; }
@media (max-width: 520px) { .phones { gap: 10px; } .phones .phone { padding: 5px; border-radius: 26px; } .phones .phone img { border-radius: 21px; } .phones .phone:nth-child(2) { margin-top: 28px; } }

/* ---------- Watch & tablets ---------- */
.watches { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.watch { flex: 1; max-width: 190px; padding: 7px; border-radius: 26%/22%; background: #0A0D0C; border: 1px solid rgba(244, 238, 221, 0.22); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); }
.watch img { width: 100%; border-radius: 22%/19%; background: #000; }
.watch:nth-child(2) { margin-top: 30px; }
.bigs { display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.tablet { margin: 0; flex: 0 1 470px; }
.tablet.fold { flex-basis: 380px; }
.tablet img { width: 100%; border-radius: 22px; border: 8px solid #0A0D0C; outline: 1px solid rgba(244, 238, 221, 0.22); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); background: #101412; }
.tablet figcaption { text-align: center; margin-top: 14px; font: 600 0.76rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .bigs { flex-direction: column; align-items: center; } .tablet, .tablet.fold { flex-basis: auto; width: 100%; max-width: 420px; } .tablet.fold { max-width: 340px; } .watches { gap: 8px; } .watch { padding: 4px; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.sec-head { max-width: 40em; margin-bottom: 36px; }
.sec-head h2, .split h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.sec-head p, .split .copy > p { color: #D0CEC5; margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .art { order: -1; }
@media (max-width: 860px) { section { padding: 52px 0; } .split { grid-template-columns: 1fr; gap: 36px; } .split.flip .art { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #E4E1D8; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.fine { font-size: 0.86rem; color: var(--muted); margin-top: 16px; }

/* ---------- The tape ---------- */
.tape { --edge: 8px; background: var(--paper); color: var(--ink); padding: calc(var(--edge) + 14px) 0 calc(var(--edge) + 20px); max-width: 760px; margin-inline: auto;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/calc(2 * var(--edge)) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/calc(2 * var(--edge)) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/calc(2 * var(--edge)) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/calc(2 * var(--edge)) 51% repeat-x; }
.tape-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 22px 10px; font: 0.76rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); border-bottom: 1px dashed rgba(30, 29, 24, 0.35); }
.tape ol { list-style: none; margin: 0; padding: 0; }
.tape-line { display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px dotted rgba(30, 29, 24, 0.28); }
.tape-day { font: 0.78rem var(--mono); color: var(--ink-soft); width: 28px; flex: none; }
.tape-what { flex: 1; min-width: 0; }
.tape-what b { display: block; font-family: var(--font); font-size: 1.08rem; }
.tape-what small { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }
.tape-foot { padding: 12px 22px 0; font-family: var(--mono); }
.tape-sum { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.9rem; }
.tape-total { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; text-transform: uppercase; }
@media (max-width: 560px) { .tape-line { flex-wrap: wrap; padding: 14px 16px; gap: 6px 12px; } .tape-line .stamp { margin-left: 40px; } .tape-what { flex-basis: calc(100% - 40px); } .tape-head, .tape-foot { padding-inline: 16px; } }

/* ---------- Paper (torn bottom) ---------- */
.paper { --edge: 8px; background: #F7F3E8; color: var(--ink); padding: 26px 24px calc(28px + var(--edge));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/calc(2 * var(--edge)) 100% repeat-x; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/calc(2 * var(--edge)) 100% repeat-x; }
.paper a { color: #0F6B3D; font-weight: 600; }
.paper a:hover { color: #0A4D2B; }
.rcpt { font-family: var(--mono); font-size: 0.92rem; }
.rcpt h3 { font-family: var(--mono); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; }
.rcpt .sub { text-align: center; color: var(--ink-soft); margin-bottom: 14px; }
.rcpt .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.rcpt .row span:last-child { text-align: right; flex: none; }
.rcpt .was { color: var(--stamp-good); font-size: 0.82rem; margin: -2px 0 4px; }
.rcpt hr { border: 0; border-top: 1px dashed rgba(30, 29, 24, 0.5); margin: 10px 0; }
.rcpt .total { font-weight: 800; font-size: 1.1rem; }
.rcpt .note { font-size: 0.86rem; margin-top: 8px; }
.rcpt .stamp { margin-left: 6px; }

/* ---------- Ticket & cards ---------- */
.ticket { position: relative; background: linear-gradient(160deg, #1F3A30, #15261F); border: 1px solid rgba(111, 216, 160, 0.18); border-radius: var(--radius); padding: 34px 38px; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg); }
.ticket::before { left: -12px; } .ticket::after { right: -12px; }
.ticket h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.ticket .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.ticket .cols h3 { font-size: 1.08rem; margin-bottom: 6px; }
.ticket .cols p { color: #C9D2CC; font-size: 0.95rem; }
.ticket .cols .k { font: 800 1.9rem var(--mono); letter-spacing: -0.04em; color: var(--accent); display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .ticket { padding: 28px 24px; } .ticket .cols { grid-template-columns: 1fr; gap: 20px; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.card p { color: #C9C7BE; font-size: 0.97rem; }
.deadline { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius); border: 1px dashed rgba(244, 238, 221, 0.3); min-height: 60px; }
.deadline-days { display: flex; flex-direction: column; align-items: center; min-width: 58px; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.deadline-days b { font: 700 1.4rem var(--mono); color: var(--paper); }
.deadline-what { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; font-family: var(--font); }
.deadline-what small { color: var(--muted); font-weight: 400; font-family: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; align-items: center; }
.chip { font: 600 0.8rem var(--body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: #E4E1D8; }
.chip.on { background: var(--accent); color: #0d1a14; border-color: transparent; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 820px; margin-inline: auto; align-items: start; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plans .rcpt { padding-top: 30px; }
.plans .price { text-align: center; font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; margin: 6px 0 2px; }
.plans .stampline { text-align: center; margin: 10px 0 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-family: var(--font); font-weight: 700; list-style: none; position: relative; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 500 1.4rem var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 20px 18px; color: #D0CEC5; }
.support { margin-top: 36px; max-width: 760px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.support h3 { font-size: 1.3rem; margin-bottom: 6px; }
.support p { color: #C9D2CC; max-width: 30em; }
.btn { display: inline-block; background: var(--accent); color: #0d1a14; font-weight: 700; text-decoration: none; padding: 13px 20px; border-radius: 999px; overflow-wrap: anywhere; }
.btn:hover { background: #8BE4B5; color: #0d1a14; }
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.cta .badges { justify-content: center; }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; margin: 24px auto 0; padding: 40px 44px calc(48px + var(--edge)); font-size: 1rem; }
.doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 800; margin: 14px 0 8px; }
.doc h2 { font-size: 1.16rem; margin: 30px 0 6px; padding-top: 18px; border-top: 1px dashed rgba(30, 29, 24, 0.3); letter-spacing: -0.01em; }
.doc p, .doc li { color: #2B2A24; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 16px 0; display: grid; gap: 10px; }
.doc .muted { color: var(--ink-soft); font: 0.82rem var(--mono); }
@media (max-width: 560px) { .doc { padding: 28px 22px calc(40px + var(--edge)); } }

/* ---------- Footer ---------- */
footer { border-top: 1px dashed var(--line); margin-top: 56px; padding: 30px 0 44px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: #D9D6CD; padding: 6px 0; }
footer .legal { flex-basis: 100%; font-size: 0.78rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .badge:hover { transform: none; }
}

/* Hero: the watch sits in front of the phone, lower left */
.hero-art .hero-watch { position: absolute; z-index: 3; width: 42%; max-width: 170px; left: -18%; bottom: 14%; margin: 0; }
@media (max-width: 640px) { .hero-art .hero-watch { left: -6%; width: 38%; } }
