/*
 * LarLine site styles — one file for every page built by scripts/build-pages.py.
 * (terms.html and privacy.html keep their own inline shell.)
 *
 * Third design (2026-09-21): dark, editorial, the product shown working. Ink navy as the GROUND
 * (the app's refresh made it a surface), Instrument Serif for headlines, Inter for everything
 * else, teal #007b82 as the one accent, rust for the missed-call moment. Light bands alternate
 * with dark ones so a page breathes.
 */
:root {
  --ink: #0c1a2b;
  --ink-2: #102439;
  --ink-3: #182f47;
  --paper: #f6f4ef;
  --white: #ffffff;
  --text: #102439;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --on-dark: #f3f1ec;
  --on-dark-2: #b6c0cc;
  --on-dark-3: #7d8b9b;
  --rule: #e5e2dc;
  --rule-dark: rgba(255,255,255,0.10);
  --accent: #007b82;
  --accent-bright: #2fc4cb;
  --accent-tint: #d8f5f6;
  --signal: #b94a00;
  --signal-bright: #ff8a5b;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: pretty; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { display: block; }
svg { flex-shrink: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .eyebrow { color: var(--accent-bright); }
.light { background: var(--paper); color: var(--text); }
.light .eyebrow { color: var(--accent); }
.section { padding: 72px 0; }
.section h2 { font-size: clamp(36px, 6vw, 54px); margin-top: 14px; max-width: 18ch; }
.lede { font-size: 17px; max-width: 54ch; margin-top: 16px; }
.dark .lede { color: var(--on-dark-2); }
.light .lede { color: var(--text-2); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 500; text-decoration: none; }
.light .more { color: var(--accent); }
.dark .more { color: var(--accent-bright); }
.more:hover { text-decoration: underline; }

/* Buttons: one shape. Filled teal, filled light, ghost. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 10px; text-decoration: none; min-height: 50px; border: 1.5px solid transparent; white-space: nowrap; }
.btn--teal { background: var(--accent); color: #fff; }
.btn--teal:hover { background: #00676d; color: #fff; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.light .btn--ghost { color: var(--text); border-color: rgba(16,36,57,0.3); }
.light .btn--ghost:hover { border-color: var(--text); }
.btn small { font-size: 12px; font-weight: 500; opacity: 0.75; margin-left: 2px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; text-decoration: none; padding: 10px 2px; }
.dark .textlink { color: var(--on-dark-2); }
.dark .textlink:hover { color: #fff; }
.light .textlink { color: var(--accent); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ── nav ── */
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: none; align-items: center; gap: 26px; margin-left: 28px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--on-dark-2); text-decoration: none; }
.nav__links a:hover { color: #fff; }
.nav__spacer { flex-grow: 1; }
.nav__signin { font-size: 15px; font-weight: 500; color: var(--on-dark-2); text-decoration: none; padding: 8px 4px; }
.nav__signin:hover { color: #fff; }
.nav .btn { min-height: 42px; padding: 9px 16px; font-size: 14px; }

/* ── home hero ── */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(44px, 9vw, 76px); line-height: 1.0; max-width: 14ch; }
.hero h1 em, .page-hero h1 em { font-style: italic; color: var(--accent-bright); }
.hero__sub { color: var(--on-dark-2); font-size: 18px; max-width: 46ch; line-height: 1.55; }
.hero__fine { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--on-dark-3); }
.hero__fine span { display: inline-flex; align-items: center; gap: 7px; }

/* Inner-page hero: serif headline, one paragraph, on the dark ground. */
.page-hero { padding: 40px 0 56px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(40px, 8vw, 68px); line-height: 1.02; max-width: 16ch; }
.page-hero p { color: var(--on-dark-2); font-size: 18px; max-width: 52ch; }

