/* ============================================================
   ALERTFLAT — SECTIONS
   Styles specific to each page section.
   To add a new section: add styles here, wire it in builders/sections.js
   ============================================================ */

/* ── Shared layout wrapper ── */
.wrap { max-width: 1100px; margin: 0 auto; }

/* Hero — styles in style.css */

/* City banner — styles in style.css */

/* ══ HOW IT WORKS — hover only (rest in style.css) ════════ */
@media (hover: hover) {
  .step-card:hover  { transform:translateY(-4px); box-shadow:var(--shadow); }
  .testi-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
  .feat-card:hover  { background:rgba(255,255,255,.15); }
}

/* ══ FEATURES ══════════════════════════════════════════════ */
#features             { background: var(--blue); }
#features .feat-wrap  { max-width:1200px; margin:0 auto; }
#features .tag-pill   { background:rgba(255,255,255,.15); color:rgba(255,255,255,.9); }
#features h2          { color:#fff; margin-bottom:8px; }
#features .feat-intro { color:rgba(255,255,255,.72); font-size:17px; max-width:500px; }
.feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; margin-top:48px; }
.feat-card { background:rgba(255,255,255,.08); padding:34px 26px; transition:background .2s; }
/* Rounded corners only on outer edges — desktop 3-col */
.feat-grid .feat-card:nth-child(1) { border-radius:var(--radius) 0 0 0; }
.feat-grid .feat-card:nth-child(3) { border-radius:0 var(--radius) 0 0; }
.feat-grid .feat-card:nth-child(4) { border-radius:0 0 0 var(--radius); }
.feat-grid .feat-card:nth-child(6) { border-radius:0 0 var(--radius) 0; }
.feat-icon  { width:44px; height:44px; border-radius:10px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:19px; margin-bottom:16px; }
.feat-card h3 { font-size:15px; color:#fff; margin-bottom:8px; }
.feat-card p  { font-size:15px; color:rgba(255,255,255,.9); line-height: 1.8; }

/* ── Features: merged stats banner from success strip ────── */
.feat-stats-banner {
  display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 22px 28px; margin-top: 32px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.feat-big-num { font-size: 42px; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -1px; }
.feat-big-sub { font-size: 14px; color: rgba(255,255,255,.6); max-width: 200px; line-height: 1.5; }
.feat-mini-stats { display: flex; gap: 16px; margin-left: auto; }
.feat-mini-stat {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border-radius: 10px;
  padding: 10px 14px; border: 1px solid rgba(255,255,255,.09);
}
.feat-mini-icon { font-size: 16px; }
.feat-mini-num  { font-size: 15px; font-weight: 800; color: #fff; }
.feat-mini-lbl  { font-size: 11px; color: rgba(255,255,255,.45); }
@media (max-width: 640px) {
  .feat-stats-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .feat-mini-stats { margin-left: 0; flex-wrap: wrap; }
}

/* ══ PRICING ═══════════════════════════════════════════════ */
#pricing       { background: var(--gray1); }
#pricing .wrap { max-width: 860px; }
.price-card {
  background:#fff; border-radius:20px; padding:46px 42px; margin-top:42px;
  box-shadow:var(--shadow-lg); display:grid; grid-template-columns:1fr 1fr; gap:48px;
  border:1px solid var(--gray2);
}
.trial-pill     { display:inline-block; background:rgba(34,197,94,.11); color:#15803d; font-size:12px; font-weight:700; padding:5px 13px; border-radius:50px; margin-bottom:16px; }
/* ── Discount-aware price block ─────────────────────────────── */
.price-block           { margin: 12px 0 4px; }

/* Row 1: strikethrough original + discount badge inline */
.price-original-row    { display:flex; align-items:baseline; gap:8px; margin-bottom:4px; }
.price-original-amount { font-size:20px; font-weight:700; color:#b0b8c4;
                          text-decoration:line-through;
                          text-decoration-color:#e53e3e;
                          text-decoration-thickness:2px;
                          letter-spacing:-.02em; }
.price-discount-badge  { background:#fff5f5; color:#c53030; font-size:12px; font-weight:700;
                          padding:3px 9px; border-radius:50px;
                          align-self:center; }

/* Row 2: big price — currency symbol separate for correct sizing */
.price-main-row        { display:flex; align-items:flex-end; gap:2px; line-height:1; }
.price-currency-sym    { font-size:28px; font-weight:800; color:var(--text);
                          padding-bottom:8px; line-height:1; letter-spacing:-.01em; }
.price-big-num         { font-size:64px; font-weight:900; color:var(--text);
                          line-height:1; letter-spacing:-.03em; }
.price-period          { font-size:18px; font-weight:400; color:var(--gray3);
                          padding-bottom:8px; line-height:1; margin-left:4px; }

/* Row 3: save pill */
.price-pills-row       { display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
.pill-pct              { background:#fff5f5; color:#c53030; font-size:12px; font-weight:700;
                          padding:3px 10px; border-radius:50px; }
.pill-save             { background:#f0fff4; color:#276749; font-size:12px; font-weight:600;
                          padding:3px 10px; border-radius:50px; border:1px solid #9ae6b4; }

/* ── Legacy price-big (kept for compatibility) ────────────────── */
.price-big      { font-size:52px; font-weight:900; color:var(--text); line-height:1; margin:12px 0 4px; }
.price-big span { font-size:18px; font-weight:400; color:var(--gray3); }
.coffee-line    { font-size:14px; color:var(--gray3); font-style:italic; margin-bottom:4px; }
.price-note     { font-size:12px; color:var(--gray3); margin-top:10px; }
.pf-list        { list-style:none; display:flex; flex-direction:column; gap:12px; padding-top:4px; }
.pf-list li     { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--gray4); line-height:1.5; }
.chk            { width:19px; height:19px; border-radius:50%; background:var(--blue); display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; }
.chk svg        { width:9px; height:9px; }

/* Testimonials — styles in style.css */

/* FAQ — styles in style.css */

/* CTA band — styles in style.css */

/* Footer — styles live in style.css */


/* ══ CITIES SHOWCASE ═══════════════════════════════════════
   Cards use inline SVG illustrations (no real photos yet).
   Layout: 3 + 2 grid (3 top, 2 centred bottom).
   Style: white cards, blue top accent, matching step cards.
═══════════════════════════════════════════════════════════ */
#cities         { background: #f0f6fc; }
#cities .wrap   { max-width: 1100px; }
.cities-subtext {
  font-size: 17px; color: var(--gray4);
  max-width: 560px; margin-top: 10px; line-height: 1.7;
}

/* 3 + 2 centred layout using 6-col grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* All 5 cards span 2 of 6 cols → 3 per row */
.city-card { grid-column: span 2; }

/* Bottom row: cards 4 & 5 centred — start at col 2 and 4 */
.city-card:nth-child(4) { grid-column: 2 / 4; }
.city-card:nth-child(5) { grid-column: 4 / 6; }

/* Card chrome — matches step-card style */
.city-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray2);
  box-shadow: 0 2px 12px rgba(26,143,209,.07);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
/* Blue top accent bar */
.city-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #2490d4);
  z-index: 1;
}
@media (hover: hover) {
  .city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .city-card:hover .city-svg-wrap svg { transform: scale(1.03); }
}

/* SVG illustration — full-width block, gives card its height */
.city-svg-wrap {
  display: block; width: 100%; line-height: 0; overflow: hidden;
}
.city-svg-wrap svg {
  width: 100%; height: auto; display: block;
  transition: transform .5s ease;
}
/* No overlay needed for SVG-based cards */
.city-overlay { display: none; }

/* Text body below SVG */
.city-card-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  background: #fff;
}
.city-name {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: -.2px; line-height: 1.2; margin: 0;
}
.city-tagline {
  font-size: 13.5px; color: var(--gray4);
  line-height: 1.65; margin: 0;
}

/* CTA wrap below grid */
.cities-cta-wrap { display: flex; justify-content: center; margin-top: 44px; }

/* Tablet: 3-col, same 3+2 layout */
@media (max-width: 960px) {
  .cities-grid { gap: 14px; }
  .city-card:nth-child(4) { grid-column: 2 / 4; }
  .city-card:nth-child(5) { grid-column: 4 / 6; }
}

/* Large mobile: 2×2 + 1 full-width */
@media (max-width: 680px) {
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .city-card              { grid-column: span 1; }
  .city-card:nth-child(4) { grid-column: span 1; }
  .city-card:nth-child(5) { grid-column: 1 / -1; }
  .city-card-body { padding: 14px 16px 18px; }
  .city-name      { font-size: 15px; }
  .city-tagline   { font-size: 12.5px; }
}

/* Mobile: single column */
@media (max-width: 440px) {
  .cities-grid { grid-template-columns: 1fr; gap: 10px; }
  .city-card:nth-child(5) { grid-column: auto; }
  .city-card-body { padding: 12px 14px 16px; }
  .city-name { font-size: 15px; }
}

/* ── How It Works: mid-page CTA ──────────────────── */
.hiw-cta-wrap {
  display: flex; justify-content: center; margin-top: 44px;
}

.hiw-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 40px auto 0;
  padding: 16px 22px;
  background: rgba(26, 143, 209, 0.06);
  border: 1px solid rgba(26, 143, 209, 0.18);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  max-width: 860px;
}
.hiw-disclaimer-icon {
  font-size: 16px;
  line-height: 1.6;
  flex-shrink: 0;
  margin-top: 1px;
}
.hiw-disclaimer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hiw-disclaimer ul li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray3);
}
.hiw-disclaimer ul li::before {
  content: "·";
  color: var(--blue);
  font-weight: 700;
  margin-right: 6px;
}

