/* DryLine marketing — single source of truth for shared styles.
   Tokens, base type, nav, footer, and components used across every page. */

:root {
  --canvas: #F1F4F8;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --fg: #0B1E3A;
  --fg-muted: #475569;
  --fg-subtle: #94A3B8;
  --teal: #1A5C52;
  --teal-light: #2AA99A;
  --teal-bg: #E6F4F1;
  --on-teal: #FFFFFF;
  --safe-bg: #DCFCE7;
  --safe-fg: #15803D;
  --warn-bg: #FEF3C7;
  --warn-fg: #B45309;
  --risk-bg: #FEE2E2;
  --risk-fg: #B91C1C;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg, .wcard, .feat, .step, .who, .pcard, .plan, .card { max-width: 100%; }

.display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

/* Skip link for a11y */
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 100;
  background: var(--fg); color: #fff; padding: 8px 14px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; padding: 12px 22px; font-family: inherit;
}
.btn-primary { background: var(--teal-light); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }

.btn-full {
  width: 100%; padding: 11px; border-radius: 9px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  text-align: center; font-family: inherit; display: inline-flex;
  align-items: center; justify-content: center;
}
.btn-full.primary { background: var(--teal-light); color: var(--on-teal); }
.btn-full.primary:hover { background: var(--teal); }
.btn-full.secondary { background: var(--surface); color: var(--teal); border-color: var(--border-strong); }
.btn-full.secondary:hover { background: var(--canvas); }

