/* RainVoid marketing site — same tokens as the app: brand_primary #1565C0, brand_light
   #64B5F6, surface_dark #1E1E1E, success_green #2E7D32. No trackers, no third-party
   requests: fonts are served from this site. */
@font-face { font-family: "Oswald"; font-weight: 200 700; font-display: swap; src: url("fonts/Oswald-VariableFont_wght.ttf") format("truetype"); }

:root {
  --bg: #121212; --surface: #1E1E1E; --surface-2: #2A2A2A; --line: #333;
  --ink: #FFFFFF; --ink-dim: rgba(255,255,255,.78); --ink-mute: rgba(255,255,255,.58);
  --brand: #1565C0; --brand-light: #64B5F6; --green: #2E7D32; --slate: #78909C;
  --radius: 12px; --maxw: 1200px; --maxw-wide: 1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Oswald", "Segoe UI", Roboto, sans-serif; font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--brand-light); margin-bottom: .6em; }
.dim { color: var(--ink-dim); }
.mute { color: var(--ink-mute); font-size: .95rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18,18,18,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.35rem; }
.brand img { width: 34px; height: 34px; }
.nav nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav nav a { color: var(--ink-dim); font-size: .95rem; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; border: 0; }
.btn:hover { background: #1976D2; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .nav nav a.link { display: none; } }

/* hero (owner 2026-09-14, rendering 12 B): the words in the left 40 %, the ride video running to
   the right edge of the screen; on phones the video sits edge to edge under the words, no gap. */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero .wrap { max-width: none; padding-left: max(32px, calc((100vw - var(--maxw-wide)) / 2 + 32px)); padding-right: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero .wrap > div:first-child { padding: 12px 0; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; max-width: 9.5em; }
.hero p.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-dim); max-width: 30em; margin-bottom: 0; }
.hero .mute { max-width: 30em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 30px 0 14px; }
.ride { display: flex; flex-direction: column; }
.ride .clip { width: 100%; max-width: 100%; height: auto; display: block; background: #111; border-radius: 16px 0 0 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
@media (max-width: 860px) {
  .hero { padding: 28px 0 0; }
  .hero .wrap { grid-template-columns: 1fr; padding: 0 20px; gap: 16px; }
  .hero .wrap > div:first-child { padding: 0; }
  .hero .mute { margin-bottom: 0; }
  .ride { margin: 0 -20px; }
  .ride .clip { border-radius: 0; box-shadow: none; }
}

/* number strip */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.numbers .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; }
.num { padding: 30px 28px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { display: block; font-family: "Oswald", sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--brand-light); line-height: 1; margin-bottom: 8px; }
.num span { color: var(--ink-dim); font-size: .95rem; }
@media (max-width: 720px) { .num { border-right: 0; border-bottom: 1px solid var(--line); } }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); }
@media (max-width: 860px) { .wrap { padding: 0 20px; } section { padding: 56px 0; } }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { color: var(--ink); margin-bottom: .35em; }
.card p { color: var(--ink-dim); margin: 0; font-size: 1rem; }
.swatch { display: inline-block; width: 26px; height: 8px; border-radius: 4px; vertical-align: middle; margin-right: 8px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 22px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); font-family: "Oswald", sans-serif; font-weight: 700; color: var(--brand-light); font-size: 1.6rem; display: block; margin-bottom: 6px; }
.step p { color: var(--ink-dim); margin: 0; font-size: 1rem; }

/* gallery: screens at a natural phone size, never stretched or cropped */
.gallery { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.shot { width: 250px; margin: 0; }
.shot .frame { border-radius: 26px; border: 8px solid #0d0d0d; box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px #2a2a2a; overflow: hidden; background: #000; }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 12px 4px 0; color: var(--ink-dim); font-size: .92rem; line-height: 1.4; }

/* pitch list */
.pitch { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 24px; }
.pitch li { list-style: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink-dim); }
.pitch li b { color: var(--ink); display: block; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }
.pitch { padding: 0; }

/* legal */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 20px 90px; }
.legal h1 { margin-bottom: .2em; }
.legal h2 { font-size: 1.15rem; font-weight: 500; margin: 2em 0 .5em; color: var(--brand-light); }
.legal p { color: var(--ink-dim); }
.legal .lead { font-size: 1.1rem; color: var(--ink); }

