/* Finchly — site styles */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format("woff2");
  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 {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F7F7F9;
  --ink: #17151F;
  --ink-2: #4A4658;
  --ink-3: #6E6A80;
  --line: rgba(23, 21, 31, .09);
  --line-strong: rgba(23, 21, 31, .16);
  --gold: #E2AE2A;
  --gold-ink: #8A6510;
  --gold-bg: #FBF1D6;
  --leaf: #1F7A52;
  --leaf-bg: #E3F2EA;
  --red: #B4233A;
  --red-bg: #FBE6E9;
  --night: #15131E;
  --night-2: #1F1C2B;
  --night-ink: #EEECF4;
  --night-muted: #A6A2B6;
  --night-line: rgba(238, 236, 244, .1);
  --btn-bg: #17151F;
  --btn-ink: #FFFFFF;
  --btn-hover: #2B2838;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-xl: 28px; --r-lg: 18px; --r-md: 12px;
  --shadow-float: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(23,21,31,.28), 0 12px 24px -16px rgba(23,21,31,.12);
  color-scheme: light;
}
  :root[data-theme="dark"] {
    --bg: #121019; --surface: #1C1927; --surface-2: #24202F;
    --ink: #F1EFF7; --ink-2: #BDB8CC; --ink-3: #9590A8;
    --line: rgba(241,239,247,.1); --line-strong: rgba(241,239,247,.18);
    --gold-ink: #F0C75E; --gold-bg: rgba(226,174,42,.14);
    --leaf: #5CC897; --leaf-bg: rgba(92,200,151,.14);
    --red: #FF8A9B; --red-bg: rgba(255,138,155,.14);
    --night: #0C0B11; --night-2: #1A1824;
    --btn-bg: #F1EFF7; --btn-ink: #17151F; --btn-hover: #FFFFFF;
    --shadow-float: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.7);
    color-scheme: dark;
  }
  :root[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); }
  :root[data-theme="dark"] .msg-out { background: #2E2A3D; }
  :root[data-theme="dark"] .phone { box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1) inset; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
section[id], [id].anchor { scroll-margin-top: 84px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */
h1, .h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 600; font-stretch: 82%; margin: 0 0 24px; text-wrap: balance; }
h2, .h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -.04em; font-weight: 600; font-stretch: 82%; margin: 0; text-wrap: balance; }
h3 { letter-spacing: -.02em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 30em; margin: 0 0 36px; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.section { padding: 128px 0; }
.section-tight { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 88px 0; } .section-tight { padding: 72px 0; } }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; max-width: 32em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 "Instrument Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 0; touch-action: manipulation; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--btn-bg); color: var(--btn-ink); }
.btn-dark:hover { background: var(--btn-hover); box-shadow: 0 8px 24px -10px rgba(23,21,31,.5); }
.btn-light { background: var(--night-ink); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-under { font-weight: 600; font-size: 15px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease); }
.link-under:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.actions { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
body.menu-open .site-header::before { background: var(--bg); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.02em; flex: none; }
.brand img { width: 30px; height: auto; }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.links a { text-decoration: none; transition: color .2s; padding: 6px 0; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.lang { font-size: 14px; color: var(--ink-3); text-decoration: none; padding: 8px 4px; }
.lang:hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 12px; margin-right: -10px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .links, .nav > .btn { display: none; }
  .lang { margin-left: auto; }
  .menu-btn { display: block; }
  .mobile-menu { display: block; position: fixed; inset: 68px 0 0; background: var(--bg); padding: 16px 0 32px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .mobile-menu nav a { display: block; font-size: 30px; font-weight: 600; font-stretch: 85%; letter-spacing: -.03em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 28px; width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 140px; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 120px; } }
.proof { display: flex; gap: 10px 26px; margin-top: 56px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; padding: 0; list-style: none; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.check { width: 15px; height: 15px; color: var(--leaf); flex: none; }

/* Scene (inbox) */
.scene { position: relative; isolation: isolate; }
.scene::before { content: ""; position: absolute; inset: -12% -8% -14% -6%; z-index: -1; background: radial-gradient(60% 55% at 60% 45%, rgba(226,174,42,.18), transparent 70%), radial-gradient(50% 50% at 30% 70%, rgba(120,150,210,.16), transparent 70%); filter: blur(10px); pointer-events: none; }
.window { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-float); overflow: hidden; }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.win-head strong { color: var(--ink); font-weight: 600; font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,82,.5); } 70% { box-shadow: 0 0 0 7px rgba(31,122,82,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,82,0); } }
.win-body { padding: 22px 22px 30px; min-height: 440px; display: flex; flex-direction: column; gap: 14px; }
.msg { border-radius: var(--r-lg); padding: 16px 18px; }
.msg-in { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.msg-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.msg-meta b { color: var(--ink); font-weight: 600; font-size: 14px; }
.msg p { margin: 0; font-size: 15px; line-height: 1.55; }
.status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); padding: 2px 4px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.msg-out { background: #17151F; color: #F2F0F7; margin-left: 36px; }
.msg-out .msg-meta { color: #A6A2B6; }
.msg-out .msg-meta b { color: #fff; }
.typed { white-space: pre-wrap; min-height: 4.6em; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sent { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--leaf); background: var(--leaf-bg); padding: 6px 12px; border-radius: 999px; }
.sent .check { width: 14px; height: 14px; }
.owner { position: absolute; left: -44px; bottom: -88px; width: 290px; background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(23,21,31,.35); }
@media (max-width: 980px) { .owner { left: auto; right: 12px; bottom: -36px; } }
@media (max-width: 480px) { .owner { position: relative; right: auto; bottom: auto; width: auto; margin: -24px 12px 0; } }
.owner-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--red-bg); color: var(--red); white-space: nowrap; }
.chip-leaf { background: var(--leaf-bg); color: var(--leaf); }
.chip-gold { background: var(--gold-bg); color: var(--gold-ink); }
.chip-plain { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.owner h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.owner p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.mini-actions { display: flex; gap: 8px; }
.mini-actions span { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-actions span:first-child { background: var(--btn-bg); color: var(--btn-ink); box-shadow: none; }
.step { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.on { opacity: 1; transform: none; }
.owner.step { transform: translateY(16px) scale(.98); }
.owner.step.on { transform: none; }

/* Sectors line */
.sectors { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.sectors .wrap { display: flex; gap: 12px 36px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--ink-3); }
.sectors ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-weight: 500; font-size: 17px; }

/* Problem / statement */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; gap: 40px; } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts strong { font-size: 40px; font-weight: 600; font-stretch: 82%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 8px; } }

/* Dark band with agents */
.band { background: var(--night); color: var(--night-ink); padding: 112px 0; border-radius: 40px; }
.band + .band-after { background: var(--night); }
.band .section-head p { color: var(--night-muted); }
.agents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.agent { display: grid; grid-template-columns: 1.1fr 1.6fr auto 24px; gap: 32px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--night-line); text-decoration: none; color: inherit; transition: background-color .35s var(--ease), padding .35s var(--ease); border-radius: 16px; }
.agent:hover, .agent:focus-visible { background: var(--night-2); padding-left: 20px; padding-right: 20px; }
.agent h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.agent p { margin: 0; color: var(--night-muted); font-size: 16px; }
.agent .chev { width: 20px; height: 20px; color: var(--night-muted); transition: transform .35s var(--ease), color .35s; }
.agent:hover .chev { transform: translateX(4px); color: var(--gold); }
.price { font-size: 15px; white-space: nowrap; text-align: right; }
.price small { display: block; color: var(--night-muted); font-size: 13px; }
@media (max-width: 760px) { .agent { grid-template-columns: 1fr auto; gap: 6px 16px; } .agent h3 { grid-column: 1; } .agent p { grid-column: 1 / -1; } .agent .price { grid-column: 1; grid-row: 3; text-align: left; margin-top: 8px; } .agent .chev { grid-column: 2; grid-row: 1; } }
.band-note { margin: 28px 0 0; font-size: 14px; color: var(--night-muted); }
.band-note a { color: var(--night-ink); }

