/* ==========================================================================
   Division 7 Estimating — d7estimator.com
   Brand: #0898CC primary blue (water), deep navy, neutral greys, Inter.
   ========================================================================== */

:root {
  --blue: #0898cc;
  --blue-dark: #077fab;
  --blue-deeper: #066a8f;
  --sky: #e9f5fb;
  --sky-line: #cfe7f3;
  --navy: #0a2a40;
  --navy-deep: #071e2e;
  --ink: #102a3c;
  --text: #3f5568;
  --muted: #677b8d;
  --faint: #60758a;
  --line: #e2e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 60, 0.05);
  --shadow-md: 0 6px 24px rgba(16, 42, 60, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.55rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }

:focus-visible {
  outline: 3px solid rgba(8, 152, 204, 0.55);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.002em;
  padding: 12px 24px; border-radius: 6px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #113a56; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c3cfda; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(16, 42, 60, 0.06); }
.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; flex: none; }
.logo img { display: block; }
.logo .logo-mark-img { height: 42px; width: auto; }
.logo .logo-word-img { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 0.94rem;
  padding: 9px 13px; border-radius: 6px; text-decoration: none !important;
}
.main-nav a:hover { color: var(--blue-dark); }
.main-nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 600; }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-signin {
  color: var(--ink); font-weight: 600; font-size: 0.92rem;
  text-decoration: none !important; white-space: nowrap; padding: 4px 2px;
}
.header-signin:hover { color: var(--blue-dark); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid #c3cfda; border-radius: 6px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .header-cta { display: none; }
  .main-nav .nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .nav-toggle { display: inline-flex; }
  .logo .logo-word-img { height: 22px; }
}
@media (min-width: 1081px) { .nav-mobile-cta { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 90%);
  border-bottom: 1px solid var(--line);
  padding: 88px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: 18px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 0.9rem; color: var(--faint); }
.hero-note strong { color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.hero-photo {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-card {
  position: absolute; left: -34px; bottom: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 20px 24px; width: 300px;
}
.hero-card .hc-title { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--bg-soft); font-size: 0.92rem; }
.hero-card .hc-row:first-of-type { border-top: 0; }
.hero-card .hc-row span { color: var(--muted); }
.hero-card .hc-row strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-card .hc-row.total { border-top: 2px solid var(--line); margin-top: 4px; padding-top: 10px; }
.hero-card .hc-row.total strong { color: var(--blue-dark); font-size: 1.05rem; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { height: 380px; }
  .hero-card { left: 16px; bottom: -24px; }
  .hero-visual { margin-bottom: 24px; }
}

/* --------------------------------------------------------------------------
   Brand strip — quiet, enterprise
   -------------------------------------------------------------------------- */
.brands { padding: 62px 0 68px; border-bottom: 1px solid var(--line); }
.brands-title {
  text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 38px;
}
.brands-grid {
  list-style: none; padding: 0; margin: 0 auto; max-width: 960px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 38px 30px;
}
.brands-grid li { display: grid; place-items: center; min-height: 48px; }
/* Marks sit on a shared 132px-tall canvas, so one max-height gives them
   even optical weight regardless of aspect ratio. */
.brands-grid img {
  max-height: 46px; max-width: 100%; width: auto; height: auto;
  filter: grayscale(1); opacity: 0.82;
  transition: filter 0.18s ease, opacity 0.18s ease;
}
.brands-grid li:hover img { filter: none; opacity: 1; }
.brands-disclaimer { text-align: center; font-size: 0.78rem; color: var(--faint); margin: 34px auto 0; max-width: 760px; }
@media (max-width: 860px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); max-width: 580px; }
}
@media (max-width: 520px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); max-width: 340px; gap: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) { .brands-grid img { transition: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #b9c9d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: 14px;
}
.section-dark .eyebrow { color: #6fc6e8; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: #9fb4c4; }

/* --------------------------------------------------------------------------
   Workflow pipeline
   -------------------------------------------------------------------------- */
.pipeline-grid { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start; }
.pipeline-rail { position: sticky; top: calc(var(--header-h) + 36px); }
.pipeline-rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.pipeline-rail ol::before {
  content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px;
  width: 2px; background: var(--line);
}
.rail-progress {
  position: absolute; left: 15px; top: 18px; width: 2px; height: 0;
  background: var(--blue); z-index: 1; transition: height 0.25s ease;
}
.pipeline-rail li { position: relative; z-index: 2; }
.pipeline-rail a {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 0; color: var(--muted); font-weight: 500; font-size: 0.96rem;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.rail-dot {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.8rem; color: var(--faint);
  transition: all 0.25s ease;
}
.pipeline-rail li.active a { color: var(--ink); font-weight: 600; }
.pipeline-rail li.active .rail-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.pipeline-rail li.done .rail-dot { border-color: var(--blue); color: var(--blue-dark); background: var(--sky); }

.pipeline-stages { display: flex; flex-direction: column; gap: 28px; }
.stage-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff;
  padding: 38px 42px; scroll-margin-top: calc(var(--header-h) + 28px);
  transition: border-color 0.3s ease;
}
.stage-card.active { border-color: var(--blue); }
.stage-num {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--blue-dark); text-transform: uppercase; margin-bottom: 12px;
}
.stage-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.stage-card > p { color: var(--muted); margin-bottom: 18px; }
.stage-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stage-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.tick {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--sky); color: var(--blue-dark);
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 700;
}

