/* digitaladvisors.ai — page layer over styles.css (the Modernist system).
   Tokens first (the maroon accent override from the handoff README), then one
   class per pattern the three pages use. Every value here is the inline
   style from design_handoff_digitaladvisors_site/design_reference/, moved
   into a class. Change the look in styles.css; change the layout here. */

:root {
  --color-accent: #8b0225;
  --color-accent-2: #8b0225;
  --color-accent-100: #fbeef1;
  --color-accent-200: #f6dae0;
  --color-accent-300: #eeb6c2;
  --color-accent-400: #de7f95;
  --color-accent-500: #b8365a;
  --color-accent-600: #77021f;
  --color-accent-700: #5e0119;
  --color-accent-800: #450113;
  --color-accent-900: #2f050e;
  --color-accent-2-100: #fbeef1;
  --color-accent-2-200: #f6dae0;
  --color-accent-2-300: #eeb6c2;
  --color-accent-2-400: #de7f95;
  --color-accent-2-500: #b8365a;
  --color-accent-2-600: #77021f;
  --color-accent-2-700: #5e0119;
  --color-accent-2-800: #450113;
  --color-accent-2-900: #2f050e;

  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(24px, 5vw, 96px);
  --measure: 58ch;
}

body { margin: 0; font-size: 17px; line-height: 28px; text-wrap: pretty; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-700); }

/* ── shared chrome ─────────────────────────────────────────────────── */
.nav {
  flex-wrap: wrap;
  padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
}
.nav .btn-primary { color: var(--color-bg); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.hr { margin: 0; }

.section { padding: 84px 0; }
.section-row { padding: 56px 0; }
.section-hero { padding: 84px 0 56px; }
.section-last { padding: 56px 0 84px; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px var(--col-gap);
}
.cols-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cols-center { align-items: center; }
.cols-start { align-items: start; }
.gap-42 { row-gap: 42px; }
.gap-56 { row-gap: 56px; }

.measure { max-width: var(--measure); }
.measure-52 { max-width: 52ch; }
.measure-48 { max-width: 48ch; }

/* type */
.h1 {
  font-size: clamp(40px, 5.8vw, 80px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 0 0 -0.058em; max-width: 14ch;
}
.h1-home { font-size: clamp(44px, 5.8vw, 80px); line-height: 1.04; max-width: 12ch; }
.h1-wide { max-width: 16ch; }
.lead { font-size: 19px; line-height: 30px; max-width: 52ch; margin: 36px 0 0; }
.lead-58 { max-width: 58ch; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.h2-sm { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.h2-14 { max-width: 14ch; }
.h2-16 { max-width: 16ch; }
.mb-28 { margin-bottom: 28px; }
.mb-42 { margin-bottom: 42px; }
.h3 { font-size: 20px; line-height: 28px; margin: 0; }
.kicker {
  display: block; font-size: 13px; line-height: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 14px;
}
.num {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  color: var(--color-accent); font-feature-settings: 'tnum' 1; margin: 0 0 14px;
}
.copy p { margin: 0 0 28px; }
.copy p:last-child { margin-bottom: 0; }
.note { font-size: 14px; line-height: 28px; margin: 14px 0 0; color: var(--color-neutral-700); }
.muted { color: var(--color-neutral-700); }
.small { font-size: 15px; line-height: 24px; }

/* buttons */
.btn-lg { padding: 12px 18px; font-size: 15px; }
.btn-primary { color: var(--color-bg); }
.btn-primary:hover, .btn-primary:active { color: var(--color-bg); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.btn-link { padding-inline: 0; }
.btn-link:hover { background: none; color: var(--color-accent-700); }

/* photos — the slot is flat surface until a photo lands; drop an <img> in. */
.photo { margin: 0; position: relative; background: var(--color-surface); border-top: 2px solid var(--color-divider); }
.photo-43 { aspect-ratio: 4 / 3; }
.photo-34 { aspect-ratio: 3 / 4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── the phone frame (the bezel is the one allowed rounded element) ──
   402 × 874 is the iPhone 16 Pro at 1×; --phone-scale sets how big it
   prints. The design said .72; that read thin beside a 500px column. */
:root { --phone-scale: .84; }
.phone-slot { display: flex; justify-content: flex-start; }
.phone-scale { width: calc(402px * var(--phone-scale)); height: calc(var(--phone-h, 874px) * var(--phone-scale)); }
.phone {
  width: 402px; height: var(--phone-h, 874px);
  transform: scale(var(--phone-scale)); transform-origin: top left;
  background: var(--color-text); border-radius: 48px; padding: 12px;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--color-bg); color: var(--color-text);
  display: flex; flex-direction: column;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 0; font-size: 15px; font-weight: 600; line-height: 22px;
  font-feature-settings: 'tnum' 1;
}
.phone-status svg { display: block; }
.phone-body { flex: 1; padding: 24px 22px 40px; font-family: var(--font-body); }
.phone-home { width: 134px; height: 5px; background: var(--color-text); margin: 0 auto 8px; }

.phone-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 26px;
  line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 6px;
}
.phone-sub { font-size: 14px; line-height: 20px; color: var(--color-neutral-700); margin: 0 0 22px; }
.phone-kicker {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent); margin: 0 0 6px;
}
.phone-list { display: flex; flex-direction: column; margin-bottom: 22px; }
.phone-list:last-child { margin-bottom: 0; }
.phone-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-top: 1px solid var(--color-divider); font-size: 15px; font-weight: 600;
}
.phone-row:first-child { border-top-width: 2px; }
.phone-list:last-child .phone-row:last-child { border-bottom: 1px solid var(--color-divider); }
.phone-row svg { color: var(--color-accent); flex: none; }

/* ── grids ─────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; }
.tile { margin: 0; padding: 20px; background: var(--color-surface); font-size: 16px; line-height: 24px; }

.advisors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; }
.advisor {
  padding: 24px 20px; border-top: 2px solid var(--color-divider);
  display: flex; flex-direction: column; gap: 16px; min-height: 200px;
}
.advisor svg { color: var(--color-accent); }
.advisor-text { flex: 1; }
.advisor-name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 24px; margin: 0 0 6px; }
.advisor-tag { margin: 0; font-size: 15px; line-height: 22px; color: var(--color-neutral-700); }
.advisor-life { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-600); }

.compare { font-size: 16px; }
.compare th:first-child { width: 42%; }
.compare th:last-child { color: var(--color-accent); }
.compare td { padding: 14px 8px; }
.compare td:first-child { color: var(--color-neutral-700); }
.compare td:last-child { font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.step { border-top: 2px solid var(--color-divider); padding-top: 14px; }
.step p:last-child { margin: 0; }
.aside { margin-top: 84px; max-width: var(--measure); }
.aside .h3 { margin-bottom: 8px; }

/* the Different page's numbered rows */
.row-head .h2-sm { max-width: 16ch; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(20px, 3vw, 48px); }
.stat-n {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1; color: var(--color-accent); margin: 0 0 8px;
}
.stat-l { font-size: 13px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); margin: 0; }

/* the Pricing page */
.section-price-hero { padding: 112px 0 84px; } /* the full-width hero: Pricing, Different */
.plan { background: var(--color-surface); padding: 36px 32px 32px; border-top: 2px solid var(--color-accent); }
.plan .kicker { margin-bottom: 28px; }
.plan-name { font-size: 24px; line-height: 28px; margin: 0 0 8px; }
.price {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(44px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--color-accent);
}
.price span { font-size: 20px; letter-spacing: 0; color: var(--color-text); font-weight: 400; }
.features { display: flex; flex-direction: column; font-size: 16px; line-height: 26px; }
.features p { margin: 0; padding: 12px 0; border-top: 1px solid var(--color-divider); }
.features p:last-child { padding-bottom: 0; }
.plan .btn-block { margin-top: 36px; }
.plan-note { margin: 20px 0 0; font-size: 14px; line-height: 22px; color: var(--color-neutral-700); }
.faq { display: flex; flex-direction: column; }
.faq-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px var(--col-gap); padding: 28px 0; border-top: 1px solid var(--color-divider);
}
.faq-row p { margin: 0; max-width: var(--measure); }