/* ── Launch offer badge ──────────────────────────────── */
.launch-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}


/* ══════════════════════════════════════════════════════════
   PAIN SECTION
   Empathy-first. Mirrors the user's exact experience.
   Uses original site colors — no new palette.
══════════════════════════════════════════════════════════ */
#pain-section {
  background: var(--white);
  padding: 96px 5vw;
}
.pain-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}

/* Left: copy */
.pain-copy h2          { margin-bottom: 18px; }
.pain-copy h2 em       { color: var(--blue); font-style: normal; }
.pain-copy > p         { font-size: 17px; line-height: 1.85; color: var(--gray4); margin-bottom: 28px; }
.pain-list             { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.pain-list li          { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; color: var(--gray4); line-height: 1.65; }
.pain-icon             { width: 28px; height: 28px; border-radius: 8px; background: #fee2e2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; margin-top: 2px; }
.pain-resolve          { background: var(--blue-lt); border: 1px solid var(--gray2); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; display: flex; align-items: flex-start; gap: 14px; }
.pain-resolve-icon     { font-size: 22px; flex-shrink: 0; }
.pain-resolve p        { font-size: 16px; color: var(--text); font-weight: 600; line-height: 1.65; margin: 0; }

/* Right: timeline card */
.pain-timeline         { background: var(--gray1); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--gray2); }
.ptl-header            { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gray3); margin-bottom: 24px; }
.ptl-item              { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--gray2); }
.ptl-item:last-child   { border-bottom: none; padding-bottom: 0; }
.ptl-day               { font-size: 11px; font-weight: 700; color: var(--gray3); width: 44px; flex-shrink: 0; padding-top: 2px; }
.ptl-bar-wrap          { flex: 1; }
.ptl-label             { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ptl-bar               { height: 6px; background: var(--gray2); border-radius: 3px; overflow: hidden; }
.ptl-fill              { height: 100%; border-radius: 3px; background: #fca5a5; transition: width 1s ease; }
.ptl-fill.med          { background: #fdba74; }
.ptl-fill.high         { background: #f87171; }
.ptl-count             { font-size: 11px; color: var(--gray3); margin-top: 4px; }
.ptl-alertflat         { background: var(--blue); border-radius: 10px; padding: 18px 20px; margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.ptl-af-icon           { font-size: 22px; }
.ptl-af-title          { font-size: 15px; font-weight: 700; color: #fff; }
.ptl-af-sub            { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 2px; }

@media (max-width: 900px) {
  .pain-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  #pain-section { padding: 64px 4vw; }
}

/* ══════════════════════════════════════════════════════════
   TIME SAVER SECTION
   Before/after comparison — shows how AlertFlat reclaims
   time lost to email and portal checking.
══════════════════════════════════════════════════════════ */
#time-saver {
  padding: 80px 6vw;
  background: var(--gray1);
  border-top: 1px solid var(--gray2);
  border-bottom: 1px solid var(--gray2);
}
#time-saver .wrap          { max-width: 900px; margin: 0 auto; text-align: center; }
#time-saver h2             { font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 12px; }
#time-saver h2 em          { color: var(--blue); font-style: normal; }
.ts-body                   { font-size: 17px; line-height: 1.85; color: var(--gray4); margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.ts-grid                   { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.ts-item                   { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--gray2); border-radius: var(--radius); padding: 24px 28px; }
.ts-before, .ts-after      { display: flex; align-items: flex-start; gap: 10px; }
.ts-before p, .ts-after p  { font-size: 15px; line-height: 1.6; color: var(--gray4); margin: 0; }
.ts-label                  { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; margin-top: 2px; }
.ts-label-before           { background: #fee2e2; color: #b91c1c; }
.ts-label-after            { background: #d1fae5; color: #047857; }
.ts-arrow                  { font-size: 20px; color: var(--blue); font-weight: 700; }
.ts-saved                  { font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-lt); border-radius: 20px; padding: 6px 14px; white-space: nowrap; text-align: center; }

@media (max-width: 768px) {
  #time-saver              { padding: 64px 4vw; }
  .ts-item                 { grid-template-columns: 1fr; gap: 12px; }
  .ts-arrow                { display: none; }
  .ts-saved                { justify-self: start; }
}

/* ══════════════════════════════════════════════════════════
   SUCCESS STRIP
   The emotional peak. Real people, real outcomes.
   Dark section — intentional contrast mid-page.
══════════════════════════════════════════════════════════ */
#success-strip {
  background: var(--navy);
  padding: 0; overflow: hidden;
}
.ss-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  min-height: 480px;
}

/* Left: story cards */
.ss-stories            { padding: 64px 56px; display: flex; flex-direction: column; gap: 0; }
.ss-eyebrow            { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.ss-heading            { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 32px; }
.ss-heading em         { color: #4ade80; font-style: normal; }
.ss-cards              { display: flex; flex-direction: column; gap: 14px; }
.ss-card               { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px 22px; position: relative; overflow: hidden; }
.ss-card::before       { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); border-radius: 0; }
.ss-card.green::before { background: #4ade80; }
.ss-card.orange::before{ background: #fb923c; }
.ss-quote              { font-size: 15px; color: rgba(255,255,255,.83); line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.ss-author             { display: flex; align-items: center; gap: 10px; }
.ss-av                 { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ss-author-name        { font-size: 13px; font-weight: 700; color: #fff; }
.ss-author-detail      { font-size: 12px; color: rgba(255,255,255,.42); }
.ss-badge              { position: absolute; top: 14px; right: 14px; background: rgba(74,222,128,.15); border: 1px solid rgba(74,222,128,.28); color: #4ade80; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }

/* Right: big stat */
.ss-visual             { background: rgba(255,255,255,.03); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 56px 40px; border-left: 1px solid rgba(255,255,255,.08); }
.ss-big-word           { text-align: center; }
.ss-big-word span      { display: block; font-size: clamp(52px, 6vw, 84px); font-weight: 900; color: #fff; line-height: 1; letter-spacing: -2px; }
.ss-big-word .accent   { color: var(--blue); font-size: clamp(28px, 3.5vw, 48px); margin-top: 2px; }
.ss-big-sub            { font-size: 14px; color: rgba(255,255,255,.5); text-align: center; max-width: 200px; line-height: 1.6; margin-top: 10px; }
.ss-mini-stats         { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 220px; }
.ss-mini-stat          { background: rgba(255,255,255,.07); border-radius: 10px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 12px; }
.ss-mini-icon          { font-size: 18px; }
.ss-mini-num           { font-size: 17px; font-weight: 800; color: #fff; }
.ss-mini-lbl           { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }

/* Scroll reveal */
.reveal                { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible        { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .ss-inner { grid-template-columns: 1fr; }
  .ss-stories { padding: 48px 32px; }
  .ss-visual { padding: 40px 32px; border-left: none; border-top: 1px solid rgba(255,255,255,.08); min-height: 280px; }
}
@media (max-width: 640px) {
  .ss-stories { padding: 40px 20px; }
  .ss-heading { font-size: 22px; }
  .ss-quote { font-size: 14px; }
}
