/* ============================================================
   US Foreclosure Aid v5 — Master Stylesheet
   ============================================================ */

/* === Design Tokens ========================================= */
:root {
  --navy:       #0b1f3a;
  --navy2:      #102f55;
  --navy3:      #091729;
  --ink:        #142033;
  --muted:      #5d6b7c;
  --muted2:     #8a9aac;
  --line:       #dbe4ee;
  --line2:      #edf2f8;
  --soft:       #f4f7fb;
  --soft2:      #f9fbfd;
  --green:      #1f8a62;
  --green2:     #17714f;
  --green3:     #0f5a3e;
  --green-bg:   #e8f6f0;
  --green-mid:  #c8ead9;
  --gold:       #c59a36;
  --gold2:      #a07828;
  --gold-bg:    #fdf8ec;
  --gold-mid:   #f5e5b8;
  --red:        #c0392b;
  --red-bg:     #fdf0ef;
  --white:      #fff;
  --shadow-xs:  0 2px 8px rgba(11,31,58,.06);
  --shadow-sm:  0 4px 16px rgba(11,31,58,.08);
  --shadow:     0 16px 48px rgba(11,31,58,.11);
  --shadow-lg:  0 32px 80px rgba(11,31,58,.16);
  --radius-xs:  8px;
  --radius-sm:  12px;
  --radius:     20px;
  --radius-lg:  28px;
  --radius-xl:  36px;
  --max:        1180px;
  --max-prose:  760px;
  --header-h:   76px;
}

