/* ==========================================================
   HAIL WHALE — STYLES
   Mobile-first. One accent colour. Rounded cards. Calm & modern.
   ========================================================== */

/* Self-hosted Inter (files in assets/fonts/) — not loaded from Google Fonts
   so it renders reliably even when third-party font requests are blocked
   (ad-network in-app browsers, privacy tools, restricted networks, etc). */
@font-face{
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face{
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face{
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}
@font-face{
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/inter-800.woff2") format("woff2");
}

:root{
  --color-bg: #F6F9FE;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #4B5A72;
  --color-primary: #2463EB;
  --color-primary-dark: #1B4FC4;
  --color-accent-soft: #EAF1FF;
  --color-success: #16A34A;
  --color-success-soft: #EAF9EF;
  --color-border: #E2E8F0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
  --max-width: 480px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  font-size: 17.5px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,h2,h3{ line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
p{ margin: 0 0 16px; }

/* ---------------- HEADER ---------------- */
.site-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 4px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--color-accent-soft) 0%, rgba(234,241,255,0) 70%);
}
.wordmark{ display: flex; align-items: center; gap: 8px; }
.whale-icon{ width: 30px; height: 30px; color: var(--color-primary); }
.wordmark-text{ font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.header-tagline{ font-size: 0.8rem; color: var(--color-text-muted); margin-top: 2px; }
.header-logo{
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.22));
  margin-bottom: -8px;
}

/* ---------------- LAYOUT HELPERS ---------------- */
main{ display: block; }

.hero, .funnel-section, .content-block{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px;
}

/* ---------------- HERO ---------------- */
.hero{ text-align: center; padding-top: 8px; }

