/* Rykie landing page. The app's own palette: action teal, deep teal, the
   orange of the logo, and Quicksand throughout. */

:root {
  --teal: #10bfb0;
  --teal-deep: #128c7e;
  --teal-ink: #0b6f65;
  --orange: #ff9f45;
  --red: #e53935;
  --ink: #16211f;
  --ink-soft: #4b5a57;
  --line: #e3ebe9;
  --bg: #ffffff;
  --tint: #f3f8f7;
  --card: #ffffff;
  --hero-a: #11403b;
  --hero-b: #0f1b1c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 40, 37, 0.08);
  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f1ef;
    --ink-soft: #a8b8b5;
    --line: #22302e;
    --bg: #0e1615;
    --tint: #121d1c;
    --card: #152120;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 14px; font-weight: 700; text-decoration: none;
  padding: 11px 20px; font-size: 15px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 4px 0 var(--teal-deep);
}
.btn-primary:hover { background: #12cdbd; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(16, 191, 176, 0.1); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--teal); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-large { padding: 15px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink);
}
.brand img {
  background: #fff; border-radius: 50%; padding: 3px;
  box-shadow: 0 0 0 1px var(--line);
}
.main-nav { display: flex; gap: 6px; margin-right: auto; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 10px;
}
.main-nav a:hover { color: var(--ink); background: rgba(16, 191, 176, 0.08); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; padding: 10px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 18% 10%, var(--hero-a), transparent 70%),
    linear-gradient(160deg, #0f2624 0%, var(--hero-b) 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px;
  align-items: center; padding-top: 72px; padding-bottom: 88px;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px;
  border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: #bff3ec; background: rgba(16, 191, 176, 0.14);
  border: 1px solid rgba(16, 191, 176, 0.35);
}
.hero h1 {
  font-size: clamp(34px, 4.1vw, 52px); line-height: 1.08; margin: 0 0 22px;
  font-weight: 700; letter-spacing: -0.5px;
}
.accent-line { position: relative; color: #fff; }
@media (min-width: 981px) { .accent-line { white-space: nowrap; } }
.accent-line::after {
  content: ""; position: absolute; left: 2px; bottom: -10px;
  width: 96px; height: 5px; border-radius: 3px; background: var(--orange);
}
.lead { font-size: 18.5px; color: #c7d6d3; max-width: 560px; margin: 30px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-center { justify-content: center; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;
  padding: 0; margin: 26px 0 0; color: #a9bdb9; font-weight: 600; font-size: 14.5px;
}
.hero-points li::before { content: "✓"; color: var(--teal); margin-right: 8px; font-weight: 700; }

.hero-visual { position: relative; height: 540px; }
.phone {
  border-radius: 34px; overflow: hidden; background: #fff;
  border: 8px solid #0b1211;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
}
.hero-visual .phone { position: absolute; width: 220px; }
.phone-back  { left: 2%;  top: 34px;  transform: rotate(-7deg); opacity: .9; }
.phone-front { left: 30%; top: 0;     z-index: 2; width: 240px !important; }
.phone-side  { left: 60%; top: 44px;  transform: rotate(6deg); opacity: .9; }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stats { border-bottom: 1px solid var(--line); background: var(--bg); }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-top: 34px; padding-bottom: 34px; text-align: center;
}
.stats strong { display: block; font-size: 38px; line-height: 1.1; color: var(--teal-deep); }
.stats span { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
@media (prefers-color-scheme: dark) { .stats strong { color: var(--teal); } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p { color: var(--ink-soft); font-size: 17.5px; margin: 0; }
.kicker {
  color: var(--teal-deep) !important; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; font-size: 13px !important; margin: 0 0 10px !important;
}
@media (prefers-color-scheme: dark) { .kicker { color: var(--teal) !important; } }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.feature p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(16, 191, 176, 0.12); margin-bottom: 16px;
}
.icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--teal-deep);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon svg circle { fill: var(--teal-deep); stroke: none; }
.icon svg circle[r="4"] { fill: none; stroke: var(--teal-deep); }
@media (prefers-color-scheme: dark) {
  .icon svg { stroke: var(--teal); }
  .icon svg circle { fill: var(--teal); }
  .icon svg circle[r="4"] { fill: none; stroke: var(--teal); }
}

.showcase {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center;
}
.showcase + .showcase { margin-top: 110px; }
.showcase.reverse { grid-template-columns: 1.2fr 0.8fr; }
.showcase.reverse .showcase-media { order: 2; }
.showcase-media { display: flex; justify-content: center; }
.showcase-media .phone { width: 280px; }
.showcase-copy p { color: var(--ink-soft); font-size: 17px; }
.chapters {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px;
  counter-reset: ch;
}
.chapters li { counter-increment: ch; font-weight: 600; font-size: 15px; }
.chapters li::before {
  content: counter(ch); display: inline-grid; place-items: center;
  width: 24px; height: 24px; margin-right: 10px; border-radius: 7px;
  background: rgba(16,191,176,.14); color: var(--teal-deep);
  font-size: 12.5px; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .chapters li::before { color: var(--teal); } }
.text-link { color: var(--teal-deep); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .text-link { color: var(--teal); } }

.drill-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.drill-cloud span {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  background: var(--card); border: 1px solid var(--line);
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 880px; margin: 0 auto;
}
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan h3 { font-size: 24px; }
.plan-sub { color: var(--ink-soft); margin: 0 0 18px; }
.plan-featured { border: 2px solid var(--teal); }
.badge {
  position: absolute; top: -14px; right: 24px; margin: 0;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 999px;
}
.checks { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.plan-prices { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line, rgba(128,128,128,.25)); }
.plan-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line, rgba(128,128,128,.25)); font-weight: 600; }
.plan-prices em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.plan-prices strong { font-size: 18px; }
.plan-note a { color: inherit; text-decoration: underline; }
.plan-note { color: var(--ink-soft); font-size: 13.5px; text-align: center; margin: 12px 0 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 4px 22px; margin-bottom: 12px;
}
summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 17px;
  padding: 16px 0; display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal-deep); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: 0 0 18px; }
details a { color: var(--teal-deep); font-weight: 700; }

/* ── Final CTA + footer ──────────────────────────────────────────────── */
.final-cta {
  color: #fff; text-align: center; padding: 88px 0;
  background:
    radial-gradient(700px 400px at 50% 0%, var(--hero-a), transparent 75%),
    var(--hero-b);
}
.final-inner img {
  margin: 0 auto 18px; background: #fff; border-radius: 50%; padding: 6px;
}
.final-cta p { color: #a9bdb9; margin: 0 0 26px; font-size: 17px; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-brand p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.footer-brand .brand { font-size: 19px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.footer-links a:hover { color: var(--ink); }
.copyright { color: var(--ink-soft); font-size: 14px; margin: 0; width: 100%; }

/* ── Reveal on scroll (only when JS is running) ──────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Smaller screens ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 40px; }
  .hero-visual { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-visual .phone { width: 200px; }
  .phone-front { width: 220px !important; left: 30%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 40px; }
  .showcase.reverse .showcase-media { order: 0; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; font-size: 16px; }
  .menu-toggle { display: block; }
  .hide-sm { display: none; }
  .header-row { gap: 12px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; }
  .hero-visual .phone { width: 160px; border-width: 6px; border-radius: 26px; }
  .phone-front { width: 180px !important; left: 27%; }
  .phone-back { left: 0; }
  .phone-side { left: auto; right: 0; }
  .lead { font-size: 17px; }
  .btn-large { width: 100%; }
  .footer-links { margin-left: 0; }
}