/* === Reset & Base ========================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.72;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.06; letter-spacing: -.03em; }
button { font-family: inherit; }

/* === Accessibility ========================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--green);
  color: #fff;
  padding: 10px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  z-index: 9999;
  transition: top .15s;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }

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

/* === Reading Progress ====================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  z-index: 300;
  transition: width .08s linear;
  pointer-events: none;
}

/* === Layout ================================================ */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* === Topbar ================================================ */
.topbar {
  background: var(--navy3);
  padding: 10px 0;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.topbar-phone:hover { color: #fff; }
.topbar-message {
  flex: 1;
  min-width: 180px;
  text-align: center;
  color: #d7e6f2;
  font-weight: 800;
  font-size: 13px;
}
.topbar-privacy {
  flex-shrink: 0;
  white-space: nowrap;
  color: #6a8eaa;
  font-weight: 500;
  font-size: 12px;
}

/* === Header ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.03em;
  flex-shrink: 0;
  text-decoration: none;
}
.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.footer-logo {
  width: 134px;
  height: 134px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  margin-top: 4px;
}
.brand-text { display: flex; flex-direction: column; gap: 0; }
.brand-name { font-size: 16.5px; color: var(--navy); line-height: 1.2; }
.brand-tag  { font-size: 11.3px; color: var(--muted); font-weight: 700; letter-spacing: .03em; line-height: 1.15; }
.links {
  display: flex;
  gap: 2px;
  align-items: center;
  font-weight: 700;
  color: #314258;
  font-size: 13.5px;
}
.links a:not(.btn) {
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.links a:not(.btn):hover,
.links a:not(.btn).active {
  background: var(--soft);
  color: var(--green);
}
.menu-btn { display: none; }

/* Mobile nav panel */
.nav-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-panel.open { display: flex; }
.nav-panel a:not(.btn) {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  color: #314258;
  transition: background .15s, color .15s;
}
.nav-panel a:not(.btn):hover { background: var(--soft); color: var(--green); }
.nav-panel .btn { margin-top: 6px; text-align: center; }

/* === Sticky Mobile CTA ===================================== */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  z-index: 85;
  box-shadow: 0 -8px 32px rgba(11,31,58,.12);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.68,0,1.2);
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-bar .btn { flex: 1; padding: 13px 12px; font-size: 13px; }
@media (min-width: 921px) { .sticky-cta-bar { display: none !important; } }
body.has-sticky-cta .footer { padding-bottom: 80px; }

/* === Buttons =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 15px 28px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid var(--green);
  box-shadow: 0 6px 20px rgba(31,138,98,.22);
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31,138,98,.30);
  background: var(--green2);
  border-color: var(--green2);
}
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: #fff;
  color: var(--navy);
  border-color: #c4d3e0;
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--soft);
  border-color: #a8bdd0;
  box-shadow: none;
  transform: translateY(-1px);
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(197,154,54,.22);
}
.btn.gold:hover { background: var(--gold2); border-color: var(--gold2); box-shadow: 0 12px 28px rgba(197,154,54,.30); }
.btn.navy { background: var(--navy); border-color: var(--navy); box-shadow: 0 6px 20px rgba(11,31,58,.22); }
.btn.lg  { padding: 18px 36px; font-size: 15.5px; }
.btn.sm  { padding: 10px 20px; font-size: 13px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: rgba(255,255,255,.4); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); transform: translateY(-1px); }

/* === Eyebrow =============================================== */
.eyebrow {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  margin: 0 0 10px;
  display: block;
}
.eyebrow.gold { color: var(--gold2); }
.eyebrow.muted { color: var(--muted2); }

/* === Sections ============================================== */
.section { padding: 96px 0; }
.section.tight { padding: 48px 0; }
.section.soft { background: var(--soft); }
.section.soft2 { background: var(--soft2); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .muted,
.section.dark p { color: #b8ccdd; }
.section.dark h2,
.section.dark h3 { color: #fff; }
.section.green-bg { background: var(--green-bg); }
.section.navy2-bg { background: var(--navy2); color: #fff; }

.section-head {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -.045em;
  line-height: 1.07;
}
.section-head > p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  line-height: 1.65;
}

/* === Typography ============================================ */
.lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: #2e4560;
  line-height: 1.65;
}
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }

/* === Hero ================================================== */
.hero {
  background:
    radial-gradient(ellipse at 75% 10%, rgba(31,138,98,.10) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 90%, rgba(11,31,58,.06) 0%, transparent 45%),
    linear-gradient(175deg, #f3f8ff 0%, #f9fbff 50%, #fff 100%);
  padding: 128px 0 104px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11,31,58,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(43px, 6vw, 76px);
  line-height: .97;
  margin: 0 0 20px;
  letter-spacing: -.055em;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero .lead { margin: 0 0 14px; }
.hero-body { font-size: 16.5px; color: #3a5270; line-height: 1.75; }
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}
.trustline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 800;
  color: #41536b;
  font-size: 12px;
}

/* Hero compass card */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(197,154,54,.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line2);
}
.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-bg);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hero-card-header h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.hero-card-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}
.question-list { display: grid; gap: 12px; }
.question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--soft2);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.question:hover { border-color: var(--green-mid); background: var(--green-bg); }
.question-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === Stage Selector (Homepage) ============================= */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.stage-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.stage-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stage-card.urgent { border-color: var(--gold-mid); background: var(--gold-bg); }
.stage-card.urgent:hover { border-color: var(--gold2); box-shadow: 0 16px 40px rgba(197,154,54,.20); }
.stage-icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.stage-card h3 { font-size: 16px; color: var(--navy); margin: 0; line-height: 1.3; }
.stage-card p  { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.stage-link {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--green);
  margin-top: auto;
  padding-top: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stage-card.urgent .stage-link { color: var(--gold2); }
.stage-urgency-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* === Foreclosure Stage Timeline ============================ */
.stage-timeline-wrap {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
}
.stage-timeline-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 20px;
}
.stage-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.stage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}
.stage-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  transition: all .2s;
}
.stage-node.completed .stage-dot { background: var(--green); border-color: var(--green); }
.stage-node.current .stage-dot {
  background: var(--gold);
  border-color: var(--gold);
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 6px rgba(197,154,54,.18);
}
.stage-node-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted2);
  text-align: center;
  line-height: 1.3;
  max-width: 90px;
}
.stage-node.completed .stage-node-label { color: var(--green2); font-weight: 800; }
.stage-node.current .stage-node-label   { color: var(--gold2);  font-weight: 900; }
.stage-connector {
  height: 2px;
  flex: 1;
  background: var(--line);
  min-width: 32px;
  transition: background .2s;
}
.stage-connector.completed { background: var(--green); }

/* === Trust Bar ============================================= */
.trust-strip {
  background: var(--navy2);
  padding: 14px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #8aadc8;
  white-space: nowrap;
}
.trust-item-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31,138,98,.25);
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #5ec49a;
  font-weight: 900;
  flex-shrink: 0;
}

/* === Tabs ================================================== */
.tabs { position: relative; }
.tab-list {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 12px 22px;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.tab-btn:hover { color: var(--navy); background: var(--soft); }
.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--green-bg);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* === In-Page Anchor Nav ==================================== */
.anchor-nav {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 40px;
}
.anchor-nav-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 10px;
}
.anchor-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.anchor-nav-links a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  transition: all .15s;
}
.anchor-nav-links a:hover { background: var(--green-bg); border-color: var(--green-mid); }