/* home page (moved out of index.html on 2026-09-14: the site's CSP is style-src 'self', so an
   inline <style> block or a style attribute NEVER applies in a real browser — every rule lives
   here; renders of the local files must be checked against the live URL in a real browser) */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feat.flip .pic { order: 2; }
.feat > div:not(.pic) { padding: 0 8px; }
.feat h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .45em; }
.feat p { color: var(--ink-dim); font-size: 1.12rem; line-height: 1.6; max-width: 30em; margin: 0; }
.feat .n { font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--brand-light); margin-bottom: .6em; }
.pic img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px #2a2a2a; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 20px; max-width: 34em; }
.rules div { color: var(--ink-dim); font-size: 1rem; line-height: 1.5; }
.rules b { display: block; color: var(--ink); font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.08rem; letter-spacing: .02em; margin-bottom: 3px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile img { width: 100%; height: 240px; object-fit: cover; object-position: top; display: block; }
/* whole = the picture at its own height, nothing cropped (owner 2026-09-19: the Weather-changed card and the
   plan rows were cut at 240 px; the three top-row crops share a 1.28 aspect, so the row stays level) */
.tile img.whole { height: auto; }
.tile .t { padding: 22px 24px 26px; }
.tile h3 { font-size: 1.25rem; font-weight: 500; color: var(--ink); margin: 0 0 .4em; }
.tile p { color: var(--ink-dim); font-size: 1rem; line-height: 1.55; margin: 0; }
.strip3 { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip3 .wrap { display: block; }
/* THE CONFIDENCE BLOCK (owner 2026-09-18, from the Instagram-browser screenshot: the long tile filled the
   phone): the rating runs full width above the three numbers — the number, a short claim, the proof line,
   and the definition in small print. Never "nightly"; the numbers between the markers are filled by
   HelloWorldApp/tools/ride_count.py. */
.conf { display: grid; grid-template-columns: auto 1fr; gap: 8px 36px; align-items: center; padding: 34px 28px 28px; border-bottom: 1px solid var(--line); }
.conf b { font-family: "Oswald", sans-serif; font-size: 4.6rem; font-weight: 700; color: var(--brand-light); line-height: 1; }
.conf p { margin: 0; }
.conf .claim { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: var(--ink); letter-spacing: .01em; }
.conf .proof { margin-top: 6px; font-size: 1.05rem; color: var(--ink-dim); }
.conf .proof .n { color: var(--brand-light); font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.35em; letter-spacing: .01em; }   /* the ride count in the brand blue (owner 2026-09-18) */
.conf .fine { margin-top: 10px; font-size: .8rem; line-height: 1.45; color: var(--ink-mute); max-width: 58em; }
.conf .real:empty { display: none; } /* the real-ride line appears only past the site's floor */
.three { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .conf { grid-template-columns: 1fr; gap: 10px; padding: 28px 20px 24px; }
  .conf b { font-size: 3.8rem; }
  .conf .claim { font-size: 1.35rem; }
  .three { grid-template-columns: 1fr; }
}
section.alt.deep { padding-top: 20px; }
.builder { padding: 72px 0; border-top: 1px solid var(--line); }
.builder .in { max-width: 44em; }
.builder p { color: var(--ink-dim); font-size: 1.15rem; line-height: 1.6; max-width: 36em; }
.final { text-align: center; padding: 88px 0; }
.cta2 { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
@media (max-width: 820px) { .feat { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } .feat > div:not(.pic) { padding: 0; } .feat.flip .pic { order: 0; } .tiles { grid-template-columns: 1fr; } .rules { grid-template-columns: 1fr; } .builder { padding: 48px 0; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--ink-mute); font-size: .9rem; }
footer .wrap { display: grid; gap: 14px; }
footer a { color: var(--ink-dim); }
.attr { font-size: .85rem; }