/* Timeline (how it works) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 40px 32px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.timeline li:last-child::before { background: var(--gold); box-shadow: none; }
.timeline .when { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.timeline h3 { margin: 6px 0 10px; font-size: 24px; font-weight: 600; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 26em; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 36px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline li { padding: 0; }
  .timeline li::before { left: -36px; top: 4px; }
}

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
@media (max-width: 980px) { .demo { grid-template-columns: 1fr; gap: 40px; } }
.demo-steps { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.demo-steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.demo-steps b { color: var(--ink); font-weight: 600; }
.demo-steps svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ink); }
.panel { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-float); padding: 36px; }
@media (max-width: 480px) { .panel { padding: 24px 20px; border-radius: 22px; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/1.4 "Instrument Sans", system-ui, sans-serif; color: var(--ink); background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--r-md); padding: 13px 14px; transition: box-shadow .2s, background-color .2s; }
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(226,174,42,.25); }
.field .help { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.field.invalid input, .field.invalid textarea { box-shadow: inset 0 0 0 1.5px var(--red); }
.field .err { font-size: 13px; color: var(--red); margin: 6px 0 0; display: none; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { margin: 0; font-weight: 500; font-size: 14px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; user-select: none; }
.segmented label:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.segmented input:checked + span { background: var(--btn-bg); color: var(--btn-ink); box-shadow: none; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--ink-3); font-size: 13px; max-width: 30em; }
.form-foot small a { color: var(--ink-2); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: none; }
.result.show { display: block; }
.result-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-bg); color: var(--leaf); margin-bottom: 20px; }
.result-icon svg { width: 22px; height: 22px; }
.result.is-warn .result-icon { background: var(--gold-bg); color: var(--gold-ink); }
.result h3 { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.result p { margin: 0 0 24px; color: var(--ink-2); }
.form-error { display: none; font-size: 14px; color: var(--red); background: var(--red-bg); padding: 12px 14px; border-radius: var(--r-md); margin: 0; }
.form-error.show { display: block; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-float); overflow: hidden; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.pricing-list { padding: 40px; }
.pricing-list ul { list-style: none; margin: 0; padding: 0; }
.pricing-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pricing-list li:first-child { padding-top: 0; }
.pricing-list li b { font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.pricing-list li span { color: var(--ink-2); font-size: 15px; display: block; }
.pricing-list .amt { font-size: 22px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-list .amt small { font-size: 14px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.pricing-list .setup { padding-top: 24px; border-bottom: 0; }
.pricing-side { background: var(--surface-2); padding: 40px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
@media (max-width: 900px) { .pricing-side { border-left: 0; border-top: 1px solid var(--line); } .pricing-list, .pricing-side { padding: 28px 24px; } }
.pricing-side h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks .check { margin-top: 5px; }
.pricing-side .btn { margin-top: auto; }
.pilot { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding: 22px 28px; border-radius: var(--r-lg); background: var(--gold-bg); box-shadow: inset 0 0 0 1px var(--line); }
.pilot .chip { background: var(--surface); }
.pilot p { margin: 0; flex: 1; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pilot p b { color: var(--ink); font-weight: 600; }
.pilot .link-under { white-space: nowrap; color: var(--ink); }
@media (max-width: 700px) { .pilot { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; } .pilot .link-under { white-space: normal; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 48px 24px 0; color: var(--ink-2); max-width: 44em; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } .faq details p { padding-right: 0; } }

/* CTA */
.cta { background: var(--night); color: var(--night-ink); border-radius: 40px; padding: 96px 64px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; z-index: -1; background: radial-gradient(closest-side, rgba(226,174,42,.22), transparent); pointer-events: none; }
.cta p { color: var(--night-muted); font-size: 18px; margin: 20px 0 0; max-width: 30em; }
.cta .actions { justify-content: flex-end; }
.cta .link-under { color: var(--night-ink); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 56px 28px; border-radius: 28px; } .cta .actions { justify-content: flex-start; } }

