/* Tabit — tabit.dev. Same palette and type as the app (mobile/src/lib/theme.ts). */
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F7F3EA;
  --surface: #FFFCF5;
  --ink: #08090C;
  --ink-2: #1A1C21;
  --volt: #ABC9C8;
  --volt-deep: #5F8A89;
  --muted: #6B655C;      /* body copy on ivory: darker than the app's #857F74 for contrast */
  --hairline: #E6E0D3;
  --paper: #FFFDF8;
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Geist", system-ui, -apple-system, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--volt-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.display { font-family: "Bricolage", "Geist", sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
h2.display { font-size: clamp(36px, 6vw, 60px); }
h3 { font: 600 21px/1.25 "Geist", sans-serif; margin: 0 0 6px; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }
.eyebrow { font: 600 13px/1 "Geist", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--volt-deep); margin: 0 0 16px; }
.muted { color: var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.nav.dark { background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--bg); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 "Bricolage", sans-serif; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: 0.8; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1 "Geist", sans-serif; text-decoration: none; cursor: pointer; }
.btn.volt { background: var(--volt); color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Hero */
.hero { background: var(--ink); color: var(--bg); padding: 56px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8.6vw, 104px); }
.hero h1 .nw { white-space: nowrap; }
.hero h1 .accent { color: var(--volt); }
.hero .lead { color: #B9B4AA; margin: 26px 0 32px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--ink-2); color: #D9D4CA; font-size: 14px; font-weight: 500; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-bottom: 64px; } }

/* Phone mockup */
.phone { width: min(340px, 86vw); margin: 0 auto; aspect-ratio: 9 / 19.2; background: #000; border-radius: 52px; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,0.45), inset 0 0 0 2px #2A2C31; position: relative; }
.phone .screen { height: 100%; border-radius: 41px; background: var(--bg); overflow: hidden; position: relative; padding: 54px 16px 16px; color: var(--ink); }
.phone .island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 34%; height: 30px; border-radius: 20px; background: #000; }
.phone .time { position: absolute; top: 16px; left: 34px; font: 600 15px/1 "Geist", sans-serif; }
.month { background: var(--volt); border-radius: 26px; padding: 18px 18px 14px; }
.month .label { font-size: 13px; color: #3E5A59; }
.month .amt { font: 800 42px/1 "Bricolage", sans-serif; letter-spacing: -0.04em; margin: 6px 0 4px; }
.month .sub { font-size: 12px; color: #3E5A59; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 4px; background: rgba(8,9,12,0.16); }
.bars i.now { background: var(--ink); }
.feed-h { font: 600 11px/1 "Geist", sans-serif; letter-spacing: 0.1em; color: var(--muted); margin: 18px 4px 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; }
.tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 17px/1 "Bricolage", sans-serif; flex: none; }
.row .name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.row .when { font-size: 12px; color: var(--muted); }
.row .price { margin-left: auto; font-weight: 600; font-size: 15px; }

/* Notification card */
.notice { position: absolute; left: 10px; right: 10px; top: 46px; background: rgba(255,252,245,0.94); backdrop-filter: blur(10px); border-radius: 22px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 12px 30px rgba(8,9,12,0.22); animation: drop 6s ease-in-out infinite; }
.notice .app { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.notice .t { font-weight: 600; font-size: 14px; line-height: 1.25; }
.notice .s { font-size: 13px; color: var(--muted); }
.notice .now { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--muted); }
@keyframes drop { 0%, 8% { transform: translateY(-140%); opacity: 0; } 16%, 70% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(-140%); opacity: 0; } }

/* Sections */
section { padding: 104px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 600 16px/1 "Geist", sans-serif; margin-bottom: 22px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } }
.bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308090C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Paper receipt */
.receipt { width: min(360px, 100%); margin: 0 auto; background: var(--paper); padding: 30px 28px 22px; font-size: 15px; position: relative; filter: drop-shadow(0 24px 40px rgba(8,9,12,0.12)); transform: rotate(-1.5deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x; }
.receipt .shop { text-align: center; font: 800 26px/1 "Bricolage", sans-serif; letter-spacing: -0.03em; }
.receipt .meta { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.receipt .line { display: flex; justify-content: space-between; padding: 5px 0; }
.receipt .line .q { color: var(--muted); margin-right: 8px; }
.receipt hr { border: 0; border-top: 1.5px dashed #D8D1C2; margin: 12px 0; }
.receipt .total { font-weight: 700; font-size: 18px; }
.receipt .tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--volt-deep); }

.privacy { background: var(--surface); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 28px; }
.card .ic { width: 48px; height: 48px; border-radius: 16px; background: var(--volt); display: grid; place-items: center; margin-bottom: 20px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .cards3 { grid-template-columns: 1fr; } }

/* Merchants */
.merchants { background: var(--volt); }
.merchants .lead { color: #2F4544; }
.merchants .bullets li::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ABC9C8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.form { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.form h3 { margin-bottom: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 16px/1.4 "Geist", sans-serif; color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt-deep); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 13px; color: var(--muted); margin: 0; }
.form .status { margin: 0; font-weight: 500; }
.form .status.err { color: #8A2B1E; }

/* FAQ */
details { background: var(--surface); border-radius: 20px; padding: 0 22px; margin-bottom: 10px; }
details summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 20px; color: var(--muted); }

/* Footer */
footer { background: var(--ink); color: #B9B4AA; padding: 56px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer .brand { color: var(--bg); }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--bg); }
footer .fine { width: 100%; font-size: 13px; color: #8D887F; border-top: 1px solid #23252A; padding-top: 22px; }

/* Long-form pages (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(44px, 8vw, 72px); margin-bottom: 12px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font: 700 24px/1.25 "Geist", sans-serif; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #2C2A26; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { font-weight: 600; }
.doc .callout { background: var(--surface); border-radius: 20px; padding: 18px 20px; }
