/* ────────────────────────────────────────────────────────────────────────
   Huygens Consumer — Landing (Agent E)

   Design tokens copied from `Chase Demo/chase-demo-design-system.css`
   (per contract 00 Agent D brief: "Style from Chase Demo/…" and Agent E's
   own brief: "Shares only the design tokens" — the :root block below is
   copied verbatim; everything after it is landing-page-specific and new).
   ──────────────────────────────────────────────────────────────────── */

:root {
  --navy:    #0d3c6e;
  --green:   #2a7d4f;
  --blue:    #1a6fa8;
  --light-blue: #e8f3fb;
  --light-green: #e8f5ee;
  --amber:   #d97706;
  --red:     #dc2626;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white:   #ffffff;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Phone frame — mirrored from app/src/styles/app.css `.phone-page` / `.phone` /
   `.notch` / `.phone-content` (15 Sep 2026, Madison: "the same mobile phone container
   wrapper design as the rest of the flow"). landing/ has no build step and cannot import
   app/'s stylesheet, so this is a copy: change both together, including the media query. ── */
.phone-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 0;
  background: #0f172a;
}
.phone {
  width: 375px;
  height: 812px;
  background: var(--gray-50);
  border-radius: 34px;
  border: 7px solid #191929;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.notch {
  height: 22px;
  background: #191929;
  border-radius: 0 0 12px 12px;
  width: 100px;
  margin: 0 auto;
  flex-shrink: 0;
}
/* Unlike app/, the landing page has no inner scroll container of its own, so the frame's
   content area scrolls — on a short viewport the CTA must stay reachable. */
.phone-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 500px), (hover: none) and (pointer: coarse) {
  .phone-page { padding: 0; background: var(--gray-50); gap: 0; }
  .phone { width: 100vw; height: 100dvh; border: none; border-radius: 0; box-shadow: none; }
  .notch { display: none; }
}

/* ── Quiet bar — replaces the old navy Cambridge header + badge row.
   Second pass, 28 Aug 2026: the moment someone lands here, they should
   still feel like they're mid-errand from their bank, not arriving at a
   new company's storefront. This is the entire "chrome" above the fold:
   one small reassurance, nothing that reads as a logo or a pitch. ── */
.quiet-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-50);
  flex-shrink: 0;
}

.quiet-bar .icon { font-size: .8rem; }

/* ── Bridge line — the one place Cambridge is named. Quiet, not a banner:
   body copy weight, not a colored callout, per Madison's brief that this
   should be a subtle continuation, not a "you've left Chase" moment. ── */
.bridge-line {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bridge-line strong { color: var(--gray-800); }

/* ── Content ── */
.content {
  flex: 1;
  padding: 28px 20px 24px;
}

.greeting {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.subhead {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 18px;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-green);
  border: 1px solid #a5d6a7;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

/* ── Steps card ── */
.steps-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  margin-bottom: 20px;
}

.steps-card-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

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

.step-num {
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.step-text span {
  font-size: .8rem;
  color: var(--gray-600);
}

/* ── Trust fineprint — replaces the stat wall and badge row. Credentials
   are present per Madison's brief ("don't pretend we're not a Cambridge
   agent") but pushed down to small print near the CTA rather than staged
   as a brochure moment up top. No stats shown this pass — a "$1B+ debt
   handled" marquee reads as an ad, which cuts against the calm, personal
   tone this page is going for. If a single soft trust line is wanted
   later, it belongs here, in this weight, not as a 3-up stat row. ── */
.trust-fineprint {
  text-align: center;
  font-size: .7rem;
  color: var(--gray-600);
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Security line ── */
.security {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .78rem;
  color: var(--gray-600);
  margin-bottom: 22px;
  line-height: 1.5;
}

.security .icon { flex-shrink: 0; }

/* ── CTA ── */
.cta-wrap {
  margin-top: auto;
  padding-top: 4px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: 50px;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}

.cta:hover { background: #1e6040; border-color: #1e6040; }

.cta:disabled {
  opacity: .7;
  cursor: default;
}

.cta .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

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

.legal {
  text-align: center;
  font-size: .72rem;
  color: var(--gray-600);
  margin-top: 12px;
  line-height: 1.5;
  padding: 0 4px;
}

.legal a { color: var(--gray-600); }

/* ── Inline status banner — network failure / offline. Copy is contract
   06 §5 verbatim: `prechatFailed` and `offline`, the only two strings
   this page is allowed to author itself. ── */
.status-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--red);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: .85rem;
  line-height: 1.5;
  margin-top: 14px;
}

.status-banner.visible { display: flex; }

.status-banner.offline {
  background: #fffbeb;
  border-color: #fde68a;
  color: var(--amber);
}

.status-banner .icon { flex-shrink: 0; }
