/* ==========================================================================
   lexi brand system v3 — "dusk violet" (design_handoff_whoislexi)
   Dark, phone-native capture pages. Self-contained: no remote fonts, no
   inline styles, no inline JS — the strict CSP allows only same-origin
   stylesheets/scripts, so EVERYTHING the handoff authored inline lives here
   (and the home chat animation lives in /js/home-chat.js).

   Colors are authored in OKLCH (lifted verbatim from the handoff's
   reference_static markup). Applied to every non-admin page via
   partials/brand-head + partials/brand-footer. Admin keeps /css/styles.css.
   ========================================================================== */

/* ---------- self-hosted fonts (CSP 'self'; no Google Fonts CDN) ---------- */

/* Hanken Grotesk — UI / body / sign-up headline (variable 400–800) */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif — display / value-prop headline (400, roman + italic) */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- design tokens (OKLCH) ---------- */
:root {
  /* surfaces / backgrounds */
  --bg-home: oklch(0.115 0.028 284);
  --bg-deep: oklch(0.135 0.032 284);
  --footer-band: oklch(0.175 0.044 290);
  --surface: oklch(0.26 0.035 292 / 0.5);
  --surface-plate: oklch(0.115 0.026 286 / 0.82);
  --input-bg: oklch(0.285 0.032 292 / 0.6);
  --hairline: oklch(0.74 0.05 300 / 0.14);
  --hairline-strong: oklch(0.74 0.05 300 / 0.18);
  --divider: oklch(0.72 0.04 300 / 0.13);

  /* brand violet */
  --violet-a: oklch(0.78 0.13 305);
  --violet-b: oklch(0.64 0.18 322);
  --cta-a: oklch(0.7 0.16 302);
  --cta-b: oklch(0.62 0.19 322);
  --accent: oklch(0.83 0.12 305);
  --link: oklch(0.78 0.07 305);

  /* text */
  --text-head: oklch(0.98 0.008 300);
  --text-body: oklch(0.93 0.01 300);
  --text-muted: oklch(0.66 0.025 300);
  --text-faint: oklch(0.52 0.02 300);
  --text-label: oklch(0.72 0.04 300);

  /* chat (system-font, reads like real Messages) */
  --chat-lexi: oklch(0.37 0.012 312);
  --chat-lexi-text: oklch(0.96 0.005 320);
  --sms-green-a: oklch(0.76 0.17 149);
  --sms-green-b: oklch(0.71 0.18 147);
  --ios-blue: oklch(0.62 0.17 255);

  /* danger (notices on dusk) */
  --danger-bg: oklch(0.32 0.07 18 / 0.55);
  --danger-line: oklch(0.6 0.13 20 / 0.5);
  --danger-text: oklch(0.86 0.08 25);

  /* shadows */
  --shadow-card: 0 24px 55px -22px oklch(0.07 0.02 290 / 0.85);
  --shadow-cta: 0 12px 32px -8px oklch(0.64 0.2 312 / 0.6),
    inset 0 1px 0 oklch(1 0 0 / 0.22);

  /* radii */
  --r-button: 16px;
  --r-input: 14px;
  --r-card: 22px;
  --r-card-lg: 24px;
  --r-pill: 999px;

  --system-font: -apple-system, 'SF Pro Text', system-ui, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-deep);
}

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ---------- shell + page column ---------- */
.site-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  /* default (legal/form/utility pages): dusk gradient */
  background: linear-gradient(
    180deg,
    oklch(0.205 0.044 292) 0%,
    oklch(0.16 0.038 288) 55%,
    oklch(0.135 0.032 284) 100%
  );
  background-attachment: fixed;
}

.site-shell--home {
  background: var(--bg-home);
}

.site-shell--signup {
  background: linear-gradient(
    180deg,
    oklch(0.215 0.045 292) 0%,
    oklch(0.16 0.038 288) 55%,
    oklch(0.135 0.032 284) 100%
  );
  background-attachment: fixed;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
}

.page--home,
.page--signup {
  max-width: 440px;
}

.page--form {
  max-width: 500px;
}

.page--legal {
  max-width: 680px;
}

