/* SORTIE - site.css. Authoritative baseline; Tailwind (CDN) only refines. Solid colours only. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-normal.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;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-italic.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.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 {
  --bone: #F3EFE6;
  --paper: #FAF8F3;
  --ink: #121211;
  --soft: #4A4741;
  --muted: #6B675F;
  --line: #D8D2C4;
  --accent: #1F3B2D;
  --err: #8A2B1F;
  --dmuted: #B7B1A3;
  --dline: #2E2D2A;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset (replaces Tailwind Preflight, which is disabled) */
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.s-dark :focus-visible { outline-color: var(--bone); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.s-container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .s-container { padding: 0 32px; } }

.s-section { padding: 96px 0; scroll-margin-top: 88px; }
@media (min-width: 1024px) { .s-section { padding: 144px 0; } }
.s-section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section[id] { scroll-margin-top: 88px; }

.s-dark { background: var(--ink); color: var(--bone); }
.s-dark a { text-decoration-color: var(--dline); }

/* Header */
.s-header { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: 1px solid var(--line); }
.s-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; }
.wordmark {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 1.25rem; line-height: 1; text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 0.9375rem; }
.site-nav a:not(.btn-primary) { text-decoration: none; padding: 8px 0; }
.site-nav a:not(.btn-primary):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; font-size: 0.9375rem; }
.js .nav-toggle { display: inline-flex; align-items: center; }
@media (max-width: 767px) {
  .s-header-row { padding-top: 8px; padding-bottom: 8px; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .site-nav .btn-primary { margin: 12px 0 8px; justify-content: center; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
}
@media (min-width: 768px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .js .site-nav { display: flex; }
}

/* Buttons: one primary, one secondary */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 2px;
  font-family: var(--body); font-weight: 500; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.btn-primary { background: var(--accent); color: var(--bone); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bone); }
.btn-sm { min-height: 40px; padding: 0 18px; }
.s-dark .btn-primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.s-dark .btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.s-dark .btn-secondary { color: var(--bone); border-color: var(--bone); }
.s-dark .btn-secondary:hover { background: var(--bone); color: var(--ink); }

/* Type */
h1, h2, h3, .numeral, .price { font-family: var(--display); }
h1 { font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6.5rem); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -0.015em; }
h3 { font-size: 1.75rem; line-height: 1.15; }
em { font-style: italic; }
.eyebrow { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.4; color: var(--accent); margin-bottom: 20px; }
.s-dark .eyebrow { color: var(--dmuted); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--soft); max-width: 36rem; }
.text-soft { color: var(--soft); }
.section-intro { margin-top: 20px; max-width: 36rem; font-size: 1.1875rem; line-height: 1.6; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 1024px) { .hero { padding-top: 96px; padding-bottom: 112px; } }
.hero-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; } }
.hero-title { margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line-inner { display: block; }
.hero-form { margin-top: 36px; max-width: 34rem; }

/* Phones */
.hero-visual { width: 100%; max-width: 440px; justify-self: center; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.phone { width: 100%; }
.phone svg { width: 100%; height: auto; }
.phone-2, .phone-4 { margin-top: 48px; }
.phone-3, .phone-4 { display: none; }
@media (min-width: 640px) { .phone-3, .phone-4 { display: block; } }
@media (max-width: 639px) { .phone-2 { margin-top: 32px; } }
.phones-caption { margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
.f-ink { fill: var(--ink); } .f-paper { fill: var(--paper); } .f-line { fill: var(--line); }
.f-accent { fill: var(--accent); } .f-muted { fill: var(--muted); }
.k-line { stroke: var(--line); } .k-accent { stroke: var(--accent); } .k-paper { stroke: var(--paper); }
.k-muted { stroke: var(--muted); } .k-ink { stroke: var(--ink); }
.s-ink { fill: var(--ink); } .s-paper { fill: var(--paper); } .s-muted { fill: var(--muted); }
.t-serif { font-family: var(--display); }
.t-small { font-family: var(--body); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; }
.t-body { font-family: var(--body); font-size: 13px; }

/* Marquee (hard edges, words only) */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bone); }
.marquee-track { display: flex; width: max-content; }
.marquee-track:hover .marquee-list { animation-play-state: paused; }
.marquee-list { display: flex; flex-shrink: 0; animation: marquee 40s linear infinite; }
.marquee-list li {
  font-family: var(--display); font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); line-height: 1;
  padding: 24px 40px; white-space: nowrap;
}
.marquee-list li::after { content: "\00B7"; margin-left: 80px; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* How it works */
.steps { display: grid; gap: 40px; margin-top: 64px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 56px 32px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 24px; }
.step-rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left center; }
.numeral { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 16px; }
.step p { margin-top: 12px; color: var(--soft); }
.own-apps { margin-top: 80px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; max-width: 52rem; }
.own-apps p { margin-top: 12px; color: var(--soft); }

