html, body { margin: 0; min-height: 100%; }
body {
  background: #f6f5f2;
  font-family: 'DM Sans', 'Avenir Next', 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1c1e22;
}
:root {
  --ds-hairline: #e3e0da;
  --sr-navy: #1F2647;
  --sr-ink: #0B0D1A;
  --sr-blue: #C3DBFF;
  --sr-blue-strong: #A5C9FF;
  --sr-blue-text: #49517D;
  --sr-cream: #FFFBF0;
  --sr-gray: #6F6D68;
  --sr-yellow: #FCE838;
}
main { display: grid; gap: 40px; }
h1, h2, h3, .faq-question, .quote-panel p, .page-header h1 {
  font-family: 'DM Sans', 'Avenir Next', 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h2, h3 { color: #14181f; }

/* Shell */
.file-card { max-width: 980px; margin: 0 auto; padding: 26px 22px 70px; }
.file-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; border-bottom: 1px solid var(--ds-hairline); margin-bottom: 34px; }
.file-nav a { padding: 12px 0; color: var(--sr-gray); text-decoration: none; font-size: 14px; font-weight: 500; }
.file-nav a:hover { color: var(--sr-navy); }
.file-nav a[aria-current="page"] { color: var(--sr-navy); box-shadow: inset 0 -2px 0 var(--sr-navy); }
.file-footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--ds-hairline); color: var(--sr-gray); font-size: 13px; line-height: 1.6; }