.location-badge{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-headline{
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub{
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-art{ margin: 4px auto 18px; max-width: 340px; }
.hero-svg{ width: 100%; height: auto; }

.trust-points{
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.trust-points li{ color: var(--color-success); }

.micro-copy{
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* ---------------- BUTTONS ---------------- */
.btn{
  display: inline-block;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
  text-align: center;
}
.btn:active{ transform: scale(0.98); }

.btn-primary{
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(36, 99, 235, 0.3);
}
.btn-primary:hover{ background: var(--color-primary-dark); }
.btn-primary:disabled{ opacity: 0.5; cursor: not-allowed; }

.btn-secondary{
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.btn-large{ width: 100%; padding: 17px 22px; font-size: 1.12rem; }

.btn-row{ display: flex; gap: 10px; }
.btn-row .btn{ flex: 1; }

.btn-back{
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
  padding: 6px 4px;
}

/* ---------------- FUNNEL CARD ---------------- */
.funnel-section{ padding-top: 4px; }

.funnel-card{
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 20px;
}

.funnel-progress{ margin-bottom: 18px; }
.funnel-progress-track{
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.funnel-progress-bar{
  height: 100%;
  background: var(--color-primary);
  width: 14.2857%;
  transition: width 0.25s ease;
}
.funnel-step-label{
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 8px 0 0;
}

.funnel-step{ display: none; }
.funnel-step.is-active{ display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.step-question{
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.32;
  margin-bottom: 16px;
}

.step-note{
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

.choice-group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn{
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-btn:hover{ border-color: var(--color-primary); }
.choice-btn.is-selected{
  border-color: var(--color-primary);
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
}

.field-group{ margin-bottom: 14px; }
.field-group label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.field-group input, .field-group select{
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
}
.field-group input:focus{
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.field-error{
  color: #DC2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin: -4px 0 12px;
}

.file-drop{
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  background: var(--color-bg);
  margin-bottom: 14px;
}
.file-drop input{ display: none; }

/* Reserved for V2 photo-upload step (not used in this V1) */
.photo-preview{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.photo-preview img{
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.consent-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 4px 0 16px;
  cursor: pointer;
}
.consent-row input{
  margin-top: 3px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.hp-field{ position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------------- SUCCESS SCREEN ---------------- */
.success-card{ text-align: center; }
.success-icon{
  width: 56px; height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.next-steps{
  text-align: left;
  padding-left: 20px;
  margin: 12px 0;
}
.next-steps li{ margin-bottom: 6px; }
.no-obligation{
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.dev-warning{
  max-width: var(--max-width);
  margin: 0 auto;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  color: #9A3412;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* ---------------- SUPPORTING CONTENT ---------------- */
.content-block h2{ font-size: 1.55rem; }
.content-block p{ color: var(--color-text-muted); }

.trust-eyebrow{
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.05rem;
  margin: -6px 0 14px;
}

.trust-callout{
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.alt-bg{ background: var(--color-surface); border-radius: var(--radius-lg); }

/* ---------------- LEGAL PAGES (privacy.html / terms.html) ---------------- */
.legal-page{ padding-top: 8px; padding-bottom: 40px; }
.legal-title{ font-size: 1.8rem; margin-top: 10px; }
.legal-updated{ color: var(--color-text-muted); font-size: 0.85rem; margin-top: -8px; margin-bottom: 20px; }
.legal-page h2{ margin-top: 26px; font-size: 1.15rem; }
.legal-list{ margin-bottom: 18px; font-weight: 500; }
.legal-list li{ padding-left: 16px; position: relative; }
.legal-list li::before{ content: "–"; position: absolute; left: 0; color: var(--color-text-muted); }
.legal-page a{ color: var(--color-primary); font-weight: 600; }

.steps-grid{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.step-card{
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 16px;
}
.step-number{
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.step-card h3{ font-size: 1rem; margin-bottom: 4px; }
.step-card p{ margin: 0; font-size: 0.92rem; }

.content-cta{ text-align: center; margin-top: 18px; }
.content-cta .btn{ width: 100%; }

/* ---------------- STORM DIRECTORY (homepage "Recent Hailstorms") ---------------- */
.storm-grid{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.storm-card{
  display: block;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.storm-card:hover{ border-color: var(--color-primary); }
.storm-card-date{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.storm-card h3{ font-size: 1.1rem; margin-bottom: 14px; }
.storm-card-btn{ width: 100%; }

.check-list{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-block h2{ margin-bottom: 12px; }
.faq-item{
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.faq-item:last-child{ border-bottom: none; }
.faq-item summary{
  font-weight: 700;
  cursor: pointer;
  font-size: 0.98rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  float: right;
  color: var(--color-primary);
  font-weight: 800;
}
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{ margin: 10px 0 0; }

.final-cta-block{ text-align: center; padding-bottom: 40px; }
.final-cta-block .btn{ margin-top: 8px; }

/* ---------------- FOOTER ---------------- */
.site-footer{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 90px;
  text-align: center;
}
.footer-wordmark .wordmark-text{ font-size: 1.05rem; font-weight: 800; }
.footer-tagline{ font-size: 0.82rem; color: var(--color-text-muted); margin-top: 2px; }
.footer-links{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 14px 0;
  font-size: 0.85rem;
}
.footer-links a{ color: var(--color-text-muted); text-decoration: none; }
.footer-links a:hover{ color: var(--color-primary); }
.disclosure{
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-top: 10px;
}

/* ---------------- STICKY MOBILE CTA ---------------- */
.sticky-cta{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(246,249,254,1) 60%, rgba(246,249,254,0));
  z-index: 40;
}
.sticky-cta .btn{ box-shadow: 0 8px 20px rgba(36,99,235,0.35); }

/* ---------------- DESKTOP / LARGER SCREENS ---------------- */
@media (min-width: 640px){
  body{ background: linear-gradient(180deg, #EEF4FE 0%, var(--color-bg) 320px); }
  .hero-headline{ font-size: 2.35rem; }
  .site-header{ padding-top: 26px; }
  .header-logo{ width: 240px; }
}