/* ---------- home: fixed background portrait + scrim + glow ---------- */
.home-bg,
.home-scrim {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-bg img {
  position: absolute;
  left: 50%;
  top: -380px;
  transform: translateX(-50%);
  width: 138%;
  max-width: none;
  height: auto;
  filter: brightness(1.38) contrast(1.05) saturate(1.06);
}

.home-scrim {
  background: linear-gradient(
    180deg,
    oklch(0.12 0.03 286 / 0.34) 0%,
    oklch(0.12 0.03 286 / 0.12) 16%,
    oklch(0.125 0.03 286 / 0.18) 30%,
    oklch(0.125 0.03 286 / 0.5) 44%,
    oklch(0.13 0.032 286 / 0.74) 56%,
    oklch(0.135 0.032 286 / 0.92) 68%,
    oklch(0.13 0.032 285 / 0.99) 84%
  );
}

.home-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    120% 42% at 50% 24%,
    oklch(0.66 0.17 300 / 0.18),
    transparent 58%
  );
}

/* signup top glow (within the column) */
.page--signup::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    130% 44% at 50% 22%,
    oklch(0.66 0.17 300 / 0.2),
    transparent 60%
  );
}

/* ---------- topbar / wordmark ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--text-head);
  text-decoration: none;
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, var(--violet-a), var(--violet-b));
  box-shadow: 0 0 9px oklch(0.66 0.18 312 / 0.8);
}

.domain {
  font-size: 12px;
  color: oklch(0.65 0.03 300);
  letter-spacing: 0.2px;
}

/* ---------- generic helpers ---------- */
.content {
  flex: 1;
}

.center {
  text-align: center;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: var(--r-button);
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  color: oklch(0.99 0.012 300);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: filter 0.18s ease, transform 0.12s ease;
}

.button-primary:hover {
  filter: brightness(1.06);
}

.button-primary:active {
  transform: translateY(1px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-button);
  background: oklch(0.3 0.03 292 / 0.5);
  color: var(--text-body);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.12s ease, background 0.18s ease;
}

.button-secondary:hover {
  background: oklch(0.34 0.035 292 / 0.6);
}

.button-secondary:active {
  transform: translateY(1px);
}

.button-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  background: oklch(0.3 0.03 292 / 0.5);
  color: var(--text-body);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.button-inline:hover {
  background: oklch(0.34 0.035 292 / 0.6);
}

/* "Processing" state, toggled by form-guard.js on submit. */
button.is-processing {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

button.is-processing::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid oklch(1 0 0 / 0.4);
  border-top-color: #fff;
  animation: form-guard-spin 0.6s linear infinite;
}

.button-secondary.is-processing::after,
.button-inline.is-processing::after {
  border-color: oklch(0.8 0.02 300 / 0.4);
  border-top-color: var(--text-body);
}

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

/* ---------- cta block / microcopy ---------- */
.cta-block {
  margin-top: 4px;
}

.cta-micro {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- avatar monogram (login / success / verify / confirm) ---------- */
.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet-a), var(--violet-b));
  box-shadow: 0 0 24px oklch(0.64 0.2 312 / 0.45);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.avatar.avatar-sm {
  width: 60px;
  height: 60px;
  font-size: 28px;
  margin-bottom: 12px;
}

/* ---------- form heads ---------- */
.form-head {
  margin-bottom: 4px;
}

.form-head h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-head);
}

.form-head .form-sub {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.form-head .form-disclosure {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- form cards / inputs ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  margin: 18px 0 0;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 0 0 9px;
}

.text-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-input);
  background: var(--input-bg);
  color: oklch(0.97 0.01 300);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.3px;
  outline: none;
}

.text-input::placeholder {
  color: oklch(0.58 0.02 300);
}

.text-input:focus {
  border-color: var(--violet-a);
  box-shadow: 0 0 0 3px oklch(0.66 0.18 312 / 0.25);
}

.field-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 9px 0 0;
}

.optin-submit {
  margin-top: 16px;
}

/* ---------- consent controls ---------- */
.consents {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
  min-width: 0;
}

.consents legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-label);
  padding: 0;
  margin: 0 0 10px;
}

/* plain dusk checkbox row (sign-up SMS opt-in, confirm/account consents) */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: oklch(0.78 0.025 300);
  cursor: pointer;
}

.consent:last-child {
  margin-bottom: 0;
}

.consent input[type='checkbox'] {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
  accent-color: oklch(0.66 0.18 312);
  cursor: pointer;
}

