/* Margin — concept landing page */
:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DB;
  --card: #FFFDF9;
  --ink: #10231C;
  --ink-2: #2B3D35;
  --muted: #56645D;
  --green: #1C4637;
  --green-2: #275C48;
  --green-3: #3D7A62;
  --line: rgba(16, 35, 28, .12);
  --line-2: rgba(16, 35, 28, .2);
  --accent: #FF6A2B;
  --accent-ink: #B5410F;
  --accent-soft: #FFE3D4;
  --mint: #D3EADC;
  --mint-ink: #1F6A4A;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16,35,28,.06), 0 12px 32px -12px rgba(16,35,28,.18);
  --shadow-lg: 0 2px 4px rgba(16,35,28,.05), 0 30px 60px -24px rgba(16,35,28,.35);
  --font: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-accent:hover { background: #FF7D45; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 8px 20px -8px rgba(255,106,43,.7); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: rgba(16,35,28,.04); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { text-decoration: none; font-size: 15.5px; color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav ul a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 50%; width: 18px; height: 1.8px; margin-left: -9px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-lines { top: 50%; margin-top: -1px; }
.menu-lines::before, .menu-lines::after { content: ""; left: 0; margin-left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((min(100vw, 1280px)) / 12) 100%;
  background-position: center top;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
  opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); margin: 22px 0 22px; letter-spacing: -0.04em; line-height: .98; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--green-2); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: .2em; bottom: .04em; height: .1em; background: var(--accent); border-radius: 4px; transform-origin: left; animation: underline 1s .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; }

