/* IssuedPro site styles */
:root {
  --cream: #f6f1e7;
  --cream-deep: #efe7d8;
  --charcoal: #2c2a26;
  --charcoal-soft: #55504a;
  --blue: #2f6bd0;
  --blue-dark: #2455a8;
  --card: #fffdf8;
  --line: #e2d9c8;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--charcoal);
}
.brand .pro { color: #2f6bd0; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 26px; font-size: 15px; align-items: center; }
.nav a { color: var(--charcoal-soft); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--charcoal); text-decoration: none; }
@media (max-width: 760px) {
  .site-header .wrap { height: 56px; gap: 16px; }
  .brand { font-size: 17px; }
  .brand img { width: 26px; height: 26px; }
  .nav {
    gap: 18px;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    padding: 4px 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44, 42, 38, 0.16);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--charcoal-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-disabled {
  background: var(--cream-deep);
  color: var(--charcoal-soft);
  cursor: default;
}
.btn-disabled:hover { background: var(--cream-deep); }
.badge-note { display: block; margin-top: 10px; font-size: 13px; color: var(--charcoal-soft); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-deep); }
.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
  font-weight: 750;
}
.section .sub {
  text-align: center;
  color: var(--charcoal-soft);
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 17px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feature:hover {
  border-color: #cfc2a8;
  box-shadow: 0 10px 26px rgba(44, 42, 38, 0.08);
  transform: translateY(-2px);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--charcoal-soft); font-size: 15px; }

/* Coverage strip */
.coverage {
  text-align: center;
}
.coverage .big {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
}
.coverage p { color: var(--charcoal-soft); max-width: 560px; margin: 14px auto 0; }

/* Pricing */
.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(44, 42, 38, 0.10);
}
.price-card .amount {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-card .amount span { font-size: 18px; font-weight: 600; color: var(--charcoal-soft); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  text-align: left;
}
.price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.price-note { text-align: center; color: var(--charcoal-soft); font-size: 14px; margin-top: 18px; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--charcoal-soft); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--charcoal-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.placeholder {
  background: #fff3cd;
  border: 1px solid #e8d48a;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
  color: #6b5b1e;
}

/* Support */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 16.5px; }
.faq-item p { margin: 0; color: var(--charcoal-soft); font-size: 15px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--charcoal-soft);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--charcoal-soft); }

/* Sign-in page */
.account label { display: block; margin: 12px 0; font-weight: 500; }
.account input[type="email"], .account input[type="password"], .account input[type="text"], .account input:not([type]) { display: block; width: 100%; max-width: 360px; margin-top: 6px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--charcoal); min-height: 46px; transition: border-color .15s ease, box-shadow .15s ease; }
.account input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 208, .18); }
.account label.check { font-weight: 400; }
.acct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 12px; margin: 20px 0; }
.account .permit { border-top: 1px solid var(--line); padding: 10px 0; }
.account .permit p { margin: 2px 0; color: var(--charcoal-soft); }
.account .note { font-size: 14px; color: var(--charcoal-soft); }
.account #error { color: #a33; }
.account button.btn { cursor: pointer; font: inherit; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; align-items: stretch; }
.price-grid .price-card { margin: 0; max-width: none; }
.price-card h3 { margin: 0 0 6px; }
[hidden] { display: none !important; }

/* Coverage page */
.coverage-page { max-width: 760px; }
.cov-label { display: block; font-weight: 600; margin: 8px 0 6px; }
.cov-input { display: block; width: 100%; padding: 14px 16px; font-size: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--charcoal); min-height: 52px; transition: border-color .15s ease, box-shadow .15s ease; }
.cov-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 208, .18); }
select.cov-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2355504a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.cov-result { margin-top: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.cov-result strong { display: block; font-size: 20px; margin-bottom: 4px; }
.cov-result span { display: block; color: var(--charcoal); font-size: 16px; margin-top: 2px; }
.cov-result small { display: block; margin-top: 8px; color: var(--charcoal-soft); font-size: 14px; }
.cov-result.yes { border-color: #7fb98a; background: #eef7ef; }
.cov-result.yes strong { color: #1f6b34; }
.cov-result.no { border-color: #d8b96a; background: #fbf4e0; }
.cov-result.no strong { color: #8a5d00; }
.cov-note { color: var(--charcoal-soft); font-size: 14.5px; }
.cov-list { margin: 14px 0 22px; }
.cov-county { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 0 16px; }
.cov-county summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.cov-county ul { margin: 0 0 12px; padding-left: 20px; columns: 2; }
.cov-county li { font-size: 15px; color: var(--charcoal-soft); padding: 2px 0; }
.cov-find { max-width: 520px; margin: 22px auto 0; display: flex; gap: 10px; }
.cov-find input { flex: 1; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--charcoal); min-width: 0; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease; }
.cov-find input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 208, .18); }
@media (max-width: 640px) { .cov-county ul { columns: 1; } .cov-find { flex-direction: column; } }

.hist{margin:.6rem 0}.hist summary{cursor:pointer;font-weight:600}.hist p{margin:.3rem 0;font-size:.95rem}.permit label{display:block;margin:.6rem 0 .3rem}

/* Polish pass 2: professional rhythm, accessible focus, mobile nav, form controls */
::selection { background: rgba(47, 107, 208, .22); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:focus-visible, .nav a:focus-visible, .footer-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Sign-in state select (matches the other account inputs) */
.account select#add-state { display: block; width: 100%; max-width: 360px; margin-top: 6px; padding: 10px 40px 10px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--card); color: var(--charcoal); min-height: 46px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2355504a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.account select#add-state:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 208, .18); }

/* Account cards breathe like the pricing cards */
.acct-card { box-shadow: 0 1px 2px rgba(44, 42, 38, 0.05); }
.acct-card h2 { margin-top: 14px; }

/* Sign in / Create account mode toggle: show which is active */
#mode-in[aria-pressed="true"], #mode-up[aria-pressed="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

/* Buttons that act as plan choices are full width for an even stack */
#plan-buttons .btn { width: 100%; text-align: left; }

/* Coverage details groups: calmer marker and hover */
.cov-county { transition: border-color .15s ease, box-shadow .15s ease; }
.cov-county:hover { border-color: #cfc2a8; }
.cov-county[open] { box-shadow: 0 1px 2px rgba(44, 42, 38, 0.05); }
.cov-county summary { transition: color .15s ease; }
.cov-county summary:hover { color: var(--blue-dark); }
.cov-county summary::marker { color: var(--charcoal-soft); }

/* Result card entrance */
.cov-result { animation: cov-in .18s ease; }
@keyframes cov-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Coverage big number keeps its count readable */
.coverage .big { font-variant-numeric: tabular-nums; }

/* Price cards: gentle lift, strongest border on hover */
.price-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.price-card:hover { border-color: #cfc2a8; box-shadow: 0 18px 40px rgba(44, 42, 38, 0.13); transform: translateY(-2px); }

/* Hero buttons and badge spacing on small screens */
@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero-icon { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 22px; }
  .hero-cta .btn { width: 100%; max-width: 320px; text-align: center; }
  .section { padding: 48px 0; }
  .legal { padding: 40px 0 56px; }
}

/* Footer links: clearer hover */
.footer-links a { transition: color .15s ease; }
.footer-links a:hover { color: var(--charcoal); text-decoration: none; }

/* How-to videos get a softer frame */
video { display: block; }