@media (max-width: 960px) {
  .pipeline-grid { grid-template-columns: 1fr; gap: 28px; }
  .pipeline-rail { position: static; overflow-x: auto; padding-bottom: 6px; }
  .pipeline-rail ol { display: flex; gap: 8px; }
  .pipeline-rail ol::before, .rail-progress { display: none; }
  .pipeline-rail a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: 0.85rem; gap: 8px; }
  .rail-dot { width: 22px; height: 22px; font-size: 0.7rem; border-width: 1.5px; }
  .pipeline-rail li.active a { background: var(--sky); border-color: var(--sky-line); }
  .stage-card { padding: 28px 24px; }
}

/* --------------------------------------------------------------------------
   Feature cards — flat, single accent
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: #a9cfe3; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  margin-bottom: 18px;
  background: var(--sky); color: var(--blue-dark);
}
.feature-icon svg * { stroke: currentColor; }
.feature-icon span { color: var(--blue-dark); font-weight: 700; font-size: 1.05rem; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.94rem; margin: 0; line-height: 1.6; }
.feature-card .soon,
.tag-soon {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  background: var(--sky); color: var(--blue-dark); border: 1px solid var(--sky-line);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.section-dark .tag-soon { background: rgba(111, 198, 232, 0.14); color: #6fc6e8; border-color: rgba(111, 198, 232, 0.35); }
@media (max-width: 960px) { .feature-grid, .feature-grid.grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feature-grid, .feature-grid.grid-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Photo utilities
   -------------------------------------------------------------------------- */