/* --- Bits --- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-light);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700;
}
.badge .d { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.badge.safe { background: var(--safe-bg); color: var(--safe-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.risk { background: var(--risk-bg); color: var(--risk-fg); }

.section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.sec-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -.025em; margin: 10px 0 12px; }
.sec-head p { font-size: 17px; color: var(--fg-muted); }

.phead { text-align: center; max-width: 620px; margin: 0 auto; padding: 64px 0 40px; }
.phead h1 { font-size: 42px; font-weight: 700; letter-spacing: -.025em; margin: 10px 0 12px; }
.phead p { font-size: 17px; color: var(--fg-muted); }

/* --- Nav --- */
nav.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.brand svg { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; font-weight: 500; color: var(--fg-muted);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right .login { font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.nav-right .login:hover { color: var(--fg); }

/* --- Weather card visual (Home + Features) --- */
.wcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.wcard-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.wcard-loc { font-size: 13px; color: var(--fg-subtle); font-weight: 500; }
.wcard-main { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 6px; }
.wcard-temp { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.wcard-cond { font-size: 14px; color: var(--fg-muted); margin-bottom: 18px; }
.wcard-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.wtile { background: var(--canvas); border-radius: 10px; padding: 10px 8px; text-align: center; }
.wtile .lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg-subtle);
}
.wtile .val { font-size: 16px; font-weight: 700; margin-top: 2px; }
.fc {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.fc-day { text-align: center; }
.fc-day .dn { font-size: 11px; color: var(--fg-subtle); font-weight: 600; margin-bottom: 7px; }
.fc-dot { width: 100%; height: 6px; border-radius: 999px; margin-bottom: 7px; }
.fc-day .t { font-size: 12px; font-weight: 600; }

/* --- HOME --- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; padding: 76px 0 88px;
}
.hero h1 { font-size: 54px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; margin: 16px 0 18px; }
.hero p.sub { font-size: 18px; color: var(--fg-muted); max-width: 480px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { margin-top: 16px; font-size: 13px; color: var(--fg-subtle); }

.problem { background: var(--fg); color: #fff; }
.problem .wrap { text-align: center; max-width: 760px; }
.problem h2 {
  font-size: 38px; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.15; margin-bottom: 18px;
}
.problem h2 .accent { color: var(--teal-light); }
.problem p { font-size: 18px; color: #AEC1D6; max-width: 620px; margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
}
.step-n {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--teal-bg); color: var(--teal); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--fg-muted); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.feat .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-bg); display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.feat .ic svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; }
.feat .mini { font-size: 13px; font-weight: 600; color: var(--teal-light); margin-bottom: 6px; }
.feat h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--fg-muted); }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; background: var(--surface);
}
.who .plan {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--teal);
}
.who h3 { font-size: 19px; font-weight: 700; margin: 6px 0 8px; }
.who p { font-size: 14.5px; color: var(--fg-muted); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; position: relative;
  display: flex; flex-direction: column;
}
.pcard.feat-card { border: 1.5px solid var(--teal-light); padding-top: 32px; }
.pcard .pop {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal-light); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px;
}
.pcard .pn { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.pcard .amt { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.pcard .amt span { font-size: 14px; color: var(--fg-subtle); font-weight: 500; }
.pcard .pd { font-size: 13.5px; color: var(--fg-muted); margin: 8px 0 0; min-height: 38px; }
.pcard .btn { margin-top: 18px; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 9px;
}
.why h3 svg { width: 20px; height: 20px; stroke: var(--teal-light); fill: none; }
.why p { font-size: 14.5px; color: var(--fg-muted); }

.cta-band {
  background: var(--teal-bg); border-radius: 20px;
  padding: 56px 40px; text-align: center;
}
.cta-band h2 { font-size: 36px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 10px; }
.cta-band p { font-size: 16px; color: var(--fg-muted); margin-bottom: 24px; }

/* --- FEATURES --- */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; padding: 64px 0;
}
.spotlight .mini {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: 10px;
}
.spotlight h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.spotlight p { font-size: 16px; color: var(--fg-muted); }

.grid-sec { padding: 24px 0 64px; }
.feat-sec { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- PRICING --- */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: start; padding-bottom: 24px;
}
.plan {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px; display: flex; flex-direction: column;
}
.plan.featured { border: 1.5px solid var(--teal-light); padding-top: 32px; }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal-light); color: var(--on-teal);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.plan .pn {
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.price { display: flex; align-items: baseline; gap: 4px; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price .per { font-size: 15px; color: var(--fg-subtle); font-weight: 500; }
.psub { font-size: 13px; color: var(--fg-muted); font-weight: 500; margin-top: 4px; min-height: 18px; }
.tag { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 16px 0 20px; min-height: 42px; }
.divider { height: 1px; background: var(--border); margin-bottom: 18px; }
.feats {
  list-style: none; display: flex; flex-direction: column;
  gap: 11px; margin-bottom: 26px; flex: 1;
}
.feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.feats li svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; stroke: var(--teal-light); fill: none; }

.enterprise {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 26px; margin-top: 8px;
}
.ent-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.ent-sub { font-size: 13.5px; color: var(--fg-muted); }

.bfaq {
  max-width: 760px; margin: 56px auto 0;
  border-top: 1px solid var(--border); padding-top: 40px;
}
.bfaq h2 {
  text-align: center; font-size: 24px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 24px;
}
.bfaq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.bfaq-item h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.bfaq-item p { font-size: 13.5px; color: var(--fg-muted); }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { padding: 24px 0; border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.qa p { font-size: 15px; color: var(--fg-muted); }
.qa p a { color: var(--teal-light); font-weight: 600; }

.still {
  text-align: center; max-width: 600px; margin: 48px auto 0;
  background: var(--teal-bg); border-radius: 16px; padding: 36px;
}
.still h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.still p { font-size: 15px; color: var(--fg-muted); margin-bottom: 18px; }

/* --- CONTACT --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 880px; margin: 0 auto; align-items: start;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--fg-muted); margin-bottom: 18px; }
.email-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--teal);
}
.email-line:hover { color: var(--teal-light); }
.email-line svg { width: 19px; height: 19px; stroke: var(--teal-light); fill: none; }

.bigcrew {
  margin-top: 18px; background: var(--teal-bg);
  border: 1px solid var(--teal-light); border-radius: 14px;
  padding: 20px 22px;
}
.bigcrew h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.bigcrew p { font-size: 13.5px; color: var(--fg-muted); margin-bottom: 14px; }

/* --- LEGAL (privacy / terms) --- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; }
.legal h1 { font-size: 36px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.legal .effective { font-size: 14px; color: var(--fg-subtle); margin-bottom: 32px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; letter-spacing: -.015em; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: var(--fg); line-height: 1.65; margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { font-weight: 700; }
.legal a { color: var(--teal); font-weight: 600; }
.legal a:hover { color: var(--teal-light); }

/* --- FOOTER --- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px; margin-top: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 36px;
}
.foot-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 14px;
}
.foot-col a { display: block; font-size: 14px; color: var(--fg-muted); margin-bottom: 9px; }
.foot-col a:hover { color: var(--fg); }
.foot-blurb { font-size: 14px; color: var(--fg-muted); max-width: 240px; margin-top: 10px; }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 13px; color: var(--fg-subtle);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .hero h1 { font-size: 40px; }
  .nav-links { display: none; }
  .steps, .feat-grid, .who-grid, .price-grid, .why-grid,
  .plans, .bfaq-grid, .contact-grid, .spotlight, .foot-grid {
    grid-template-columns: 1fr;
  }
  .spotlight { gap: 28px; padding: 36px 0; }
  .sec-head h2, .problem h2, .cta-band h2 { font-size: 28px; }
  .phead h1 { font-size: 32px; }
  .enterprise { flex-direction: column; align-items: flex-start; }
}

/* Narrow mobile (~iPhone widths). Mockups left this case rough; tighten so
   nothing overflows at 375–414px. */
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .nav-inner { height: 56px; }
  .brand { font-size: 16px; }
  .nav-right { gap: 10px; }
  .nav-right .login { display: none; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .eyebrow { font-size: 12px; letter-spacing: .06em; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero p.sub { font-size: 16px; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head h2, .problem h2, .cta-band h2 { font-size: 26px; }
  .problem h2 br { display: none; }
  .phead { padding: 48px 0 32px; }
  .phead h1 { font-size: 28px; }
  .wcard { padding: 18px; border-radius: 14px; }
  .wcard-temp { font-size: 42px; }
  .wcard-tiles { grid-template-columns: repeat(2, 1fr); }
  .wtile { padding: 8px 6px; }
  .fc { gap: 4px; }
  .fc-day .dn { font-size: 10px; }
  .fc-day .t { font-size: 11px; }
  .cta-band { padding: 40px 24px; border-radius: 16px; }
  .feat, .step, .who, .plan, .pcard, .card { padding: 22px; }
  .price-grid, .plans { gap: 16px; }
  .pcard .amt { font-size: 30px; }
  .legal h1 { font-size: 28px; }
  .legal h2 { font-size: 20px; }
}