.consent a {
  color: var(--link);
  text-decoration: underline;
}

/* the required legal box reads a touch brighter than the optional SMS opt-in */
.consent-required span {
  color: var(--text-body);
}

.sms-optin {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}

.sms-disclosure {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 6px 2px 0;
}

.sms-disclosure p {
  margin: 0 0 8px;
}

.sms-disclosure p:last-child {
  margin-bottom: 0;
}

.sms-disclosure strong {
  color: var(--text-body);
}

.sms-disclosure-links {
  margin-top: 10px;
}

.sms-disclosure-links a,
.sms-disclosure a {
  color: var(--link);
  text-decoration: underline;
}

/* the SMS enable card on /account */
.sms-enable {
  margin-top: 14px;
}

.sms-enable .sub-disclosure {
  margin-top: 12px;
}

/* ---------- notices / errors ---------- */
.notice {
  border-radius: var(--r-input);
  padding: 13px 15px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  background: oklch(0.3 0.03 292 / 0.5);
  border: 1px solid var(--hairline);
  color: var(--text-body);
}

.notice p {
  margin: 0;
}

.notice-warn,
.notice-error {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger-text);
}

.form-error {
  color: var(--danger-text);
  font-size: 13px;
  line-height: 1.3;
  margin-top: 8px;
}

/* ---------- account ---------- */
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.account-head h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-head);
}

.kv {
  width: 100%;
  border-collapse: collapse;
}

.kv th,
.kv td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: 15px;
}

.kv tr:last-child th,
.kv tr:last-child td {
  border-bottom: 0;
}

.kv th {
  width: 42%;
  color: var(--text-muted);
  font-weight: 600;
}

.form-card h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
  color: var(--text-head);
}

.form-card p {
  margin: 0 0 12px;
}

.form-card p:last-child {
  margin-bottom: 0;
}

.form-card form + p,
.form-card p + form {
  margin-top: 12px;
}

.form-card + .form-card {
  margin-top: 14px;
}

/* ---------- legal / long-form pages ---------- */
.legal {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.legal h1 {
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 8px 0 4px;
  color: var(--text-head);
}

.legal h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin: 28px 0 8px;
  color: var(--text-head);
}

.legal p,
.legal li {
  color: var(--text-body);
}

.legal ul,
.legal ol {
  padding-left: 20px;
}

.legal a {
  color: var(--link);
  text-decoration: underline;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 13px;
}

/* ======================================================================
   HOME — chat preview card + value prop + cta
   ====================================================================== */

.home-flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* chat preview card (margin-top positions it just under her eyes) */
.lx-chat {
  margin-top: 112px;
  border-radius: var(--r-card-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.lx-chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 11px;
  border-bottom: 1px solid oklch(0.72 0.04 300 / 0.1);
  font-family: var(--system-font);
}

.lx-chat-back {
  width: 34px;
  flex: none;
  font-size: 28px;
  line-height: 1;
  color: var(--ios-blue);
  font-weight: 300;
  text-align: left;
}

.lx-chat-id {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lx-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, var(--violet-a), var(--violet-b));
  box-shadow: 0 0 18px oklch(0.64 0.2 312 / 0.6);
  animation: glowPulse 3.4s ease-in-out infinite;
}

.lx-chat-num {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: oklch(0.83 0.015 300);
  font-weight: 500;
  white-space: nowrap;
}

.lx-chat-caret {
  font-size: 12px;
  color: oklch(0.6 0.02 300);
}

.lx-chat-spacer {
  width: 34px;
  flex: none;
}

.lx-viewport {
  position: relative;
  height: 300px;
  overflow: hidden;
  font-family: var(--system-font);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}

.lx-thread {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
}

.lx-sms-label {
  text-align: center;
  font-size: 10.5px;
  color: oklch(0.58 0.02 300);
  margin-bottom: 9px;
}

.lx-sms-label b {
  font-weight: 600;
  color: oklch(0.68 0.02 300);
}

.lx-ts {
  text-align: center;
  font-size: 10.5px;
  color: oklch(0.58 0.02 300);
  margin: 14px 0 8px;
}

.lx-ts b {
  font-weight: 600;
  color: oklch(0.7 0.02 300);
}

.lx-row {
  display: flex;
  margin-top: 7px;
}

.lx-row--in {
  justify-content: flex-start;
}

