/* RoadwiseInsure — "night drive" theme pulled from the logo:
   midnight asphalt, electric-blue glow, sunrise amber, sky blue, tail-light red. */
:root {
  --night: #03070d;
  --asphalt: #07111e;
  --navy: #0b1f38;
  --navy-2: #102a4a;
  --line: rgba(110, 170, 255, .14);
  --line-strong: rgba(110, 170, 255, .28);
  --text: #eaf2ff;
  --text-soft: #a9bbd4;
  --muted: #7389a6;
  --blue: #1a7cff;
  --blue-bright: #3d95ff;
  --sky: #82c4f2;
  --amber: #ffb21f;
  --sun: #ffd66b;
  --tail: #ff2b3a;
  --glow: 0 0 0 1px rgba(61, 149, 255, .25), 0 20px 60px -20px rgba(26, 124, 255, .55);
  --radius: 22px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-bright); }
a:hover { color: var(--sky); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 7, 13, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand b { color: var(--blue-bright); font-weight: 800; text-shadow: 0 0 18px rgba(26, 124, 255, .85); }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong), 0 0 24px -4px rgba(26, 124, 255, .7); }

.nav { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 31, 56, .45); }
.nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(26, 124, 255, .18); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 120px; overflow: hidden; isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 72% 38%, rgba(26, 124, 255, .32), transparent 70%),
    radial-gradient(30% 30% at 74% 30%, rgba(255, 178, 31, .16), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, rgba(16, 42, 74, .9), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--asphalt) 100%);
}
.hero-sky::after { /* faint star field */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 42%, #cfe3ff, transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent),
    radial-gradient(1px 1px at 58% 30%, #cfe3ff, transparent),
    radial-gradient(1px 1px at 86% 14%, #fff, transparent),
    radial-gradient(1px 1px at 92% 52%, #cfe3ff, transparent),
    radial-gradient(1.5px 1.5px at 6% 66%, #fff, transparent),
    radial-gradient(1px 1px at 36% 78%, #cfe3ff, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(11, 31, 56, .55); margin-bottom: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 178, 31, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 178, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 178, 31, 0); } }

.hero h1 { font-size: clamp(42px, 6vw, 74px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal; display: inline-block;
  background: linear-gradient(100deg, var(--sun) 0%, var(--amber) 45%, #ff8a1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 178, 31, .35));
}
.hero-lead { font-size: 19px; color: var(--text-soft); max-width: 540px; margin-bottom: 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 12px; background: rgba(16, 42, 74, .6); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.hero-points li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: 0 0 12px rgba(26, 124, 255, .8);
}

.hero-visual { position: relative; }
.emblem-wrap { position: relative; margin: 0 auto -110px; width: min(520px, 100%); }
.emblem-wrap img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }

.quote-card {
  position: relative; z-index: 2;
  padding: 30px 30px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 42, 74, .82), rgba(7, 17, 30, .92));
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.quote-card::before { /* sunrise edge */
  content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--sun), var(--amber), transparent);
}
.card-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.quote-card h2 { font-size: 30px; margin-bottom: 10px; }
.quote-card > p { color: var(--text-soft); }
.call-line { display: none; margin-top: 4px; font-size: 16px; color: var(--text-soft); }
.call-line.show { display: block; }
.call-line a { font-weight: 800; text-decoration: none; color: var(--sun); }
.card-note { font-size: 13px; line-height: 1.55; color: var(--muted) !important; padding-top: 16px; margin: 16px 0 0; border-top: 1px dashed var(--line-strong); }

.road-lane { /* dashed lane marker at the base of the hero */
  position: absolute; left: 0; right: 0; bottom: 34px; height: 4px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--sky) 0 46px, transparent 46px 92px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-deep { background: linear-gradient(180deg, var(--asphalt), #050c17); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.section-head p { color: var(--text-soft); font-size: 18px; }
.section-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 14px; }
.section-tag::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--amber), var(--blue)); border-radius: 2px; }

/* How it works — a road with mile markers */
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.route::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 22px, transparent 22px 40px);
  opacity: .7;
}
.stop { position: relative; text-align: center; }
.stop-marker {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--text);
  background: radial-gradient(circle at 35% 30%, var(--blue-bright), var(--navy) 75%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 8px var(--night), 0 0 32px rgba(26, 124, 255, .7);
}
.stop-body { padding: 28px 26px; border-radius: var(--radius); background: rgba(11, 31, 56, .45); border: 1px solid var(--line); height: calc(100% - 94px); transition: border-color .25s, transform .25s; }
.stop:hover .stop-body { border-color: var(--line-strong); transform: translateY(-4px); }
.stop-body h3 { font-size: 22px; }
.stop-body p { color: var(--text-soft); margin: 0; }

