/* Wednesdate legal pages — self-contained, no external fonts or CDNs. */

:root {
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --rule: #e5e5ea;
  --accent: #007aff;
  --card: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --fg: #ececef;
    --muted: #9a9aa0;
    --rule: #2c2c30;
    --accent: #0a84ff;
    --card: #1c1c20;
  }
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, header, footer { max-width: 720px; margin: 0 auto; }

header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent);
}

/* The mark is 1.91:1, not square — masked rather than served as <img> so it
   inherits `.brand`'s colour and follows dark mode, instead of baking one in. */
.brand-mark {
  width: 32px;
  aspect-ratio: 940 / 492;
  flex: none;
  background: currentColor;
  -webkit-mask: url(logo.svg) no-repeat center / contain;
  mask: url(logo.svg) no-repeat center / contain;
}

h1 { font-size: 30px; line-height: 1.25; margin: 16px 0 4px; }
h2 { font-size: 21px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }

.updated { color: var(--muted); font-size: 15px; margin: 0; }

a { color: var(--accent); }

/* Plain-language summary at the top of each document. */
.summary {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 4px 20px 16px;
  margin: 28px 0;
}
.summary h2 { margin-top: 16px; font-size: 17px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 6px 0; }

/* Wide tables must scroll inside their own box, never the page body. */
.scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--card);
  padding: 1px 5px;
  border-radius: 4px;
}

address {
  font-style: normal;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 20px;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
footer a { margin-right: 16px; }

/* ===================================================================== */
/* Marketing landing page (index.html). Scoped to .landing so the legal  */
/* pages that share this stylesheet are unaffected.                      */
/* ===================================================================== */

:root {
  --hero-tint: #eaf2ff;
  --band: #f5f8ff;
  --danger: #c5221f;
  --success: #1a7f37;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hero-tint: #0f2138;
    --band: #17191e;
    --danger: #ff6b6b;
    --success: #4ac26b;
  }
}

/* Undo the narrow legal-page layout for the landing page. */
.landing { padding: 0; }
.landing main,
.landing header,
.landing footer { max-width: none; margin: 0; }
.landing header { padding: 0; border-bottom: 0; margin-bottom: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* --- Top nav (overlays the hero) --- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
}
.brand-mark { margin: 0; }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 7px 14px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* --- Hero: problem -> solution -> CTA (full height) --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 104px 0 84px;
  background: linear-gradient(180deg, var(--hero-tint), var(--bg) 80%);
}
.hero-inner { max-width: 840px; }
.hero-kicker {
  font-size: 21px;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 32px;
}
.hero h1 {
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 28px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto 44px;
  max-width: 30em;
}
.hero .waitlist { display: inline-block; text-align: left; width: 100%; max-width: 440px; }
.hero .form-note,
.hero .form-status { text-align: center; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.55;
  animation: bob 1.8s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* --- Waitlist form --- */
.field-row { display: flex; gap: 10px; max-width: 440px; width: 100%; }
.waitlist input[type=email] {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
}
.waitlist input[type=email]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.waitlist button {
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  cursor: pointer;
}
.waitlist button:hover { filter: brightness(1.06); }
.waitlist button:disabled { opacity: 0.6; cursor: default; }
.waitlist.done .field-row { display: none; }

.form-status { font-size: 15px; margin: 12px 0 0; min-height: 1em; }
.form-status[data-kind=error] { color: var(--danger); }
.form-status[data-kind=success] { color: var(--success); font-weight: 600; }
.form-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* --- Phone mockups (transparent PNGs already framed) --- */
.phone {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* --- Section header (eyebrow + title) --- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-title {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.section-lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 16px auto 0; max-width: 34em; }

/* --- How it works: full-height, interactive --- */
.how {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
}
.how-inner { width: 100%; }
.how-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.how-lead .section-title { margin: 8px 0 32px; }

/* Step list (tabs) */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how-step {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--fg);
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}
.how-step:hover { opacity: 0.85; }
.how-step.is-active { opacity: 1; background: var(--band); }
.how-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  min-width: 1.6em;
}
.how-text { display: flex; flex-direction: column; gap: 3px; }
.how-h { font-size: 18px; font-weight: 600; }
.how-p { font-size: 15px; color: var(--muted); }

/* Stage — stacked mockups that crossfade */
.how-stage { display: grid; place-items: center; }
.how-stage .phone {
  grid-area: 1 / 1;
  max-width: min(300px, 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.how-stage .phone.is-active { opacity: 1; }

.how-loop { font-size: 15px; color: var(--muted); margin: 28px 0 0; }
.how-loop span { color: var(--accent); font-weight: 700; }

/* --- Privacy & Safety --- */
.privacy { background: var(--band); padding: 88px 0; }
.guarantees {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.guarantees li { padding-left: 36px; position: relative; }
.guarantees li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guarantees h3 { font-size: 18px; margin: 0 0 4px; }
.guarantees p { font-size: 16px; color: var(--muted); margin: 0; }
.privacy-note { text-align: center; font-size: 15px; color: var(--muted); margin: 48px auto 0; }

/* --- Why we built it --- */
.why { padding: 96px 0; }
.why-inner { max-width: 640px; text-align: center; }
.why-inner p { font-size: 21px; line-height: 1.55; margin: 0 0 20px; letter-spacing: -0.01em; }
.why-inner p:last-of-type { margin-bottom: 0; }
.why-inner .muted { color: var(--muted); font-size: 19px; }
.btn-primary {
  display: inline-block;
  margin-top: 36px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 14px 26px;
  border-radius: 12px;
}
.btn-primary:hover { filter: brightness(1.06); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0; margin-top: 0; }
.site-footer .wrap { color: var(--muted); font-size: 15px; }
.site-footer a { color: var(--accent); margin-right: 16px; }

@media (max-width: 420px) {
  .field-row { flex-direction: column; }
  .waitlist button { width: 100%; }
}

/* --- Wider screens --- */
@media (min-width: 720px) {
  .hero h1 { font-size: 56px; }
  .guarantees { grid-template-columns: 1fr 1fr; gap: 32px 56px; }
}

@media (min-width: 900px) {
  .how { min-height: 100vh; min-height: 100svh; }
  .how-body {
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: center;
  }
  .how-steps { gap: 4px; }
  .how-stage { justify-self: center; }
}