.lx-row--out {
  justify-content: flex-end;
}

.lx-bubble {
  max-width: 80%;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.32;
  word-break: break-word;
  animation: bubbleIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lx-bubble--in {
  background: var(--chat-lexi);
  color: var(--chat-lexi-text);
  border-bottom-left-radius: 7px;
}

.lx-bubble--out {
  background: linear-gradient(135deg, var(--sms-green-a), var(--sms-green-b));
  color: oklch(0.99 0.02 150);
  border-bottom-right-radius: 7px;
  box-shadow: 0 6px 18px -8px oklch(0.7 0.18 148 / 0.55);
}

.lx-delivered {
  display: flex;
  justify-content: flex-end;
  margin-top: 3px;
  padding-right: 3px;
  font-size: 10px;
  font-weight: 500;
  color: oklch(0.6 0.02 300);
}

.lx-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 20px;
  border-bottom-left-radius: 7px;
  background: oklch(0.34 0.02 300 / 0.85);
}

.lx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.82 0.02 300);
  animation: typingDot 1.15s ease-in-out infinite;
}

.lx-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.lx-dot:nth-child(3) {
  animation-delay: 0.36s;
}

/* value prop block (frosted plate over the glow) */
.value-prop {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
}

.value-plate {
  text-align: center;
  padding: 15px 18px;
  border-radius: 20px;
  background: var(--surface-plate);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.value-head {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(23px, 6vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.3px;
  color: var(--text-head);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(8, 4, 18, 0.8);
}

.value-head em {
  font-style: italic;
  color: var(--accent);
}

.value-sub {
  margin: 9px 4px 0;
  font-size: 13.5px;
  line-height: 1.42;
  color: oklch(0.74 0.03 300);
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(8, 4, 18, 0.7);
}

/* home CTA is a touch taller per the handoff */
.cta-home {
  height: 60px;
  font-size: 17.5px;
}

/* ======================================================================
   SIGN-UP — consent headline + form
   ====================================================================== */

.signup-head {
  margin-top: 30px;
  text-align: center;
}

.signup-notice {
  margin-top: 18px;
}

.signup-head h1 {
  margin: 0 2px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: oklch(0.975 0.012 300);
  text-wrap: balance;
}

/* the sign-up form itself is the frosted card */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.price-note {
  margin: -2px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: oklch(0.68 0.025 300);
}

.form-divider {
  height: 1px;
  background: var(--divider);
  margin: 5px 0 1px;
}

.sub-disclosure {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: oklch(0.6 0.022 300);
}

.sub-disclosure a {
  color: oklch(0.72 0.05 300);
  text-decoration: none;
}

.sub-disclosure a:hover {
  text-decoration: underline;
}

.login-link {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.login-link a {
  color: oklch(0.78 0.07 305);
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* ======================================================================
   SHARED FOOTER — full-bleed band, 10DLC badge, payments, legal
   ====================================================================== */
.brand-footer {
  margin-top: 34px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--footer-band);
  border-top: 1px solid oklch(0.74 0.05 300 / 0.16);
}

.brand-footer-inner {
  max-width: 396px;
  margin: 0 auto;
  padding: 28px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.footer-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-badge {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 10px 26px oklch(0.5 0.13 250 / 0.5));
}

.footer-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.footer-pay-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: oklch(0.6 0.025 300);
  font-weight: 600;
}

.footer-pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 320px;
}

.footer-pay-row span {
  display: inline-flex;
}

.footer-pay-row svg {
  display: block;
}

.footer-rule {
  height: 1px;
  width: 100%;
  background: oklch(0.7 0.04 300 / 0.12);
  margin: 4px 0 2px;
}

.brand-footer .disclosure {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.brand-footer .footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 18px;
  font-size: 12px;
}

.brand-footer .footer-links a {
  color: oklch(0.74 0.05 300);
  text-decoration: none;
}

.brand-footer .footer-links a:hover {
  text-decoration: underline;
}

.brand-footer .fine-print {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--text-faint);
}

.brand-footer .fine-print a {
  color: oklch(0.7 0.05 300);
  text-decoration: underline;
}

.brand-footer .copyright {
  margin: 0;
  font-size: 10.5px;
  color: oklch(0.5 0.02 300);
  text-align: center;
}

/* ---------- focus + motion ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- keyframes ---------- */
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes typingDot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
