/* Journya — auto-insurance LP. Mobile-first, conversion-tuned. */
:root {
  --accent: #1457e6;
  --ink: #10172a;
  --muted: #5b6478;
  --line: #e4e8f0;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --green: #0f9d58;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 23, 42, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent); }
.page { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); }

/* trust strip */
.trustbar {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 12px; letter-spacing: .2px;
}
.trustbar .tb-item { white-space: nowrap; opacity: .92; }

/* header */
.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 20px 4px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: -.5px; }
.head-note { font-size: 12px; color: var(--muted); }

/* hero */
.hero { padding: 8px 20px 28px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white);
  padding: 5px 10px; border-radius: 999px; margin: 8px 0 12px;
}
.h1 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; margin: 0 0 12px; }
.h1 .hl { color: var(--accent); }
.sub { font-size: 16px; color: var(--muted); margin: 0 0 20px; }

/* progress */
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 18px; }
.progress-fill { height: 100%; width: 8%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }

/* steps */
.step { display: none; border: 0; padding: 0; margin: 0; animation: fade .25s ease; }
.step.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-q { font-size: 19px; font-weight: 700; margin: 0 0 14px; display: block; }
.micro { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* zip */
.zip-row { display: flex; gap: 10px; }
.zip-input {
  flex: 1; font-size: 20px; font-weight: 700; letter-spacing: 3px; text-align: center;
  padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.zip-input:focus { outline: none; border-color: var(--accent); }

/* inputs */
.text, .select {
  width: 100%; font-size: 16px; padding: 15px 14px; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--panel); color: var(--ink);
}
.text:focus, .select:focus { outline: none; border-color: var(--accent); }
.text.invalid, .select.invalid, .zip-input.invalid { border-color: #e0364f; background: #fff5f6; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* choices */
.choices { display: grid; gap: 10px; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choices-3 { grid-template-columns: 1fr 1fr 1fr; }
.choice {
  font-size: 16px; font-weight: 700; padding: 18px 12px; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--panel); color: var(--ink); cursor: pointer;
  transition: border-color .12s, background .12s, transform .05s;
}
.choice.sm { font-size: 15px; padding: 13px 10px; }
.choice:hover { border-color: var(--accent); }
.choice:active { transform: scale(.98); }
.choice.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); }

/* card-style choice with an icon above the label */
.choice.card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; }
.choice.card .ic { font-size: 24px; line-height: 1; }
.choice.card.sm { padding: 13px 8px; font-size: 14px; }
.choice.card.sm .ic { font-size: 20px; }
/* horizontal row choice (e.g. coverage tiers) */
.choices .choice.row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; text-align: left; padding: 14px 16px; }
.choice.row .ic { font-size: 22px; flex: none; }
.choice.row .lbl { display: flex; flex-direction: column; }
.choice.row .lbl strong { font-size: 15px; }
.choice.row .lbl small { font-size: 12px; color: var(--muted); font-weight: 500; }
.choice.row.selected .lbl small { color: var(--accent); }
.field-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 8px; }
.select-lg { font-size: 18px; padding: 18px 14px; }

/* vehicle make grid */
.make-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.make-card {
  display: flex; align-items: center; justify-content: center; min-height: 70px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel);
  cursor: pointer; padding: 10px; transition: border-color .12s, transform .05s, box-shadow .12s;
}
.make-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.make-card:active { transform: scale(.97); }
.make-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, white); }
.make-logo { max-height: 38px; max-width: 90%; object-fit: contain; filter: grayscale(100%); opacity: .8; }
.make-card:hover .make-logo { filter: grayscale(0); opacity: 1; }
.make-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.make-other .make-name { color: var(--muted); }
.reveal-wrap { margin-top: 12px; }

