/* Version: 1.1.0 | Updated: 2026-10-12
   Changes: PRE-LAUNCH block — one switch (body.prelaunch): .live hides, .soon shows, empty media boxes hide (Ray 2026-10-12)
   prev: new — one stylesheet for the landing page and the legal pages: system font, monochrome like the app icon,
   light/dark from the visitor's Mac, no web fonts, no frameworks (fast first paint). */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --btn: #1d1d1f;
  --btn-text: #ffffff;
  --todo: #fff3bf;
  --radius: 18px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #161618;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --btn: #f5f5f7;
    --btn-text: #0b0b0c;
    --todo: #5c4a00;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* A placeholder that must be filled before launch — impossible to miss in a preview. */
.todo { background: var(--todo); border-radius: 4px; padding: 0 4px; }

/* ── PRE-LAUNCH (Ray 2026-10-12: "make the rayto.app website active, it shows all the features but nobody can't buy
   anything yet. coming soon") — ONE SWITCH: class "prelaunch" on <body>. On: .live controls (download, buy) hide,
   .soon controls show, media boxes still holding a .todo note and the checkout line hide. Remove the class at launch. */
.soon { display: none; }
body.prelaunch .live { display: none; }
body.prelaunch .btn.soon { display: inline-flex; cursor: default; opacity: .6; }
body.prelaunch .btn.soon:hover { opacity: .6; }
body.prelaunch a.btn.soon { cursor: pointer; opacity: 1; }
body.prelaunch a.btn.soon:hover { opacity: .88; }
body.prelaunch span.soon:not(.btn) { display: inline; }
body.prelaunch p.soon { display: block; }
body.prelaunch .film:has(.todo), body.prelaunch .shot:has(.todo), body.prelaunch .fine:has(.todo) { display: none; }

/* ── Header ── */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--text); }
nav.links a.btn { color: var(--btn-text); }   /* the nav's muted link colour must not grey out the button */

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font-weight: 600; text-decoration: none; border: 1px solid var(--btn);
}
.btn.small { padding: 7px 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn:hover { opacity: .88; }

/* ── Sections ── */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6.4vw, 68px); text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.kicker { font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }

/* ── Hero ── */
.hero { padding-top: 72px; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 14px; }
.fine { font-size: 14px; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; }
.trust li::before { content: "✓ "; }

/* The film of the app: a looping, muted clip (or its placeholder until it exists). */
.film {
  margin: 56px auto 0; max-width: 960px; aspect-ratio: 16 / 10;
  border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px;
}
.film video { width: 100%; height: 100%; object-fit: cover; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--btn); color: var(--btn-text); font-weight: 700; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .shot {
  aspect-ratio: 4 / 3; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line);
  display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; padding: 10px;
}
.feature p { margin: 0; color: var(--muted); }

/* ── Quotes (shown once there are real ones) ── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; }
.quote figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ── Pricing ── */
.price-card {
  max-width: 460px; margin: 44px auto 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 26px; padding: 36px; text-align: center;
}
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.price-card li::before { content: "✓  "; font-weight: 700; }
.price-card .btn { width: 100%; }
.price-card .btn + .btn { margin-top: 10px; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .copy { margin-left: auto; }

/* ── Legal pages ── */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--text); }
.draft-banner { background: var(--todo); border-radius: 12px; padding: 12px 16px; margin-bottom: 28px; font-size: 15px; }

/* ── Phones ── */
@media (max-width: 820px) {
  .steps, .features, .quotes { grid-template-columns: 1fr; }
  nav.links a:not(.btn) { display: none; }
  br.desk { display: none; }   /* phones: the headline wraps on its own, balanced */
  section { padding: 64px 0; }
  footer .copy { margin-left: 0; }
}
