/*
 * site.css — TIVmap marketing site (tivmap.com)
 *
 * Design system carried over from nsur.ai / barlow2 www so every
 * Underwriters Technologies property looks like one company. Animation
 * mechanics follow the same pattern: hidden state + .in class, CSS does
 * the motion, JS only toggles classes.
 *
 * Rules carried over from the barlow2 brand CSS:
 * - Never pure black; text and dark bands use --ut-deep-charcoal.
 * - Buttons are pill-shaped (20px radius).
 * - Error red is the only color allowed outside the 5 brand colors.
 *
 * TIVmap addition: the ROYGBIV coast-distance ramp below is the product's
 * own signature (see app/frontend/src/utils/colors.ts). It is data
 * encoding, not brand chrome, so it lives alongside the brand palette
 * rather than replacing it.
 */

/* ------------------------------------------------------------------ */
/* Fonts                                                                */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: 'Magistral';
  src: url('/fonts/Magistral Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Magistral';
  src: url('/fonts/Magistral Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('/fonts/AvenirLTStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('/fonts/AvenirLTStd-Roman.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Variables                                                            */
/* ------------------------------------------------------------------ */
:root {
  --ut-mint-green:    #3DE2A0;
  --ut-mint-hover:    #2FBF8A;
  --ut-mint-light:    rgba(61, 226, 160, 0.1);
  --ut-mint-text:     #107050;   /* WCAG AA mint for text on white */
  --ut-slate-blue:    #3A506B;
  --ut-warm-orange:   #FFB26B;
  --ut-sky-blue:      #72ADBB;
  --ut-sky-tint:      rgba(114, 173, 187, 0.15);
  --ut-deep-charcoal: #2E3C43;

  --color-error:    #dc2626;
  --color-error-bg: #fee2e2;
  --color-green:    #2f9e44;

  /* TIVmap coast-distance ramp — mirrors COAST_COLORS in the app */
  --coast-red:    #e03131;
  --coast-orange: #f76707;
  --coast-yellow: #f2c037;
  --coast-green:  #2f9e44;
  --coast-blue:   #1971c2;
  --coast-indigo: #4263eb;
  --coast-violet: #7048e8;

  --text-primary:   var(--ut-deep-charcoal);
  --text-secondary: rgba(46, 60, 67, 0.72);
  --text-muted:     rgba(46, 60, 67, 0.50);

  --bg-page:  #ffffff;
  --bg-tint:  #f6f8f9;
  --card:     #ffffff;
  --line:     rgba(46, 60, 67, 0.10);
  --line-2:   rgba(46, 60, 67, 0.18);

  --font-primary:   'Magistral', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Avenir', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-jumbo: 4rem;
  --fs-h1:    3rem;
  --fs-h2:    2.25rem;
  --fs-h3:    1.75rem;
  --fs-h4:    1.375rem;
  --fs-h5:    1.125rem;
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-xs:    0.75rem;

  --lh-tight:  1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  --spacing-xs:  0.25rem;
  --spacing-sm:  0.5rem;
  --spacing-md:  1rem;
  --spacing-lg:  1.5rem;
  --spacing-xl:  2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  --max-width:       1280px;
  --content-padding: 1.5rem;
  --header-height:   72px;

  --radius-pill:  20px;
  --radius-card:  12px;
  --radius-input: 8px;

  --shadow-xs: 0 1px 2px  rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px  rgba(0, 0, 0, 0.10);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-focus-mint: 0 0 0 3px rgba(61, 226, 160, 0.25);

  --transition:      all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--font-primary); line-height: var(--lh-tight); margin: 0 0 var(--spacing-md); }
h3, h4, h5 { font-family: var(--font-secondary); line-height: var(--lh-tight); margin: 0 0 var(--spacing-sm); }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h4); font-weight: 700; }
p  { margin: 0 0 var(--spacing-md); }
img { max-width: 100%; height: auto; }

a { color: var(--ut-mint-text); text-decoration: none; transition: var(--transition-fast); }
a:hover { opacity: 0.85; }

