/* Storm Sensei — shared site styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #eef2f7;
  --border: #e2e8f0;
  --accent: #38bdf8;
  --accent-text: #0369a1;
  --gold: #FFD700;
  --gold-text: #b45309;
  --text: #0f172a;
  --muted: #52606d;
  --muted-2: #475569;
  --radius: 16px;
  --max: 1080px;
}

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

html{scroll-behavior:smooth}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--accent-text);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

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

.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.site-header .wrap{
  display:flex;align-items:center;justify-content:space-between;
  height:72px;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;color:var(--text)}
.brand:hover{text-decoration:none}
.brand-mark{height:34px;width:auto;flex-shrink:0}

.site-header nav{display:flex;align-items:center;gap:28px}
.site-header nav a{color:var(--muted-2);font-size:14px;font-weight:500}
.site-header nav a:hover{color:var(--text);text-decoration:none}
/* Nav dropdown groups (Learn More / Legal) — <details>-based so they work
   with no JS: tap/click toggles, Esc/blur-away closes via toggle, keyboard
   focusable. Styled to match .site-header nav a. */
.nav-drop{position:relative}
.nav-drop summary{list-style:none;cursor:pointer;color:var(--muted-2);font-size:14px;font-weight:500;display:flex;align-items:center;gap:5px;user-select:none}
.nav-drop summary::-webkit-details-marker{display:none}
.nav-drop summary::after{content:"\25BE";font-size:10px;color:var(--muted)}
.nav-drop summary:hover,.nav-drop[open] summary{color:var(--text)}
.nav-drop-menu{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.10);padding:8px;min-width:180px;display:flex;flex-direction:column;z-index:60}
.nav-drop-menu a{padding:8px 12px;border-radius:6px;white-space:nowrap}
.nav-drop-menu a:hover{background:var(--surface)}

.nav-cta{
  background:var(--accent);color:#04121e !important;padding:9px 18px;border-radius:999px;
  font-weight:700;font-size:13.5px;
}
.nav-cta:hover{opacity:0.9}

/* ---------- Hero ---------- */
.hero{
  padding:72px 0 56px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;
}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--gold-text);
  border:1px solid rgba(255,215,0,0.3);
  background:rgba(255,215,0,0.06);
  padding:6px 14px;border-radius:999px;
  margin-bottom:22px;
}
h1{
  font-size:clamp(32px,4.4vw,52px);
  font-weight:800;line-height:1.08;letter-spacing:-0.02em;
  margin-bottom:20px;
}
h1 .accent{color:var(--accent-text)}
.hero-sub{
  font-size:18px;color:var(--muted-2);max-width:52ch;margin-bottom:32px;line-height:1.55;
}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 26px;border-radius:12px;font-weight:700;font-size:15px;
  border:1px solid transparent;cursor:pointer;
}
.btn-primary{background:var(--accent);color:#04121e}
.btn-primary:hover{opacity:0.92;text-decoration:none}
.btn-secondary{background:transparent;color:var(--text);border-color:var(--border)}
.btn-secondary:hover{border-color:var(--accent-text);text-decoration:none}
.hero-note{font-size:13px;color:var(--muted)}

/* Apple App Store badge — official artwork (assets/brand/app-store-badge.svg),
   never recolored/recreated per Apple's marketing guidelines. 48px height is
   well above their stated 40px on-screen minimum; width is left to the
   browser (auto) so the badge's own aspect ratio is never distorted. The
   width/height attributes on each <img> reserve layout space at the correct
   ratio to avoid a layout shift while the SVG loads. */
.app-store-badge{height:48px;width:auto;display:inline-block}

/* Sensei figure panel */
.hero-figure{
  position:relative;
  display:flex;align-items:center;justify-content:center;
}
.brand-lockup{
  width:100%;max-width:340px;height:auto;display:block;
}

/* ---------- Section shared ---------- */
section{padding:64px 0}
.section-head{max-width:640px;margin-bottom:40px}
.section-label{
  font-size:12px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--accent-text);margin-bottom:10px;
}
h2{font-size:clamp(26px,3vw,36px);font-weight:800;letter-spacing:-0.01em;margin-bottom:14px}
.section-sub{color:var(--muted-2);font-size:16px;line-height:1.6}

/* What it does */
.feature-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.feature-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
}
.feature-icon{
  width:40px;height:40px;border-radius:10px;
  background:rgba(56,189,248,0.12);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;color:var(--accent-text);font-size:19px;
}
.feature-card h3{font-size:16.5px;font-weight:700;margin-bottom:8px}
.feature-card p{font-size:14.5px;color:var(--muted-2);line-height:1.55}

/* Who it's for */
.audience-row{
  display:flex;flex-wrap:wrap;gap:12px;
}
.audience-chip{
  background:var(--surface-2);
  border:1px solid var(--border);
  padding:10px 20px;border-radius:999px;
  font-size:14px;font-weight:600;color:var(--text);
}