/* ── poster close + footer ─────────────────────────────────────────── */
.poster { background: var(--color-accent); color: var(--color-bg); }
.poster .wrap { padding-block: 84px; }
.poster h2 {
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em; max-width: 20ch;
}
.poster .actions { margin-top: 42px; }
.poster .btn-ghost { color: var(--color-bg); border-color: var(--color-bg); }
.poster .btn-ghost:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); }
.poster .btn-ghost:active { background: color-mix(in srgb, var(--color-bg) 20%, transparent); }

.footer {
  padding-block: 56px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-size: 13px; color: var(--color-neutral-700);
}
.footer span { margin-right: auto; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--color-accent); }

/* ── the app's chat screen, as it is in the App (mobile/app/styles.css) ──
   Same bar, same bubbles, same input bar, same colours; the phone screen
   keeps its height and the messages scroll inside it, like a phone. */
.app-screen { --app-bg: #ffffff; --app-soft: #f4f5f7; --app-text: #16181d; --app-text-soft: #5c6270; --app-line: #e3e5ea;
  background: var(--app-bg); color: var(--app-text); font-size: 16px; line-height: 1.5; }
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--app-line); background: var(--app-bg);
}
.app-back { display: flex; align-items: center; justify-content: center; width: 40px; height: 36px; font-size: 20px; }
.app-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-icon-circle {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent-100);
}
.app-icon-circle svg { width: 16px; height: 16px; color: var(--color-accent); }
.app-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; line-height: 1.1; }
.app-messages {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px;
}
.app-msg { max-width: 88%; padding: 11px 14px; overflow-wrap: break-word; }
.app-msg p { margin: 0 0 1.5em; }
.app-msg p:last-child { margin-bottom: 0; }
.app-msg em { font-style: italic; }
.app-msg strong { font-weight: 700; }
.app-you { align-self: flex-end; background: var(--color-accent); color: #ffffff; }
.app-adv { align-self: flex-start; background: var(--color-accent-100); }
.app-input {
  display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px;
  border-top: 1px solid var(--app-line); background: var(--app-bg);
}
.app-textarea { flex: 1; background: var(--app-soft); border: 1px solid var(--app-line); padding: 10px 14px; color: var(--app-text-soft); }
.app-send {
  width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: #ffffff; font-size: 19px;
}
.app-screen .phone-home { margin-top: 8px; }