.accent { color: var(--ut-mint-text); }
.on-dark .accent, .accent-on-dark { color: var(--ut-mint-green); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.section { padding: var(--spacing-3xl) 0; }
.section-tint { background: var(--bg-tint); }
.section-mint { background: var(--ut-mint-light); }
.section-charcoal { background: var(--ut-deep-charcoal); color: #ffffff; }
.section-charcoal h2, .section-charcoal h3 { color: #ffffff; }
.section-charcoal p { color: rgba(255, 255, 255, 0.75); }

.section-head { text-align: center; max-width: 820px; margin: 0 auto var(--spacing-2xl); }
.section-head .kicker {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ut-mint-text);
  margin-bottom: var(--spacing-sm);
}
.section-head p { color: var(--text-secondary); font-size: var(--fs-h5); }
.section-charcoal .section-head .kicker { color: var(--ut-mint-green); }

/* Screen-reader-only helper */
.visually-hidden {
  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-block;
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.btn:focus-visible { outline: 2px solid var(--ut-mint-green); outline-offset: 3px; }

.btn-primary { background: var(--ut-mint-green); color: var(--ut-deep-charcoal); }
.btn-primary:hover {
  background: var(--ut-mint-hover);
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 226, 160, 0.30);
}
.btn-secondary { background: var(--ut-slate-blue); color: #ffffff; }
.btn-secondary:hover {
  background: #2d3f56;
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost { background: transparent; border-color: var(--ut-mint-green); color: var(--ut-mint-text); }
.btn-ghost:hover { background: var(--ut-mint-green); color: var(--ut-deep-charcoal); opacity: 1; }
.on-dark .btn-ghost { color: var(--ut-mint-green); }
.on-dark .btn-ghost:hover { color: var(--ut-deep-charcoal); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: var(--fs-small); }
.btn-block { display: block; width: 100%; }

/* ------------------------------------------------------------------ */
/* Header / Nav                                                         */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ut-deep-charcoal);
}
.brand:hover { opacity: 1; }
.brand .brand-mark { width: 30px; height: 30px; display: block; }
.brand .brand-map { color: var(--ut-mint-text); }
.site-footer .brand .brand-map { color: var(--ut-mint-green); }

.main-nav { display: flex; align-items: center; gap: var(--spacing-lg); }
.main-nav a.nav-link {
  font-size: var(--fs-h5);
  font-weight: 500;
  color: var(--text-primary);
}
.main-nav a.nav-link:hover { color: var(--ut-mint-text); opacity: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ut-deep-charcoal);
}
.menu-toggle svg { display: block; }

/* Mobile menu */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(46, 60, 67, 0.5);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.show { opacity: 1; pointer-events: auto; }
.mobile-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: #ffffff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  padding: 4.5rem var(--spacing-xl) var(--spacing-xl);
}
.mobile-panel.show { transform: translateX(0); }
.mobile-panel a { font-size: var(--fs-h5); font-weight: 700; color: var(--text-primary); }
.mobile-panel .btn { width: 100%; }
.mobile-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  cursor: pointer;
  color: var(--ut-deep-charcoal);
  padding: 6px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */
.hero {
  padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(61, 226, 160, 0.14), transparent 60%),
    radial-gradient(900px 480px at 0% 110%, rgba(114, 173, 187, 0.14), transparent 60%),
    var(--bg-page);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--spacing-2xl);
  align-items: center;
}
.hero h1 { font-size: 3.1rem; margin-bottom: var(--spacing-lg); }
.hero .sub {
  font-size: var(--fs-h4);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}
.hero-ctas { display: flex; gap: var(--spacing-md); flex-wrap: wrap; margin-bottom: var(--spacing-xl); }