/* The phone. Drawn, not a screenshot, because it moves: the story plays on a loop. */
.stage { position: relative; display: flex; justify-content: center; }
.stage::before { content: ""; position: absolute; inset: 10% 15%; background: radial-gradient(closest-side, rgba(47,196,203,0.22), transparent 70%); filter: blur(30px); pointer-events: none; }
.phone { position: relative; width: min(100%, 340px); border-radius: 44px; background: #0a1420; border: 1px solid rgba(255,255,255,0.14); padding: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.screen { background: #f7f7f8; color: #102439; border-radius: 34px; overflow: hidden; height: 620px; display: flex; flex-direction: column; font-size: 14px; }
.screen__bar { display: flex; align-items: center; justify-content: center; padding: 22px 16px 10px; font-weight: 600; font-size: 16px; position: relative; }
.screen__bar span { position: absolute; left: 16px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center; color: #102439; }
.screen__who { padding: 4px 16px 12px; border-bottom: 1px solid #e6e8eb; }
.screen__who b { display: block; font-size: 15px; }
.screen__who small { color: #6b7280; font-size: 12px; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex-grow: 1; }
.chip { align-self: center; background: #e9ebee; color: #4b5563; font-size: 12px; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px; line-height: 1.4; }
.bubble--out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble--in { align-self: flex-start; background: #e9ebee; color: #102439; border-bottom-left-radius: 5px; }
.stamp { font-size: 11px; color: #6b7280; display: inline-flex; align-items: center; gap: 6px; }
.stamp--out { align-self: flex-end; }
.stamp b { background: #dcf5e6; color: #0f7a5a; font-weight: 600; padding: 1px 6px; border-radius: 999px; font-size: 10px; }
.suggest { margin-top: auto; background: var(--accent-tint); border: 1px solid #9fd9dc; border-radius: 14px; padding: 10px 13px; line-height: 1.4; }
.suggest small { display: block; font-size: 11px; color: var(--accent); font-weight: 600; margin-bottom: 3px; }
.composer { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #e6e8eb; }
.composer div { flex-grow: 1; border: 1px solid #d5d9de; border-radius: 12px; padding: 10px 12px; color: #9ca3af; font-size: 13px; }
.composer span { background: #9fd2d5; color: #fff; font-weight: 600; font-size: 13px; padding: 10px 14px; border-radius: 12px; }

/* The loop: 11 s, five beats, each element fades up on its cue and everything resets. */
.beat { opacity: 0; transform: translateY(8px); animation: beat 11s ease-in-out infinite; }
.beat--1 { animation-delay: 0.6s; }
.beat--2 { animation-delay: 2.0s; }
.beat--3 { animation-delay: 3.0s; }
.beat--4 { animation-delay: 5.2s; }
.beat--5 { animation-delay: 7.2s; }
@keyframes beat {
  0% { opacity: 0; transform: translateY(8px); }
  4% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .beat { animation: none; opacity: 1; transform: none; }
}

/* ── facts strip ── */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 40px 0; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* ── how it works (home) ── */
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
.step { border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; color: var(--accent); }
.step__n--signal { color: var(--signal); }
.step h3 { font-size: 19px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ── a screenshot beside a paragraph, alternating sides down a page ── */
.row { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 56px 0; border-top: 1px solid var(--rule-dark); }
.light .row { border-top-color: var(--rule); }
.row:first-of-type { border-top: 0; }
.row__shot { display: flex; justify-content: center; }
.row__shot img { width: min(100%, 260px); height: auto; border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.dark .row__shot img { border: 1px solid rgba(255,255,255,0.14); }
.light .row__shot img { border: 1px solid var(--rule); }
.row__copy { display: flex; flex-direction: column; gap: 14px; }
.row__copy h2 { font-size: clamp(32px, 5vw, 44px); }
.row__copy p { font-size: 16px; }
.dark .row__copy p { color: var(--on-dark-2); }
.light .row__copy p { color: var(--text-2); }
.row__copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.row__copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.dark .row__copy li { color: var(--on-dark-2); }
.light .row__copy li { color: var(--text-2); }
.row__copy li svg { margin-top: 4px; }
.example { border-left: 3px solid var(--accent-bright); padding: 4px 0 4px 16px; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.light .example { border-left-color: var(--accent); color: var(--text); }
.dark .example { color: var(--on-dark); }
.example small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; opacity: 0.7; }

/* ── pro (home) ── */
.pro__grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 44px; align-items: center; }
.pro__shot { display: flex; justify-content: center; }
.pro__shot img { width: min(100%, 280px); height: auto; border-radius: 26px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.features { display: flex; flex-direction: column; gap: 22px; }
.feature { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.feature svg { color: var(--accent-bright); margin-top: 2px; }
.feature h3 { font-size: 18px; color: var(--on-dark); }
.feature p { color: var(--on-dark-2); font-size: 15px; margin-top: 4px; }

/* ── trade cards ── */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; text-decoration: none; background: var(--white); border: 1px solid var(--rule); color: var(--text); }
.card:hover { border-color: var(--accent); }
.card b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.card span { color: var(--text-2); font-size: 15px; }
.card i { font-style: normal; color: var(--accent); font-size: 14px; font-weight: 500; margin-top: 6px; }

/* ── pricing ── */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
.plan { display: flex; flex-direction: column; gap: 18px; background: var(--white); color: var(--text); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.plan .btn--ghost { color: var(--text); border-color: rgba(16,36,57,0.3); }
.plan .btn--ghost:hover { border-color: var(--text); }
.plan--pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan__name { font-family: var(--serif); font-size: 30px; line-height: 1; }
.plan__blurb { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: -0.01em; }
.plan__price span { color: var(--text-3); font-size: 15px; }
.plan__rule { border-top: 1px solid var(--rule); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.plan li svg { margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plans__note { color: var(--text-2); font-size: 15px; margin-top: 26px; }

/* ── faq ── */
.faq { margin-top: 36px; border-top: 1px solid var(--rule-dark); }
.light .faq { border-top-color: var(--rule); }
.faq details { border-bottom: 1px solid var(--rule-dark); }
.light .faq details { border-bottom-color: var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.dark .faq summary { color: var(--on-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform 160ms ease; color: var(--on-dark-3); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { font-size: 15px; padding: 0 0 22px; max-width: 70ch; }
.dark .faq details p { color: var(--on-dark-2); }
.light .faq details p { color: var(--text-2); }
.faq h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 44px; }

/* ── closing + footer ── */
.closing__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 88px 0; }
.closing h2 { font-size: clamp(38px, 7vw, 64px); max-width: 16ch; }
.closing p { color: var(--text-2); max-width: 50ch; font-size: 17px; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding-top: 6px; }
.footer { border-top: 1px solid var(--rule-dark); color: var(--on-dark-2); }
.footer__inner { display: flex; flex-direction: column; gap: 32px; padding: 44px 0 44px; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col b { color: var(--on-dark); font-weight: 600; margin-bottom: 4px; }
.footer__tag { color: var(--on-dark-3); max-width: 26ch; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border-top: 1px solid var(--rule-dark); padding-top: 22px; }
.footer__logo img { height: 24px; width: auto; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__spacer { flex-grow: 1; }

@media (min-width: 760px) {
  .wrap { padding: 0 40px; }
  .nav { height: 80px; }
  .nav__links { display: flex; }
  .section { padding: 104px 0; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; padding: 56px 0 96px; }
  .page-hero { padding: 64px 0 72px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 56px 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .row { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; padding: 72px 0; }
  .row--flip { grid-template-columns: minmax(0, 1fr) 320px; }
  .row--flip .row__shot { order: 2; }
  .pro__grid { grid-template-columns: 360px minmax(0, 1fr); gap: 72px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
  .footer__cols { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 140ms ease, border-color 140ms ease; }
}