/* === Page Hero ============================================= */
.page-hero {
  padding: 84px 0 72px;
  background: linear-gradient(165deg, #f2f8ff 0%, #f8fafd 50%, #fff 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11,31,58,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -.05em;
  color: var(--navy);
  margin: 0 0 18px;
}
.breadcrumbs {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs a { color: var(--green); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs-sep { color: var(--muted2); font-size: 11px; }

/* === Cards ================================================= */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11,31,58,.10);
  border-color: #c2d2e4;
}
.card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -.022em;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card.featured  { border-color: var(--green-mid); background: var(--green-bg); }
.card.gold-card { border-color: var(--gold-mid);  background: var(--gold-bg); }
.card.warning   { border-color: #e8c0bc; background: var(--red-bg); }
.card.warning h3 { color: #8a1f1a; }
.card.navy-card { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.navy-card h3 { color: #fff; }
.card.navy-card p  { color: #b8ccdd; }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.icon.gold  { background: var(--gold-bg);  color: var(--gold2); }
.icon.navy  { background: var(--navy);     color: #fff; }
.icon.red   { background: var(--red-bg);   color: var(--red); }
.icon.large { width: 54px; height: 54px; font-size: 24px; border-radius: 14px; }
.icon.xl    { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; }

/* === Grids ================================================= */
.grid { display: grid; gap: 24px; }
.grid.two   { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four  { grid-template-columns: repeat(4, 1fr); }

/* === Split ================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split.center { align-items: center; }
.split h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--navy);
  margin: 0 0 18px;
}
.split p { color: var(--muted); font-size: 16.5px; }
.split p + p { margin-top: 14px; }

/* === Panel ================================================= */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 19px; color: var(--navy); margin: 0 0 14px; }
.panel ul { display: grid; gap: 10px; padding: 0; }
.panel ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14.5px;
}
.panel ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.panel.dark-panel {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-color: transparent;
  color: #fff;
}
.panel.dark-panel h3, .panel.dark-panel h4 { color: #fff; }
.panel.dark-panel p { color: #b8ccdd; }
.panel.dark-panel p + p { margin-top: 12px; }
.panel.green-panel { background: var(--green-bg); border-color: var(--green-mid); }
.panel.green-panel h3 { color: var(--green2); }
.panel.gold-panel  { background: var(--gold-bg);  border-color: var(--gold-mid); }

/* === Timeline ============================================== */
.timeline { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  align-items: start;
  position: relative;
  padding-bottom: 32px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green-mid) 0%, transparent 100%);
}
.step:last-child::before { display: none; }
.num {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(31,138,98,.30);
}
.step-content h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 12px 0 6px;
  letter-spacing: -.022em;
}
.step-content p  { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.step-content ul { display: grid; gap: 5px; padding: 0; list-style: none; margin-top: 10px; }
.step-content ul li { color: var(--muted); font-size: 13.5px; padding-left: 14px; position: relative; line-height: 1.55; }
.step-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--green); }

/* === Wheel ================================================= */
.wheel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.wheel .center {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(135deg, var(--navy), var(--green2));
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 28px 16px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow);
}
.wheel span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  color: #3d5068;
  font-size: 13px;
  box-shadow: var(--shadow-xs);
}

/* === Decision Navigator ==================================== */
.decision-block {
  background: linear-gradient(135deg, var(--navy), #123e68);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.decision-block h2 {
  color: #fff;
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}
.decision-block > div > p { color: #b8ccdd; margin: 0; font-size: 16px; }

.mini-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  color: var(--ink);
}
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field:last-of-type { margin-bottom: 18px; }
.field label {
  font-size: 11px;
  font-weight: 900;
  color: #41536b;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: auto;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31,138,98,.12);
}
.field textarea { resize: vertical; min-height: 90px; }

/* === FAQ =================================================== */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--green-mid);
}
.faq summary {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--navy);
  cursor: pointer;
  padding: 20px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
  transition: background .2s, transform .2s;
  line-height: 1;
}
.faq details[open] .faq-icon {
  background: var(--green-bg);
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 22px 20px;
}
.faq details > div p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
}
.faq details > div p + p { margin-top: 10px; }

