/* ==========================================================================
   Franc · getfranc.fr
   Light, Apple-inspired: black type on white, one warm accent from the icon
   (the coins), espresso for depth. Everything else is greys.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --tint: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .08);

  --gold: #c8861f;        /* coin face */
  --gold-deep: #94600f;   /* coin edge, text-safe on white */
  --gold-soft: #fbf3e4;
  --accent: #5c4334;      /* app accent: mock selection and every icon */
  --coffee: #2b1d15;
  --green: #1d8348;
  --orange: #c4570e;
  --blue: #0b63ce;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow-lg: 0 1px 1px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06), 0 40px 80px -20px rgba(43,29,21,.22);
}

/* -------------------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--gold-soft); color: var(--coffee); }
:focus-visible { outline: 3px solid rgba(11, 99, 206, .45); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; text-decoration: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(1200px + 2 * var(--gutter)); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center { text-align: center; }

/* -------------------------------------------------------------------------- Type */

.display {
  font-size: clamp(52px, 10vw, 112px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -.045em;
}
.display-2 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
}
.display-3 {
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
}
.soft { color: var(--faint); }
.lead {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -.015em;
}
.lead em { color: var(--ink-2); }
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: -.005em;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(200, 134, 31, .22);
}
.dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 var(--sans);
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

/* -------------------------------------------------------------------------- Nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); height: 56px;
  margin: 0 auto; padding: 0 var(--gutter);
}
.nav-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: #000; text-decoration: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* -------------------------------------------------------------------------- Hero */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero .pill { margin-bottom: 28px; }
.hero-icon { display: block; width: fit-content; margin: 0 auto 28px; }
.hero-icon img { width: clamp(112px, 13vw, 148px); filter: drop-shadow(0 18px 28px rgba(43, 29, 21, .14)); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .soft {
  background: linear-gradient(100deg, var(--coffee) 10%, var(--gold-deep) 55%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lead { max-width: 640px; margin: 0 auto 36px; }
.hero-form { max-width: 480px; margin: 0 auto; }
.hero-hint { margin-top: 12px; font-size: 14px; color: var(--faint); }
.hero-hint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------------------------- Waitlist form */

.waitlist { position: relative; text-align: left; }
.waitlist-field {
  display: flex; gap: 6px; padding: 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0, 0, 0, .05);
  transition: box-shadow .2s;
}
.waitlist-field:focus-within { box-shadow: 0 0 0 1px var(--ink-2), 0 0 0 5px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .05); }
.waitlist input[type=email] {
  flex: 1; min-width: 0;
  height: 44px; padding: 0 8px 0 18px;
  border: 0; outline: 0; background: transparent;
  font: 17px var(--sans); color: var(--ink); letter-spacing: -.01em;
}
.waitlist input::placeholder { color: var(--faint); }
.waitlist button {
  position: relative; flex: none;
  height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 600 16px var(--sans); letter-spacing: -.01em;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.waitlist button:hover { background: #000; }
.waitlist button:active { transform: scale(.97); }
.waitlist .spinner {
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  opacity: 0; animation: spin .7s linear infinite;
}
.waitlist.is-busy .label { opacity: 0; }
.waitlist.is-busy .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.waitlist-status { min-height: 0; font-size: 15px; font-weight: 500; text-align: center; }
.waitlist-status:not(:empty) { margin-top: 14px; }
.waitlist.is-error .waitlist-status { color: var(--orange); }
.waitlist.is-error .waitlist-field { box-shadow: 0 0 0 1px var(--orange), 0 0 0 5px rgba(196, 87, 14, .1); }
.waitlist-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--faint); text-align: center; }
.waitlist-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success state replaces the field */
.waitlist.is-done .waitlist-field { display: none; }
.waitlist.is-done .waitlist-status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; margin: 0; padding: 0 20px;
  border-radius: 999px;
  background: #eaf6ee; color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(29, 131, 72, .2);
}
.waitlist.is-done .waitlist-status::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* No-JS fallback messages, shown via :target after the redirect */
.target-msg { display: none; margin-top: 16px; font-weight: 500; }
.target-msg:target { display: block; }
.target-msg.is-ok { color: var(--green); }
.target-msg.is-err { color: var(--orange); }

