/* Ridgelight — one stylesheet, no external requests.
   Nothing here loads a font, a script or a tracker, which keeps the site fast
   and keeps the privacy policy honest. */

:root {
  --bg: #0b0906;
  --panel: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(245, 176, 66, 0.38);
  --text: #f2ece4;
  --muted: #b1a394;
  --accent: #f5b042;
  --accent-ink: #2a1902;
  --radius: 16px;
  --container: 1020px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The glow of a sun still behind the ridge, drawn rather than downloaded. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 42vh at 62% -6vh, rgba(245, 176, 66, 0.20), transparent 70%),
    radial-gradient(90vw 50vh at 20% -14vh, rgba(196, 84, 22, 0.14), transparent 72%);
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 9, 6, 0.74);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-nav { display: flex; gap: 22px; font-size: 0.93rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .site-nav { gap: 15px; font-size: 0.88rem; }
  .site-nav .hide-narrow { display: none; }
}

/* ---------- Type ---------- */

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 660;
}

h1 { font-size: clamp(2.05rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.05rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }
a { color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--border-bright); }

/* Honest while the app is still in review, and one attribute from becoming a link. */
.btn-pending { background: var(--panel); border-color: var(--border-bright); color: var(--text); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-note { font-size: 0.86rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Hero ---------- */

.hero { padding: clamp(52px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); }

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

@media (max-width: 840px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.hero-art { display: flex; justify-content: center; }

.phone {
  width: 100%;
  max-width: 280px;
  border-radius: 40px;
  padding: 8px;
  background: linear-gradient(160deg, #3a3126, #15110c);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }

/* ---------- Sections ---------- */

section { padding: clamp(44px, 7vw, 78px) 0; }
.rule { border-top: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: clamp(26px, 4vw, 40px); }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  padding: clamp(32px, 5vw, 52px) 0;
}

.feature + .feature { border-top: 1px solid var(--border); }
.feature-art { display: flex; justify-content: center; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { order: -1; }
}

@media (min-width: 761px) {
  .feature.reverse .feature-text { order: 2; }
}

/* ---------- Lists ---------- */

.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li {
  position: relative;
  padding-left: 27px;
  margin-bottom: 11px;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.ticks strong { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Panel ---------- */

.panel {
  background: linear-gradient(180deg, rgba(245, 176, 66, 0.07), rgba(245, 176, 66, 0.02));
  border: 1px solid var(--border-bright);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
}

.price-tag {
  font-size: 2rem;
  font-weight: 660;
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}

.price-tag span { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 72ch; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Legal and support pages ---------- */

.legal {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) 24px clamp(52px, 8vw, 88px);
}

.legal h1 { margin-bottom: 12px; }

.legal h2 {
  font-size: 1.28rem;
  margin-top: 2.2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
}

.legal h3 { margin-top: 1.7em; font-size: 1.04rem; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.2em; }
.legal ul { color: var(--muted); padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal p { color: var(--muted); }
.legal p strong, .legal li strong { color: var(--text); }

.legal .summary-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 2.2em;
}

.legal .summary-box p:last-child { margin-bottom: 0; }

.back-link { display: inline-block; margin-bottom: 24px; font-size: 0.92rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 38px 0 50px;
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  justify-content: space-between;
  align-items: center;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
