/* StormChase apps page (/apps/) in the "Intercept" look shared with /hq and /shop:
   black field, glass panels, condensed caps, mono telemetry, cyan glow, film grain, corner frame. */
:root {
  --bg: #050608;
  --bg2: #0b0e12;
  --glass: rgba(16, 21, 27, .72);
  --glass-hi: rgba(26, 33, 42, .82);
  --edge: rgba(125, 160, 190, .16);
  --edge-hi: rgba(79, 216, 255, .45);
  --text: #e8eef4;
  --soft: #b9c4cf;
  --dim: #7d8a97;
  --faint: #7b8794;   /* was #4a5562 (2.7:1); now 5.5:1 for the small copyright line */
  --cyan: #4fd8ff;
  --glow: rgba(79, 216, 255, .45);
  --hot: #ffb547;
  --hot-ink: #160d00;
  --live: #ff3b47;
  --ok: #3dffa2;
  --sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; overflow-x: hidden; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 80% at 70% -10%, #121a24 0%, var(--bg) 55%) fixed, var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(79, 216, 255, .3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--cond); text-transform: uppercase; line-height: .98; }
h1 { font-weight: 700; letter-spacing: .01em; font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-weight: 700; letter-spacing: .02em; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-weight: 600; letter-spacing: .08em; font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.eyebrow { margin: 0 0 12px; font: 500 .72rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.lede { font-size: 1.1rem; color: var(--soft); max-width: 60ch; }
main { position: relative; z-index: 1; }

/* grain + corner frame */
.x-grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: x-grain 1.2s steps(6) infinite; }
@keyframes x-grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
/* iPhone Safari can paint black boxes under a sticky header that blurs its backdrop, especially with a full-screen
   overlay or a pinned page background underneath. Phones and touch screens get a solid header, no grain overlay and a
   normally scrolling background; the look is the same at that size. */
@media (hover: none), (max-width: 760px) {
  .x-grain { display: none; }
  .x-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 6, 8, .97); }
  body { background-attachment: scroll; }
}
.x-frame i { position: fixed; width: 18px; height: 18px; z-index: 40; pointer-events: none; border: 0 solid rgba(125,160,190,.35); }
.x-frame i:nth-child(1) { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.x-frame i:nth-child(2) { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.x-frame i:nth-child(3) { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.x-frame i:nth-child(4) { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* top bar: logo in the same spot and size as /hq and /shop */
.x-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 18px 22px 12px;
  background: linear-gradient(to bottom, rgba(5,6,8,.94), rgba(5,6,8,.72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); }
.x-brand { display: flex; align-items: center; gap: 12px; min-height: 41px; color: var(--text); flex: none; }
.x-brand:hover { text-decoration: none; }
.x-mark { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.2; filter: drop-shadow(0 0 6px var(--glow)); }
.x-mark circle:nth-child(2) { stroke-opacity: .45; }
.x-mark .x-sweep { stroke-width: 1.6; transform-origin: 16px 16px; animation: x-spin 4s linear infinite; }
.x-mark .x-hub { fill: var(--cyan); stroke: none; }
@keyframes x-spin { to { transform: rotate(360deg); } }
.x-word { font-family: var(--cond); font-size: 21px; letter-spacing: .32em; line-height: 1; display: flex; gap: .45em; white-space: nowrap; }
.x-word b { font-weight: 700; }
.x-word span { color: var(--cyan); font-weight: 500; text-shadow: 0 0 14px var(--glow); }
.x-nav { display: flex; gap: 4px; margin: 0 auto; min-width: 0; }
.x-nav a, .x-links a { font: 600 .86rem var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 7px 10px; border-radius: 5px; border: 1px solid transparent; white-space: nowrap; }
.x-nav a:hover, .x-links a:hover { text-decoration: none; color: var(--text); border-color: var(--edge); background: var(--glass); }
.x-links { display: flex; align-items: center; flex: none; border: 1px solid var(--edge); border-radius: 8px; background: var(--glass); }
.x-links a { display: flex; align-items: center; gap: 7px; color: var(--text); letter-spacing: .22em; border: 0; }
.x-links a + a { border-left: 1px solid var(--edge); border-radius: 0; }
.x-links a:hover { color: var(--cyan); background: none; }
.x-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); display: inline-block; animation: x-pulse 2s ease-in-out infinite; }
@keyframes x-pulse { 50% { opacity: .3; } }

/* buttons: hot = toward a download, ghost = elsewhere */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 6px;
  font: 700 .95rem var(--cond); letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--hot); color: var(--hot-ink); box-shadow: 0 0 24px rgba(255,181,71,.25); }
.btn-primary:hover { background: #ffc66e; }
.btn-ghost { border-color: var(--edge); background: var(--glass); color: var(--text); }
.btn-ghost:hover { color: var(--cyan); border-color: var(--edge-hi); box-shadow: 0 0 18px rgba(79,216,255,.18); }

/* hero */
.hero { position: relative; padding: 64px 0 80px; }
.hero-sky { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 85% 25%, rgba(79,216,255,.10), transparent 60%), radial-gradient(700px 400px at 10% 90%, rgba(255,59,71,.07), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow::before { content: "● "; color: var(--live); }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.9rem); }
.hero h1 span { display: block; white-space: nowrap; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.radar-window { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--edge);
  box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px rgba(79,216,255,.10); }