.hero-points { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.hero-point {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.hero-point .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ut-mint-light);
  color: var(--ut-mint-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-top: 1px;
}
.hero-point h3 { font-size: var(--fs-h5); margin: 0; }
.hero-point p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------------ */
/* Hero demo — animated portfolio map                                   */
/* ------------------------------------------------------------------ */
.demo-window {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.demo-titlebar .dots { display: flex; gap: 5px; }
.demo-titlebar .dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.demo-body { position: relative; }

/* The map canvas itself */
.demo-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #eef4f6 0%, #e3edf1 100%);
  overflow: hidden;
}
.demo-map svg { display: block; width: 100%; height: 100%; }

/* Ocean / land masses inside the SVG */
.map-ocean  { fill: #d3e6ee; }
.map-land   { fill: #f4f7f4; stroke: rgba(46, 60, 67, 0.14); stroke-width: 1; }
.map-graticule { stroke: rgba(46, 60, 67, 0.07); stroke-width: 1; fill: none; }

/* The coastline the app measures distance from */
.map-coastline {
  fill: none;
  stroke: var(--ut-slate-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s ease;
}
.map-coastline.in { stroke-dashoffset: 0; }

/* Distance-from-coast bands, revealed one at a time */
.coast-band {
  fill: none;
  stroke-width: 26;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.coast-band.in { opacity: 0.16; }
.band-red    { stroke: var(--coast-red); }
.band-orange { stroke: var(--coast-orange); }
.band-yellow { stroke: var(--coast-yellow); }
.band-green  { stroke: var(--coast-green); }

/* Property dots */
.prop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.2);
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.prop.in { opacity: 1; transform: scale(1); }
.prop circle { stroke: #ffffff; stroke-width: 1.5; }
.prop.uncolored circle { fill: var(--ut-slate-blue); }
.prop.c-red    circle { fill: var(--coast-red); }
.prop.c-orange circle { fill: var(--coast-orange); }
.prop.c-yellow circle { fill: var(--coast-yellow); }
.prop.c-green  circle { fill: var(--coast-green); }
.prop.c-blue   circle { fill: var(--coast-blue); }
.prop.c-indigo circle { fill: var(--coast-indigo); }
.prop.c-violet circle { fill: var(--coast-violet); }
.prop circle { transition: fill 0.5s ease; }

/* Proximity aggregation ring that sweeps the portfolio */
.prox-ring {
  fill: rgba(61, 226, 160, 0.10);
  stroke: var(--ut-mint-hover);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  opacity: 0;
  transition: opacity 0.4s ease, cx 1.1s ease, cy 1.1s ease, r 0.6s ease;
}
.prox-ring.in { opacity: 1; }

/* Peril overlays (hurricane track, quake epicenter) */
.peril-track {
  fill: none;
  stroke: var(--ut-warm-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  opacity: 0;
  transition: stroke-dashoffset 1.5s ease, opacity 0.3s ease;
}
.peril-track.in { opacity: 0.95; stroke-dashoffset: 0; }

.quake-ring {
  fill: none;
  stroke: var(--coast-violet);
  stroke-width: 2;
  opacity: 0;
}
.quake-ring.in { animation: quakePulse 1.9s ease-out infinite; }
@keyframes quakePulse {
  0%   { opacity: 0.85; r: 6; }
  100% { opacity: 0;    r: 62; }
}

/* Flood zone hatch */
.flood-zone {
  fill: url(#floodHatch);
  stroke: var(--coast-blue);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.flood-zone.in { opacity: 0.75; }

/* Floating map label chips */
.map-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.map-chip.in { opacity: 1; transform: none; }
.map-chip .swatch {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
}

/* Readout strip beneath the map */
.demo-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: var(--card);
}
.readout-cell {
  padding: 0.6rem 0.75rem;
  border-right: 1px solid var(--line);
}
.readout-cell:last-child { border-right: none; }
.readout-cell label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.readout-cell .val {
  font-family: var(--font-primary);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.readout-cell .val.flash { animation: flash 1.1s ease; }
@keyframes flash {
  0%   { color: var(--ut-mint-hover); }
  100% { color: var(--text-primary); }
}

/* Status line */
.demo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 34px;
}
.spinner {
  width: 12px; height: 12px;
  flex: none;
  border: 2px solid var(--line-2);
  border-top-color: var(--ut-mint-hover);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.demo-status.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pass banner */
.demo-pass {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  background: rgba(47, 158, 68, 0.10);
  border-top: 1px solid rgba(47, 158, 68, 0.35);
  color: var(--color-green);
  font-weight: 700;
  font-size: var(--fs-small);
  text-align: center;
  padding: 0;
  transition: max-height 0.55s cubic-bezier(0.2, 1.1, 0.3, 1), padding 0.35s ease;
}
.demo-pass.in { max-height: 80px; padding: 10px 16px; }

/* ------------------------------------------------------------------ */
/* Feature cards                                                        */
/* ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card p { color: var(--text-secondary); font-size: var(--fs-small); margin-bottom: 0; }

.card-ico {
  width: 44px; height: 44px;
  border-radius: var(--radius-input);
  background: var(--ut-mint-light);
  color: var(--ut-mint-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--spacing-md);
}
.card-ico svg { width: 22px; height: 22px; }
.card-ico.ico-sky    { background: var(--ut-sky-tint);            color: var(--ut-slate-blue); }
.card-ico.ico-orange { background: rgba(255, 178, 107, 0.20);     color: #a8560f; }
.card-ico.ico-violet { background: rgba(112, 72, 232, 0.12);      color: var(--coast-violet); }

.section-charcoal .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.section-charcoal .card:hover { border-color: rgba(61, 226, 160, 0.45); }
.section-charcoal .card h3 { color: #ffffff; }
.section-charcoal .card p  { color: rgba(255, 255, 255, 0.72); }
.section-charcoal .card-ico { background: rgba(61, 226, 160, 0.14); color: var(--ut-mint-green); }

/* ------------------------------------------------------------------ */
/* Coast ramp legend                                                    */
/* ------------------------------------------------------------------ */
.ramp {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-input);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: var(--spacing-md);
}
.ramp-step {
  flex: 1;
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #ffffff;
}
.ramp-step.s-red    { background: var(--coast-red); }
.ramp-step.s-orange { background: var(--coast-orange); }
.ramp-step.s-yellow { background: var(--coast-yellow); color: var(--ut-deep-charcoal); }
.ramp-step.s-green  { background: var(--coast-green); }
.ramp-step.s-blue   { background: var(--coast-blue); }
.ramp-step.s-indigo { background: var(--coast-indigo); }
.ramp-step.s-violet { background: var(--coast-violet); }

/* ------------------------------------------------------------------ */
/* How it works — numbered steps                                        */
/* ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-lg); }
.step { position: relative; padding-top: var(--spacing-lg); }
.step .num {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ut-deep-charcoal);
  color: var(--ut-mint-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
}
.step h3 { margin-top: var(--spacing-2xl); }
.step p { color: var(--text-secondary); font-size: var(--fs-small); }

/* ------------------------------------------------------------------ */
/* Checks list                                                          */
/* ------------------------------------------------------------------ */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 0.85rem 1rem;
}
.check-list .check-ico {
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  background: rgba(47, 158, 68, 0.12);
  color: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.check-list strong { display: block; font-size: var(--fs-body); }
.check-list span.desc { font-size: var(--fs-small); color: var(--text-muted); }

/* ------------------------------------------------------------------ */
/* Perils strip                                                         */
/* ------------------------------------------------------------------ */
.peril-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }
.peril {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.peril .peril-ico {
  width: 46px; height: 46px;
  margin: 0 auto var(--spacing-sm);
  border-radius: 50%;
  background: rgba(61, 226, 160, 0.14);
  color: var(--ut-mint-green);
  display: flex; align-items: center; justify-content: center;
}
.peril .peril-ico svg { width: 24px; height: 24px; }
.peril h3 { font-size: var(--fs-h5); color: #ffffff; }
.peril p { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.70); margin: 0; }

/* ------------------------------------------------------------------ */
/* Integration / PerilPulse callout                                     */
/* ------------------------------------------------------------------ */
.callout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-2xl);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ut-mint-green);
  border-radius: var(--radius-card);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}
.callout h2 { font-size: var(--fs-h3); }
.callout p:last-of-type { margin-bottom: 0; }
.callout .tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ut-mint-light);
  color: var(--ut-mint-text);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.tag.tag-sky { background: var(--ut-sky-tint); color: var(--ut-slate-blue); }

/* ------------------------------------------------------------------ */
/* Contact                                                              */
/* ------------------------------------------------------------------ */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--spacing-2xl) var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}
.contact-box .btn { margin: 0 0.35rem 0.5rem; }

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--ut-deep-charcoal);
  color: rgba(255, 255, 255, 0.70);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}
.site-footer .brand { color: #ffffff; margin-bottom: var(--spacing-sm); }
.site-footer .tagline { font-size: var(--fs-small); }
.site-footer h4 {
  color: #ffffff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer ul a { color: rgba(255, 255, 255, 0.70); font-size: var(--fs-small); }
.site-footer ul a:hover { color: var(--ut-mint-green); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------------ */
/* Build badge — lower left, per project standard                       */
/* ------------------------------------------------------------------ */
.build-badge {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 90;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(46, 60, 67, 0.72);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                        */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .peril-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --fs-h1: 2.25rem; --fs-h2: 1.75rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo-col { order: -1; }
  .callout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .check-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-readout { grid-template-columns: repeat(2, 1fr); }
  .readout-cell:nth-child(2) { border-right: none; }
  .readout-cell:nth-child(1), .readout-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4,
  .steps, .peril-grid { grid-template-columns: 1fr; }
  .ramp { flex-wrap: wrap; }
  .ramp-step { flex: 1 0 25%; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion — kill movement, keep final state visible             */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .map-coastline { stroke-dashoffset: 0; }
  .peril-track { stroke-dashoffset: 0; opacity: 0.95; }
}
