:root {
  --night: #1e3340;
  --night-2: #263f4e;
  --night-line: rgba(255, 255, 255, 0.12);
  --on-night: #ffffff;
  --on-night-2: #c9d6de;
  --on-night-3: #a9bcc7;
  --slate: #2b5975;
  --green: #2e7d39;
  --green-hover: #256a30;
  --green-bright: #4bb858;
  --paper: #f3f6f7;
  --surface: #ffffff;
  --field: #f8fafb;
  --ink: #15232c;
  --ink-2: #33444f;
  --muted: #56666f;
  --line: #e1e7ea;
  --line-strong: #c3ced5;
  --error: #b42318;
  --focus: 0 0 0 3px rgba(43, 89, 117, 0.3);
  --focus-on-night: 0 0 0 3px rgba(255, 255, 255, 0.5);
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--slate); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3 { margin: 0; color: inherit; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 34px; width: auto; }
.header-links { display: flex; gap: 20px; font-size: 14px; }
.header-links a { color: var(--on-night-2); text-decoration: none; padding: 10px 0; }
.header-links a:hover, .header-links a[aria-current="page"] { color: #fff; }
.site-header a:focus-visible, .hero a:focus-visible, .hero .btn:focus-visible { box-shadow: var(--focus-on-night); }

/* Hero */
.hero { background: var(--night); color: var(--on-night); padding: 32px 0 48px; }
.hero-grid { display: grid; gap: 32px; grid-template-areas: "copy" "form" "thread"; }
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(2.25rem, 9vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; max-width: 11ch; }
.hero-lede { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: var(--on-night-2); max-width: 33rem; }
.hero-note { margin-top: 12px; font-size: 0.975rem; color: var(--on-night-3); max-width: 31rem; }
.hero-cta { margin-top: 26px; }

/* Example text thread */
.thread {
  grid-area: thread; align-self: start; margin: 0;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 20px;
  padding: 18px 16px 16px; max-width: 420px; width: 100%;
}
.thread-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid var(--night-line); }
.thread-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--night);
  display: grid; place-items: center; font-weight: 750; font-size: 14px;
}
.thread-who { font-size: 0.9rem; font-weight: 650; color: #fff; line-height: 1.3; }
.thread-who span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--on-night-3); }
.bubbles { display: grid; gap: 8px; padding: 16px 0 4px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 0.9rem; line-height: 1.45; }
.bubble.in { background: #fff; color: var(--ink); border-bottom-left-radius: 6px; justify-self: start; }
.bubble.out { background: var(--green-bright); color: #0d2b12; border-bottom-right-radius: 6px; justify-self: end; font-weight: 550; }
.bubble .link { color: var(--slate); text-decoration: underline; }
.thread-note { margin-top: 12px; padding: 0 4px; font-size: 0.8rem; line-height: 1.5; color: var(--on-night-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 12px;
  background: var(--green); color: #fff; font: inherit; font-weight: 650; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn-block { width: 100%; }

/* Form card */
.panel {
  grid-area: form;
  background: var(--surface); color: var(--ink);
  border-radius: 20px; padding: 26px 20px;
  box-shadow: 0 30px 60px -30px rgba(5, 15, 22, 0.7), 0 2px 6px rgba(5, 15, 22, 0.15);
  scroll-margin-top: 16px;
}
.panel:focus-visible { box-shadow: var(--focus-on-night), 0 30px 60px -30px rgba(5, 15, 22, 0.7); }
.panel h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
.panel-sub { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.form { margin-top: 22px; display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.field input::placeholder { color: #8796a0; }
.field input:hover { border-color: #9fb0bb; }
.field input:focus { outline: none; background: #fff; border-color: var(--slate); box-shadow: var(--focus); }
.field input[aria-invalid="true"] { border-color: var(--error); background: #fff; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }
.field-error { font-size: 0.85rem; color: var(--error); }
.field-error:empty { display: none; }

/* SMS consent */
.consent { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.consent-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.consent-check input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0;
  width: 24px; height: 24px; border: 1.5px solid #7d8d97; border-radius: 7px; background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.consent-check input::after {
  content: ''; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px); opacity: 0;
}
.consent-check input:checked { background: var(--green); border-color: var(--green); }
.consent-check input:checked::after { opacity: 1; }
.consent-check input:focus-visible { box-shadow: var(--focus); }
.consent-check span { font-size: 0.925rem; line-height: 1.55; color: var(--ink); }
.consent-check strong { font-weight: 650; }
.consent p { font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.consent-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.875rem; }
.consent-links a { font-weight: 600; display: inline-block; padding: 4px 0; }

.form-foot { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Success */
.success-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #e7f5e9; color: var(--green); margin-bottom: 18px;
}
.success-icon svg { width: 24px; height: 24px; }
.success h2:focus { outline: none; }
.success p { margin-top: 10px; color: var(--ink-2); }
.success .muted { color: var(--muted); font-size: 0.95rem; }
.success .btn { margin-top: 22px; background: #fff; color: var(--slate); border: 1px solid var(--line-strong); }
.success .btn:hover { background: var(--paper); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) { animation: rise 0.35s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); line-height: 1.12; color: var(--ink); max-width: 20ch; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; position: relative; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before {
  content: ''; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px; background: var(--line-strong);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: #fff;
  display: grid; place-items: center; font-size: 0.95rem; font-weight: 700;
}
.steps h3 { font-size: 1.1rem; line-height: 1.35; padding-top: 8px; color: var(--ink); letter-spacing: -0.015em; }
.steps p { margin-top: 6px; color: var(--muted); max-width: 30rem; }

.why-grid { display: grid; gap: 20px; }
.why-grid .copy p { color: var(--ink-2); font-size: 1.075rem; line-height: 1.7; max-width: 36rem; }
.why-grid .copy p + p { margin-top: 16px; }

.disclosure { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 8px; }
.disclosure h2 { font-size: 1rem; letter-spacing: -0.005em; max-width: none; }
.disclosure p { color: var(--ink-2); font-size: 0.975rem; max-width: 52rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-2); padding: 40px 0 44px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer img { display: block; height: 30px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { color: #fff; padding: 6px 0; }
.footer-links a:hover { color: var(--on-night-2); }
.site-footer a:focus-visible { box-shadow: var(--focus-on-night); }
.footer-legal { color: var(--on-night-3); line-height: 1.6; }

/* Legal pages */
.legal-hero { background: var(--night); color: #fff; padding: 32px 0 40px; }
.legal-hero .wrap, .legal .wrap { max-width: 780px; }
.legal-hero h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.legal-hero .updated { margin-top: 10px; color: var(--on-night-3); font-size: 0.95rem; }
.legal-hero .back { color: var(--on-night-2); display: inline-block; margin-bottom: 18px; font-size: 0.95rem; padding: 6px 0; }
.legal-hero .back:hover { color: #fff; }
.legal-hero a:focus-visible { box-shadow: var(--focus-on-night); }
.legal { padding: 36px 0 72px; }
.legal .intro { color: var(--ink-2); font-size: 1.05rem; }
.legal h2 { font-size: 1.3rem; margin-top: 40px; letter-spacing: -0.015em; scroll-margin-top: 16px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--slate); }
.legal .callout { margin-top: 16px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.legal .callout p:first-child { margin-top: 0; }
.legal address { font-style: normal; margin-top: 12px; color: var(--ink-2); line-height: 1.8; }
.legal address a, .legal li a { display: inline-block; padding: 4px 0; }
.toc { margin-top: 24px; padding: 18px 20px; background: var(--paper); border-radius: 12px; }
.toc p { margin: 0; font-weight: 650; font-size: 0.95rem; color: var(--ink); }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; font-size: 0.95rem; }
.toc a { display: inline-block; padding: 5px 0; }

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand img { height: 28px; }
  .header-links { gap: 14px; font-size: 13px; }
  .panel { padding: 22px 16px; }
  .consent { padding: 14px; }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .panel { padding: 32px 30px; }
  .consent { padding: 18px; }
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; }
  .steps li:not(:last-child)::before { left: 56px; right: -16px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .steps h3 { padding-top: 0; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .site-header .wrap { min-height: 76px; }
  .brand img { height: 38px; }
  .hero { padding: 64px 0 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    grid-template-areas: "copy form" "thread form";
    grid-template-rows: auto 1fr;
    column-gap: 72px; row-gap: 40px;
  }
  .hero-copy { padding-top: 12px; }
  .section { padding: 96px 0; }
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .legal-hero { padding: 56px 0 60px; }
}

/* Refinements */
.steps li { align-content: start; }
.consent-links { display: block; }
.consent-links a { padding: 4px 2px; }
.consent-links .sep { color: var(--line-strong); margin: 0 6px; }
.brand img { height: 38px; }
@media (min-width: 960px) { .brand img { height: 46px; } .site-footer img { height: 36px; } }
@media (max-width: 359px) { .brand img { height: 32px; } }