/* Coverage — bento tiles */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: 30px 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 42, 74, .7), rgba(7, 17, 30, .6));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tile::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 124, 255, .28), transparent 70%); pointer-events: none; }
.tile:hover { transform: translateY(-4px); border-color: rgba(61, 149, 255, .5); box-shadow: var(--glow); }
.tile-wide { grid-column: span 2; }
.tile-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 20px; color: var(--sun); background: rgba(255, 178, 31, .1); border: 1px solid rgba(255, 178, 31, .3); }
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 21px; }
.tile p { color: var(--text-soft); margin: 0; font-size: 16px; }

/* Rates */
.split { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: start; }
.factors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.factors li { display: flex; gap: 16px; padding: 20px; border-radius: 18px; background: rgba(11, 31, 56, .4); border: 1px solid var(--line); }
.factor-num { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-family: var(--font-head); font-weight: 800; color: var(--blue-bright); background: rgba(26, 124, 255, .12); border: 1px solid var(--line-strong); }
.factors strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.factors span { color: var(--text-soft); font-size: 15px; line-height: 1.55; }

.tip-box {
  position: sticky; top: 100px; overflow: hidden;
  padding: 40px 34px 34px; border-radius: var(--radius);
  background: linear-gradient(180deg, #13335a 0%, #0b1f38 48%, #07111e 100%);
  border: 1px solid var(--line-strong); box-shadow: var(--glow);
}
.tip-sun { position: absolute; width: 260px; height: 260px; right: -70px; top: -150px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0%, var(--amber) 40%, rgba(255, 178, 31, 0) 70%); opacity: .55; pointer-events: none; }
.tip-box h3 { position: relative; font-size: 26px; margin-bottom: 22px; }
.tip-box ol { list-style: none; counter-reset: tip; padding: 0; margin: 0; position: relative; }
.tip-box li { counter-increment: tip; display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 16px; }
.tip-box li::before { content: counter(tip, decimal-leading-zero); flex: none; font-family: var(--font-head); font-weight: 800; color: var(--amber); min-width: 26px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: rgba(11, 31, 56, .45); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(16, 42, 74, .6); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; font-weight: 500; color: var(--amber); border: 1px solid rgba(255, 178, 31, .35); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--text-soft); }

/* CTA horizon */
.section-horizon { padding-bottom: 80px; }
.horizon {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 24px 96px; border-radius: 28px; isolation: isolate;
  background: linear-gradient(180deg, #0b1f38 0%, #1b4f8a 55%, #82c4f2 100%);
  border: 1px solid var(--line-strong); box-shadow: var(--glow);
}
.horizon::after { /* mountain silhouette */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1;
  background: #0b1f38;
  clip-path: polygon(0 70%, 12% 38%, 24% 62%, 38% 30%, 50% 58%, 64% 26%, 78% 56%, 90% 34%, 100% 52%, 100% 100%, 0 100%);
}
.horizon-sun { position: absolute; z-index: -2; width: 340px; height: 340px; left: 50%; bottom: -200px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, var(--sun) 0%, var(--amber) 48%, rgba(255, 138, 31, 0) 72%); }
.horizon h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; text-shadow: 0 4px 30px rgba(3, 7, 13, .45); }
.horizon p { font-size: 19px; color: #e4f1ff; margin: 0; }

.notice { margin-top: 32px; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber); background: rgba(11, 31, 56, .35); }
.notice p { margin: 0; font-size: 14px; color: var(--text-soft); }
.notice strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: #02050a; border-top: 1px solid var(--line); padding-top: 64px; }
.footer-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding-bottom: 44px; }
.footer-main p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 440px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .footer-legal a { color: var(--text-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.footer-links a:hover, .footer-legal a:hover { color: var(--sun); }
.footer-disclosure { padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: rgba(11, 31, 56, .3); }
.footer-disclosure strong { font-family: var(--font-head); font-size: 17px; }
.footer-disclosure p { font-size: 13.5px; line-height: 1.65; margin: 10px 0 14px; max-width: none; }
.footer-disclosure a { font-weight: 700; text-decoration: none; font-size: 14.5px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 0 30px; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-legal div { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .faq-grid, .footer-main { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-grid { gap: 32px; }
  .emblem-wrap { width: min(440px, 100%); }
  .tip-box { position: relative; top: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .faq-grid { gap: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: rgba(3, 7, 13, .97); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .section { padding: 76px 0; }
  .route { grid-template-columns: 1fr; gap: 20px; }
  .route::before { left: 34px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--amber) 0 18px, transparent 18px 32px); }
  .stop { display: flex; gap: 18px; text-align: left; align-items: flex-start; }
  .stop-marker { margin: 0; flex: none; }
  .stop-body { height: auto; flex: 1; padding: 22px; }
  .bento, .factors { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .quote-card { padding: 26px 22px 20px; }
  .emblem-wrap { margin-bottom: -80px; }
  .horizon { padding: 60px 20px 84px; }
}
@media (max-width: 420px) {
  .brand { font-size: 19px; gap: 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .hero-points li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
