/* page.css — marketing landing + legal + support, in Richard Slots brand colors. */

/* ---------- Base reset (self-contained; landing does not load styles.css) ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  /* Transparent so the fixed green .app-bg layer (z-index:-1) shows through the
     whole page. An opaque body background here was covering it → site looked black. */
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; }
html { scroll-behavior: smooth; }

/* Marketing/legal background — predominantly emerald, fading to dark emerald
   (matches the in-app gradient). Self-contained so it works even if tokens.css
   loads after page.css. Only these pages load page.css → never touches the lobby. */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px circle at 50% -6%, rgba(22, 184, 110, 0.65), transparent 58%),
    radial-gradient(820px circle at 92% 108%, rgba(229, 169, 59, 0.10), transparent 60%),
    linear-gradient(180deg, #0F6B43 0%, #0C5535 45%, #0A4128 78%, #062B1B 100%);
}

/* Brand lion logo (replaces the old "R" gem). */
.logo-img { width: 34px; height: 34px; object-fit: contain; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(var(--space-md), 4vw, 56px);
  /* full-width header */ margin: 0 auto;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav-wrap { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(7,36,26,0.92), rgba(7,36,26,0)); }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -0.02em; }
.nav .brand .gem {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1200;
  box-shadow: 0 0 16px var(--glow-gold);
}
.nav .brand b { color: var(--gold); }
.nav .links { display: flex; gap: var(--space-lg); font-size: 14px; color: var(--text-secondary); align-items: center; }
.nav .links a:hover { color: var(--text-primary); }
.nav .links .cta-sm { padding: 9px 16px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1200; font-weight: 800; }
@media (max-width: 560px) { .nav .links a:not(.cta-sm) { display: none; } }

/* ---------- Hero ---------- */
.hero-sec { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(40px, 9vw, 96px) var(--space-md) 40px; text-align: center; }
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--specular-border);
  font-size: 13px; font-weight: 600; color: var(--gold-bright); margin-bottom: var(--space-lg);
}
.eyebrow-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 8px var(--emerald-bright); animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-sec h1 {
  font-size: clamp(38px, 9vw, 76px); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
}
.hero-sec h1 .grad { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sec .sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-secondary); max-width: 600px; margin: 0 auto var(--space-lg); line-height: 1.5; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: var(--radius-control);
  background: #fff; color: #000; font-weight: 800; font-size: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4); transition: transform 0.2s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .apple { font-size: 26px; }
.store-badge .small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1; }
.trust { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }
.trust .item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.trust .item svg { width: 16px; height: 16px; color: var(--gold); }
.disclaimer { margin-top: var(--space-md); font-size: 12px; color: var(--text-secondary); }

/* Hero glow backdrop */
.hero-glow { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; z-index: -1;
  background: radial-gradient(circle, rgba(10,122,71,0.35), transparent 65%); filter: blur(20px); pointer-events: none; }

/* ---------- Device frame ---------- */
.device {
  position: relative; width: 260px; aspect-ratio: 402 / 874; flex: none;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a2f33, #0d0f10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.device::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 14px; z-index: 3; }
.device .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #07241A; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- Sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--space-md); }
.section-title { text-align: center; margin-bottom: var(--space-xl); }
.section-title h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 var(--space-sm); }
.section-title p { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* Feature grid */
.features { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--glass-bg); border: 1px solid var(--specular-border); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); transition: transform 0.25s, box-shadow 0.25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 24px var(--glow-gold); }
.feature .ico { width: 50px; height: 50px; border-radius: var(--radius-control); display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, rgba(10,122,71,0.4), rgba(229,169,59,0.2)); border: 1px solid var(--specular-border); margin-bottom: var(--space-md); }
.feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Screenshot showcase — all 5 frames in one full-width row (matches reference) */
#screens { max-width: 1340px; }
.showcase { display: flex; gap: clamp(10px, 1.8vw, 24px); justify-content: center; align-items: flex-start; padding: var(--space-md) 0; scrollbar-width: none; }
.showcase::-webkit-scrollbar { display: none; }
.showcase .device { flex: 1 1 0; width: auto; min-width: 0; max-width: 250px; }
/* Mobile: fall back to a horizontal snap-scroll */
@media (max-width: 760px) {
  .showcase { overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; }
  .showcase .device { flex: none; width: 210px; max-width: none; scroll-snap-align: center; }
}

/* Split highlight */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.split .copy h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 var(--space-md); }
.split .copy .row { display: flex; gap: 14px; margin-bottom: var(--space-md); }
.split .copy .row .dot { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1200; font-weight: 900; font-size: 14px; }
.split .copy .row .t { font-weight: 700; font-size: 16px; }
.split .copy .row .s { color: var(--text-secondary); font-size: 14px; margin-top: 2px; line-height: 1.5; }
.split .visual { display: flex; justify-content: center; }

/* Provider strip */
.providers { display: flex; gap: var(--space-lg); justify-content: center; align-items: center; flex-wrap: wrap; opacity: 0.85; }
.providers .p { padding: 12px 22px; border-radius: var(--radius-pill); background: var(--glass-bg); border: 1px solid var(--specular-border); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.providers .p b { color: var(--gold); }

/* Final CTA */
.final-cta { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) var(--space-md); }
.final-cta .card { padding: clamp(32px, 6vw, 64px) var(--space-lg); border-radius: var(--radius-card); background: linear-gradient(150deg, rgba(10,122,71,0.35), rgba(8,9,10,0.4)); border: 1px solid var(--specular-border); box-shadow: 0 0 40px var(--glow-emerald); }
.final-cta h2 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 var(--space-sm); }
.final-cta p { color: var(--text-secondary); margin: 0 0 var(--space-lg); }

/* ---------- Legal / readable ---------- */
.page { max-width: 760px; margin: 0 auto; padding: var(--space-xl) var(--space-md) 80px; }
.legal h1 { font-size: 30px; font-weight: 900; margin: 0 0 var(--space-xs); }
.legal .updated { color: var(--text-secondary); font-size: 13px; margin-bottom: var(--space-lg); }
.legal h2 { font-size: 19px; margin: var(--space-lg) 0 var(--space-sm); color: var(--gold-bright); }
.legal p, .legal li { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--gold); }

/* Support form */
.form { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px var(--space-md); border-radius: var(--radius-control); background: var(--glass-bg); border: 1px solid var(--specular-border); color: var(--text-primary); font-family: inherit; font-size: 15px; outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.btn { padding: 15px 24px; border-radius: var(--radius-control); font-weight: 800; font-size: 16px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #2a1c00; box-shadow: 0 0 18px var(--glow-gold); transition: transform 0.2s; justify-self: start; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.6; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--emerald-bright); }
.form-status.err { color: #ff6b6b; }

/* ---------- Footer ---------- */
footer { max-width: 1080px; margin: 0 auto; padding: var(--space-xl) var(--space-md); color: var(--text-secondary); font-size: 13px; border-top: 1px solid var(--specular-border); }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-lg); margin-bottom: var(--space-lg); }
footer .brand { font-weight: 900; font-size: 18px; color: var(--text-primary); }
footer .brand b { color: var(--gold); }
footer .row { display: flex; gap: var(--space-md); flex-wrap: wrap; }
footer a:hover { color: var(--text-primary); }
footer .fine { opacity: 0.7; line-height: 1.6; }
