/* Fiscbox website. One stylesheet for every page and language.
   Colours follow the app's design tokens (assets/tokens/design_tokens.json):
   slate surfaces, teal primary, amber only for "receipt missing". */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0b0f17;
  --night-2: #111827;
  --slate: #1e293b;
  --slate-line: #283548;
  --slate-text: #94a3b8;
  --slate-soft: #cbd5e1;
  --teal: #2eb8a6;
  --teal-deep: #0f766e;
  --teal-ink: #115e59;
  --teal-wash: #ccfbf1;
  --teal-dark: #134e4a;
  --paper: #f8fafc;
  --paper-2: #f1f5f9;
  --white: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --amber: #b45309;
  --amber-soft: #e5a83b;
  --amber-wash: #fef3c7;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(18px, 4.5vw, 56px);
  --max: 1240px;
  --head: 64px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 34px -14px rgba(15, 23, 42, 0.22);
  --shadow-dark: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
ul { list-style: none; }
strong { font-weight: 650; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: rgba(11, 15, 23, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.head-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { color: inherit; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-size: 0.95rem; }
.site-nav a { color: var(--slate-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; color: var(--slate-soft); border: 1px solid var(--slate-line); border-radius: 999px; padding: 4px 11px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; font-size: 0.7em; }
.langs summary:hover, .langs[open] summary { border-color: var(--teal); color: var(--white); }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; background: var(--night-2); border: 1px solid var(--slate-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.langs li a { display: block; padding: 8px 12px; border-radius: 8px; }
.langs li a:hover, .langs li a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
@media (max-width: 720px) { .site-nav .opt { display: none; } }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.8rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .eyebrow { color: var(--teal); }
.display {
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  font-size: clamp(2.3rem, 4.7vw, 4.1rem);
  text-wrap: balance;
}
.h2 { font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(1.9rem, 4vw, 3.2rem); text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 40em; text-wrap: pretty; }
.dark .lead { color: var(--slate-soft); }
.accent { color: var(--teal-deep); }
.dark .accent { color: var(--teal); }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section.tight-top { padding-top: 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 52rem; }
.dark { background: var(--night); color: var(--white); }

/* torn receipt edge between sections */
.tear-bottom, .tear-top { position: relative; }
.tear-bottom::after, .tear-top::before {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; z-index: 2;
  background:
    linear-gradient(135deg, transparent 50%, var(--tear, var(--paper)) 50%) 0 0 / 14px 14px repeat-x,
    linear-gradient(-135deg, transparent 50%, var(--tear, var(--paper)) 50%) 0 0 / 14px 14px repeat-x;
}
.tear-bottom::after { bottom: -1px; }
.tear-top::before { top: -1px; transform: scaleY(-1); }

/* ---------- Buttons and store badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--white); border-color: var(--slate-line); }
.btn-ghost:hover { color: var(--white); border-color: var(--teal); }
.btn-solid { background: var(--teal-deep); color: var(--white); }
.btn-solid:hover { background: var(--teal-ink); color: var(--white); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateY(2px); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px;
  min-height: 52px; padding: 7px 18px 7px 14px; border-radius: 12px;
  border: 1px dashed var(--slate-line); color: var(--slate-soft); background: rgba(255,255,255,0.02);
}
.store-soon svg { grid-row: span 2; width: 22px; height: 22px; fill: currentColor; opacity: .8; }
.store-soon small { font: 600 0.68rem/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.store-soon b { font-weight: 650; font-size: 1rem; line-height: 1.2; color: var(--white); }
.light-stores .store-soon { border-color: var(--line-2); background: var(--white); color: var(--muted); }
.light-stores .store-soon b { color: var(--ink); }
.light-stores .store-soon small { color: var(--teal-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); --tear: var(--paper); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(46, 184, 166, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(46, 184, 166, 0.08), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .display .line { display: block; }
.hero-copy .display .line + .line { color: var(--teal); }
.hero-actions { display: grid; gap: 18px; justify-items: start; }
.hero-note { font-size: .9rem; color: var(--slate-text); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 .86rem/1.3 var(--mono); color: var(--slate-soft); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(46,184,166,.18); }

/* entrance of hero copy */
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Hero stage: receipt -> fields -> set-aside card ---- */
.stage { position: relative; height: clamp(470px, 46vw, 560px); width: 100%; max-width: 600px; justify-self: center; }
.stage-caption { position: absolute; right: 0; bottom: -30px; font: 500 .72rem/1 var(--mono); color: var(--slate-text); letter-spacing: .06em; text-transform: uppercase; }

.receipt { position: absolute; left: 0; top: 10px; width: 50%; transform: rotate(-4deg); transform-origin: 50% 0; z-index: 1; }
.r-paper {
  position: relative; background: #fbfaf6; color: #1f2937;
  font: 500 clamp(.66rem, .95vw, .8rem)/1.55 var(--mono);
  padding: 22px 20px 30px;
  box-shadow: var(--shadow-dark);
  animation: print 1.25s steps(14, end) .25s both;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.r-paper p { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.r-paper .c { justify-content: center; text-align: center; }
.r-store { font-weight: 800; font-size: 1.12em; letter-spacing: .06em; line-height: 1.25; margin-bottom: 4px; }
.r-dim { color: #6b7280; }
.r-rule { border-top: 1px dashed #9ca3af; margin: 9px 0; }
.r-total { font-weight: 800; font-size: 1.2em; }
.r-bar { height: 34px; margin-top: 14px; background: repeating-linear-gradient(90deg, #1f2937 0 2px, transparent 2px 4px, #1f2937 4px 5px, transparent 5px 8px, #1f2937 8px 11px, transparent 11px 12px); opacity: .85; }
.hl { position: relative; border-radius: 3px; }
.hl::after {
  content: ""; position: absolute; inset: -3px -6px; border: 2px solid var(--teal); border-radius: 5px; background: rgba(46,184,166,.1);
  animation: mark .45s var(--ease-out) both;
}
.hl-1::after { animation-delay: 1.65s; }
.hl-2::after { animation-delay: 1.9s; }
.hl-3::after { animation-delay: 2.55s; }
.hl-4::after { animation-delay: 2.7s; }
@keyframes mark { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
.beam { position: absolute; left: -8%; right: -8%; top: 0; height: 3px; border-radius: 3px; background: var(--teal); box-shadow: 0 0 18px 4px rgba(46,184,166,.55), 0 0 60px 12px rgba(46,184,166,.18); opacity: 0; animation: sweep 1.5s linear 1.5s both; }
@keyframes sweep { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.fields {
  position: absolute; right: 0; top: 0; width: 47%; z-index: 2;
  background: rgba(17, 24, 39, .86); border: 1px solid var(--slate-line); border-radius: 16px; padding: 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-dark);
  animation: pop .6s var(--ease-out) 1.6s both;
}
.fields-h { display: flex; align-items: center; gap: 8px; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.fields-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: blink 1.2s ease-in-out 1.6s 3; }
@keyframes blink { 50% { opacity: .2; } }
.fields dl { display: grid; gap: 6px; }
.fields .f { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 9px; background: rgba(30, 41, 59, .75); animation: rise .5s var(--ease-out) both; }
.fields dt { font-size: .72rem; color: var(--slate-text); }
.fields dd { text-align: right; font: 600 .82rem/1.25 var(--mono); color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fields .f:nth-child(1) { animation-delay: 1.85s; }
.fields .f:nth-child(2) { animation-delay: 2.1s; }
.fields .f:nth-child(3) { animation-delay: 2.3s; }
.fields .f:nth-child(4) { animation-delay: 2.65s; }
.fields .f:nth-child(5) { animation-delay: 2.85s; }
.fields .f.ok dd { color: var(--teal); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }


.aside {
  position: absolute; right: 4%; bottom: 0; width: 66%; z-index: 3;
  background: linear-gradient(160deg, #10201f 0%, #111827 55%); border: 1px solid rgba(46,184,166,.35); border-radius: 20px;
  padding: clamp(16px, 2vw, 22px); box-shadow: var(--shadow-dark), 0 0 0 6px rgba(46,184,166,.05);
  animation: pop .8s var(--ease-out) 3.1s both;
}
.aside-label { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--slate-soft); }
.aside-label span:last-child { font-family: var(--mono); color: var(--slate-text); }
.aside-amount { font: 700 clamp(2rem, 3.6vw, 2.7rem)/1.1 var(--font); letter-spacing: -.025em; color: var(--teal); font-variant-numeric: tabular-nums; margin: 6px 0 8px; }
.due { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--mono); color: var(--teal-wash); background: var(--teal-dark); border-radius: 999px; padding: 6px 10px; }
.ledger { margin-top: 14px; display: grid; gap: 6px; font-size: .84rem; }
.ledger li { display: flex; align-items: baseline; gap: 8px; color: var(--slate-soft); }
.ledger li::after { content: none; }
.ledger .dots { flex: 1; border-bottom: 1px dotted var(--slate-line); transform: translateY(-4px); min-width: 12px; }
.ledger b { font: 600 .84rem/1 var(--mono); color: var(--white); white-space: nowrap; }
.ledger li:last-child b { color: var(--teal); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { margin-top: 8px; }
}
@media (max-width: 520px) {
  .stage { height: 520px; }
  .receipt { width: 66%; }
  .fields { width: 60%; top: 40px; }
  .aside { width: 84%; right: 0; }
}

/* ---------- Promise strip ---------- */
.promise { background: var(--paper); padding: 44px 0 0; }
.promise-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-row li { padding: 22px 20px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.promise-row li:first-child { border-left: 0; padding-left: 0; }
.promise-row b { font-weight: 700; font-size: 1.35rem; letter-spacing: -.025em; }
.promise-row span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) {
  .promise-row { grid-template-columns: 1fr 1fr; }
  .promise-row li:nth-child(3) { border-left: 0; padding-left: 0; }
  .promise-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .promise-row { grid-template-columns: 1fr; }
  .promise-row li { border-left: 0; padding-left: 0; }
  .promise-row li + li { border-top: 1px solid var(--line); }
}

/* ---------- Story (how it works) ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.steps { display: grid; gap: clamp(56px, 8vw, 96px); counter-reset: step; }
.step { display: grid; gap: 16px; max-width: 34rem; }
.step-no { font: 600 .82rem/1 var(--mono); color: var(--teal-deep); letter-spacing: .08em; display: flex; align-items: center; gap: 12px; }
.step-no::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line-2); }
.step h3 { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.step p { color: var(--muted); text-wrap: pretty; }
.ticks { display: grid; gap: 8px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .98rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(-45deg); }
.pro-tag { display: inline-block; font: 700 .64rem/1 var(--mono); letter-spacing: .06em; color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 5px; padding: 3px 5px; margin-left: 6px; vertical-align: 2px; }
.step-shot { margin-top: 10px; display: grid; justify-items: center; }

.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 660 / 1434; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2b3445, #0e131c); box-shadow: var(--shadow), 0 40px 80px -40px rgba(15, 23, 42, .55), inset 0 0 0 1px rgba(255,255,255,.08);
}
/* Dynamic Island: 31% of the screen width, 29% as tall as wide, 3% of the screen width below its top edge (top % is of the frame height, hence .0138 = .03 / 2.173) */
.phone::before { content: ""; position: absolute; top: calc(10px + (100% - 20px) * .0138); left: 50%; width: calc((100% - 20px) * .31); aspect-ratio: 100 / 29; transform: translateX(-50%); background: #05070b; border-radius: 999px; z-index: 2; pointer-events: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: var(--white); }

.story-phone { display: none; }
@media (min-width: 960px) {
  .js .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: start; }
  .js .steps { padding: 6vh 0 18vh; gap: 0; }
  .js .step { min-height: 72vh; align-content: center; opacity: .3; transition: opacity .5s var(--ease); }
  .js .step.is-on { opacity: 1; }
  .js .step-shot { display: none; }
  .js .story-phone { display: grid; place-items: center; position: sticky; top: calc(var(--head) + 4vh); height: calc(100vh - var(--head) - 8vh); }
  .story-phone .phone { width: min(330px, 26vw, 44vh); }
  .story-phone .phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .55s var(--ease), transform .7s var(--ease-out); }
  .story-phone .phone img.is-on { opacity: 1; transform: none; }
  .story-dots { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
  .story-dots i { width: 6px; height: 22px; border-radius: 3px; background: var(--line-2); transition: background .3s, height .3s; }
  .story-dots i.is-on { background: var(--teal-deep); height: 36px; }
}

/* ---------- No document, no deduction ---------- */
.nodoc { --tear: var(--paper); }
.nodoc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.nodoc .h2 .strike { position: relative; white-space: nowrap; }
.nodoc .h2 .strike::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em; border-radius: .05em; background: var(--amber-soft); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease-out) .3s; }
.nodoc .h2.in .strike::after, .no-anim .nodoc .h2 .strike::after, html:not(.js) .nodoc .h2 .strike::after { transform: scaleX(1); }
.expense-list { background: var(--night-2); border: 1px solid var(--slate-line); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-dark); }
.expense-banner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(229,168,59,.1); border: 1px solid rgba(229,168,59,.35); color: #fde68a; font-size: .92rem; margin-bottom: 8px; }
.expense-banner svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--amber-soft); fill: none; stroke-width: 1.8; }
.exp { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px; border-radius: 12px; }
.exp + .exp { border-top: 1px solid var(--slate); }
.exp b { font-weight: 600; }
.exp .amt { font: 600 .95rem/1.4 var(--mono); text-align: right; }
.exp small { color: var(--slate-text); font-size: .8rem; }
.exp .tag { justify-self: start; font: 600 .7rem/1 var(--mono); letter-spacing: .04em; color: var(--amber-soft); }
.exp .tag.ok { color: var(--teal); }
.exp.missing .amt { color: var(--slate-text); text-decoration: line-through; text-decoration-color: rgba(229,168,59,.7); }
@media (max-width: 860px) { .nodoc-grid { grid-template-columns: 1fr; } }

/* ---------- Accountant package ---------- */
.zip-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.zip { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.zip-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); font: 600 .8rem/1.2 var(--mono); color: var(--ink-2); overflow: hidden; }
.zip-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zip-bar i { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.tree { padding: 10px; display: grid; gap: 2px; }
.tree li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px; border-radius: 10px; }
.tree li:hover { background: var(--paper); }
.tree .ico { width: 24px; height: 28px; border-radius: 4px; position: relative; font: 700 .5rem/28px var(--mono); text-align: center; color: var(--white); grid-row: span 2; }
.ico.csv { background: #15803d; }
.ico.pdf { background: #b91c1c; }
.ico.img { background: #0369a1; }
.ico.dir { background: var(--amber-soft); border-radius: 3px 3px 4px 4px; height: 20px; margin-top: 4px; }
.tree code { font: 600 .9rem/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.tree small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.tree .sub { margin-left: 28px; border-left: 1px dashed var(--line-2); border-radius: 0 10px 10px 0; }
.js .tree li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.js .tree.in li { opacity: 1; transform: none; }
.js .tree.in li:nth-child(2) { transition-delay: .1s; }
.js .tree.in li:nth-child(3) { transition-delay: .2s; }
.js .tree.in li:nth-child(4) { transition-delay: .3s; }
.js .tree.in li:nth-child(5) { transition-delay: .4s; }
.js .tree.in li:nth-child(6) { transition-delay: .5s; }
.zip-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) { .zip-grid { grid-template-columns: 1fr; } }

/* ---------- Tax names marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: slide 38s linear infinite; }
.marquee ul { display: flex; align-items: center; }
.marquee li { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -.025em; padding: 0 28px; white-space: nowrap; color: var(--ink); display: flex; align-items: center; gap: 28px; }
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.marquee li:nth-child(even) { color: var(--slate-text); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Countries ---------- */
.reach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reach { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.reach b { font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: var(--teal-deep); }
.reach h3 { font-size: 1.08rem; font-weight: 650; }
.reach p { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li { font: 600 .78rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 860px) { .reach-grid { grid-template-columns: 1fr; } }
.country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.country { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.country h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 650; }
.country h3 .cc { font: 600 .78rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--teal-deep); color: var(--white); }
.country dl { display: grid; gap: 10px; margin-top: 14px; }
.country dl div { display: grid; grid-template-columns: 10em 1fr; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.country dt { font: 600 .74rem/1.5 var(--mono); color: var(--teal-deep); text-transform: uppercase; letter-spacing: .04em; }
.country dd { color: var(--ink-2); font-size: .95rem; }
.country-note { color: var(--muted); font-size: .92rem; margin: 0 0 28px; max-width: 70ch; }
@media (max-width: 860px) { .country-grid { grid-template-columns: 1fr; } .country dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Privacy manifest ---------- */
.manifest { --tear: var(--paper); }
.manifest-table { border: 1px solid var(--slate-line); border-radius: 22px; overflow: hidden; background: var(--night-2); }
.mrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 28px; padding: 22px 26px; border-top: 1px solid var(--slate); align-items: start; }
.mrow:first-child { border-top: 0; }
.mrow.head { background: var(--slate); font: 600 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-text); padding-top: 14px; padding-bottom: 14px; }
.mrow h3 { font-size: 1.05rem; font-weight: 650; }
.mrow .to { font: 600 .9rem/1.4 var(--mono); color: var(--white); }
.mrow .to.none { color: var(--teal); }
.mrow p { color: var(--slate-soft); font-size: .94rem; }
.mrow .lbl { display: none; font: 600 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-text); margin-bottom: 4px; }
.manifest-foot { margin-top: 22px; color: var(--slate-text); font-size: .92rem; }
.manifest-foot a { color: var(--teal); }
@media (max-width: 860px) {
  .mrow { grid-template-columns: 1fr; gap: 10px; }
  .mrow.head { display: none; }
  .mrow .lbl { display: block; }
}

/* ---------- Gallery strip ---------- */
.shots { display: flex; justify-content: safe center; gap: clamp(14px, 2vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; scrollbar-width: thin; }
.shots figure { flex: 0 0 auto; scroll-snap-align: center; display: grid; gap: 14px; justify-items: center; }
.shots .phone { width: clamp(210px, 22vw, 260px); border-radius: 38px; }
.shots .phone img { border-radius: 30px; }
.shots figcaption { font-size: .9rem; color: var(--muted); text-align: center; max-width: 230px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.plan.pro { background: var(--night); color: var(--white); border-color: var(--night); position: relative; overflow: hidden; }
.plan.pro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(46,184,166,.22), transparent 70%); pointer-events: none; }
.plan > * { position: relative; }
.plan h3 { font-weight: 700; font-size: 1.8rem; letter-spacing: -.025em; }
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.plan .price b { font: 700 2.6rem/1 var(--font); letter-spacing: -.02em; }
.plan .price span { color: var(--muted); }
.plan.pro .price span { color: var(--slate-soft); }
.plan .alt { font-size: .95rem; color: var(--slate-soft); }
.plan .alt b { color: var(--teal); font-weight: 650; }
.plan .ticks li { color: inherit; }
.plan.pro .ticks li::before { border-color: var(--teal); }
.plan-note { margin-top: 18px; font-size: .9rem; color: var(--muted); max-width: 52rem; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 54rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; --tear: var(--paper); }
.final .wrap { display: grid; justify-items: center; gap: 24px; }
.final img.mark { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 20px 50px -18px rgba(46,184,166,.6); }
.final .stores { justify-content: center; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--slate-soft); padding: 56px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand .brand { color: var(--white); }
.foot-brand p { max-width: 26rem; color: var(--slate-text); font-size: .92rem; }
.foot-h { font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-text); margin-bottom: 12px; }
.site-foot ul { display: grid; gap: 8px; }
.site-foot a { color: var(--slate-soft); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--slate); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--slate-text); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Legal / support documents ---------- */
.doc-head { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); --tear: var(--paper); position: relative; overflow: hidden; }
.doc-head .wrap { display: grid; gap: 16px; position: relative; }
.doc-head h1 { font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.02em; }
.doc-head .meta { font: 500 .85rem/1.4 var(--mono); color: var(--slate-text); }
.doc-head .lead { max-width: 46rem; }
.draft-note { border: 1px dashed var(--amber-soft); color: #fde68a; background: rgba(229,168,59,.08); padding: 10px 14px; border-radius: 10px; font-size: .9rem; max-width: 46rem; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 120px); align-items: start; }
.toc { position: sticky; top: calc(var(--head) + 24px); font-size: .92rem; }
.toc-title { font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ul { display: grid; gap: 6px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 2px 0 2px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--teal-deep); }
.doc { max-width: 46rem; display: grid; gap: 44px; }
.doc section { display: grid; gap: 14px; }
.doc h2 { font-weight: 700; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.025em; display: flex; gap: 14px; align-items: baseline; }
.doc h2 span { font: 600 .85rem/1 var(--mono); color: var(--teal-deep); min-width: 1.6em; }
.doc h3 { font-size: 1.08rem; font-weight: 650; margin-top: 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--teal-deep); transform: rotate(45deg); }
.doc .summary { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.doc .summary h2 { font-size: 1.25rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.doc thead th { background: var(--paper-2); border-top: 0; font: 600 .74rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc code { font: .88em var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.table-scroll { overflow-x: auto; }
.ph { background: #fef3c7; color: #78350f; border: 1px dashed #b45309; border-radius: 4px; padding: 0 4px; font-weight: 600; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.contact-card { background: var(--night); color: var(--white); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.contact-card .mail { font: 700 clamp(1.3rem, 3.4vw, 2rem)/1.2 var(--font); color: var(--teal); overflow-wrap: anywhere; }
.contact-card p { color: var(--slate-soft); }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--head)); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.nf .wrap { display: grid; gap: 18px; justify-items: center; }
.nf .r-paper { animation: none; width: min(320px, 86vw); text-align: left; }
.nf .r-total { color: #b91c1c; }
.nf .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Scroll reveals (only when JS is running) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; }
.js .rv-d2 { transition-delay: .16s; }
.js .rv-d3 { transition-delay: .24s; }

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .beam { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track ul + ul { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js .rv, .js .tree li { opacity: 1; transform: none; }
  .nodoc .h2 .strike::after { transform: scaleX(1); }
}
.country.wide { grid-column: 1 / -1; }
.doc-note { border: 1px solid var(--line); border-left: 4px solid var(--amber-soft); background: var(--amber-wash); color: var(--ink-2); padding: 14px 18px; border-radius: 10px; margin-bottom: 28px; font-size: .95rem; }