/* Page header + groups */
.page-header .fact { color: var(--sr-gray); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.page-header h1 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; margin: 0 0 14px; color: #14181f; }
.page-header .intro { color: #41474f; font-size: 17px; line-height: 1.55; max-width: 680px; margin: 0; }
.group { display: grid; gap: 18px; }
.group-label { color: var(--sr-gray); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 600; margin: 0; }

/* Buttons */
.file-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; border-radius: 999px; font-weight: 500; letter-spacing: -0.02em; border: 1px solid transparent; }
.file-button[data-variant="primary"] { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.file-button[data-variant="secondary"] { background: transparent; border: 1px solid var(--sr-navy); color: var(--sr-navy); }

/* Hero */
.hero-band { position: relative; border-radius: 24px; overflow: hidden; padding: 180px 40px 44px; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 42%; z-index: -2; }
.hero-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,26,.18) 0%, rgba(11,13,26,.42) 55%, rgba(11,13,26,.78) 100%); z-index: -1; }
.eyebrow { color: var(--sr-gray); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 600; margin: 0 0 14px; }
.hero-band .eyebrow { color: var(--sr-yellow); }
.hero-band h1 { font-weight: 500; letter-spacing: -.025em; font-size: clamp(40px, 5.6vw, 60px); line-height: 1.07; margin: 0; color: #fff; max-width: 820px; }
.hero-copy { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.55; max-width: 640px; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-band .file-button[data-variant="primary"] { background: #fff; border-color: #fff; color: var(--sr-navy); }
.hero-band .file-button[data-variant="secondary"] { background: transparent; border: 1px solid rgba(255,255,255,.85); color: #fff; }
.territory { color: rgba(255,255,255,.75); font-size: 13px; margin: 22px 0 0; }
.photo-credit { color: var(--sr-gray); font-size: 12px; margin: 8px 2px 0; }

/* Trust tiles */
.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust-strip div { background: var(--sr-blue); border-radius: 16px; padding: 20px 22px; display: grid; gap: 4px; }
.trust-strip span, .energy-flow span { color: var(--sr-blue-text); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.trust-strip strong, .energy-flow strong { font-size: 16px; font-weight: 600; color: var(--sr-navy); }

/* Rows, facts, callouts, lists */
.rows { display: grid; }
.row { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ds-hairline); align-items: start; }
.row:last-child { border-bottom: 1px solid var(--ds-hairline); }
.row.no-num { grid-template-columns: 1fr; }
.row .num { width: 30px; height: 30px; border-radius: 50%; background: var(--sr-blue); color: var(--sr-navy); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.row strong { display: block; color: var(--sr-navy); margin: 4px 0 4px; font-size: 16.5px; }
.row p { margin: 0; color: #585254; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.facts .fact-item { background: var(--sr-cream); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.facts .fact-item span { color: var(--sr-gray); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts .fact-item strong { color: var(--sr-navy); font-weight: 500; line-height: 1.45; font-size: 15px; }
.callout { background: var(--sr-cream); border-radius: 16px; padding: 20px 22px; color: #41474f; line-height: 1.55; }
.callout.note { background: var(--sr-blue); color: #2c3355; }
.callout strong { display: block; color: var(--sr-navy); margin-bottom: 6px; }
.callout a { color: var(--sr-navy); font-weight: 600; }
.bullets { margin: 0; padding-left: 20px; color: #41474f; line-height: 1.6; display: grid; gap: 8px; }
.numbered { margin: 0; padding-left: 22px; color: #41474f; line-height: 1.6; display: grid; gap: 8px; }
.key-sentence { color: var(--sr-navy); font-weight: 600; }
.text-block h3 { margin: 18px 0 6px; color: var(--sr-navy); font-size: 20px; }
.text-block p { margin: 0 8px 8px 0; color: #41474f; line-height: 1.6; }

/* Quote + energy flow */
.quote-panel { background: var(--sr-ink); border-radius: 24px; padding: 48px 44px; }
.quote-panel p { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; margin: 0 0 18px; color: var(--sr-blue-strong); }
.quote-panel span { color: rgba(255,255,255,.72); font-size: 14px; }
.energy-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-bottom: 18px; }
.energy-flow > div:not(.flow-arrow) { display: grid; gap: 8px; background: var(--sr-cream); border-radius: 16px; padding: 22px; }
.energy-flow > div:not(.flow-arrow) strong { color: var(--sr-navy); }
.flow-arrow { display: grid; place-items: center; color: var(--sr-navy); font-size: 28px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--ds-hairline); }
.faq-list article { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--ds-hairline); }
.faq-list p { margin: 0; color: #41474f; line-height: 1.6; }
.faq-list .faq-question { color: var(--sr-navy); font-size: 24px; line-height: 1.2; }

/* Forms */
.registration-card { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding: 24px; border-radius: 20px; background: var(--sr-cream); }
.registration-card label { display: grid; gap: 7px; color: var(--sr-navy); font-size: 13px; font-weight: 600; }
.registration-card input:not([type="checkbox"]), .registration-card select, .registration-card textarea { width: 100%; min-height: 46px; box-sizing: border-box; border: 1px solid #d9d5ce; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--sr-ink); font: inherit; font-weight: 400; }
.registration-card textarea { min-height: 96px; resize: vertical; }
.registration-card input:focus, .registration-card select:focus, .registration-card textarea:focus { outline: 3px solid rgba(165,201,255,.65); border-color: var(--sr-navy); }
.consent-row { grid-column: 1 / -1; grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; font-weight: 400 !important; line-height: 1.5; }
.consent-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sr-navy); }
.form-full { grid-column: 1 / -1; }
.referral-button { grid-column: 1 / -1; min-height: 48px; justify-self: start; border: 0; background: var(--sr-navy); color: #fff; padding: 0 22px; cursor: pointer; border-radius: 999px; font-weight: 500; font-size: 15px; font-family: inherit; }
.referral-button:disabled { background: #c0bebf; cursor: not-allowed; }
.form-msg { grid-column: 1 / -1; margin: 0; line-height: 1.5; font-weight: 400; }
.form-msg.ok { color: #146c2e; }
.form-msg.err { color: #a03232; }
.personal-link { display: grid; gap: 7px; margin-top: 16px; padding: 22px; border-radius: 16px; background: var(--sr-blue); color: var(--sr-navy); }
.personal-link span, .attribution-chip span, .tracker-summary span { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; color: var(--sr-blue-text); }
.personal-link strong { overflow-wrap: anywhere; font-size: 20px; }
.personal-link p { margin: 0; color: #2c3355; line-height: 1.5; }
.personal-link[hidden] { display: none; }
.attribution-chip { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 16px 18px; border-radius: 14px; background: var(--sr-blue); }
.attribution-chip small { width: 100%; color: #2c3355; }
.calendar-pending { border: 1px dashed var(--sr-blue-text); border-radius: 16px; padding: 20px; background: var(--sr-blue); color: var(--sr-navy); }
.calendar-pending strong { display: block; margin-bottom: 6px; }
.calendar-pending p { margin: 0; color: #2c3355; }
#cal-inline { width: 100%; min-height: 320px; border-radius: 16px; overflow: hidden; background: #fff; }
#cal-inline:empty { display: none; }
.start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
main > .file-button { justify-self: start; }

/* Tracker */
.tracker-key { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tracker-key input { min-height: 46px; border: 1px solid #d9d5ce; border-radius: 8px; padding: 10px 12px; font: inherit; min-width: 260px; }
.tracker-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tracker-table th, .tracker-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ds-hairline); vertical-align: top; }
.tracker-table th { color: var(--sr-gray); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tracker-table select { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid #d9d5ce; }
.dup-flag { color: #a03232; font-weight: 600; }
.tracker-empty { color: var(--sr-gray); }

@media (max-width: 640px) {
  main { gap: 30px; }
  .file-card { padding: 18px 16px 56px; }
  .file-nav { gap: 14px; margin-bottom: 24px; }
  .file-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 2px 0; }
  .hero-band { padding: 150px 22px 28px; border-radius: 20px; }
  .hero-band h1 { font-size: 38px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .file-button { width: 100%; }
  main > .file-button { justify-self: stretch; }
  .trust-strip { grid-template-columns: 1fr; }
  .quote-panel { padding: 30px 24px; }
  .energy-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); min-height: 20px; }
  .faq-list article { grid-template-columns: 1fr; gap: 10px; }
  .faq-list .faq-question { font-size: 22px; }
  .facts { grid-template-columns: 1fr; }
  .registration-card { grid-template-columns: 1fr; padding: 18px; }
  .consent-row, .referral-button, .form-full { grid-column: auto; }
  .referral-button { justify-self: stretch; }
}
