/* MarbleHost — Main Stylesheet */

/* ═══════════════════════════════════
   TOKENS
═══════════════════════════════════ */
:root {
  --navy:       #162844;
  --navy-mid:   #1E3554;
  --navy-deep:  #0C1E38;
  --amber:      #f9911a;
  --amber-h:    #e57d06;
  --amber-pale: #FEF3C7;
  --blue:       #0071BC;
  --blue-h:     #005A96;
  --blue-pale:  #EAF2FF;
  --surface:    #F7F4ED;
  --white:      #FFFFFF;
  --ink:        #0F2742;
  --muted:      #475569;
  --border:     #D7DEE7;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;
  --wrap:  1280px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  12px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════
   RESET & BASE
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 70px; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.au { animation: fadeUp .6s var(--ease) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; }

/* ═══════════════════════════════════
   EYEBROW
═══════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow-line::before {
  content: ''; display: inline-block;
  width: 26px; height: 1.5px;
  background: var(--amber); border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--f-sans); font-weight: 600;
  border: none; cursor: pointer; border-radius: var(--r-lg);
  transition: all .2s var(--ease); text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn-amber {
  background: var(--amber); color: var(--navy-deep);
  padding: 21px 26px; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(217,119,6,.25);
}
.btn-amber:hover { background: var(--amber-h); gap: 10px; }
.btn-ghost {
  background: transparent; color: #fff;
  padding: 20px 24px; font-size: 1rem;
  border: 2px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); }
.btn-nav-amber {
  background: var(--amber); color: var(--navy-deep);
  padding: 13px 20px; font-size: .875rem; border-radius: var(--r-md);
}
.btn-nav-amber:hover { background: var(--amber-h); }
.btn-blue { background: var(--blue); color: #fff; padding: 14px 20px; font-size: .9rem; border-radius: var(--r-md); font-weight: 700; }
.btn-blue:hover { background: var(--blue-h); }
.btn-navy { background: var(--navy); color: #fff; padding: 14px 20px; font-size: .9rem; border-radius: var(--r-md); font-weight: 700; }
.btn-navy:hover { background: var(--navy-mid); }

/* ═══════════════════════════════════
   NAVIGATION
═══════════════════════════════════ */
nav.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(22, 40, 68, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px; gap: 20px;
}
.logo { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; flex-shrink: 0; }
.logo-name { font-family: var(--f-sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; list-style: none;
}
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.9); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.nav-login { font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.88); transition: color .2s; white-space: nowrap; }
.nav-login:hover { color: #fff; }
.nav-login-hide-mobile { display: inline; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(29,78,216,.32), transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(217,119,6,.08), transparent 28%);
}
.hero .wrap { width: 100%; }
.hero-inner {
  position: relative; z-index: 1;
  padding: 64px 0;
  width: 52%; max-width: 52%; flex-shrink: 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #F6C48A; margin-bottom: 16px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 26px; height: 1.5px; background: #F6C48A; }
.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.025em; color: #fff;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.7); }
.hero-sub { font-size: 1.05rem; font-weight: 400; color: rgba(255,255,255,.78); line-height: 1.75; margin-bottom: 28px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: .875rem; color: rgba(255,255,255,.5); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.hero-note span { display: flex; align-items: center; gap: 5px; }
.hero-note svg { width: 13px; height: 13px; }
.hero-photo-wrap { position: absolute; top: 0; right: 0; width: 52%; height: 100%; overflow: hidden; }
.hero-photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,40,68,1) 0%, rgba(22,40,68,.6) 30%, rgba(22,40,68,.15) 65%, rgba(22,40,68,0) 100%);
}

/* ═══════════════════════════════════
   SECTIONS — shared
═══════════════════════════════════ */
section { padding: 80px 0; }
.section-title {
  font-family: var(--f-sans);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.03em; color: var(--ink);
  margin-top: 12px; margin-bottom: 18px;
}
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 520px; }
.section-head { margin-bottom: 48px; }

/* ═══════════════════════════════════
   PRICING CARDS (all product pages)
═══════════════════════════════════ */
.pricing { background: var(--surface); }
.pricing .section-head { margin-bottom: 20px; }
.pricing-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
  padding-top: 28px;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.plan-card.popular { border-color: var(--navy); box-shadow: 0 8px 32px rgba(22,40,68,.25); }