/* buttons */
.btn {
  font-size: 17px; font-weight: 800; border: 0; border-radius: var(--radius); cursor: pointer;
  padding: 16px 20px; transition: filter .12s, transform .05s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-block { width: 100%; display: block; }
.btn-final { margin-top: 18px; font-size: 18px; padding: 18px; }
.hero-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* consent */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.consent-text { font-size: 11px; line-height: 1.5; color: var(--muted); }
.consent-text a { color: var(--muted); text-decoration: underline; }
.err { color: #e0364f; font-size: 14px; font-weight: 600; min-height: 18px; margin: 8px 0 0; }
.secure-note { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.back-link { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px 0; margin-top: 6px; }

/* credibility */
.cred { padding: 22px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.cred-stars { color: #f5a623; font-size: 16px; font-weight: 700; }
.cred-stars span { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 6px; }
.cred-quote { font-size: 14px; color: var(--ink); font-style: italic; margin: 10px 0 18px; }
.carrier-label { font-size: 12px; color: var(--muted); }
/* Logo strip: real <img> logos where authorized files exist, text chips otherwise.
   Logos are normalized to a uniform height and softened so the row reads as a
   clean "trusted carriers" band rather than a clash of brand colors. */
.carrier-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 12px;
}
.carrier-logo {
  height: 26px; width: auto; max-width: 120px; object-fit: contain;
  filter: grayscale(100%); opacity: .65; transition: opacity .15s, filter .15s;
}
.carrier-logo:hover { filter: grayscale(0); opacity: 1; }
.carrier-chip {
  font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}

/* footer */
.site-foot { padding: 22px 20px 40px; }
.disclaimer { font-size: 11px; color: var(--muted); line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 10px; }
.foot-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.copyright { font-size: 11px; color: var(--muted); }

/* content pages (policy / thanks) */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 22px 60px; background: var(--panel); min-height: 100vh; }
.doc h1 { font-size: 26px; letter-spacing: -.4px; }
.doc h2 { font-size: 18px; margin-top: 28px; }
.doc p, .doc li { font-size: 14px; color: #2a3142; line-height: 1.7; }
.doc a.home { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.doc .updated { color: var(--muted); font-size: 12px; }
.thanks-wrap { text-align: center; padding: 60px 24px; max-width: 520px; margin: 0 auto; }
.thanks-check { font-size: 56px; }
.thanks-wrap h1 { font-size: 26px; margin: 12px 0; }
.thanks-wrap p { color: var(--muted); font-size: 15px; }

@media (min-width: 600px) {
  .h1 { font-size: 34px; }
  .page { box-shadow: var(--shadow); margin-top: 0; }
}

/* ---- desktop hero: two columns (mobile stays single column) ---- */
.hero-points, .hero-trust { display: none; }

@media (min-width: 880px) {
  .page { max-width: 1100px; background: transparent; box-shadow: none; }
  .site-head { padding: 22px 36px 6px; }

  .hero {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 56px;
    align-items: start;
    padding: 44px 36px 60px;
  }
  .hero-copy { padding-top: 10px; }
  .h1 { font-size: 48px; line-height: 1.08; }
  .sub { font-size: 18px; max-width: 480px; }

  .hero-points { display: block; list-style: none; padding: 0; margin: 24px 0 0; }
  .hero-points li {
    position: relative; padding-left: 30px; margin-bottom: 12px;
    font-size: 16px; font-weight: 500; color: var(--ink);
  }
  .hero-points li::before {
    content: "✓"; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 800;
  }
  .hero-points strong { color: var(--accent); }

  .hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
  .ht-stars { color: #f5a623; font-size: 18px; letter-spacing: 1px; }
  .ht-text { font-size: 14px; color: var(--muted); }

  .hero-form {
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 12px 44px rgba(16, 23, 42, .10); padding: 30px 28px 24px; min-height: 470px;
  }

  .cred { text-align: center; }
  .carrier-logos { justify-content: center; }
  .site-foot { padding: 28px 36px 48px; }
}

/* ---- advertorial pre-lander ---- */
.adv-page { max-width: 760px; margin: 0 auto; background: var(--panel); min-height: 100vh; }
.adv-head-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.adv-flag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.adv { padding: 28px 22px 8px; }
.adv-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 0 0 12px; }
.adv-headline { font-size: 30px; line-height: 1.18; letter-spacing: -.5px; font-weight: 800; margin: 0 0 14px; }
.adv-dek { font-size: 18px; line-height: 1.5; color: var(--muted); font-weight: 500; margin: 0 0 22px; }
.adv-byline {
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.adv-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.adv-byline-meta { display: flex; flex-direction: column; line-height: 1.35; }
.adv-author { font-size: 14px; font-weight: 700; color: var(--ink); }
.adv-sub { font-size: 12px; color: var(--muted); }
.adv-body { font-size: 18px; line-height: 1.75; color: #1f2638; }
.adv-body p { margin: 0 0 20px; }
.adv-body h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.3px; margin: 30px 0 14px; }
.adv-quote {
  margin: 26px 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--accent);
  font-size: 21px; line-height: 1.45; font-weight: 700; font-style: italic; color: var(--ink);
}
.adv-savings {
  display: flex; flex-direction: column; gap: 4px; text-align: center; margin: 26px 0;
  background: color-mix(in srgb, var(--green) 9%, white);
  border: 1px solid color-mix(in srgb, var(--green) 32%, white);
  border-radius: var(--radius); padding: 22px 18px;
}
.adv-savings-amt { font-size: 46px; font-weight: 800; color: var(--green); letter-spacing: -1px; line-height: 1; }
.adv-savings-lbl { font-size: 15px; font-weight: 600; color: #2a3142; }
.adv-cta {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; margin: 30px 0; text-align: center;
}
.adv-cta-title { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.adv-cta-btn { display: block; width: 100%; text-align: center; text-decoration: none; font-size: 17px; }
.adv-cta-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.adv-foot { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }

@media (min-width: 880px) {
  .adv-page { max-width: 800px; }
  .adv-head-bar { max-width: 680px; margin: 0 auto; padding: 18px 0; }
  .adv { max-width: 680px; margin: 0 auto; padding: 44px 0 8px; }
  .adv-headline { font-size: 40px; }
  .adv-foot { max-width: 680px; padding-left: 0; padding-right: 0; }
}

/* ---- roofing vertical (/roof/*) ---- */

/* Long CTAs ("See My Quotes", "Get My Free Estimate") squeeze the button beside
   the ZIP input on phones, so the hero ZIP row stacks (input, then full-width
   button) below 600px. Applies to every lander (auto + roof). */
@media (max-width: 600px) {
  .zip-row { flex-direction: column; }
  .zip-row .btn { width: 100%; }
}

/* trust chips strip */
.badge-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 18px 20px; border-top: 1px solid var(--line); background: var(--panel);
}
.badge-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px;
}
.badge-chip .bc-ic { font-size: 15px; }

/* section heading */
.sec-h { font-size: 22px; letter-spacing: -.3px; margin: 0 0 14px; text-align: center; }

/* how it works */
.howit { padding: 28px 20px; background: var(--panel); }
.howit-grid { display: grid; gap: 12px; }
.howit-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; font-size: 15px;
}
.howit-card p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hw-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-right: 8px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px;
}

/* cost anchor table */
.cost-sec { padding: 28px 20px; border-top: 1px solid var(--line); }
.cost-sub { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.cost-table { max-width: 460px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cost-row { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border-bottom: 0; }
.cost-region { font-weight: 700; font-size: 15px; }
.cost-range { font-weight: 800; font-size: 15px; color: var(--accent); }
.cost-foot { max-width: 520px; margin: 14px auto 0; text-align: center; font-size: 12px; color: var(--muted); }

/* financing strip */
.finance-strip {
  display: flex; flex-direction: column; gap: 6px; text-align: center;
  background: color-mix(in srgb, var(--green) 8%, white);
  border-top: 1px solid color-mix(in srgb, var(--green) 25%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 25%, white);
  padding: 20px;
}
.fs-big { font-size: 19px; font-weight: 800; color: var(--green); }
.fs-note { font-size: 12px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* FAQ */
.faq-sec { padding: 28px 20px; background: var(--panel); }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  margin: 0 auto 10px; max-width: 640px; padding: 0 16px;
}
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 14px 0; list-style-position: inside; }
.faq-item p { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }

/* instant-estimate teaser step */
.est-teaser {
  text-align: center; background: color-mix(in srgb, var(--accent) 7%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  border-radius: var(--radius); padding: 22px 16px;
}
.est-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 8px; }
.est-range { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--accent); margin: 0; line-height: 1.1; }
.est-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.est-financing {
  font-size: 12px; font-weight: 600; color: var(--ink); margin: 12px 0 0;
  line-height: 1.5; padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 30%, white);
}

/* qualification beat (availability check before contact steps) */
.qualify-wrap { padding: 10px 0 4px; }
.qualify-center { text-align: center; }
.qual-check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 26px; font-weight: 800; line-height: 52px;
  text-align: center; margin: 0 auto 12px; animation: qual-pop .3s ease;
}
@keyframes qual-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* roofing thanks page: estimate-preparation sequence */
.est-spinner {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--accent);
  animation: est-spin 0.9s linear infinite;
}
@keyframes est-spin { to { transform: rotate(360deg); } }
.est-steps { list-style: none; padding: 0; margin: 18px auto 0; max-width: 380px; text-align: left; }
.est-steps li {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  font-size: 15px; color: var(--muted); opacity: .45; transition: opacity .3s;
}
.est-steps li.active { opacity: 1; color: var(--ink); font-weight: 600; }
.est-steps li.done { opacity: 1; color: var(--green); }
.es-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--line); transition: background .3s;
}
li.active .es-dot { background: var(--accent); }
li.done .es-dot { background: var(--green); }
.call-btn { display: inline-block; text-decoration: none; margin-top: 18px; }
.btn-ghost { color: var(--muted); font-size: 14px; text-decoration: none; }

@media (min-width: 880px) {
  .howit-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
  .badge-strip, .howit, .cost-sec, .faq-sec { padding-left: 36px; padding-right: 36px; }
}
