@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- tokens (shared with the app) ---------- */

:root {
  --bg: #000000;
  --band: #070b13;
  --surface: #0c1424;
  --surface-2: #14213d;
  --line: rgba(229, 229, 229, .10);
  --line-2: rgba(229, 229, 229, .20);

  --text: #ffffff;
  --dim: #b8bdc9;
  --faint: #7c8496;

  /* gold = brand and primary action. red = urgent. green = settled. nothing else has colour. */
  --accent: #fca311;
  --accent-soft: rgba(252, 163, 17, .13);
  --gold-2: #ffc65c;

  --alert: #e5484b;
  --alert-soft: rgba(229, 72, 75, .14);
  --live: #2fb185;
  --live-soft: rgba(47, 177, 133, .13);

  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 0; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted { color: var(--dim); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
}

.logo { display: block; color: var(--text); }

/* the wordmark is inline SVG so "rella" can follow currentColor */
.logo svg {
  display: block;
  width: 124px;
  height: auto;
}

.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 16px; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: #000000;
  transition: filter .12s ease;
}

.btn:hover { filter: brightness(1.08); }

.btn-quiet {
  background: rgba(229, 229, 229, .06);
  border-color: var(--line-2);
  color: var(--text);
  font-weight: 500;
}

.btn-quiet:hover { background: rgba(229, 229, 229, .10); }

/* ---------- hero ---------- */

/* headline gets the full width so it never breaks into a ragged third line */

.hero { padding: 84px 0 104px; }

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  margin: 20px 0 0;
  letter-spacing: -.038em;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 40px;
}

.hero .lede { font-size: 19px; color: var(--dim); max-width: 46ch; }

.hero .cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.trust span { display: flex; align-items: center; gap: 14px; }
.trust span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ---------- conversation preview ---------- */

.preview {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 90px -50px #000;
  overflow: hidden;
}

.preview .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

.preview .body { padding: 22px 20px; display: grid; gap: 18px; }

/* avatar + bubble, same anatomy as the app */

.chat-line { display: flex; align-items: flex-start; gap: 11px; }
.chat-line.me { flex-direction: row-reverse; }

.ava {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ava img { display: block; width: 100%; height: 100%; }

.ava-me {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
}

.cl-b { min-width: 0; max-width: 88%; }
.chat-line.me .cl-b { text-align: right; }

.chat-line .who {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.chat-line p {
  display: inline-block;
  text-align: left;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 16px;
  line-height: 1.55;
}

.chat-line.me p {
  background: var(--accent-soft);
  border: 1px solid rgba(252, 163, 17, .28);
  border-top-right-radius: 4px;
}

.chat-line.ai p {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}

/* what it filed, as a receipt */

.filed {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, .26);
  overflow: hidden;
}

.filed li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--dim);
}

.filed li:last-child { border-bottom: 0; }

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(229, 229, 229, .07);
  color: var(--faint);
  min-width: 78px;
  text-align: center;
  flex-shrink: 0;
}

.chip.a { background: var(--accent-soft); color: var(--gold-2); }
.chip.r { background: var(--alert-soft); color: var(--alert); }

/* ---------- sections ---------- */

.band { padding: 104px 0; }

/* alternating grounds carry the rhythm, so no rules needed between them */
.band-alt { background: var(--band); border-block: 1px solid var(--line); }

.band h2 { font-size: clamp(32px, 3.6vw, 42px); margin: 14px 0 0; text-wrap: balance; }
.band .sub { margin-top: 18px; font-size: 18px; color: var(--dim); max-width: 58ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--surface);
}

.band-alt .card { background: #0d1728; }

.card h3 { font-size: 21px; margin: 16px 0 12px; }
.card p { font-size: 16.5px; color: var(--dim); }

.num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }

/* small mono kicker so card titles stay one line and stay level */
.klabel {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 56px; }

.does { list-style: none; margin: 0; padding: 0; }

.does li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.does li:last-child { border-bottom: 0; }
.does svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--live); }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }

.plan.up { border-color: rgba(252, 163, 17, .32); background: linear-gradient(180deg, rgba(252, 163, 17, .07), transparent); }

.plan .price { font-size: 46px; font-weight: 600; letter-spacing: -.04em; margin: 12px 0 6px; }
.plan .price small { font-size: 17px; font-weight: 400; color: var(--dim); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; }
.plan li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--dim); }
.plan li:last-child { border-bottom: 0; }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }
.plan ul { margin-bottom: 24px; }

/* Plus is not open yet. Recessed rather than hidden, so the roadmap is still legible. */

.plan.soon { position: relative; opacity: .62; border-style: dashed; }
.plan.soon:hover { opacity: .78; }
.plan.soon .price { color: var(--dim); }

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(252, 163, 17, .30);
  border-radius: 999px;
  padding: 4px 10px;
}

.btn-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 13px 20px;
  border-radius: 11px;
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--faint);
  font-size: 16px;
  font-weight: 500;
  cursor: not-allowed;
}

.plan .fine { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }

/* ---------- day in the life ---------- */