.popular-bar {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; white-space: nowrap; line-height: 1.4;
}
.popular-bar-placeholder { display: none; }
.plan-header { background: var(--blue); border-radius: 10px 10px 0 0; padding: 28px 24px 22px; text-align: center; }
.plan-card.popular .plan-header { background: var(--navy); }
.plan-name { font-family: var(--f-sans); font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 0; margin-top: 16px; margin-bottom: 4px; }
.plan-price .price-currency { font-size: 1.2rem; font-weight: 700; color: #fff; align-self: flex-start; margin-top: 6px; line-height: 1; }
.plan-price .price-integer { font-family: var(--f-sans); font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
.plan-price .price-cents { font-size: 1.2rem; font-weight: 700; color: #fff; align-self: flex-start; margin-top: 6px; line-height: 1; }
.plan-price .price-period { font-size: .9rem; color: #fff; margin-left: 4px; align-self: flex-end; margin-bottom: 4px; }
.plan-tagline { font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.4; margin-top: 8px; }
.plan-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.plan-features { flex: 1; }
.plan-features ul { list-style: none; display: flex; flex-direction: column; }
.plan-features li { font-size: .9rem; color: var(--ink); line-height: 1.45; padding: 9px 0; border-top: 1px solid var(--border); }
.plan-features li:first-child { border-top: none; }
.plan-features .feat-val { font-weight: 700; }
.plan-features .feat-note { color: var(--muted); font-size: .75rem; margin-left: auto; white-space: nowrap; padding-left: 4px; }
.plan-cta-wrap { margin-top: auto; padding-top: 20px; }
.plan-trial { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; }
.plan-cta { display: block; text-align: center; font-size: 1rem; font-weight: 700; padding: 12px 16px; border-radius: var(--r-md); transition: background .2s; width: 100%; box-sizing: border-box; }
.plan-cta-primary { background: var(--navy); color: #fff; }
.plan-cta-primary:hover { background: var(--navy-mid); }
.plan-cta-secondary { background: var(--blue); color: #fff; }
.plan-cta-secondary:hover { background: var(--blue-h); }

/* ═══════════════════════════════════
   INCLUDED IN EVERY PLAN (shared)
═══════════════════════════════════ */
.included { background: var(--blue-pale); }
.included-grid { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 40px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.included-item { padding: 24px 22px; background: var(--white); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.included-icon { width: 40px; height: 40px; background: var(--blue-pale); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.included-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.included-item h4 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.included-item p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ═══════════════════════════════════
   COMPARISON TABLE — shared base
   Used by index.php (cmp-table) and product pages (comp-table)
═══════════════════════════════════ */

/* ── Unified tooltip ─────────────────────────────────────── */
.feat-tip { position: relative; border-bottom: 1px dashed var(--muted); cursor: help; display: inline; }
.feat-tip-content {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  background: var(--navy-deep);
  color: #fff;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--r-md);
  width: 320px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.feat-tip-content::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-top-color: var(--navy-deep);
}
.feat-tip:hover .feat-tip-content,
.feat-tip.open .feat-tip-content { opacity: 1; pointer-events: auto; }

/* Tooltip flipped below element when JS adds .tip-below */
.feat-tip-content.tip-below { top: calc(100% + 10px); bottom: auto; }
.feat-tip-content.tip-below::before {
  top: auto; bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--navy-deep);
}

/* ── Wrappers ─────────────────────────────────────────────
   overflow:visible → tooltips escape upward (no clip).
   Border/shadow still render; border-radius is applied to
   corner table cells instead of relying on overflow clip.
   Mobile horizontal scroll added back in @media below.     */
.comparison { background: var(--white); }
.comp-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  margin-top: 40px;
  overflow: visible;
}
.cmp-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: visible;
}

/* ── comp-table (product pages: web-hosting, semi-dedicated) ── */
.comp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 850px; background: var(--white); }
.comp-table th, .comp-table td { padding: 16px 18px; text-align: center; vertical-align: middle; color: var(--ink); font-weight: 400; font-size: .9rem; }
.comp-table td:first-child { text-align: left; width: 340px; background: #F8FAFF; border-right: 1px solid var(--border); padding: 16px 22px; }

/* Corner border-radius on cells (compensates for wrapper overflow:visible) */
.comp-table .section-header-row:first-child td:first-child { border-top-left-radius: calc(var(--r-xl) - 1px); }
.comp-table .section-header-row:first-child td:last-child  { border-top-right-radius: calc(var(--r-xl) - 1px); }
.comp-table .cta-row:last-child td:first-child { border-bottom-left-radius: calc(var(--r-xl) - 1px); }
.comp-table .cta-row:last-child td:last-child  { border-bottom-right-radius: calc(var(--r-xl) - 1px); }

/* Section header rows */
.section-header-row td { background: var(--navy-deep); color: #fff; font-weight: 700; text-align: center; padding: 0; border: none; }
.section-header-row td:first-child { background: var(--navy-deep); padding: 14px 22px; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,.1); text-align: left; color: #fff; }
.section-header-row td:not(:first-child) { padding: 14px 18px; }
.plan-mini-header { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plan-mini-name { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.plan-mini-price { font-size: 1.1rem; font-weight: 800; color: var(--amber); letter-spacing: -.03em; }
.plan-mini-price span { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.7); }

/* Feature rows */
.comp-table tbody tr.feature-row { border-bottom: 1px solid var(--border); }
.comp-table tbody tr.feature-row:last-child { border-bottom: none; }
.comp-table tbody tr.feature-row:hover { background: #f8faff; }

/* ── Shared feature cell layout (product pages + index.php) ── */
.feature-cell { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; background: var(--blue-pale); border-radius: var(--r-md); flex-shrink: 0; }
.feature-icon svg { width: 20px; height: 20px; stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-text { flex: 1; min-width: 0; }
.feature-name { font-weight: 600; color: var(--ink); font-size: .9rem; display: flex; align-items: center; gap: 6px; line-height: 1.3; margin-bottom: 3px; }
.feature-name .feat-tip { display: inline-flex; align-items: center; }
.feature-desc { font-size: .8rem; color: var(--muted); display: block; line-height: 1.5; }

/* Value / check helpers */
.val-text { font-weight: 400; color: var(--ink); font-size: .9rem; }
.opt-text { font-size: .8rem; color: var(--muted); font-style: italic; }
.check-icon svg { width: 18px; height: 18px; stroke: #15803D; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* CTA row */
.cta-row td { padding: 28px 18px !important; background: var(--surface) !important; border-top: 3px solid var(--border) !important; }
.cta-row td:first-child { background: var(--surface) !important; border-right: 1px solid var(--border) !important; }
.cta-row .btn { width: 100%; box-sizing: border-box; }

/* ── cmp-table (index.php "More than just a fair price") ─────
   Same visual style as comp-table; only column count differs. */
.cmp-table { width: 100%; border-collapse: collapse; }

/* Corner border-radius on cells */
.cmp-table thead tr th:first-child { border-top-left-radius: calc(var(--r-xl) - 1px); }
.cmp-table thead tr th:last-child  { border-top-right-radius: calc(var(--r-xl) - 1px); }
.cmp-table tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--r-xl) - 1px); }
.cmp-table tbody tr:last-child td:last-child  { border-bottom-right-radius: calc(var(--r-xl) - 1px); }

/* Header row — identical look to section-header-row */
.cmp-table thead tr { background: var(--navy-deep); }
.cmp-table th { padding: 14px 18px; font-size: .9rem; font-weight: 800; letter-spacing: -.02em; color: rgba(255,255,255,.6); text-align: center; }
.cmp-table th:first-child { text-align: left; padding: 14px 22px; font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.cmp-table th.hl { color: #fff; }

/* Body rows */
.cmp-table td.hl-col { background: rgba(0,113,188,.04); }
.cmp-table tbody tr { border-top: 1px solid var(--border); }
.cmp-table tbody tr:first-child { border-top: none; }
.cmp-table tbody tr:hover { background: #f8faff; }
/* Value columns — match comp-table exactly */
.cmp-table td { padding: 16px 18px; font-size: .9rem; color: var(--muted); text-align: center; font-weight: 400; vertical-align: middle; }
/* Feature column — same padding as comp-table td:first-child */
.cmp-table td:first-child { text-align: left; background: #F8FAFF; border-right: 1px solid var(--border); padding: 16px 22px; color: var(--ink); font-weight: 400; width: 46%; vertical-align: middle; }

/* Good/bad column styling */
.good { color: #15803D; font-weight: 400; }
.bad  { color: #B91C1C; font-weight: 400; }
.good svg, .bad svg { vertical-align: middle; margin-right: 5px; margin-top: -2px; }

/* ═══════════════════════════════════
   FAQ (shared)
═══════════════════════════════════ */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px 26px; }
.faq-item h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.faq-item p { font-size: 1rem; color: var(--muted); line-height: 1.72; }
.faq-item a { color: var(--blue); }

/* ═══════════════════════════════════
   PAGE FINAL CTA (shared)
═══════════════════════════════════ */
.page-cta-final { background: var(--blue-pale); padding: 80px 0; text-align: center; }
.page-cta-final-inner { position: relative; }
.page-cta-final h2 { font-family: var(--f-sans); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-bottom: 10px; }
.page-cta-final p { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }

/* ═══════════════════════════════════
   LEGAL PAGES (terms.php + privacy.php)
═══════════════════════════════════ */
.legal-hero { background: var(--navy); padding: 52px 0; }
.legal-hero h1 { font-family: var(--f-serif); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 12px; }
.legal-hero p { font-size: 1rem; color: rgba(255,255,255,.7); }
.legal-body { background: var(--white); padding: 56px 0; }
.toc-section { background: var(--white); padding: 40px 0; border-bottom: 1px solid var(--border); }
.toc-section h2 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.toc-grid { columns: 2; column-gap: 32px; list-style: none; }
.toc-grid li { font-size: .9rem; break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--border); }
.toc-grid li a { color: var(--blue); text-decoration: none; }
.toc-grid li a:hover { color: var(--blue-h); }
.legal-section { padding: 48px 0; border-bottom: 1px solid var(--border); background: var(--white); }
.legal-section:nth-child(even) { background: var(--surface); }
.legal-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.legal-section-title h2 { font-family: var(--f-sans); font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.back-to-toc { font-size: .78rem; font-weight: 600; color: var(--blue); white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.back-to-toc:hover { color: var(--blue-h); }
.legal-content { font-size: .925rem; color: var(--muted); line-height: 1.75; }
.legal-content p { margin-bottom: 12px; }
.legal-content .legal-center { text-align: center; font-style: italic; color: var(--ink); margin: 16px 0; }
.legal-content h3.legal-subheading { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.legal-content h4 { padding: 12px 0; }
.legal-content ul, .legal-content ol { margin: 10px 0 16px 24px; }
.legal-content li { text-decoration: none; }
.legal-content ol li { list-style: none; }
.legal-content table.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .875rem; }
.legal-content table.legal-table th,
.legal-content table.legal-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.legal-content table.legal-table th { background: var(--navy); color: #fff; font-weight: 700; }
.legal-content table.legal-table tr:nth-child(even) td { background: var(--surface); }
.legal-content hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--blue); }
.legal-content a:hover { color: var(--blue-h); }

/* ═══════════════════════════════════
   HOMEPAGE SECTIONS
═══════════════════════════════════ */
.stats-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 32px 28px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-icon { width: 44px; height: 44px; background: var(--blue-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stat-value { font-family: var(--f-sans); font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.stat-sublabel { font-size: .875rem; color: var(--muted); line-height: 1.4; }

.needs { background: var(--surface); }
.needs-grid { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.need-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.need-card:last-child { border-bottom: none; }
.need-card:nth-child(even) .need-card-header { order: 2; }
.need-card:nth-child(even) .need-card-body { order: 1; }
.need-card-header { position: relative; overflow: hidden; }
.need-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.need-card:hover .need-card-bg { transform: scale(1.04); }
.need-card-overlay { display: none; }
.need-card-body { background: var(--white); padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.need-product { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.need-card-header-title { font-family: var(--f-sans); font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 10px; }
.need-card-body p { font-size: 1rem; color: var(--muted); line-height: 1.72; margin-bottom: 0; flex: 1; }
.need-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; }
.need-price-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1px; display: block; }
.need-price { font-size: .875rem; color: var(--muted); margin: 0; }
.need-price strong { font-family: var(--f-sans); font-size: 1.3rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.need-link { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; background: var(--blue); color: #fff; padding: 11px 26px; border-radius: var(--r-md); transition: background .2s, gap .2s; white-space: nowrap; }
.need-link:hover { background: var(--blue-h); gap: 10px; }
.need-link svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.how { background: var(--navy); }
.how .eyebrow-line { margin-bottom: 12px; }
.how .section-title { color: #fff; margin-bottom: 0; }
.how-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; margin-top: 44px; align-items: stretch; }
.how-step { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-radius: var(--r-xl); padding: 28px; position: relative; transition: background .2s; margin: 0 7px; display: flex; flex-direction: column; }
.how-step:first-child { margin-left: 0; }
.how-step:last-child { margin-right: 0; }
.how-step:hover { background: rgba(255,255,255,.09); }
.how-connector { display: flex; align-items: center; justify-content: center; align-self: center; color: rgba(255,255,255,.5); padding: 0 4px; }
.how-connector svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.how-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 18px; }
.how-step h3 { font-family: var(--f-sans); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.3; letter-spacing: -.02em; }
.how-step p { font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.7; }
.how-cta { display: flex; justify-content: center; margin-top: 40px; }

.why { background: var(--surface); }
.why-intro { margin-bottom: 40px; }
.why-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.07); transition: transform .2s var(--ease), box-shadow .2s; }
.benefit-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.benefit-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--blue-pale); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.benefit-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.benefit-card p { font-size: 1rem; color: var(--muted); line-height: 1.65; }

.callout-section { background: var(--white); }
.callout-intro { margin-bottom: 36px; }
.callout-intro-text .section-title { margin-bottom: 10px; }
.callout-intro-text p { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 600px; }
.callout-cta { display: flex; justify-content: center; margin-top: 28px; }


/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer { background: var(--navy-deep); padding: 40px 0 28px; }
.footer-min { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.footer-logo { display: inline-flex; align-items: baseline; gap: 7px; color: #fff; }
.footer-logo-name { font-family: var(--f-sans); font-size: 1.2rem; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { font-size: .875rem; color: rgba(255,255,255,.8); transition: color .2s; background: transparent; padding: 0; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p, .footer-bottom a { font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }
.footer-links { display: flex; gap: 16px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { padding: 50px 0; width: 100%; max-width: 100%; }
  .hero { min-height: 0; }
  .hero-photo-wrap { display: none; }
  .needs-grid { min-height: auto; }
  .need-card { min-height: 220px; }
  .need-card-body { padding: 28px 32px; }
  .section-head { margin-bottom: 36px; }
  section { padding: 56px 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-connector { display: none; }
  .how-step { margin: 0 0 20px 0; }
  .why-benefits { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .plan-card.popular { transform: translateY(0); }
}
@media (max-width: 960px) {
  .nav-row { display: flex; justify-content: space-between; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-login-hide-mobile { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 18px 24px; gap: 14px;
    z-index: 199; justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
  .comp-table-wrap, .cmp-wrap { overflow-x: auto; } /* mobile scroll */
  .comp-table { min-width: 850px; }
  .toc-grid { columns: 1; }
  .legal-section-title { flex-direction: column; gap: 8px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .hero-inner { padding: 40px 0; width: 100%; }
  .hero { min-height: 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-ctas .btn, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .how-cta .btn, .callout-cta .btn, .page-cta-final .btn { width: 100%; justify-content: center; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 20px; }
  .hero-note { justify-content: center; }
  .needs-grid { border-radius: 0; border: none; box-shadow: none; gap: 16px; display: flex; flex-direction: column; }
  .need-card { grid-template-columns: 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
  .need-card:last-child { border-bottom: 1px solid var(--border); }
  .need-card:nth-child(even) .need-card-header { order: 0; }
  .need-card:nth-child(even) .need-card-body { order: 0; }
  .need-card-header { height: 180px; }
  .need-card-body { padding: 22px 24px; }
  .need-card-header-title { font-size: 1.1rem; }
  .section-head { margin-bottom: 28px; }
  section { padding: 40px 0; }
  .why-benefits { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-cta-final { padding: 56px 0; }
  .legal-section { padding: 32px 0; }
  .legal-body { padding: 36px 0; }
}