/* === Upload Box ============================================ */
.upload-box {
  border: 2px dashed #b9c9d8;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 44px 36px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.upload-box:hover { border-color: var(--green-mid); background: var(--green-bg); }
.upload-icon {
  width: 64px;
  height: 64px;
  background: var(--green-bg);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 18px;
  transition: transform .2s;
}
.upload-box:hover .upload-icon { transform: translateY(-3px); }
.upload-box strong {
  display: block;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.upload-box p { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }

/* === CTA Section =========================================== */
.cta {
  background: linear-gradient(135deg, var(--navy), #154a76);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: -.045em;
}
.cta p { color: #b8ccdd; font-size: 17px; margin: 0 0 32px; }
.cta .actions { margin: 0; }

/* === Notice / Alert ======================================== */
.notice {
  border-left: 4px solid var(--gold);
  background: var(--gold-bg);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  color: #5a4010;
  font-size: 14.5px;
  line-height: 1.65;
}
.notice strong { color: #4a3008; }
.notice-green {
  border-left: 4px solid var(--green);
  background: var(--green-bg);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  color: #1a5c3e;
  font-size: 14.5px;
  line-height: 1.65;
}
.notice-red {
  border-left: 4px solid var(--red);
  background: var(--red-bg);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  color: #7a1a14;
  font-size: 14.5px;
  line-height: 1.65;
}
.alert-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 34px;
}
.alert-box h3 { color: #fff; font-size: 19px; margin: 0 0 10px; }
.alert-box p  { color: #b8ccdd; margin: 0; font-size: 15px; }

/* === Checklist ============================================= */
.checklist { display: grid; gap: 10px; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.checklist li::before {
  content: '✓';
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  margin-top: 1px;
  flex-shrink: 0;
}
.checklist.crosses li::before { content: '✕'; background: var(--red-bg); color: var(--red); }
.checklist.nums { counter-reset: clist; }
.checklist.nums li::before {
  content: counter(clist);
  counter-increment: clist;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
}

/* === Badge ================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge.green { background: var(--green-bg); color: var(--green2); }
.badge.gold  { background: var(--gold-bg);  color: var(--gold2); }
.badge.navy  { background: var(--soft);     color: var(--navy); }
.badge.red   { background: var(--red-bg);   color: var(--red); }
.badge.white { background: rgba(255,255,255,.15); color: #fff; }

/* === Before/After Scenario ================================= */
.scenario-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.scenario-before,
.scenario-after {
  border-radius: var(--radius);
  padding: 24px;
}
.scenario-before { background: var(--red-bg); border: 1px solid #e8c0bc; }
.scenario-after  { background: var(--green-bg); border: 1px solid var(--green-mid); }
.scenario-before h4 { color: #8a1f1a; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 10px; }
.scenario-after  h4 { color: var(--green2); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 10px; }
.scenario-before p,
.scenario-after  p  { color: var(--ink); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* === Process Visual ======================================== */
.process-visual {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: 16px 0;
}
.process-visual::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green2));
}
.pv-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding: 0 4px;
}
.pv-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--green-bg);
  flex-shrink: 0;
}
.pv-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* === Method Cards ========================================== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: method;
}
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  counter-increment: method;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.method-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.method-card::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 54px;
  font-weight: 900;
  color: var(--line);
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
}
.method-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 10px; position: relative; }
.method-card p  { font-size: 14.5px; color: var(--muted); margin: 0; position: relative; }

/* === Scenario Card ========================================= */
.scenario {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-xs);
}
.scenario .scenario-tag {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin-bottom: 8px;
}
.scenario h3 { font-size: 17px; color: var(--navy); margin: 0 0 10px; }
.scenario p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* === Highlight Box ========================================= */
.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 38px;
}
.highlight-box h3 { color: #fff; font-size: 20px; margin: 0 0 12px; }
.highlight-box p  { color: #b8ccdd; margin: 0; font-size: 15px; }

/* === Knowledge Center Cards ================================ */
.kc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.kc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green-mid); }
.kc-cat {
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin-bottom: 8px;
}
.kc-card h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.kc-card p  { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; flex: 1; line-height: 1.6; }
.kc-link { font-size: 12.5px; font-weight: 900; color: var(--green); letter-spacing: .02em; }

/* === Table ================================================= */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.table th,
.table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--soft); color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.table tr:hover td { background: var(--soft2); }

/* === Prose ================================================= */
.prose h2 { font-size: 22px; color: var(--navy); margin: 40px 0 12px; letter-spacing: -.025em; }
.prose h3 { font-size: 17px; color: var(--navy); margin: 28px 0 8px; letter-spacing: -.01em; }
.prose p  { color: var(--muted); font-size: 15.5px; line-height: 1.78; margin: 0 0 1em; }
.prose ul { padding-left: 18px; display: grid; gap: 6px; margin: 0 0 1em; }
.prose ul li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.prose .prose-lede { font-size: 17px; color: var(--ink); border-left: 3px solid var(--green); padding-left: 18px; line-height: 1.7; }

