:root {
  --charcoal: #1a1823;
  --night: #131219;
  --violet: #8e4dff;
  --deep-violet: #6a2fe0;
  --text: #efecf6;
  --muted: #aaa4bd;
  --rim: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.05);
  --measure: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--text); text-decoration-color: var(--violet); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, 64rem); margin-inline: auto; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.brand img { width: 40px; height: 40px; }
.site-head nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-head nav a { text-decoration: none; color: var(--muted); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--text); }

/* Hero: the porch light. The mark glows over the night photo. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  padding-bottom: 72px;
  background:
    linear-gradient(180deg, rgba(19, 18, 25, 0.35) 0%, rgba(19, 18, 25, 0.55) 45%, var(--night) 100%),
    url("assets/night.jpg") center 30% / cover no-repeat;
}
.hero .site-head { position: absolute; inset: 0 0 auto; width: min(100% - 32px, 64rem); margin-inline: auto; }
.porch {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 132px;
  translate: -50% 0;
  z-index: -1;
  filter: drop-shadow(0 0 28px rgba(142, 77, 255, 0.8));
}
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(60% 45% at 50% 26%, rgba(124, 58, 237, 0.4), transparent 70%);
}
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero p { max-width: 34rem; margin: 20px 0 0; font-size: 1.2rem; color: #d9d4e6; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rim); }
h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; }
.lede { max-width: var(--measure); color: var(--muted); margin: 0; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--violet); }
.steps li::before { content: counter(step); display: block; color: var(--violet); font-weight: 600; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.note { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--violet); background: var(--card); color: #d9d4e6; }

/* Phone thread, used on the texting page */
.thread { background: var(--charcoal); border: 1px solid var(--rim); border-radius: 28px; padding: 22px 18px; max-width: 24rem; }
.thread-head { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; margin: 8px 0; font-size: 0.95rem; line-height: 1.4; }
.bubble.in { background: #2c2938; border-bottom-left-radius: 6px; }
.bubble.out { margin-left: auto; background: linear-gradient(180deg, var(--violet), var(--deep-violet)); border-bottom-right-radius: 6px; }

/* In-app form mock */
.form-mock { background: var(--charcoal); border: 1px solid var(--rim); border-radius: 28px; padding: 24px 20px; max-width: 24rem; }
.form-mock .label { font-size: 0.85rem; color: var(--muted); margin: 14px 0 6px; }
.form-mock .input { border: 1px solid var(--rim); background: var(--card); border-radius: 12px; padding: 11px 14px; }
.form-mock .check { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.form-mock .box { width: 22px; height: 22px; border-radius: 6px; background: var(--violet); display: grid; place-items: center; font-size: 14px; flex: none; }
.form-mock .caption { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.form-mock .button { margin-top: 18px; text-align: center; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, var(--violet), var(--deep-violet)); font-weight: 600; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); max-width: 24rem; }

/* Long-form legal pages */
.doc { padding: 24px 0 80px; }
.doc article { max-width: var(--measure); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 500; line-height: 1.1; margin: 32px 0 8px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.doc p, .doc li { color: #dcd8e7; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 6px 0; }
.doc .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 28px; margin: 24px 0; max-width: 52rem; }

.site-foot { border-top: 1px solid var(--rim); padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .steps, .split { grid-template-columns: 1fr; }
  .site-head nav { gap: 14px; font-size: 0.9rem; }
  .hero { padding-bottom: 48px; }
  .porch { width: 104px; top: 20%; }
  section { padding: 56px 0; }
}

.brand, .site-head nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .site-head nav { gap: 12px; font-size: 0.85rem; }
}