.day { margin-top: 56px; border-top: 1px solid var(--line); }

.day-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.day-row .when {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--accent);
  padding-top: 4px;
}

.day-row h3 { margin: 0 0 8px; font-size: 20px; }
.day-row p { margin: 0; font-size: 16px; color: var(--dim); }

.said {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--dim);
}

.band-alt .said { background: #0d1728; }

.said b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 8px; }

/* ---------- sample memory ---------- */

.mems { list-style: none; margin: 0; padding: 0; }

.mems li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mems li:last-child { border-bottom: 0; }
.mems b { display: block; font-size: 16.5px; font-weight: 500; color: var(--text); }
.mems span { display: block; margin-top: 4px; font-size: 15px; color: var(--dim); }
.mems em {
  display: block;
  margin-top: 7px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--faint);
}

/* ---------- faq ---------- */

/* heading on the left, questions on the right, so the section is not half empty */
.faq-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }

.faq-side { position: sticky; top: 100px; }
.faq-side h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 14px 0 0; }
.faq-side .sub { margin-top: 18px; font-size: 17px; color: var(--dim); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .12s ease;
}

.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 17px;
  line-height: 1;
}

.faq details[open] summary { color: var(--text); }
.faq details[open] summary::after { content: "–"; border-color: var(--accent); color: var(--accent); }
.faq p { padding: 0 0 24px; color: var(--dim); max-width: 62ch; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 52px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--faint);
}

footer a:hover { color: var(--text); }

/* ---------- legal ---------- */

.legal { width: min(740px, calc(100% - 48px)); margin: 32px auto 96px; }
.legal h1 { font-size: 42px; margin-bottom: 18px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--dim); }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .hero-cols, .split, .plans { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .day-row { grid-template-columns: 1fr; gap: 16px; }
  .nav-links { display: none; }
  .band { padding: 72px 0; }
  .hero { padding: 52px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ---------- gate: sign in, sign up, verify, reset ---------- */

body.lean { background: var(--bg); }

.gate {
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 0 88px;
}

.gate.gate-wide { max-width: 720px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px;
}

.panel > h1 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.panel > .sub { margin: 0 0 26px; font-size: 15.5px; line-height: 1.6; color: var(--dim); }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
}

.field .note { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); }

.input,
.gate select,
.gate textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.input:focus,
.gate select:focus,
.gate textarea:focus {
  outline: none;
  border-color: rgba(252, 163, 17, .55);
  background: rgba(0, 0, 0, .45);
}

.input::placeholder, .gate textarea::placeholder { color: var(--faint); }

.input.mono { font-family: var(--mono); font-size: 14.5px; letter-spacing: .01em; }

.gate .btn { width: 100%; justify-content: center; }
.gate .btn-row { display: flex; gap: 10px; }
.gate .btn-row .btn { width: auto; flex: 1; }

.err { margin: 7px 0 0; font-size: 13.5px; color: #ff8a8c; }

.flash {
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
}

.flash-ok { border-color: rgba(47, 177, 133, .34); background: var(--live-soft); }
.flash-error { border-color: rgba(229, 72, 75, .34); background: var(--alert-soft); }

.alt { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--dim); }
.alt a { color: var(--accent); text-decoration: none; }
.alt a:hover { text-decoration: underline; }

.gate .fine { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--faint); }

/* ---------- setup wizard ---------- */

.steps {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
}

.steps .bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(229, 229, 229, .12);
  overflow: hidden;
}

.steps .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .35s ease; }

.choices { display: grid; gap: 12px; }

.choice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 17px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: rgba(0, 0, 0, .22);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.choice:hover { border-color: rgba(252, 163, 17, .38); }
.choice input { margin: 3px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
.choice b { display: block; font-size: 16px; font-weight: 600; }
.choice span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--dim); }
.choice.off { opacity: .5; cursor: not-allowed; }

/* result of a live connection test */

.probe {
  display: none;
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.probe.show { display: block; }
.probe.busy { border-color: var(--line-2); color: var(--dim); }
.probe.good { border-color: rgba(47, 177, 133, .40); background: var(--live-soft); color: #b6f0dc; }
.probe.bad { border-color: rgba(229, 72, 75, .40); background: var(--alert-soft); color: #ffc0c1; }

.probe code { font-family: var(--mono); font-size: 13px; }

.spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid rgba(229, 229, 229, .28);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -1px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.howto {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 2px solid rgba(252, 163, 17, .45);
  background: rgba(252, 163, 17, .05);
  border-radius: 0 11px 11px 0;
}

.howto ol { margin: 0; padding-left: 19px; }
.howto li { font-size: 14.5px; line-height: 1.65; color: var(--dim); }
.howto li + li { margin-top: 5px; }
.howto a { color: var(--accent); }

.skip { display: block; margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--faint); }
.skip button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--faint);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.skip button:hover { color: var(--dim); }

@media (max-width: 560px) {
  .gate { padding: 32px 0 64px; }
  .panel { padding: 26px 20px; border-radius: 15px; }
}