.radar-window::before, .radar-window::after { content: ""; position: absolute; z-index: 2; width: 22px; height: 22px; border: 0 solid var(--edge-hi); pointer-events: none; }
.radar-window::before { top: 40px; left: 8px; border-width: 1px 0 0 1px; }
.radar-window::after { bottom: 42px; right: 8px; border-width: 0 1px 1px 0; }
.window-bar { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; background: var(--glass-hi); border-bottom: 1px solid var(--edge); font: 500 .68rem var(--mono); letter-spacing: .12em; color: var(--dim); }
.window-bar b { font: 700 .78rem var(--cond); letter-spacing: .22em; color: var(--cyan); padding: 2px 7px; border: 1px solid var(--edge-hi); border-radius: 3px; }
.window-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-bar em { font-style: normal; display: flex; align-items: center; gap: 6px; color: var(--live); }
.radar-window video { width: 100%; aspect-ratio: 16 / 9; background: #0b0e12; }
.radar-window figcaption { padding: 9px 12px; font: 400 .7rem var(--mono); letter-spacing: .06em; color: var(--dim); border-top: 1px solid var(--edge); background: var(--glass); }

/* app grid */
.apps { padding: 72px 0; border-block: 1px solid var(--edge); background: linear-gradient(180deg, rgba(11,14,18,.6), rgba(5,6,8,.2)); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--dim); margin-bottom: 40px; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: unit; }
.app-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 22px 22px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--edge); color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; counter-increment: unit; }
.app-card::after { content: "0" counter(unit); position: absolute; top: 14px; right: 16px; font: 500 .68rem var(--mono); color: var(--faint); letter-spacing: .1em; }
.app-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--edge-hi); box-shadow: 0 0 28px rgba(79,216,255,.14); }
.app-card img { border-radius: 16px; margin-bottom: 18px; }
.app-card h3 { margin-bottom: .4em; }
.app-card p { color: var(--soft); flex: 1; font-size: .95rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 3px; font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tag-live { color: var(--ok); border: 1px solid rgba(61,255,162,.3); background: rgba(61,255,162,.06); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* feature sections */
.feature { padding: 88px 0; }
.feature + .feature { border-top: 1px solid var(--edge); }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-inner.reverse .feature-copy { order: 2; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-head img { border-radius: 14px; flex: none; }
.app-head h2 { margin: 0; }
.app-head .eyebrow { margin-bottom: 6px; }
.checks { list-style: none; padding: 0; margin: 24px 0; }
.checks li { position: relative; padding: 10px 0 10px 28px; color: var(--soft); border-top: 1px solid var(--edge); }
.checks li:last-child { border-bottom: 1px solid var(--edge); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 12px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 8px var(--glow), inset 0 0 0 3px var(--bg), inset 0 0 0 6px var(--cyan); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; }
.fine-note { margin: 14px 0 0; color: var(--dim); font: .74rem/1.5 var(--mono); letter-spacing: .03em; }
.feature-ravin { background: radial-gradient(800px 500px at 80% 50%, rgba(255,59,71,.07), transparent 65%); }
.feature-ravin-mobile { background: radial-gradient(800px 500px at 20% 50%, rgba(79,216,255,.07), transparent 65%); }
.feature-hm { background: radial-gradient(800px 500px at 20% 50%, rgba(61,255,162,.05), transparent 65%); }
.feature-art { display: grid; gap: 20px; }
.ravin-shot { margin: 0; position: relative; }
.ravin-shot img { width: 100%; border-radius: 10px; border: 1px solid var(--edge); box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; }
.phones img { border-radius: 22px; border: 2px solid #1c242e; box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.phones img:nth-child(2) { transform: translateY(-24px); }
.phones-framed img { border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }

/* store badges (official artwork, untouched) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; border-radius: 8px; transition: transform .15s; }
.badge:hover { text-decoration: none; transform: translateY(-1px); }
.badge img { height: 44px; width: auto; }
.badge-play img { height: 66px; margin: -11px; }

/* YouTube */
.feature-yt { background: radial-gradient(800px 400px at 50% 0%, rgba(255,59,71,.08), transparent 65%); }
.yt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.yt-head .lede { margin-bottom: 0; }
.btn-yt { background: #e62117; color: #fff; }
.btn-yt:hover { background: #ff3b30; }
.btn-yt svg { width: 18px; height: 18px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video { color: var(--text); }
.video:hover { text-decoration: none; }
.thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--edge); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s, filter .3s; filter: saturate(.85); }
.video:hover .thumb img { transform: scale(1.04); filter: none; }
.video:hover .thumb { border-color: var(--edge-hi); }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 10px; background: rgba(230,33,23,.92); }
.play::after { content: ""; position: absolute; left: 21px; top: 10px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.video-title { display: block; margin-top: 10px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.video:hover .video-title { color: var(--cyan); }

/* newsletter */
.closing { padding: 88px 0; text-align: center; border-top: 1px solid var(--edge);
  background: radial-gradient(600px 300px at 50% 100%, rgba(79,216,255,.10), transparent 70%); }
.closing h2 { max-width: 22ch; margin-inline: auto; }
.closing p { color: var(--soft); font-size: 1.05rem; margin-bottom: 28px; }
.signup { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.signup input[type=email] { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--edge); background: rgba(0,0,0,.4); color: var(--text); font: .95rem var(--mono); }
.signup input[type=email]:focus { outline: none; border-color: var(--edge-hi); box-shadow: 0 0 18px rgba(79,216,255,.18); }
.signup button { cursor: pointer; }
.signup button:disabled { opacity: .7; cursor: default; transform: none; }
.hp { position: absolute; left: -5000px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.closing .signup-msg { min-height: 1.6em; margin: 14px 0 0; font: .82rem var(--mono); }
.closing .signup-msg.ok { color: var(--ok); }
.closing .signup-msg.err { color: var(--live); }

/* footer */
.site-footer { position: relative; z-index: 1; padding: 44px 0 36px; border-top: 1px solid var(--edge); background: rgba(0,0,0,.35); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner > div { max-width: 600px; }
.footer-inner .x-word { font-size: 17px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font: 600 .86rem var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }
.fine { color: var(--dim); font-size: .82rem; margin-top: 14px; }
.copyright { margin-top: 28px; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--faint); }
.copyright a { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .x-grain, .x-mark .x-sweep, .x-dot { animation: none; }
}
/* The full "Join our storm chasing team" needs room next to the section links. */
@media (max-width: 1440px) { .x-nav a { padding: 7px 7px; letter-spacing: .1em; } }
@media (max-width: 1340px) { .j-long { display: none; } }
@media (max-width: 1100px) { .j-long { display: inline; } }
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .x-nav { display: none; }
  .x-links { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-inner, .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-inner.reverse .feature-copy { order: 0; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 64px 0; }
}
@media (max-width: 760px) {
  .x-bar { padding: 14px 16px 10px; gap: 10px; }
  .x-word { font-size: 16px; }
  .x-links a { padding: 7px 8px; letter-spacing: .14em; font-size: .78rem; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
}
@media (max-width: 760px) { .j-long { display: none; } }
@media (max-width: 560px) {
  .x-bar { flex-wrap: wrap; }
  .x-links { order: 3; flex: 1 1 100%; margin-left: 0; }
  .x-links a { flex: 1 1 auto; justify-content: center; }
  .x-word { gap: .3em; letter-spacing: .2em; font-size: 14px; }
  .x-links a { padding: 6px 7px; letter-spacing: .1em; gap: 5px; }
}
@media (max-width: 480px) {
  .x-mark { width: 26px; height: 26px; }
  .phones { gap: 8px; }
  .phones img { border-radius: 14px; }
  .phones-framed img { border-radius: 0; }
  .phones img:nth-child(2) { transform: translateY(-12px); }
}

/* ---- Light theme ------------------------------------------------------------------------------
   <html data-mode="light"> from /assets/mode.js (sitewide choice, dark by default). Same palette as the
   shop's light theme: every text color 5.2:1 or better on the light page (WCAG AA is 4.5:1). */
html[data-mode="light"] {
  --bg: #eef2f5; --bg2: #ffffff;
  --glass: rgba(255, 255, 255, .82); --glass-hi: rgba(255, 255, 255, .96);
  --edge: rgba(20, 45, 70, .16); --edge-hi: rgba(0, 102, 138, .45);
  --text: #0e1620; --soft: #2c3844; --dim: #45515e; --faint: #56626f;
  --cyan: #00668a; --glow: rgba(0, 102, 138, .2);
  --live: #b8132a; --ok: #0a6e3f;
  color-scheme: light;
}
html[data-mode="light"] body { background: radial-gradient(120% 80% at 70% -10%, #ffffff 0%, var(--bg) 55%) fixed, var(--bg); }
html[data-mode="light"] .x-bar { background: linear-gradient(to bottom, rgba(244, 247, 250, .95), rgba(244, 247, 250, .82)); }
@media (hover: none), (max-width: 760px) { html[data-mode="light"] .x-bar { background: rgba(244, 247, 250, .98); } }
html[data-mode="light"] .x-frame i { border-color: rgba(20, 45, 70, .3); }
html[data-mode="light"] .x-word span { text-shadow: none; }
html[data-mode="light"] .apps { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(238, 242, 245, .2)); }
html[data-mode="light"] .signup input[type=email] { background: #ffffff; }
html[data-mode="light"] .site-footer { background: rgba(255, 255, 255, .5); }
html[data-mode="light"] .radar-window { box-shadow: 0 24px 50px rgba(20, 40, 60, .18); }
html[data-mode="light"] .ravin-shot img, html[data-mode="light"] .phones img { box-shadow: 0 20px 40px -20px rgba(20, 40, 60, .35); }

/* Theme switch (footer) */
.theme-toggle { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.theme-toggle b { font-weight: 500; color: var(--text); }