/* Footer */
.site-footer { padding: 80px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid p { margin: 16px 0 0; max-width: 24em; }
.foot-grid h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--ink-3); }
.foot-bottom a { color: inherit; }

/* Page hero (sub pages) */
.page-hero { padding-top: 56px; padding-bottom: 96px; }
.page-hero.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-bottom: 128px; }
@media (max-width: 980px) { .page-hero.split { grid-template-columns: 1fr; gap: 48px; padding-bottom: 96px; } }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin: 0 0 28px; padding: 0; list-style: none; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.page-hero .price-tag { margin-top: 36px; font-size: 15px; color: var(--ink-2); }
.page-hero .price-tag b { color: var(--ink); font-weight: 600; font-size: 17px; }

/* Capability list (agent pages) */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; list-style: none; margin: 0; padding: 0; }
.caps li { padding: 28px 0; border-top: 1px solid var(--line); }
.caps h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.caps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }
.split-2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; gap: 32px; } }
.example { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 26px; }
.example + .example { margin-top: 12px; }
.example .label { font-size: 13px; color: var(--ink-3); font-weight: 500; margin: 0 0 6px; }
.example p { margin: 0; }
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a { display: block; height: 100%; text-decoration: none; padding: 24px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease), box-shadow .3s; }
.related a:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.related b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.related span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* Artifact: quote document */
.doc { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-float); padding: 32px; font-size: 14px; position: relative; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.doc-head strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.doc-head span { color: var(--ink-3); font-size: 13px; }
.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 0 0 10px; }
.doc td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.doc td:last-child, .doc th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.doc td small { display: block; color: var(--ink-3); font-size: 12px; }
.doc .total td { font-weight: 600; font-size: 16px; border-top: 1.5px solid var(--ink); padding-top: 14px; }
.doc .sub td { color: var(--ink-2); }
.doc-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-foot .mini-actions span:first-child { background: var(--btn-bg); }
.doc-note { position: absolute; right: -28px; top: 72px; background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; width: 220px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px rgba(23,21,31,.35); color: var(--ink-2); }
.doc-note b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 13px; }
@media (max-width: 1100px) { .doc-note { position: static; width: auto; margin-top: 18px; box-shadow: inset 0 0 0 1px var(--line); } }
@media (max-width: 480px) { .doc { padding: 22px 18px; } }