/* Screenshots */
.shots-row{
  display:grid;grid-template-columns:repeat(2,1fr);gap:24px;
  max-width:820px;margin:0 auto;
}
.shot-card{
  border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--border);
  background:var(--surface);
}
.shot-card img{width:100%;height:auto;display:block}
.shot-caption{padding:14px 18px;font-size:13.5px;color:var(--muted-2);font-weight:600}
/* .shots-row is a fixed 2-column grid, so an ODD number of screenshots leaves
   the last card alone in the left column with a hole beside it. Centre it
   across both columns instead. Written against min-width rather than in the
   860px block below - the rest of this file is mobile-last - because the
   max-width would otherwise shrink the card to half width once the grid
   collapses to a single column. Count-agnostic, so it keeps working through
   the screenshot batch replacement. */
@media (min-width: 861px){
  .shots-row > .shot-card:last-child:nth-child(odd){
    grid-column:1 / -1;
    max-width:calc(50% - 12px);
    margin-inline:auto;
  }
}

/* Get the app */
.get-app{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  padding:48px;
}
.get-app-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border);
  padding:40px 0;
  margin-top:40px;
}
.footer-lockup{
  width:100%;max-width:240px;height:auto;display:block;margin:0 auto 1.5rem;
}
.footer-row{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
}
.footer-links{display:flex;gap:22px}
.footer-links a{color:var(--muted-2);font-size:13.5px}
.footer-copy{color:var(--muted);font-size:13px}

/* ---------- Legal pages ---------- */
.legal-page{padding:56px 0 96px}
.legal-page .wrap{max-width:760px}
.legal-page h1{font-size:32px;margin-bottom:6px}
.legal-updated{color:var(--muted);font-size:13.5px;margin-bottom:36px}
.legal-page h2{font-size:19px;margin:32px 0 10px;font-weight:700}
.legal-page p{color:var(--muted-2);font-size:15px;margin-bottom:14px;line-height:1.7}
.pending-banner{
  background:rgba(255,215,0,0.08);
  border:1px solid rgba(255,215,0,0.3);
  border-radius:12px;
  padding:16px 20px;
  font-size:13.5px;
  color:var(--gold-text);
  margin-bottom:36px;
}
.warning-banner{
  background:rgba(220,38,38,0.08);
  border:1px solid rgba(220,38,38,0.35);
  border-radius:12px;
  padding:16px 20px;
  font-size:14px;
  color:#f87171;
  margin-bottom:32px;
  font-weight:600;
}
.commit-banner{
  background:rgba(56,189,248,0.08);
  border:1px solid rgba(56,189,248,0.3);
  border-radius:12px;
  padding:16px 20px;
  font-size:14px;
  color:var(--text);
  margin-bottom:32px;
}
/* The privacy commitment line. Green is the "clear/safe" hue in both repos
   (--clear in the app, .tier-clear here); this mirrors .pledge in the app's
   public/privacy.html so the same sentence reads the same on both domains. */
.pledge{
  background:rgba(16,185,129,0.08);
  border:1px solid rgba(16,185,129,0.35);
  border-radius:12px;
  padding:16px 20px;
  margin-bottom:32px;
}
.pledge p{color:var(--text);font-size:15px;line-height:1.7;margin:0}
.legal-page ul{margin:0 0 14px 0;padding-left:0;list-style:none}
.legal-page li{color:var(--muted-2);font-size:15px;margin-bottom:10px;line-height:1.7;padding-left:20px;position:relative}
.legal-page li::before{content:"•";position:absolute;left:0;color:var(--accent-text)}
.legal-page strong{color:var(--text)}

/* Warning System tier blocks. The app's real alert colours are unreadable as
   text on this light background — measured against #ffffff they run 2.15:1
   (watch) to 3.76:1 (danger), so three of four fail even the 3:1 large-text
   bar and all four fail 4.5:1. The heading therefore uses a darkened variant
   of the SAME hue (all >=4.52:1 on white), and the true app colour is carried
   by the left border, where contrast rules do not apply to a decorative rule
   but the reader still learns the product's visual language. Do not swap the
   heading colours back to the raw app values on a safety page. */
.tier{border-left:6px solid;padding-left:18px;margin:36px 0 0}
.tier h2{margin-top:0;margin-bottom:8px}
.tier-clear{border-left-color:#10b981}
.tier-clear h2{color:#0c875e}
.tier-watch{border-left-color:#f59e0b}
.tier-watch h2{color:#a46a07}
.tier-warning{border-left-color:#f97316}
.tier-warning h2{color:#bd5711}
.tier-danger{border-left-color:#ef4444}
.tier-danger h2{color:#d73d3d}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .hero-figure{order:-1;max-width:240px;margin:0 auto}
  .feature-grid,.shots-row{grid-template-columns:1fr}
  .get-app-grid{grid-template-columns:1fr;gap:32px}
  .get-app{padding:30px}
  .site-header nav{gap:16px}
  .site-header nav a:not(.nav-cta){display:none}
  .site-header .nav-drop{display:none}
}