.capture { margin-top: 30px; max-width: 520px; }
.capture-row { display: flex; gap: 8px; padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.capture-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,106,43,.25), var(--shadow); }
.capture input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 16px; outline: none; }
.capture input::placeholder { color: #7A857F; }
.capture-note { margin-top: 12px; font-size: 14px; color: var(--muted); padding-left: 18px; }
.concept-msg { font-size: 14px; color: var(--accent-ink); font-weight: 500; min-height: 0; max-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s ease, max-height .3s ease, margin .3s ease; }
.concept-msg.show { opacity: 1; max-height: 4em; margin-top: 10px; }
.capture .concept-msg { padding-left: 18px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14.5px; color: var(--ink-2); }
.hero-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231F6A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; min-height: 560px; align-items: center; }
.hero-visual::before { content: ""; position: absolute; width: min(78%, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #E3EDE4 0%, rgba(227,237,228,0) 68%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone {
  position: relative; width: clamp(240px, 24vw, 300px); aspect-ratio: 300 / 620;
  background: #0B1813; border-radius: clamp(38px, 3.6vw, 46px); padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2C3B35, 0 0 0 1px rgba(16,35,28,.25);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #0B1813; z-index: 2; }
.phone-screen { height: 100%; background: var(--paper); border-radius: clamp(29px, 2.8vw, 36px); overflow: hidden; padding: 14px 14px 0; display: flex; flex-direction: column; font-size: 12px; position: relative; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 0; font-weight: 600; font-size: 12px; height: 24px; }
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons i { display: block; width: 14px; height: 8px; border-radius: 2px; background: var(--ink); }
.status-icons i:nth-child(1) { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; height: 9px; }
.status-icons i:nth-child(2) { width: 12px; height: 9px; border-radius: 9px 9px 2px 2px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.status-icons i:nth-child(3) { width: 20px; height: 9px; border-radius: 3px; background: transparent; border: 1.4px solid var(--ink); box-shadow: inset 0 0 0 1.5px var(--paper), inset 13px 0 0 var(--ink); }
.app-top { display: flex; justify-content: space-between; align-items: center; margin: 16px 4px 12px; }
.app-hello { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.app-sub { font-size: 11px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 11px; display: grid; place-items: center; }
.balance { background: var(--green); color: #F4F1EA; border-radius: 18px; padding: 14px 14px 12px; position: relative; overflow: hidden; }
.balance::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 18px solid rgba(255,255,255,.06); }
.balance-label { font-size: 11px; opacity: .78; }
.balance-amt { font-size: clamp(24px, 2.4vw, 29px); font-weight: 500; letter-spacing: -0.04em; margin: 2px 0 10px; }
.balance-amt span { opacity: .55; }
.balance-ccy { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 9.5px; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.12); }
.pot { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-top: 8px; }
.ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--accent-soft); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 20.4; animation: ring 1.4s .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ring { from { stroke-dashoffset: 113.1; } }
.pot-label { font-size: 11px; color: var(--muted); }
.pot-amt { font-size: 16px; font-weight: 500; letter-spacing: -0.03em; }
.pot-sub { font-size: 10px; color: var(--mint-ink); font-weight: 500; }
.feed-title { font-size: 11px; color: var(--muted); margin: 12px 4px 4px; font-weight: 500; }
.feed li { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.fi { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.fi-in { background: var(--mint); color: var(--mint-ink); }
.fi-out { background: var(--paper-2); color: var(--ink-2); }
.fi-pot { background: var(--accent-soft); position: relative; }
.fi-pot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2.4px solid var(--accent); border-right-color: transparent; transform: rotate(45deg); }
.ft { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ft b { font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft small { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa { font-size: 10.5px; white-space: nowrap; }
.fa.pos { color: var(--mint-ink); font-weight: 500; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 10px 18px; border-top: 1px solid var(--line); background: var(--card); margin-left: -14px; margin-right: -14px; }
.tabbar i { width: 18px; height: 18px; border-radius: 6px; border: 1.8px solid #A8B1AC; }
.tabbar i.on { border-color: var(--ink); background: var(--ink); }

.float { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 13px; width: clamp(176px, 17vw, 228px); }
.float-invoice { bottom: 9%; left: 0; animation: rise 1s .25s cubic-bezier(.2,.7,.2,1) both, bob 7s 1.4s ease-in-out infinite; }
.float-fx { top: 7%; right: 0; animation: rise 1s .4s cubic-bezier(.2,.7,.2,1) both, bob 8s 1.6s ease-in-out infinite reverse; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.fl-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag-paid { background: var(--mint); color: var(--mint-ink); }
.tag-sent { background: var(--accent-soft); color: var(--accent-ink); }
.fl-client { margin-top: 10px; font-weight: 600; font-size: 13.5px; }
.fl-amt { font-size: 22px; font-weight: 500; letter-spacing: -0.04em; }
.fl-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 8px; }
.fl-track span { height: 4px; border-radius: 4px; background: var(--green-3); }
.fl-track span.on { background: var(--accent); }
.fl-meta { font-size: 11.5px; color: var(--muted); }
.fx-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.fx-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fx-row .strong { font-weight: 500; font-size: 18px; letter-spacing: -0.03em; }
.fx-arrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 6px 0; font-size: 11px; }
.fx-arrow svg { width: 22px; height: 16px; flex: none; }
.fx-fee { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 11.5px; color: var(--muted); }

/* Flags — simple, abstract */
.flag { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.flag-us { background: repeating-linear-gradient(180deg, #C8423A 0 2.2px, #fff 2.2px 4.4px); position: relative; overflow: hidden; }
.flag-us::after { content: ""; position: absolute; left: 0; top: 0; width: 55%; height: 55%; background: #2B3D7A; }
.flag-eu { background: radial-gradient(circle, #F6C445 0 1.6px, transparent 2px) 50% 50% / 7px 7px, #23408F; }
.flag-ar { background: linear-gradient(180deg, #74ACDF 0 33%, #fff 33% 67%, #74ACDF 67%); position: relative; }
.flag-ar::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #F6B40E; top: 50%; left: 50%; margin: -3px; }
.flag-gb { background: linear-gradient(90deg, transparent 40%, #C8102E 40% 60%, transparent 60%), linear-gradient(0deg, transparent 40%, #C8102E 40% 60%, transparent 60%), #1F3D7A; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-row li { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stats-row li:first-child { border-left: 0; padding-left: 0; }
.stats-row b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.05em; color: var(--green); }
.stats-row span { font-size: 14.5px; color: var(--muted); line-height: 1.35; }

/* Sections */
section { position: relative; }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.035em; }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--ink-2); font-size: clamp(16.5px, 1.3vw, 18.5px); }
.kicker { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-head.center .kicker { justify-content: center; }
.kicker::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.kicker-light { color: #FFB089; }

.features { padding: clamp(72px, 10vw, 140px) 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { font-size: clamp(22px, 2vw, 27px); margin: 28px 0 10px; letter-spacing: -0.025em; }
.feature > p { color: var(--ink-2); font-size: 16px; max-width: 32em; }
.vignette { background: var(--paper); border-radius: 20px; padding: clamp(16px, 2vw, 26px); min-height: 250px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }

/* Invoice vignette */
.vi-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; }
.vi-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.vi-head b { color: var(--ink); font-weight: 500; }
.vi-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.vi-line span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-total { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 600; }
.vi-total span:first-child { color: var(--muted); font-weight: 500; }
.vi-timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; font-size: 13px; font-weight: 600; position: relative; }
.vi-timeline li { position: relative; padding-top: 22px; display: flex; flex-direction: column; }
.vi-timeline li small { font-weight: 400; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.vi-timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid #B5BDB8; z-index: 1; }
.vi-timeline li::after { content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: #CBD2CE; }
.vi-timeline li:last-child::after { display: none; }
.vi-timeline li.done::before { background: var(--green-2); border-color: var(--green-2); }
.vi-timeline li.done::after { background: var(--green-2); }
.vi-timeline li.next::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vi-timeline li:not(.done) { color: var(--muted); }
.vi-timeline li.next { color: var(--accent-ink); }

/* Currency vignette */
.ccy-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; }
.ccy-list li + li { margin-top: 8px; }
.ccy-list li:nth-child(2) { border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(61,122,98,.12); }
.ccy-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; }
.ccy-name small { font-weight: 400; font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccy-list .mono { font-size: 14px; white-space: nowrap; }

/* Tax vignette */
.rule { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.rule-if, .rule-then { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.rule-then { background: var(--accent-soft); border-color: transparent; color: var(--ink); font-weight: 500; }
.rule-then b { font-weight: 500; color: var(--accent-ink); }
.rule-arrow { width: 28px; height: 2px; background: var(--ink-2); position: relative; }
.rule-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: rotate(45deg); }
.quarter { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.q-head, .q-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.q-head span:first-child { font-weight: 600; }
.q-head .mono { color: var(--muted); font-size: 13px; }
.q-bar { height: 12px; border-radius: 12px; background: var(--paper-2); margin: 12px 0 10px; overflow: hidden; }
.q-bar span { display: block; height: 100%; width: var(--w); border-radius: 12px; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, #FF8650 8px 16px); }
.q-foot { font-size: 13px; color: var(--muted); }
.q-foot .ok { color: var(--mint-ink); font-weight: 600; }

/* Receipt vignette */
.v-receipt { flex-direction: row; align-items: center; gap: 16px; }
.receipt { position: relative; flex: 0 0 52%; background: #fff; padding: 16px 14px 22px; font-family: var(--mono); font-size: 11.5px; color: #3A4440; box-shadow: var(--shadow); transform: rotate(-2.5deg); overflow: hidden;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 50% 100% / 12px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 50% 100% / 12px 100% repeat-x; }
.r-shop { text-align: center; font-weight: 500; margin-bottom: 10px; letter-spacing: .04em; color: var(--ink); }
.r-line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.r-tot { border-top: 1px dashed #BFC6C2; margin-top: 6px; padding-top: 6px; font-weight: 500; color: var(--ink); }
.hl { background: rgba(255,106,43,.22); outline: 1.5px solid var(--accent); border-radius: 3px; padding: 0 3px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px 2px rgba(255,106,43,.55); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 6%; } 50% { top: 88%; } }
.r-match { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.r-match p { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; line-height: 1.3; }
.r-match span { font-size: 11.5px; color: var(--muted); }
.r-match b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Calculator */
.calc-section { background: var(--green); color: #F4F1EA; padding: clamp(72px, 10vw, 130px) 0; overflow: clip; }
.calc-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.06), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 88px); pointer-events: none; }
.calc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; position: relative; }
.calc-intro h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.04em; }
.calc-intro p:not(.kicker) { margin-top: 20px; color: rgba(244,241,234,.86); font-size: 18px; max-width: 30em; }
.calc-intro .calc-disclaimer { font-size: 14px; color: rgba(244,241,234,.72); border-left: 2px solid #FFB089; padding-left: 14px; margin-top: 28px; }
.calc { background: var(--card); color: var(--ink); border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.field + .field { margin-top: 22px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.cur-label { color: var(--muted); font-weight: 400; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select, .input-money { width: 100%; height: 56px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 17px; transition: border-color .2s ease, box-shadow .2s ease; }
select { appearance: none; -webkit-appearance: none; padding: 0 44px 0 16px; cursor: pointer; }
select:focus-visible, .input-money:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,106,43,.28); }
.input-money { display: flex; align-items: center; padding: 0 16px; gap: 6px; }
.cur-sym { font-family: var(--mono); color: var(--muted); font-size: 18px; white-space: nowrap; }
.input-money input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--mono); font-size: 22px; letter-spacing: -0.03em; height: 100%; }
.range { width: 100%; margin: 16px 0 0; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) 0 var(--p, 40%), var(--paper-2) var(--p, 40%)); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.range:focus-visible { outline-offset: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 16px 28px; align-items: center; }
.result-label, .result-sub { font-size: 14px; color: var(--muted); }
.result-pct { font-size: clamp(64px, 8vw, 96px); line-height: .9; letter-spacing: -0.06em; font-weight: 500; color: var(--green); margin: 4px 0; }
.result-side { display: grid; gap: 8px; }
.result-side p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 14.5px; }
.result-side span { color: var(--muted); }
.result-side b { font-weight: 500; }
.result-side p:first-child { background: var(--accent-soft); }
.result-side p:first-child span { color: var(--ink-2); }
.split { grid-column: 1 / -1; display: flex; height: 14px; border-radius: 14px; overflow: hidden; background: var(--mint); }
.split span { display: block; height: 100%; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.s-tax { background: var(--accent); }
.s-soc { background: #FFB089; }
.s-keep { flex: 1; background: var(--mint); }
.legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); margin-top: -4px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { font-weight: 500; }
.result-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* Pricing */
.pricing { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 100px); }
.billing { display: inline-flex; margin-top: 28px; padding: 5px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.bill-opt { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.bill-opt span { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); font-weight: 500; margin-left: 4px; }
.bill-opt[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); max-width: 920px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 28px; }
.plan-for { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 24px; flex-wrap: wrap; }
.price .mono { font-size: clamp(48px, 5vw, 64px); letter-spacing: -0.06em; font-weight: 500; line-height: 1; }
.price small { color: var(--muted); font-size: 14.5px; }
.plan-list { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 30px; flex: 1; }
.plan-list li { display: flex; gap: 12px; font-size: 15.5px; }
.plan-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231F6A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.plan-form .btn { width: 100%; }
.plan-form .concept-msg { text-align: center; }
.plan-pro { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan-pro .plan-for, .plan-pro .price small { color: rgba(244,241,234,.74); }
.plan-pro .plan-list { border-top-color: rgba(255,255,255,.14); }
.plan-pro .plan-list li::before { background-color: rgba(255,106,43,.22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23FFB089' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-pro .concept-msg { color: #FFB089; }
.plan-pro :focus-visible { outline-color: #FFB089; }
.plan-badge { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); font-size: 12.5px; font-weight: 600; background: var(--accent); color: var(--ink); padding: 4px 11px; border-radius: 999px; }
.pricing-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 28px; }

/* Stories */
.stories { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 10vw, 140px); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 17px; line-height: 1.5; }
.quote-lg { grid-row: span 2; background: var(--accent-soft); border-color: transparent; }
.quote-lg blockquote p { font-size: clamp(22px, 2.3vw, 31px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.3; }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.q-av { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; border: 1px solid rgba(16,35,28,.08); }
.quote-lg .q-av { background: var(--card); }
.quotes .quote:nth-child(2) { grid-column: 2 / 4; }

/* FAQ */
.faq { padding: 0 0 clamp(72px, 10vw, 140px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease; }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--green-2); }
.faq-body { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16.5px; }
.faq details[open] .faq-body { animation: fadeDown .35s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* Final */
.final { padding: 0 0 clamp(72px, 10vw, 120px); }
.final-inner { background: var(--ink); color: var(--paper); border-radius: 32px; padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.final-inner::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255,106,43,.14); pointer-events: none; }
.final h2 { font-size: clamp(30px, 3.8vw, 50px); letter-spacing: -0.035em; }
.capture-dark { margin-top: 0; position: relative; z-index: 1; }
.capture-dark .capture-row { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); box-shadow: none; }
.capture-dark .capture-row:focus-within { border-color: var(--paper); }
.capture-dark input { color: var(--paper); }
.capture-dark input::placeholder { color: rgba(244,241,234,.6); }
.capture-dark .concept-msg { color: #FFB089; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 96px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 22em; font-size: 15px; }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 96px); }
.fn-title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-legal a { text-decoration: none; }

/* Concept badge */
.concept-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; text-decoration: none; color: var(--paper);
  background: rgba(16,35,28,.88); padding: 7px 12px 7px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.4);
  transition: background-color .2s ease;
}
.concept-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.concept-badge:hover { background: var(--ink); }
.concept-badge:focus-visible { outline-color: var(--accent); }

/* Reveal — only hides when JS has confirmed it is running */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2), .quotes .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(4), .quotes .reveal:nth-child(3) { transition-delay: .14s; }
.quotes .reveal:nth-child(4) { transition-delay: .2s; }

/* Responsive */
@media (max-width: 1060px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-lg { grid-row: auto; grid-column: 1 / -1; }
  .quotes .quote:nth-child(2) { grid-column: auto; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 24px 40px -24px rgba(16,35,28,.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav-cta { min-height: 50px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 0; padding: 30px 0 10px; max-width: 560px; width: 100%; margin: 0 auto; }
  .calc-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row li { padding: 22px 20px; }
  .stats-row li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .final-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .feature-grid, .plans, .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote-lg { grid-column: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .nav { top: 64px; }
  html { scroll-padding-top: 72px; }
  .capture-row { flex-direction: column; border-radius: 22px; padding: 6px; }
  .capture input { height: 50px; }
  .capture .btn { width: 100%; }
  .capture-note, .capture .concept-msg { padding-left: 4px; }
  .phone { width: 228px; }
  .phone-screen { padding: 12px 11px 0; }
  .balance-amt { font-size: 23px; }
  .balance-ccy .chip:nth-child(3) { display: none; }
  .app-top { margin: 12px 4px 10px; }
  .tabbar { margin-left: -11px; margin-right: -11px; }
  .float { width: 168px; padding: 11px 12px; border-radius: 14px; }
  .hero-visual { padding: 74px 0 64px; }
  .float-invoice { bottom: 0; left: -2px; }
  .float-fx { top: 0; right: -2px; }
  .rule { flex-direction: column; align-items: flex-start; gap: 6px; }
  .rule-arrow { transform: rotate(90deg); margin: 10px 0 10px 18px; width: 18px; }
  .fl-amt { font-size: 18px; }
  .fx-row { font-size: 13px; gap: 8px; }
  .fx-row .strong { font-size: 15px; }
  .fx-arrow { font-size: 10px; gap: 6px; }
  .flag { width: 18px; height: 18px; }
  .stats-row li { padding: 18px 12px; }
  .stats-row li:nth-child(odd) { padding-left: 0; }
  .vignette { min-height: 0; }
  .v-receipt { flex-direction: column; align-items: stretch; }
  .receipt { flex: none; width: 82%; margin: 0 auto; }
  .r-match { flex-direction: row; flex-wrap: wrap; }
  .r-match p { flex: 1 1 40%; }
  .vi-timeline { font-size: 12px; }
  .vi-timeline li small { font-size: 11px; }
  .result { grid-template-columns: minmax(0, 1fr); }
  .result-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .result-pct { font-size: 64px; }
  .plan-badge { position: static; align-self: flex-start; margin-bottom: 14px; }
  .faq summary { padding-right: 40px; }
  .faq-body { padding-right: 0; }
  .footer-legal { margin-top: 36px; }
  .concept-badge { font-size: 11px; padding: 6px 10px 6px 9px; left: 10px; bottom: 10px; }
}

@media (max-width: 380px) {
  .phone { width: 214px; }
  .float { width: 156px; }
  .hero-ticks { gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scan { display: none; }
}

/* Phone screen: keep cards intact, let the feed absorb any shortfall */
.phone-screen > * { flex-shrink: 0; }
.phone-screen > .feed { flex-shrink: 1; min-height: 0; overflow: hidden; }
.final h2 { position: relative; z-index: 1; }