/* === TOC (Terms/Privacy) =================================== */
.toc {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 40px;
}
.toc-title { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.toc-links { display: grid; gap: 6px; }
.toc-links a { font-size: 14px; font-weight: 700; color: var(--green); text-decoration: none; }
.toc-links a:hover { text-decoration: underline; }

/* === Footer ================================================ */
.footer {
  background: #06162a;
  color: #617d96;
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 52px;
  margin-bottom: 52px;
}
.footer h3 {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 18px;
}
.footer-brand strong { color: #e0ecf5; font-size: 15px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.65; color: #617d96; margin: 0; }
.footer a {
  display: block;
  margin: 9px 0;
  color: #7a9ab2;
  font-size: 13.5px;
  transition: color .15s;
}
.footer a:hover { color: #fff; }
.footer a[href^="tel:"] {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  font-size: 12px;
  color: #4a6278;
  line-height: 1.8;
  max-width: 900px;
}

/* === Scroll Animations ===================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .08s; }
.fade-up.d2 { transition-delay: .16s; }
.fade-up.d3 { transition-delay: .24s; }
.fade-up.d4 { transition-delay: .32s; }
.fade-up.d5 { transition-delay: .40s; }

/* === Empathy Box =========================================== */
.empathy-box {
  background: linear-gradient(135deg, #f3f8ff, var(--soft));
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.65;
  font-style: italic;
}
.empathy-box cite {
  display: block;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  color: var(--green);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* === Responsive ============================================ */
@media (max-width: 1024px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .process-visual::before { display: none; }
  .process-visual { flex-wrap: wrap; gap: 20px; }
  .pv-step { flex: calc(33% - 10px); max-width: 180px; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-logo { width: 63px; height: 63px; }
  .hero-grid,
  .split,
  .decision-block,
  .footer-grid { grid-template-columns: 1fr; }
  .decision-block { padding: 30px; gap: 28px; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 60px; }
  .section { padding: 72px 0; }
  .wheel { grid-template-columns: 1fr; }
  .wheel .center { grid-column: auto; grid-row: auto; }
  .page-hero { padding: 60px 0 52px; }
  .scenario-pair { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .brand-logo { width: 56px; height: 56px; }
  .footer-logo { width: 106px; height: 106px; }
  .grid.three,
  .grid.four,
  .grid.two,
  .method-grid { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 39px; }
  .page-hero h1 { font-size: 30px; }
  .actions .btn { width: 100%; justify-content: center; }
  .section { padding: 56px 0; }
  .cta { padding: 68px 0; }
  .topbar .container { justify-content: center; }
  .topbar-message,
  .topbar-privacy { display: none; }
  .split { gap: 28px; }
  .panel { padding: 22px; }
  .hero-card { padding: 22px; }
  .decision-block { padding: 22px; }
  .stage-timeline-wrap { padding: 20px; overflow-x: auto; }
  .process-visual { flex-direction: column; align-items: center; }
  .pv-step { max-width: 100%; flex: 1 0 auto; flex-direction: row; gap: 16px; }
  .pv-label { text-align: left; }
}

/* ============================================================
   V6 — FUNCTIONAL PLATFORM ADDITIONS
   ============================================================ */

/* === Form Validation States ================================ */
.field-msg {
  display: none;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  padding: 0 2px;
}
.field.error .field-msg.error-msg   { display: block; color: var(--red); }
.field.success .field-msg.error-msg { display: none; }
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.field.success input,
.field.success select,
.field.success textarea {
  border-color: var(--green);
}
.field.error label  { color: var(--red); }
.char-count {
  font-size: 11px;
  color: var(--muted2);
  text-align: right;
  margin-top: 4px;
  font-weight: 600;
}
.char-count.near { color: var(--gold2); }
.char-count.over { color: var(--red); }

/* === Button States ========================================= */
.btn.loading {
  pointer-events: none;
  opacity: .75;
  gap: 10px;
}
.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.btn.secondary.loading::after { border-color: rgba(11,31,58,.2); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Form Success State ==================================== */
.form-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}
.form-success-state.visible { display: flex; }
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-bg);
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--green);
  border: 3px solid var(--green-mid);
}
.form-success-state h3 { font-size: 22px; color: var(--navy); margin: 0; letter-spacing: -.02em; }
.form-success-state p  { color: var(--muted); font-size: 15px; max-width: 440px; margin: 0; }

/* === Drag & Drop Upload =================================== */
.drop-zone {
  border: 2px dashed #b9c9d8;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 44px 32px;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.drop-zone:hover,
.drop-zone:focus-within { border-color: var(--green-mid); background: var(--green-bg); }
.drop-zone.drag-over {
  border-color: var(--green);
  background: var(--green-bg);
  box-shadow: 0 0 0 6px rgba(31,138,98,.10);
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}
.drop-icon {
  width: 64px;
  height: 64px;
  background: var(--green-bg);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 16px;
  transition: transform .2s;
  pointer-events: none;
}
.drop-zone:hover .drop-icon,
.drop-zone.drag-over .drop-icon { transform: translateY(-4px); }
.drop-zone strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -.02em;
  pointer-events: none;
}
.drop-zone .drop-sub {
  font-size: 13.5px;
  color: var(--muted);
  pointer-events: none;
  line-height: 1.6;
}
.drop-zone .drop-meta {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 8px;
  pointer-events: none;
}

/* === File List ============================================= */
.file-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  position: relative;
  transition: border-color .15s;
}
.file-item.uploading { border-color: var(--green-mid); }
.file-item.done { border-color: var(--green); background: var(--green-bg); }
.file-item.error-file { border-color: #e8c0bc; background: var(--red-bg); }
.file-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.file-item.done .file-type-icon  { background: var(--green-bg); }
.file-item.error-file .file-type-icon { background: var(--red-bg); }
.file-meta { flex: 1; min-width: 0; }
.file-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size { font-size: 12px; color: var(--muted); margin-top: 2px; }
.file-status {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.file-status.pending    { color: var(--muted2); }
.file-status.uploading  { color: var(--green); }
.file-status.done       { color: var(--green2); }
.file-status.error-msg  { color: var(--red); }
.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted2);
  font-size: 16px;
  font-family: inherit;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
}
.file-remove:hover { background: var(--red-bg); color: var(--red); }

/* === Upload Progress Bar ================================== */
.upload-progress-wrap {
  background: var(--line2);
  border-radius: 999px;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 999px;
  transition: width .3s ease;
  width: 0%;
}

/* === Calendly Container =================================== */
.calendly-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 680px;
  background: var(--soft);
  position: relative;
}
.calendly-wrap .calendly-inline-widget {
  min-height: 680px;
}
.calendly-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
  text-align: center;
  gap: 16px;
}
.calendly-fallback h3 { font-size: 19px; color: var(--navy); margin: 0; }
.calendly-fallback p  { color: var(--muted); font-size: 15px; margin: 0; }

/* === Confirmation / Thank-You Pages ======================= */
.confirm-hero {
  padding: 96px 0 80px;
  background: linear-gradient(165deg, #f0f9f4 0%, #f8fafd 60%, #fff 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 4px solid var(--green-mid);
  display: grid;
  place-items: center;
  font-size: 36px;
  margin: 0 auto 24px;
}
.confirm-icon.gold-icon {
  background: var(--gold-bg);
  border-color: var(--gold-mid);
}
.confirm-hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: -.045em;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.07;
}
.confirm-hero .lead { margin: 0 auto; max-width: 600px; }

/* === What Happens Next tracker ============================ */
.next-tracker {
  display: grid;
  gap: 0;
}
.next-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
}
.next-item:last-child { padding-bottom: 0; }
.next-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--line2);
}
.next-item:last-child::before { display: none; }
.next-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 3px solid var(--green-mid);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.next-dot.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(31,138,98,.15);
}
.next-body h3 { font-size: 17px; color: var(--navy); margin: 10px 0 5px; letter-spacing: -.015em; }
.next-body p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* === Inline Notice Banner (dismissable) =================== */
.info-bar {
  background: var(--navy2);
  color: #8aadc8;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  text-align: center;
}
.info-bar a { color: #6eddb0; text-decoration: underline; }

/* === Preparation Checklist Card =========================== */
.prep-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-xs);
}
.prep-card h3 { font-size: 17px; color: var(--navy); margin: 0 0 16px; }
.prep-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line2);
  cursor: pointer;
  user-select: none;
}
.prep-item:last-child { border-bottom: 0; padding-bottom: 0; }
.prep-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
  transition: all .15s;
}
.prep-item.checked .prep-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.prep-item.checked .prep-text { text-decoration: line-through; color: var(--muted2); }
.prep-text { font-size: 14.5px; color: var(--ink); line-height: 1.5; flex: 1; }
.prep-progress {
  height: 6px;
  background: var(--line2);
  border-radius: 999px;
  margin: 16px 0 4px;
  overflow: hidden;
}
.prep-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width .3s ease;
}
.prep-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-align: right;
}

