/* ownvoice — web tokens, ported from ownvoice-app/src/theme/tokens.ts (Theme B « Mint », Soft finish).
   Three weights only (400 · 500 · 600). Mint for money that moves. One warm colour (draft amber). No red. */
@font-face { font-family: Geist; src: url("../assets/fonts/Geist_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url("../assets/fonts/Geist_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url("../assets/fonts/Geist_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --mint: #7ef3b5; --mint-press: #6ae3a4; --mint-soft: #d9faea;
  --ink: #0a1410; --forest: #12201a; --paper: #fff; --frost: #f1f5f2; --wash: #e3ebe6;
  --ash: #62706a; --hairline: #dde6e0; --smoke: #cbd5cf; --draft: #f2b544; --draft-soft: #fdf1d6;
  --d-canvas: #09110d; --d-card: #111d17; --d-wash: #1b2b23; --d-panel: #20382d; --d-text: #eef5f0; --d-muted: #9db0a6; --d-faint: #6b7f74; --d-line: #243830;
  --brand: linear-gradient(135deg, #8ff5bf 0%, #4feab0 35%, #18c9b4 70%, #1e9fe0 100%);
  --fill-action: linear-gradient(180deg, #95f7c6 0%, #6fe9a9 100%);
  --shadow-action: 0 8px 20px -6px rgba(46,196,128,.55), 0 2px 4px rgba(46,196,128,.25);
  --fill-inverted: linear-gradient(180deg, #1a2d25 0%, #0f1b16 100%);
  --shadow-card: 0 10px 24px -14px rgba(18,32,26,.18), 0 1px 2px rgba(18,32,26,.04);
  --r-button: 8px; --r-input: 13px; --r-wash: 15px; --r-card: 20px; --r-panel: 32px;
  --ease-out: cubic-bezier(.33, 1, .68, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 4vw, 56px);
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--ink); }
::selection { background: var(--mint); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display { font-weight: 600; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.h2 { font-weight: 600; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.h3 { font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; text-wrap: pretty; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mono { font-family: var(--mono); }
.wrap { width: min(100% - 2 * var(--pad), 1360px); margin-inline: auto; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > i { display: inline-block; font-style: normal; will-change: transform; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: transform .15s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-action { background: var(--fill-action); color: var(--ink); box-shadow: var(--shadow-action), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-action:hover { box-shadow: 0 12px 28px -6px rgba(46,196,128,.7), 0 2px 4px rgba(46,196,128,.3), inset 0 1px 0 rgba(255,255,255,.6); transform: translateY(-1px); }
.btn-ink { background: var(--fill-inverted); color: #fff; box-shadow: 0 14px 32px -12px rgba(18,32,26,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-ink:hover { transform: translateY(-1px); }
.btn-glass { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.38)); color: var(--ink); border: 1px solid rgba(10,20,16,.1); box-shadow: 0 8px 20px -10px rgba(18,32,26,.28), inset 0 1px 0 rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.btn-glass:hover { transform: translateY(-1px); border-color: rgba(10,20,16,.2); }
.btn-glass-dark { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); color: var(--d-text); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass-dark:hover { border-color: rgba(255,255,255,.3); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- frosted glass ---------- */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42)); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 24px 60px -28px rgba(18,32,26,.35), inset 0 1px 0 rgba(255,255,255,.9); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
.glass-dark { background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn-glass { background: rgba(255,255,255,.94); }
  .glass-dark, .btn-glass-dark { background: rgba(17,29,23,.94); }
}

/* ---------- status badges (app StatusBadge) ---------- */
.badge { display: inline-flex; align-items: center; gap: .5em; padding: .42em .85em .42em .7em; border-radius: 999px; font-size: .8em; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.badge svg { width: 1.05em; height: 1.05em; }
.badge i { width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.badge.paid { background: var(--forest); color: var(--mint); }
.badge.sent { background: var(--mint-soft); color: #0b5f3d; }
.badge.mint { background: var(--mint); color: var(--ink); }
.badge.late { background: var(--draft); color: #3a2603; }
.badge.draft { background: var(--draft-soft); color: #7a5410; }
.badge.ghost { background: rgba(10,20,16,.06); color: var(--ash); }

/* ---------- the invoice document (em-based: set font-size on .doc to scale) ---------- */
.doc { position: relative; width: 50em; aspect-ratio: 1000 / 1414; border-radius: 2.2em; background: #fff; color: var(--ink); font-size: 10px; overflow: hidden; }
.doc-in { position: absolute; inset: 3.2em 3.6em 3em; display: flex; flex-direction: column; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.doc-brand { display: flex; align-items: center; gap: 1em; font-size: 1.8em; font-weight: 600; letter-spacing: -.01em; }
.doc-logo { width: 2.5em; height: 2.5em; border-radius: .65em; background: var(--forest); display: grid; place-items: center; }
.doc-logo svg { width: 1.6em; height: 1.6em; fill: var(--mint); }
.doc-title { text-align: right; }
.doc-title b { display: block; font-size: 2.2em; font-weight: 500; letter-spacing: .16em; }
.doc-title span { font-size: 1.3em; color: var(--ash); }
.doc-meta { display: flex; justify-content: space-between; margin-top: 3.2em; font-size: 1.25em; line-height: 1.6; color: var(--ash); }
.doc-meta .cap { font-family: var(--mono); font-size: .8em; letter-spacing: .1em; text-transform: uppercase; }
.doc-meta b { display: block; font-size: 1.28em; font-weight: 600; color: var(--ink); }
.doc-meta .r { text-align: right; }
.doc-meta .r b { font-size: 1em; font-weight: 500; }
.doc-state { height: 3.1em; margin-top: 1.7em; font-size: 1.35em; display: flex; align-items: center; }
.doc-th, .doc-tr { display: grid; grid-template-columns: 1fr 2.3em 8.3em 8.3em; gap: .5em; padding: 1.1em .4em; }
.doc-th { margin-top: 1.4em; font-family: var(--mono); font-size: 1em; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); border-bottom: .15em solid var(--ink); padding-bottom: .8em; }
.doc-tr { font-size: 1.45em; font-weight: 500; border-bottom: 1px solid rgba(10,20,16,.1); padding: .78em .28em; grid-template-columns: 1fr 1.6em 5.7em 5.7em; }
.doc-th > :not(:first-child), .doc-tr > :not(:first-child) { text-align: right; }
.doc-tr > :nth-child(2), .doc-tr > :nth-child(3) { color: var(--ash); font-weight: 400; }
.doc-sum { margin: 2em 0 0 44%; font-size: 1.4em; }
.doc-sum div { display: flex; justify-content: space-between; padding: .36em .3em; color: var(--ash); }
.doc-sum div span:last-child { color: var(--ink); }
.doc-total { margin: .7em 0 0 44%; display: flex; justify-content: space-between; align-items: center; padding: 1.1em 1.2em; border-radius: 1.1em; background: var(--mint); font-weight: 600; }
.doc-total span:first-child { font-size: 1.5em; }
.doc-total span:last-child { font-size: 2.1em; letter-spacing: -.02em; }
.doc-foot { margin-top: auto; font-size: 1.05em; line-height: 1.5; color: var(--ash); }

/* ---------- phone (em-based) ---------- */
.phone { position: relative; width: 29em; aspect-ratio: 290 / 600; font-size: 10px; border-radius: 4.6em; padding: .9em; background: linear-gradient(145deg, #2a3530, #060b08 40%, #1a241f); box-shadow: 0 0 0 .1em rgba(255,255,255,.12) inset, 0 4em 7em -3em rgba(0,0,0,.55), 0 1.5em 3em -1.5em rgba(0,0,0,.4); flex: none; }
.phone::after { content: ""; position: absolute; left: 50%; top: 1.9em; width: 8.4em; height: 2.3em; margin-left: -4.2em; border-radius: 2em; background: #040806; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 3.8em; overflow: hidden; background: var(--frost); color: var(--ink); display: flex; flex-direction: column; }
.screen.dark { background: var(--d-canvas); color: var(--d-text); }
.s-top { padding: 5.6em 1.6em 1em; display: flex; align-items: center; justify-content: space-between; }
.s-top b { font-size: 1.5em; font-weight: 600; letter-spacing: -.015em; }
.s-top small { font-size: 1.1em; color: var(--ash); display: block; }
.s-av { width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--forest); display: grid; place-items: center; }
.s-av svg { width: 1.7em; height: 1.7em; fill: var(--mint); }
.s-body { padding: 0 1.6em; display: flex; flex-direction: column; gap: 1.2em; flex: 1; min-height: 0; }
.s-panel { border-radius: 2em; padding: 1.6em; background: var(--fill-inverted); color: #fff; box-shadow: 0 1.4em 3.2em -1.2em rgba(18,32,26,.55); }
.s-panel .cap { font-family: var(--mono); font-size: .95em; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.s-amount { font-size: 3.2em; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: .15em; }
.s-amount small { font-size: .55em; color: rgba(255,255,255,.6); font-weight: 500; }
.s-bars { display: flex; align-items: flex-end; gap: .5em; height: 4.6em; margin-top: 1.2em; }
.s-bars i { flex: 1; border-radius: .2em; background: rgba(255,255,255,.14); transform-origin: bottom; }
.s-bars i.on { background: var(--mint); }
.s-card { border-radius: 2em; background: linear-gradient(180deg, #fff, #f8fbf9); box-shadow: var(--shadow-card); padding: .4em 1.4em; }
.s-row { display: flex; align-items: center; gap: 1em; padding: 1.1em 0; border-bottom: 1px solid var(--hairline); }
.s-row:last-child { border-bottom: 0; }
.s-row .mono-av { width: 3.2em; height: 3.2em; border-radius: 1em; background: var(--wash); display: grid; place-items: center; font-size: 1em; font-weight: 600; flex: none; }
.s-row .mono-av span { font-size: 1.1em; }
.s-row div { flex: 1; min-width: 0; }
.s-row b { display: block; font-size: 1.35em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row small { font-size: 1.1em; color: var(--ash); }
.s-row .amt { flex: none; text-align: right; }
.s-row .amt b { font-weight: 600; }
.s-row .badge { font-size: 1em; }
.s-cta { margin: auto 1.6em 2.2em; height: 4.8em; border-radius: 99em; background: var(--fill-action); box-shadow: var(--shadow-action); display: flex; align-items: center; justify-content: center; gap: .6em; font-size: 1em; font-weight: 500; }
.s-cta span { font-size: 1.45em; }
.s-cta svg { width: 1.7em; height: 1.7em; }
.s-h { font-size: 2.3em; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.s-sub { font-size: 1.25em; color: var(--ash); line-height: 1.4; }
.s-sign { height: 11em; border-radius: 1.5em; border: .15em dashed var(--smoke); background: #fff; position: relative; display: grid; place-items: center; }
.s-sign svg { width: 70%; height: auto; overflow: visible; }
.s-sign small { position: absolute; left: 1.2em; bottom: .9em; font-size: 1em; color: var(--ash); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.s-step { display: flex; gap: 1.1em; align-items: flex-start; position: relative; padding-bottom: 1.5em; }
.s-step::before { content: ""; position: absolute; left: 1.15em; top: 2.4em; bottom: 0; width: .2em; background: var(--hairline); }
.s-step:last-child::before { display: none; }
.s-step.ok::before { background: var(--mint); }
.s-dot { width: 2.5em; height: 2.5em; border-radius: 50%; border: .2em solid var(--smoke); flex: none; display: grid; place-items: center; background: #fff; position: relative; z-index: 1; }
.s-step.ok .s-dot { background: var(--mint); border-color: var(--mint); }
.s-dot svg { width: 1.4em; height: 1.4em; }
.s-step b { font-size: 1.3em; font-weight: 500; display: block; line-height: 1.9; }
.s-step:not(.ok) b { color: var(--ash); font-weight: 400; }
.s-step time { margin-left: auto; font-family: var(--mono); font-size: 1.05em; color: var(--ash); line-height: 2.4; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px; transition: transform .15s var(--ease-out), border-color .2s; }
.store:hover { transform: translateY(-2px); }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.2; opacity: .7; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.store.on-dark { background: #fff; color: var(--ink); }
.store.on-light { background: var(--ink); color: #fff; }

/* ---------- film ---------- */
.film { position: relative; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 16 / 9; background: var(--wash) center / cover; isolation: isolate; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; left: 20px; bottom: 20px; z-index: 2; }

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