@media (max-width: 480px) {
  .waitlist-field { flex-direction: column; border-radius: 22px; padding: 6px; }
  .waitlist input[type=email] { height: 48px; text-align: center; padding: 0 12px; }
  .waitlist button { height: 48px; width: 100%; }
  .waitlist.is-done .waitlist-status { border-radius: 18px; padding: 12px 16px; }
}

/* -------------------------------------------------------------------------- Product mock
   A three-pane macOS window (sidebar | list | detail), drawn in HTML so it stays crisp
   and translatable. Selection uses the app accent (gold), as a real Mac app would. */

.mock { margin: clamp(56px, 8vw, 88px) 0 0; }
.mock figcaption { margin-top: 20px; text-align: center; font-size: 13px; color: var(--faint); }
.mock-window {
  display: grid; grid-template-columns: 196px 1fr;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), var(--shadow-lg);
  font-size: 13px; letter-spacing: -.005em; line-height: 1.35;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  user-select: none;
}
.mock .icon { width: 16px; height: 16px; flex: none; }

/* Sidebar: inset, translucent-looking, full height */
.mock-sidebar {
  margin: 8px 0 8px 8px; padding: 10px 8px;
  border-radius: 10px;
  background: linear-gradient(#f4f3f2, #efeeec);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.mock-lights { display: flex; gap: 8px; padding: 2px 6px 20px; }
.mock-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.mock-lights i:nth-child(2) { background: #febc2e; }
.mock-lights i:nth-child(3) { background: #28c840; }
.mock-group { margin: 16px 8px 4px; font-size: 11px; font-weight: 600; color: var(--faint); }
.mock-nav { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; color: var(--ink-2); }
.mock-nav .icon { color: var(--accent); }
.mock-nav b { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.mock-nav.is-active { background: rgba(0,0,0,.08); color: var(--ink); font-weight: 500; }

/* Menu bar, with Franc's menu bar extra. The dropdown opens on hover (or tap). */
.mock-menubar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 28px; margin-bottom: 18px; padding: 0 14px;
  border-radius: 10px;
  background: rgba(246, 245, 243, .9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 16px -10px rgba(0,0,0,.25);
  font-size: 13px; color: var(--ink);
  user-select: none;
}
.mb-menus { display: flex; gap: 18px; white-space: nowrap; overflow: hidden; }
.mb-menus b { font-weight: 700; }
.mb-status { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.mb-status .icon { width: 16px; height: 16px; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-extra {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 7px; border-radius: 5px;
  font-weight: 500; font-variant-numeric: tabular-nums;
  cursor: default;
}
.mb-extra:hover, .mb-extra.is-open { background: rgba(0,0,0,.1); }
.mb-pop {
  position: absolute; top: calc(100% + 6px); right: -6px;
  display: flex; flex-direction: column;
  width: 264px; padding: 6px;
  border-radius: 12px;
  background: rgba(248, 247, 246, .82);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 18px 40px -8px rgba(0,0,0,.28);
  font-weight: 400; font-size: 13px; text-align: left;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .18s, transform .18s var(--ease);
}
.mb-extra:hover .mb-pop, .mb-extra.is-open .mb-pop { opacity: 1; transform: none; pointer-events: auto; }
.pop-head { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px; font-weight: 600; }
.pop-head .icon { color: var(--accent); }
.pop-fact { display: block; margin: 0 2px 6px; padding: 10px 10px 8px; border-radius: 8px; background: rgba(0,0,0,.04); }
.pop-fact small { display: block; font-size: 11px; color: var(--muted); }
.pop-fact b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.pop-fact .gauge { margin: 14px 0 5px; }
.pop-line, .pop-item { display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px; border-radius: 6px; }
.pop-line span { color: var(--ink-2); }
.pop-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pop-line.is-warn b { color: var(--orange); font-weight: 500; }
.pop-sep { height: 1px; margin: 5px 8px; background: rgba(0,0,0,.1); }
.pop-item:hover { background: var(--accent); color: #fff; }
.pop-item kbd { font: inherit; color: var(--faint); }
.pop-item:hover kbd { color: rgba(255,255,255,.8); }
@media (max-width: 780px) {
  .mb-menus span { display: none; }
  .mb-icon { display: none; }
  .mb-pop { right: -40px; width: 248px; }
}

/* Unified toolbar */
.mock-content { display: flex; flex-direction: column; min-width: 0; }
.mock-toolbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 18px; }
.mock-title { margin-right: auto; }
.mock-title strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.mock-title small { display: block; font-size: 11.5px; color: var(--faint); }
.mock-tb-btn { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 7px; color: var(--ink-2); }
.mock-tb-btn:first-of-type { background: rgba(0,0,0,.05); }
.mock-search { display: flex; align-items: center; gap: 6px; width: 180px; height: 26px; padding: 0 8px; border-radius: 7px; background: rgba(0,0,0,.05); color: var(--faint); font-size: 12.5px; }
.mock-search .icon { width: 14px; height: 14px; }

.mock-panes { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-top: 1px solid var(--hair); }

/* List column */
.mock-list { padding: 14px 12px 14px 14px; min-width: 0; }
.mock-facts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; margin: 0 4px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.fact { padding: 0 14px; border-left: 1px solid var(--hair); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact small, .fact-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact small { display: block; font-size: 11px; color: var(--muted); }
.fact strong { display: block; margin: 1px 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact-note { display: block; font-size: 11px; color: var(--faint); }
.fact-note.is-warn { color: var(--orange); }
.gauge { position: relative; display: block; height: 5px; margin: 16px 0 6px; border-radius: 3px; background: rgba(0,0,0,.08); }
.gauge i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.gauge em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink-2); }
.gauge em::after { content: 'TVA'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font: 600 8.5px var(--sans); font-style: normal; letter-spacing: .04em; color: var(--muted); }

.mock-scope { display: flex; gap: 4px; margin: 0 4px 8px; font-size: 12px; }
.mock-scope span { padding: 2px 10px; border-radius: 999px; color: var(--ink-2); }
.mock-scope .is-on { background: rgba(0,0,0,.07); color: var(--ink); font-weight: 500; }

.mock-row { padding: 8px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.mock-row + .mock-row { margin-top: 2px; }
.mock-row > div { display: flex; align-items: center; gap: 8px; }
.mock-row > div:first-child { margin-bottom: 2px; }
.mock-row b { font-weight: 600; margin-right: auto; }
.mock-row .amt { font-weight: 500; }
.mock-row > div:last-child { font-size: 11.5px; color: var(--muted); }
.mock-row > div:last-child > span:first-child { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row.is-selected { background: var(--accent); color: #fff; }
.mock-row.is-selected > div:last-child { color: rgba(255,255,255,.82); }
.st { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st .icon { width: 12px; height: 12px; order: 2; }
.st-paid { color: var(--green); }
.st-paid::before { display: none; }
.st-sent { color: var(--blue); }
.st-late { color: var(--orange); }
.is-selected .st { color: #fff; }
.mock-relance { padding: 1px 8px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.06); color: var(--ink); font-size: 11px; font-weight: 500; }

/* Detail column: the invoice itself, like Preview */
.mock-detail { padding: 14px 22px 22px; background: #f6f6f7; border-left: 1px solid var(--hair); }
.mock-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mock-badges span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-size: 11px; font-weight: 600; }
.mock-badges .is-ok { background: #e5f4ea; color: var(--green); }
.mock-badges .icon { width: 12px; height: 12px; }
.mock-paper {
  padding: 20px 20px 16px;
  background: #fff; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 24px -8px rgba(43,29,21,.22);
  font-size: 10.5px; line-height: 1.4; color: var(--ink-2);
}
.mock-paper b { color: var(--ink); font-weight: 600; }
.mock-paper small { display: block; color: var(--faint); font-size: 9.5px; }
.pp-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pp-head b { display: block; font-size: 12px; }
.pp-num { text-align: right; }
.pp-num b { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.pp-meta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 14px; }
.pp-meta span, .pp-meta b { display: block; }
.pp-meta small + span, .pp-meta small + b { margin-bottom: 4px; }
.pp-lines { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 6px 0; }
.pp-lines div, .pp-total { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.pp-total { margin-top: 8px; font-size: 12px; }
.pp-total b { font-size: 14px; letter-spacing: -.01em; }
.pp-legal { margin-top: 12px; font-size: 9.5px; color: var(--muted); font-style: italic; }

@media (max-width: 1100px) {
  .mock-window { grid-template-columns: 1fr; }
  .mock-panes { grid-template-columns: minmax(0, 1fr) 300px; }
  .mock-detail { padding: 14px 16px 18px; }
  .mock-sidebar { display: none; }
  .mock-toolbar { padding-left: 18px; }
}
@media (max-width: 780px) {
  .mock-panes { grid-template-columns: 1fr; }
  .mock-detail { display: none; }
  .mock-search { width: auto; }
}
@media (max-width: 560px) {
  .mock-search { display: none; }
  .mock-facts { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .fact:nth-child(2) { display: none; }
  .fact:nth-child(3) { padding-right: 0; }
  .mock-list { padding: 12px 8px; }
  .mock-row { padding: 8px; }
}

/* -------------------------------------------------------------------------- Sections */

.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 780px; margin: 0 auto clamp(48px, 7vw, 72px); text-align: center; }
.section-head h2 { margin-bottom: 22px; }
.section-head .lead { max-width: 680px; margin: 0 auto; }

/* Reform timeline */
.reform {
  list-style: none; padding: 0; margin: 0 auto clamp(48px, 7vw, 72px);
  max-width: 820px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  position: relative;
}
.reform::before {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0 50%, var(--line) 50%);
}
.reform li { position: relative; padding: 32px 24px 0 0; }
.reform li::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line);
}
.reform li.is-past::before { background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.reform time { display: block; font-weight: 650; font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; }
.reform p { color: var(--muted); font-size: 16px; }
.reform strong { color: var(--ink); font-weight: 600; }
@media (max-width: 620px) {
  .reform { grid-template-columns: 1fr; gap: 28px; padding-left: 32px; }
  .reform::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold) 0 50%, var(--line) 50%); }
  .reform li { padding: 0; }
  .reform li::before { left: -32px; }
}

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  padding: 32px 30px 34px;
  border-radius: var(--radius);
  background: var(--tint);
}
.card .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 22px; }
.card h3 { font-size: 21px; font-weight: 650; letter-spacing: -.022em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.card-plain { background: transparent; padding: 28px 0 0; border-top: 1px solid var(--line); border-radius: 0; }
.card-plain .num { display: block; font: 600 14px var(--mono); color: var(--gold-deep); margin-bottom: 18px; }
.card-plain h3 { font-size: 24px; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}
.tile {
  position: relative; overflow: hidden;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: #fff;
}
.tile .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 20px; }
.tile h3 { font-size: 22px; font-weight: 650; letter-spacing: -.024em; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.tile-xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tile-xl h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.tile-xl p { font-size: 17px; max-width: 520px; }
.tile-tall { grid-row: span 2; display: flex; flex-direction: column; }
.tile-wide { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tile-text { max-width: 520px; }

/* Factur-X visual: a PDF page with its XML half sliding out */
.facturx {
  position: relative; height: 260px; overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(120% 120% at 0% 100%, var(--gold-soft), var(--tint) 60%);
}
.fx-pdf {
  position: absolute; left: 7%; top: 30px; bottom: -24px; width: 42%; padding: 22px 20px;
  transform: rotate(-2.5deg);
  background: #fff; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--hair), 0 20px 40px -10px rgba(43,29,21,.2);
  z-index: 2;
}
.fx-pdf i { display: block; height: 8px; margin-bottom: 12px; border-radius: 4px; background: #ececee; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.fx-label { display: inline-block; margin-bottom: 18px; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.fx-xml {
  position: absolute; left: 38%; right: 6%; top: 58px; bottom: -24px;
  padding: 22px 22px 22px 16%;
  box-shadow: 0 20px 40px -12px rgba(43,29,21,.35);
  border-radius: 12px;
  background: var(--coffee);
  color: #e9dccf;
  overflow: hidden;
}
.fx-xml code { display: block; white-space: pre; font: 12.5px/1.75 var(--mono); }
.fx-xml .t { color: #f1b85c; }

/* Local-first visual: rings around a key */
.local-viz { position: relative; flex: 1; min-height: 190px; margin-top: 28px; display: grid; place-items: center; }
.local-viz .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(200,134,31,.28); }
.local-viz .r1 { width: 96px; height: 96px; background: var(--gold-soft); }
.local-viz .r2 { width: 150px; height: 150px; border-style: dashed; animation: spin 40s linear infinite; }
.local-viz .r3 { width: 204px; height: 204px; border-color: rgba(0,0,0,.06); }
.local-viz .core { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.18); }
.local-viz .core .icon { margin: 0; width: 26px; height: 26px; color: #fff; }

.keys { display: flex; align-items: center; gap: 8px; flex: none; }
.keys kbd {
  display: grid; place-items: center;
  min-width: 64px; height: 64px; padding: 0 12px;
  border-radius: 14px;
  background: linear-gradient(#fff, #f2f2f4);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.1), 0 6px 14px rgba(0,0,0,.08);
  font: 500 26px var(--sans); color: var(--ink);
}
.keys span { margin-left: 10px; font-size: 15px; color: var(--muted); }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-tall { grid-row: auto; }
  .tile-xl { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: flex-start; }
  .facturx { height: 220px; }
  .fx-pdf { width: 52%; }
  .fx-xml { padding-left: 24%; }
  .fx-xml code { font-size: 11px; }
}

/* Statement */
.statement { text-align: center; margin-bottom: 28px; }
.statement p {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 700; letter-spacing: -.045em; line-height: 1.04;
}
.statement-lead { max-width: 620px; margin: 0 auto clamp(56px, 8vw, 88px); }
.principles { gap: clamp(20px, 4vw, 48px); }

/* Roadmap */
.roadmap {
  --progress: 37%;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.roadmap::before, .roadmap::after {
  content: ''; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; border-radius: 2px;
  background: var(--line);
}
.roadmap::after { right: auto; width: var(--progress); background: linear-gradient(90deg, var(--ink), var(--gold)); }
.roadmap li { position: relative; z-index: 1; }
.roadmap .step {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tint); box-shadow: inset 0 0 0 2px var(--line);
  margin-bottom: 22px;
}
.roadmap .step .icon { width: 20px; height: 20px; color: #fff; }
.roadmap .is-done .step { background: var(--ink); box-shadow: none; }
.roadmap .is-current .step { background: #fff; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 6px rgba(200,134,31,.15); }
.roadmap .is-current .step i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(.65); } }
.roadmap .state { font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 6px; }
.roadmap .is-done .state { color: var(--ink-2); }
.roadmap .is-current .state { color: var(--gold-deep); }
.roadmap h3 { font-size: 21px; font-weight: 650; letter-spacing: -.022em; margin-bottom: 8px; }
.roadmap li > p:last-child { color: var(--muted); font-size: 15.5px; }
@media (max-width: 800px) {
  .roadmap { grid-template-columns: 1fr; gap: 34px; padding-left: 60px; max-width: 520px; margin: 0 auto; }
  .roadmap::before, .roadmap::after { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; }
  .roadmap::after { bottom: auto; height: calc(var(--progress) * .9); background: linear-gradient(180deg, var(--ink), var(--gold)); }
  .roadmap .step { position: absolute; left: -60px; top: -8px; margin: 0; }
}

/* Join */
.join {
  max-width: 820px; margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 6vw, 80px);
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--gold-soft) 0%, rgba(251,243,228,0) 60%),
    #fff;
  box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -30px rgba(43,29,21,.25);
}
.join-icon { display: block; width: fit-content; margin: 0 auto 24px; }
.join-icon img { width: 80px; filter: drop-shadow(0 10px 16px rgba(43,29,21,.14)); }
.join h2 { margin-bottom: 16px; }
.join .lead { max-width: 560px; margin: 0 auto 32px; }
.join .waitlist { max-width: 480px; margin: 0 auto; }

/* FAQ */
.section-faq h2 { margin-bottom: 40px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-size: 19px; font-weight: 600; letter-spacing: -.02em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 17px; }

/* -------------------------------------------------------------------------- Inner pages */

.page { padding: clamp(56px, 9vw, 104px) 0 clamp(80px, 10vw, 120px); }
.page-error { min-height: 60vh; display: grid; align-items: center; }
.page-error h1 { margin-bottom: 18px; }
.page-error .lead { margin-bottom: 32px; }
.prose { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; color: var(--ink); margin-bottom: 32px; }
.prose h2 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin: 32px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------------------- Footer */

.footer { padding: 56px 0 40px; background: var(--tint); border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.tpl-default .footer, .is-home .footer { background: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.footer-brand small { display: block; font-size: 14px; color: var(--muted); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); }
.footer-cols h2 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px; font-family: var(--sans); }
.footer-cols a { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-cols a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: var(--faint); }
.footer-status { display: flex; align-items: center; gap: 8px; }

/* -------------------------------------------------------------------------- Motion */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2), .js .bento .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3), .js .bento .reveal:nth-child(3n) { transition-delay: .16s; }

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