/* === Mobile upload note ==================================== */
.mobile-upload-note {
  display: none;
}
@media (max-width: 620px) {
  .mobile-upload-note { display: block; }
  .desktop-upload-note { display: none; }
}

/* === Responsive additions for V6 ========================== */
@media (max-width: 920px) {
  .confirm-hero { padding: 56px 0 48px; }
  .calendly-wrap { min-height: 580px; }
  .calendly-wrap .calendly-inline-widget { min-height: 580px; }
}

@media (max-width: 620px) {
  .confirm-icon { width: 64px; height: 64px; font-size: 28px; }
  .calendly-wrap { min-height: 700px; border-radius: var(--radius-sm); }
  .drop-zone { padding: 32px 20px; }
  .file-item { gap: 10px; padding: 11px 13px; }
}

/* ============================================================
   MILESTONE 3 — COMMAND CENTER & IP FRAMEWORKS
   ============================================================ */

/* === Stage Selector (Command Center hero) ================== */
.stage-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stage-card-sm {
  padding: 22px 18px; border-radius: var(--radius);
  border: 2px solid var(--line); text-align: center;
  text-decoration: none; display: block;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  background: #fff;
}
.stage-card-sm:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.stage-card-sm .sc-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.stage-card-sm .sc-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: 5px; }
.stage-card-sm h3 { font-size: 14px; color: var(--navy); margin: 0 0 5px; letter-spacing: -.01em; }
.stage-card-sm p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.stage-card-sm.pre-nod { background: #f0fdf4; border-color: #86efac; }
.stage-card-sm.pre-nod .sc-label { color: #15803d; }
.stage-card-sm.nod-stage { background: #fffbeb; border-color: #fcd34d; }
.stage-card-sm.nod-stage .sc-label { color: #92400e; }
.stage-card-sm.nos-stage { background: #fff1f2; border-color: #fca5a5; }
.stage-card-sm.nos-stage .sc-label { color: #991b1b; }
@media (max-width: 620px) { .stage-selector { grid-template-columns: 1fr; } }

/* === UAESIM Method Flow ==================================== */
.method-flow { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.method-step { flex: 1; min-width: 120px; padding: 22px 14px; text-align: center; background: var(--soft); position: relative; }
.method-step + .method-step { border-left: 1px solid var(--line); }
.method-step .ms-num { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 6px; }
.method-step .ms-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.method-step .ms-name { font-size: 15px; font-weight: 900; color: var(--navy); letter-spacing: -.02em; display: block; margin-bottom: 6px; }
.method-step .ms-desc { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 720px) {
  .method-flow { flex-direction: column; }
  .method-step + .method-step { border-left: 0; border-top: 1px solid var(--line); }
  .method-step { text-align: left; display: flex; gap: 14px; align-items: flex-start; }
  .method-step .ms-icon { margin-bottom: 0; flex-shrink: 0; }
  .method-step-text { flex: 1; }
}

/* === Command Center Timeline (abbreviated) ================= */
.cc-timeline { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cc-tl-stage { flex: 1; min-width: 130px; padding: 20px 14px 22px; text-align: center; }
.cc-tl-stage + .cc-tl-stage { border-left: 1px solid rgba(255,255,255,.25); }
.cc-tl-stage .tl-icon { font-size: 22px; display: block; margin-bottom: 8px; }
.cc-tl-stage .tl-name { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 4px; }
.cc-tl-stage .tl-sub { font-size: 11.5px; line-height: 1.5; }
.cc-tl-stage.tl-green { background: #f0fdf4; }
.cc-tl-stage.tl-green .tl-name { color: #15803d; }
.cc-tl-stage.tl-gold { background: #fffbeb; }
.cc-tl-stage.tl-gold .tl-name { color: #92400e; }
.cc-tl-stage.tl-orange { background: #fff7ed; }
.cc-tl-stage.tl-orange .tl-name { color: #c2410c; }
.cc-tl-stage.tl-red { background: #fff1f2; }
.cc-tl-stage.tl-red .tl-name { color: #991b1b; }
.cc-tl-stage.tl-post { background: #f5f3ff; }
.cc-tl-stage.tl-post .tl-name { color: #6d28d9; }

/* === Decision Alignment Framework ========================== */
.alignment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.alignment-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; border-top: 4px solid var(--navy); }
.alignment-card.green-top { border-top-color: var(--green); }
.alignment-card.gold-top { border-top-color: var(--gold); }
.alignment-card.navy-top { border-top-color: var(--navy); }
.alignment-card .goal-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: block; margin-bottom: 8px; }
.alignment-card h3 { font-size: 17px; color: var(--navy); margin: 0 0 12px; letter-spacing: -.02em; }
.alignment-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.alignment-card ul li { font-size: 13.5px; color: var(--ink); padding-left: 18px; position: relative; line-height: 1.5; }
.alignment-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
@media (max-width: 720px) { .alignment-grid { grid-template-columns: 1fr; } }

/* === Homeowner Decision Matrix ============================ */
.decision-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.decision-matrix { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13.5px; }
.decision-matrix thead th { background: var(--navy); color: #fff; padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.decision-matrix thead th:first-child { min-width: 150px; }
.decision-matrix tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line2); color: var(--ink); vertical-align: top; line-height: 1.5; }
.decision-matrix tbody tr:last-child td { border-bottom: 0; }
.decision-matrix tbody tr:hover td { background: #fafbfd; }
.decision-matrix tbody td:first-child { font-weight: 700; color: var(--navy); background: #fbfbfc; font-size: 13px; border-right: 1px solid var(--line2); }
.dm-g { color: #15803d; font-weight: 700; }
.dm-y { color: #92400e; font-weight: 700; }
.dm-r { color: var(--red); font-weight: 700; }
.dm-v { color: var(--muted); font-style: italic; font-size: 12.5px; }

/* === Affordability Reality Check ========================== */
.afford-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.afford-box { padding: 26px; border-radius: var(--radius); }
.afford-box.approved { background: #f0fdf4; border: 2px solid #86efac; }
.afford-box.real { background: var(--soft); border: 2px solid var(--line); }
.afford-box .ab-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: 10px; }
.afford-box.approved .ab-label { color: #15803d; }
.afford-box.real .ab-label { color: var(--muted); }
.afford-box h3 { font-size: 18px; color: var(--navy); margin: 0 0 10px; letter-spacing: -.02em; }
.afford-box p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.afford-vs { display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: var(--navy); }
@media (max-width: 620px) { .afford-compare { grid-template-columns: 1fr; } .afford-vs { transform: rotate(90deg); font-size: 16px; } }

/* === Common Decision Traps ================================ */
.trap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.trap-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 20px 22px; }
.trap-card .trap-num { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--red); display: block; margin-bottom: 7px; }
.trap-card h3 { font-size: 15px; color: var(--navy); margin: 0 0 7px; letter-spacing: -.01em; }
.trap-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* === Mortgage Statement Decoder =========================== */
.decoder-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.decoder-row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line2); }
.decoder-row:last-child { border-bottom: 0; }
.decoder-term { padding: 15px 18px; background: var(--soft); font-weight: 700; font-size: 13px; color: var(--navy); border-right: 1px solid var(--line2); display: flex; align-items: flex-start; }
.decoder-def { padding: 15px 18px; font-size: 13.5px; color: var(--ink); line-height: 1.65; }
.decoder-def strong { color: var(--navy); }
.decoder-def .why { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }
@media (max-width: 640px) {
  .decoder-row { grid-template-columns: 1fr; }
  .decoder-term { border-right: 0; border-bottom: 1px solid var(--line2); background: #f7f9fc; }
}

/* === Resource Download Cards ============================== */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.resource-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-icon { width: 40px; height: 40px; background: var(--soft); border-radius: 10px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.resource-meta h4 { font-size: 13.5px; color: var(--navy); margin: 0 0 3px; letter-spacing: -.01em; }
.resource-meta p { font-size: 12px; color: var(--muted); margin: 0; }
.resource-badge { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; display: inline-block; margin-top: 5px; }

/* === Full Timeline Page =================================== */
.tl-page-stage { margin-bottom: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tl-page-header { padding: 22px 28px; display: flex; align-items: center; gap: 16px; }
.tl-page-header .tl-badge { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; padding: 4px 12px; border-radius: 999px; flex-shrink: 0; }
.tl-page-header h2 { font-size: 20px; color: var(--navy); margin: 0; letter-spacing: -.025em; }
.tl-page-header .tl-timing { font-size: 13px; color: var(--muted); margin: 0; }
.tl-page-body { padding: 0 28px 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.tl-col h4 { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.tl-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tl-col ul li { font-size: 13px; color: var(--ink); padding-left: 16px; position: relative; line-height: 1.5; }
.tl-col ul li::before { content: '•'; position: absolute; left: 0; color: var(--muted); }
.tl-col ul li.good::before { content: '✓'; color: var(--green2); }
.tl-col ul li.warn::before { content: '⚠'; color: var(--gold); }
.tl-col ul li.gone::before { content: '✗'; color: var(--red); }
.tl-page-stage.stage-green .tl-page-header { background: #f0fdf4; border-bottom: 1px solid #d1fae5; }
.tl-page-stage.stage-green .tl-badge { background: #dcfce7; color: #15803d; }
.tl-page-stage.stage-gold .tl-page-header { background: #fffbeb; border-bottom: 1px solid #fde68a; }
.tl-page-stage.stage-gold .tl-badge { background: #fef3c7; color: #92400e; }
.tl-page-stage.stage-orange .tl-page-header { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.tl-page-stage.stage-orange .tl-badge { background: #ffedd5; color: #c2410c; }
.tl-page-stage.stage-red .tl-page-header { background: #fff1f2; border-bottom: 1px solid #fecdd3; }
.tl-page-stage.stage-red .tl-badge { background: #ffe4e6; color: #991b1b; }
.tl-page-stage.stage-post .tl-page-header { background: #f5f3ff; border-bottom: 1px solid #ddd6fe; }
.tl-page-stage.stage-post .tl-badge { background: #ede9fe; color: #6d28d9; }
@media (max-width: 720px) {
  .tl-page-body { grid-template-columns: 1fr; gap: 16px; }
  .tl-page-header { flex-wrap: wrap; gap: 8px; }
}

@media print {
  .topbar, .header, .cta, .footer,
  .menu-btn, .nav-panel, .sticky-cta-bar,
  .reading-progress, .anchor-nav { display: none !important; }
  .section { padding: 20px 0; }
  body { font-size: 12px; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}