/* Artifact: payment timeline */
.ledger { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-float); padding: 28px 30px; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ledger-head strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; display: block; }
.ledger-head span { font-size: 13px; color: var(--ink-3); }
.ledger ol { list-style: none; margin: 0; padding: 0; position: relative; }
.ledger ol::before { content: ""; position: absolute; left: 7px; top: 26px; bottom: 26px; width: 1px; background: var(--line-strong); }
.ledger li { display: grid; grid-template-columns: 15px 1fr auto; gap: 18px; padding: 16px 0; align-items: start; position: relative; }
.ledger li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); margin-top: 3px; }
.ledger li.done::before { background: var(--leaf); box-shadow: none; }
.ledger li b { font-weight: 600; font-size: 15px; display: block; }
.ledger li p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.ledger li q { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); background: var(--surface-2); padding: 12px 14px; border-radius: var(--r-md); quotes: none; box-shadow: inset 0 0 0 1px var(--line); }
.ledger time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 480px) { .ledger { padding: 22px 18px; } .ledger li { grid-template-columns: 15px 1fr; } .ledger time { grid-column: 2; } }

/* Artifact: phone */
.phone-stage { display: flex; justify-content: center; position: relative; isolation: isolate; }
.phone-stage::before { content: ""; position: absolute; inset: 0 -10%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(226,174,42,.16), transparent 70%); pointer-events: none; }
.phone { width: 340px; max-width: 100%; background: #0E0D13; border-radius: 48px; padding: 12px; box-shadow: 0 40px 80px -40px rgba(23,21,31,.55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone-screen { background: #F2F2F5; border-radius: 37px; overflow: hidden; color: #17151F; min-height: 560px; display: flex; flex-direction: column; }
.phone-top { padding: 16px 20px 14px; text-align: center; border-bottom: 1px solid rgba(23,21,31,.08); background: rgba(255,255,255,.7); }
.phone-top .notch { width: 92px; height: 24px; background: #0E0D13; border-radius: 999px; margin: 0 auto 12px; }
.phone-top b { display: block; font-size: 14px; font-weight: 600; }
.phone-top span { font-size: 12px; color: #6E6A80; }
.thread { padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; flex: 1; }
.thread .day { align-self: center; font-size: 11px; color: #6E6A80; margin: 4px 0; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(23,21,31,.06); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: #17151F; color: #F2F0F7; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; box-shadow: none; }
.stars { display: flex; gap: 3px; margin-top: 8px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.review-link { display: block; margin-top: 8px; font-weight: 600; color: #17151F; text-decoration: underline; text-underline-offset: 3px; }

/* Prose (privacy, about) */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; letter-spacing: -.03em; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--ink); }
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.values h3 { margin: 0; font-size: 24px; font-weight: 600; }
.values p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .values li { grid-template-columns: 1fr; gap: 8px; } }
.contact-lines { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-lines li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-lines small { display: block; color: var(--ink-3); font-size: 14px; margin-bottom: 2px; }
.contact-lines a, .contact-lines span { font-size: 19px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Reveal: only the scene and a few elements animate; content is visible by default */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .step { opacity: 1; transform: none; }
}
@media (min-width: 861px) { .faq-grid > h2 { position: sticky; top: 100px; align-self: start; } }
@media (max-width: 560px) { .pricing-list li { flex-direction: column; gap: 6px; } }
.field legend { padding: 0; }
@media (max-width: 480px) { .doc-head { flex-direction: column; } .doc-head > div:last-child { text-align: left !important; } }

/* ---------- v2 additions ---------- */

/* Theme toggle */
.theme-btn { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex: none; transition: background-color .2s, color .2s; }
.theme-btn:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: block; } .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
@media (max-width: 900px) { .nav .theme-btn { margin-left: 0; } }
.nav .lang { margin-left: 0; }
@media (max-width: 900px) { .nav .lang { margin-left: auto; } }

/* Back button */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px; margin: 0 0 24px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); transition: box-shadow .2s, transform .25s var(--ease); }
.back:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.back:hover svg { transform: translateX(-3px); }
.back svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.back + .crumbs { margin-top: 0; }

/* Hero agent switcher */
.hero-v2 { padding-top: 48px; padding-bottom: 140px; }
@media (max-width: 980px) { .hero-v2 { padding-top: 32px; padding-bottom: 112px; } }
.agent-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 40px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.agent-tabs::-webkit-scrollbar { display: none; }
.agent-tab { position: relative; overflow: hidden; border: 0; background: transparent; color: var(--ink-2); font: 600 14px/1 "Instrument Sans", system-ui, sans-serif; min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .25s, background-color .25s; touch-action: manipulation; }
.agent-tab:hover { color: var(--ink); }
.agent-tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.agent-tab .bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: 0; }
.agent-tab[aria-selected="true"] .bar.run { opacity: 1; animation: fillbar var(--dur, 10s) linear forwards; }
.hero-switch.paused .bar { animation-play-state: paused !important; }
@keyframes fillbar { to { transform: scaleX(1); } }
@media (max-width: 480px) { .agent-tab { padding: 0 13px; font-size: 13px; } }
.hero-panels { display: grid; }
.hero-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.hero-panel.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .05s, transform .6s var(--ease) .05s; }
@media (max-width: 980px) { .hero-panel { grid-template-columns: 1fr; gap: 48px; } }
.hero-panel .more { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.hero-panel .more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hero-switch .proof { margin-top: 48px; }

/* Generic step reveal for artifacts (doc rows, ledger items, bubbles) */
[data-steps] .step { opacity: 0; transform: translateY(8px); }
[data-steps] .step.on { opacity: 1; transform: none; }
.doc tr.step, .ledger li.step { transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* Flow (agent pages) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: flow; }
.flow::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: var(--line-strong); }
.flow li { position: relative; counter-increment: flow; }
.flow .node { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); position: relative; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.flow .node::before { content: counter(flow); }
.flow li[data-actor="finchly"] .node { background: var(--gold); box-shadow: none; color: #17151F; }
.flow li[data-actor="jij"] .node { background: var(--btn-bg); color: var(--btn-ink); box-shadow: none; }
.flow .actor { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.flow li[data-actor="klant"] .actor { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.flow li[data-actor="finchly"] .actor { background: var(--gold-bg); color: var(--gold-ink); }
.flow li[data-actor="jij"] .actor { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.flow h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.2; }
.flow p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.flow-legend li { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.flow-note { margin: 28px 0 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; }
.flow-note b { color: var(--ink); }
@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 1px; height: auto; }
  .flow li { display: grid; grid-template-columns: 39px 1fr; gap: 0 20px; padding-bottom: 32px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow .node { grid-row: 1 / span 3; margin: 0; }
}

/* Demo agent switching */
.demo-for { display: none; }
.demo-for.on { display: block; }
.receive { margin-top: 32px; }
.receive h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.receive .example p { font-size: 15px; color: var(--ink-2); }
.receive .example .label { color: var(--ink); font-weight: 600; font-size: 14px; }
.field-cond[hidden] { display: none !important; }
