@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --paper: #F5F3EE;
  --paper-2: #EFE9DD;
  --ink: #15171A;
  --ink-2: #4D525A;
  --ink-3: #6B7078;
  --rule: #D6D2C8;
  --accent: #C2410C;
  --signal: #E4572E;
  --night: #121417;
  --night-ink: #F2F0EB;
  --night-ink-2: #B4B8BF;
  --night-ink-3: #8D929A;
  --night-rule: #2A2E34;
  --night-accent: #E85A2C;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.label { font-family: var(--mono); font-size: 14px; color: var(--ink-3); white-space: pre-wrap; letter-spacing: 0.02em; }
.label--dark { color: var(--night-ink-3); }
.label--ink { color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; }
.fine { font-size: 14px; color: var(--ink-3); }
.source { font-family: var(--mono); font-size: 13px; color: var(--night-ink-3); max-width: 70em; }
.source--light { color: var(--ink-3); }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 6px; background: var(--signal); color: var(--ink); font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease; white-space: nowrap; }
.btn:hover { background: #D14A22; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }

.signup { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 520px; }
.signup input[type=email], .signup select { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); font: 400 17px var(--sans); }
.signup input[type=email]:focus, .signup select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(228, 87, 46, .25); }
.signup__status { grid-column: 1 / -1; min-height: 1.5em; font-size: 15px; }
.signup__status[data-tone=error] { color: #9F2A0A; }
.signup__status[data-tone=success] { color: var(--ink); font-weight: 500; }
.signup--stack { grid-template-columns: 1fr; gap: 8px; }
.signup--stack label { font-family: var(--mono); font-size: 14px; margin-top: 8px; }
.signup--stack .btn { margin-top: 16px; }
.signup--stack input[type=email], .signup--stack select { border-color: rgba(21, 23, 26, .35); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(245, 243, 238, .92); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--rule); }
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: .18em; text-decoration: none; }
.wordmark--small { font-size: 15px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .signup { margin-top: 8px; }

.hero__visual { display: flex; justify-content: center; }
.phone { position: relative; width: 300px; height: 610px; border: 10px solid var(--ink); border-radius: 46px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(21, 23, 26, .45); }
.phone__bar { display: flex; align-items: center; gap: 8px; margin: 38px 14px 0; padding: 9px 12px; border-radius: 10px; background: var(--paper); font-family: var(--mono); font-size: 12px; }
.phone__dot { width: 8px; height: 8px; border-radius: 50%; background: #2F6DB5; }
.phone__url { flex: 1; }
.phone__tag { padding: 2px 6px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-3); font-size: 11px; }
.phone__page { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; filter: saturate(.2); }
.phone__note { margin-top: 6px; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.sk { border-radius: 4px; background: #E7E4DC; }
.sk--title { height: 22px; width: 62%; background: #D9D5CB; }
.sk--line { height: 10px; width: 100%; }
.sk--short { width: 58%; }
.sk--block { height: 84px; }
.sk--dark { background: #2A2E34; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 18px 18px 16px; border-radius: 26px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 -12px 30px -18px rgba(21, 23, 26, .35); }
.sheet__label { font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--ink-3); }
.sheet__amount { margin-top: 10px; font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.sheet__payee { font-size: 15px; color: var(--ink-2); }
.sheet__btn { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ink); color: var(--paper); text-align: center; font-weight: 600; font-size: 15px; }

/* Dark sections */
.dark { background: var(--night); color: var(--night-ink); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--paper-2); }
.section h2 { margin-top: 16px; }
.pain__lead { margin-top: 20px; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--night-ink-2); max-width: 34em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin: clamp(40px, 6vw, 64px) 0; }
.stat { border-top: 1px solid var(--night-rule); padding-top: 20px; }
.stat__num { font-family: var(--mono); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; color: var(--night-accent); }
.stat__text { margin-top: 8px; color: var(--night-ink-2); }
.scenarios { margin-bottom: 32px; padding: 24px 28px; border: 1px solid var(--night-rule); border-radius: 12px; }
.scenarios__title { font-weight: 600; margin-bottom: 12px; }
.scenarios li { padding: 8px 0 8px 28px; position: relative; color: var(--night-ink-2); }
.scenarios li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 2px; background: var(--night-accent); }

/* Hero extras */
.ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 24px; }
.step__num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--signal); font-family: var(--mono); font-weight: 500; }
.step h3 { margin-top: 20px; font-size: 24px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--ink-2); }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 5vw, 56px); }
.use { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); }
.use h3 { font-size: 22px; font-weight: 600; }
.use p { color: var(--ink-2); flex: 1; }
.use__cta { font-weight: 600; color: var(--accent); text-decoration: none; }
.use__cta:hover { text-decoration: underline; }

/* Compare */
.table-scroll { margin-top: clamp(28px, 4vw, 48px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
.compare thead th { padding: 0 16px 14px; font-family: var(--mono); font-size: 14px; font-weight: 500; text-align: left; border-bottom: 3px solid var(--ink); }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { padding: 18px 16px 18px 0; text-align: left; font-weight: 500; width: 46%; }
.compare td { padding: 18px 16px; color: var(--ink-3); }
.compare td.yes { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.compare tbody tr { border-bottom: 1px solid var(--rule); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 5vw, 56px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); }
.plan--featured { border: 2px solid var(--ink); }
.plan__badge { position: absolute; top: -13px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; }
.plan__name { font-size: 20px; font-weight: 600; }
.plan__price { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.plan__price span { font-size: 16px; color: var(--ink-3); letter-spacing: 0; }
.plan__list { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.plan__list li { padding-left: 20px; position: relative; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.btn--ghost { background: transparent; border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.fine--center { margin-top: 24px; text-align: center; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* Join */
.join { background: var(--signal); padding: clamp(64px, 9vw, 120px) 0; }
.join__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.join h2 { margin-top: 16px; }
.join__text { margin-top: 20px; font-size: 19px; color: #2B1A12; max-width: 30em; }
.join .signup__status[data-tone=error] { color: var(--ink); font-weight: 600; }

.joined { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 16px; background: var(--paper); outline: none; }
.joined[hidden], .signup[hidden], .joined__native[hidden] { display: none; }
.joined__pos { font-family: var(--mono); font-size: clamp(56px, 8vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.joined__text { font-size: 18px; color: var(--ink-2); }
.joined__ask { margin-top: 8px; font-weight: 600; }
.joined__share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.joined__share input { min-height: 52px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; font: 400 15px var(--mono); color: var(--ink); }
.joined__native { align-self: flex-start; padding: 0; border: 0; background: none; font: 600 16px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; }

.footer { padding: 32px 0 40px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer .wordmark { color: var(--ink); }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 80px 0; }

@media (max-width: 1080px) {
  .uses, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { row-gap: 32px; }
}

@media (max-width: 960px) {
  .hero__grid, .join__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .signup { grid-template-columns: 1fr; }
  .stats, .uses, .plans { grid-template-columns: minmax(0, 1fr); }
  .phone { transform: scale(.92); transform-origin: top center; margin-bottom: -48px; }
  .joined { padding: 24px; }
  .joined__share { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