/* Pricing */
.tiers { display: grid; gap: 24px; margin-top: 64px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; padding: 32px; background: var(--bone); border: 1px solid var(--line); border-radius: 2px; }
.tier-from { margin-top: 24px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.tier-price { margin-top: 4px; }
.price { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; }
.unit { font-size: 0.875rem; color: var(--muted); }
.tier-blurb { margin-top: 16px; color: var(--soft); }
.tier-list { margin: 24px 0 32px; border-top: 1px solid var(--line); flex: 1; }
.tier-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.tier .btn-secondary { align-self: flex-start; }
.fineprint { margin-top: 32px; max-width: 52rem; font-size: 0.875rem; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; } }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer;
  padding: 22px 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--body); font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 24px; max-width: 40rem; color: var(--soft); }

/* Waitlist form */
.waitlist { display: block; }
.wl-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }
.s-dark .opt { color: var(--dmuted); }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--muted); border-radius: 2px; font-size: 1rem;
}
.field input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.s-dark .field input[type="text"], .s-dark .field input[type="email"] { border-color: var(--dmuted); }
.field.consent { grid-template-columns: 24px 1fr; align-items: start; gap: 12px; }
.field.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.field.consent label { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: var(--soft); }
.s-dark .field.consent label { color: var(--dmuted); }
.field.consent a { text-underline-offset: 3px; }
.waitlist .btn-primary { justify-self: start; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wl-status { margin-top: 12px; font-size: 0.9375rem; }
.wl-status:empty { display: none; }
.wl-status.is-ok { padding: 20px; background: var(--paper); border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; }
.wl-status.is-error { color: var(--err); }
.s-dark .wl-status.is-ok { background: transparent; border-color: var(--bone); color: var(--bone); }
.s-dark .wl-status.is-error { color: var(--bone); border-left: 3px solid var(--bone); padding-left: 12px; }
.wl-help { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); max-width: 34rem; }
.s-dark .wl-help { color: var(--dmuted); }
.wl-note { margin-top: 12px; font-size: 0.875rem; }

/* Final CTA + footer */
.s-cta { padding: 96px 0 72px; }
@media (min-width: 1024px) { .s-cta { padding: 144px 0 96px; } }
.cta-mark {
  display: flex; font-family: var(--display); text-transform: uppercase;
  font-size: clamp(4.5rem, 24vw, 19rem); line-height: 0.9; letter-spacing: 0.02em;
  color: var(--bone); margin-bottom: 64px; overflow: hidden; padding-bottom: 0.06em;
}
.cta-mark .ch { display: inline-block; }
.cta-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.cta-copy { margin-top: 20px; color: var(--dmuted); max-width: 30rem; }
.s-footer { border-top: 1px solid var(--dline); padding: 56px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 2fr; } }
.footer-mark { font-size: 1.5rem; }
.footer-legal { margin-top: 12px; color: var(--dmuted); font-size: 0.9375rem; }
.footer-links li { padding: 4px 0; }
.footer-links a, .s-footer a { text-underline-offset: 4px; }
.footer-address { margin-top: 12px; font-style: normal; color: var(--dmuted); font-size: 0.9375rem; }
.footer-fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dline); display: grid; gap: 8px; font-size: 0.8125rem; color: var(--dmuted); max-width: 60rem; }

/* Legal prose */
.legal { max-width: 68ch; }
.legal.s-container { max-width: 68ch; }
.legal h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 0.9375rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: 0; margin: 48px 0 12px; }
.legal h3 { font-size: 1.25rem; margin: 28px 0 8px; font-family: var(--body); font-weight: 600; }
.legal p, .legal li { line-height: 1.75; }
.legal p { margin: 0 0 16px; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 16px; }
.legal ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { text-underline-offset: 3px; color: var(--accent); }
.legal .toc { padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; margin-bottom: 24px; }
.legal .toc ol { margin: 0; columns: 1; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--paper); font-weight: 600; }
.legal section { scroll-margin-top: 88px; }
.legal [id] { scroll-margin-top: 88px; }
.legal-wrap { padding: 72px 0 112px; }

/* Motion: start states only apply when JS + motion are available */
html.anim [data-reveal] { opacity: 0; transform: translateY(24px); }
html.anim [data-hero] { opacity: 0; transform: translateY(20px); }
html.anim .hero-title .line-inner { transform: translateY(105%); }
html.anim .phone { opacity: 0; transform: translateY(60px); }
html.anim .cta-mark .ch { transform: translateY(40%); opacity: 0; }
html.anim .step-rule { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