.photo { border-radius: var(--radius-lg); object-fit: cover; width: 100%; }
.photo-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background-size: cover; background-position: center;
  color: #c6d5e1;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 30, 46, 0.93) 0%, rgba(7, 30, 46, 0.82) 45%, rgba(7, 30, 46, 0.55) 100%);
}
.photo-band > * { position: relative; z-index: 1; }
.photo-band h2 { color: #fff; }
.band { border-radius: var(--radius-lg); padding: 64px 64px; }
.band-navy { background: var(--navy); color: #b9c9d6; }
.band-navy h2 { color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.band .price-tag { font-weight: 700; font-size: 2.7rem; color: #fff; line-height: 1.1; letter-spacing: -0.02em; }
.band .price-tag small { display: block; font-size: 0.95rem; font-weight: 500; opacity: 0.75; margin-top: 8px; letter-spacing: 0; }
@media (max-width: 860px) { .band { padding: 44px 30px; } .band-grid { grid-template-columns: 1fr; gap: 30px; } }

.checklist { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.checklist .tick { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* --------------------------------------------------------------------------
   AI / dark section
   -------------------------------------------------------------------------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 20px; }
.ai-list li { display: flex; gap: 16px; }
.ai-list .ic {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(111, 198, 232, 0.1); border: 1px solid rgba(111, 198, 232, 0.28);
  color: #6fc6e8; display: grid; place-items: center;
}
.ai-list .ic svg * { stroke: currentColor; }
.ai-list strong { display: block; color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.ai-list p { margin: 0; color: #9fb4c4; font-size: 0.92rem; line-height: 1.6; }
.ai-list a { color: #6fc6e8; }

.chat-mock {
  background: var(--navy-deep); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-mock-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.84rem; color: #9fb4c4; font-weight: 600;
}
.chat-mock-head .ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.chat-mock-body { padding: 22px 20px; display: grid; gap: 13px; }
.chat-bubble { border-radius: 10px; padding: 12px 16px; font-size: 0.88rem; line-height: 1.55; max-width: 92%; }
.chat-user { background: var(--blue); color: #fff; justify-self: end; border-bottom-right-radius: 3px; }
.chat-ai { background: rgba(255,255,255,0.06); color: #d5e1ea; border: 1px solid rgba(255,255,255,0.08); border-bottom-left-radius: 3px; }
.chat-ai .cite { color: #6fc6e8; font-size: 0.78rem; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--blue); position: relative; }
.price-card .plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 14px; border-radius: 4px;
}
.price-card h3 { margin-bottom: 4px; }
.price-card .plan-for { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.price-card .plan-price { font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 4px; }
.price-card .plan-price-note { font-size: 0.85rem; color: var(--faint); margin-bottom: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; font-size: 0.93rem; }
.price-card .tick { width: 19px; height: 19px; margin-top: 3px; font-size: 0.62rem; }
.price-card .btn { margin-top: auto; }
@media (max-width: 960px) { .pricing-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.89rem; color: var(--ink); }
.form-field label .req { color: var(--blue-dark); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 0.96rem; color: var(--text);
  padding: 12px 14px; border: 1px solid #c3cfda; border-radius: 6px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 152, 204, 0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.83rem; color: var(--faint); margin-top: 14px; }
.form-success {
  display: none; margin-top: 16px; padding: 13px 18px; border-radius: 6px;
  background: var(--sky); border: 1px solid var(--sky-line); color: var(--blue-deeper);
  font-size: 0.92rem; font-weight: 500;
}
.form-success.show { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 22px; } }

/* --------------------------------------------------------------------------
   Content pages
   -------------------------------------------------------------------------- */
.page-hero { padding: 76px 0 52px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lede { font-size: 1.16rem; color: var(--muted); max-width: 700px; margin: 0; }
.page-hero .meta { font-size: 0.88rem; color: var(--faint); margin-top: 14px; }

.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--blue);
  background: var(--bg-soft); color: var(--ink);
}
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 0.93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 30px 0;
}
.toc strong { display: block; margin-bottom: 10px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 34px; font-size: 0.93rem; }
.toc li { margin-bottom: 6px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s ease;
}
.post-card:hover { border-color: #a9cfe3; }
.post-card .thumb { display: block; aspect-ratio: 16 / 8.5; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 9px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-dark); }
.post-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.post-card .date { font-size: 0.82rem; color: var(--faint); margin: 0; }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--navy); color: #b9c9d6; border-radius: var(--radius-lg);
  padding: 38px 36px;
}
.contact-info-card h2 { color: #fff; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; }
.contact-line .ic {
  flex: none; width: 38px; height: 38px; border-radius: 8px;
  background: rgba(111, 198, 232, 0.1); border: 1px solid rgba(111, 198, 232, 0.28);
  color: #6fc6e8; display: grid; place-items: center;
}
.contact-line .ic svg * { stroke: currentColor; }
.contact-line strong { color: #fff; display: block; font-size: 0.95rem; }
.contact-line a { color: #6fc6e8; }
.contact-line p { margin: 0; font-size: 0.9rem; color: #9fb4c4; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 600; color: var(--ink); font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.35rem; color: var(--blue-dark); font-weight: 400; transition: transform 0.2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #93a8b9; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; padding: 70px 0 50px; }
.footer-brand .footer-logo { height: 84px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { font-size: 0.9rem; margin: 20px 0 14px; max-width: 300px; line-height: 1.6; }
.footer-col h2 { color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: #93a8b9; font-size: 0.92rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.site-footer a { color: #6fc6e8; }
.footer-tm { font-size: 0.75rem; color: #7e93a6; padding-bottom: 34px; max-width: 920px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0 30px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  font-size: 0.83rem; color: #6b8296;
}
.footer-bottom a { color: #6b8296; }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------------------------
   Cookie consent
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; z-index: 300; left: 20px; right: 20px; bottom: 20px;
  max-width: 600px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 24px 26px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h3 { font-size: 1rem; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.87rem; color: var(--muted); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; } .mt-50 { margin-top: 50px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 6px; padding: 8px 16px; font-size: 0.87rem; font-weight: 500;
}
.section-soft .pill { background: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-align: center; }
.stat .n { font-weight: 700; font-size: 2rem; color: var(--blue-dark); letter-spacing: -0.02em; }
.stat .l { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
