/* Revive Portal — marketing site
   Brand tokens mirror portal/app/globals.css */

:root {
  --ink: #1a202c;
  --ink-soft: #2d3748;
  --slate: #4a5568;
  --slate-light: #718096;
  --amber: #d69e2e;
  --amber-light: #ebb13a;
  --surface: #f7fafc;
  --surface-alt: #edf2f7;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 32, 44, 0.06), 0 1px 3px rgba(26, 32, 44, 0.08);
  --shadow-md: 0 10px 30px rgba(26, 32, 44, 0.10);
  --shadow-lg: 0 24px 60px rgba(26, 32, 44, 0.16);
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  border-radius: 8px; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-accent { color: var(--amber); }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 550;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.btn { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--slate-light); background: var(--surface); }

.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

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

.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 76px);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(214, 158, 46, 0.16), transparent 60%),
    linear-gradient(180deg, var(--white), var(--surface));
}

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

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--amber);
}

.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--slate); max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; padding: 0; margin: 0;
  color: var(--slate); font-size: 0.92rem;
}
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber);
}

/* Mock browser */

.hero-visual { perspective: 1200px; }
.mock-window {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotateY(-4deg) rotateX(1.5deg);
}
.mock-bar {
  display: flex; gap: 6px; padding: 12px 14px;
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e0; }
.mock-bar span:first-child { background: #f6ad55; }

.mock-body { display: grid; grid-template-columns: 92px 1fr; min-height: 300px; }
.mock-side {
  background: var(--ink); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 12px;
}
.mock-side .mock-line { background: rgba(255, 255, 255, 0.22); }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }

.mock-line { height: 8px; border-radius: 4px; background: var(--border); }
.mock-line.strong { height: 11px; background: #cbd5e0; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.mock-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 9px;
}
.mock-pill-row { display: flex; gap: 6px; margin-top: 2px; }
.pill {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--slate);
}
.pill-amber { background: rgba(214, 158, 46, 0.16); color: #975a16; }

.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-tile {
  aspect-ratio: 1 / 1; border-radius: 8px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
}
.mock-tile:nth-child(2) { background: linear-gradient(135deg, #fef3c7, #f6d38a); }
.mock-tile:nth-child(3) { background: linear-gradient(135deg, #e6fffa, #b2f5ea); }

/* ---------- Strip ---------- */

.strip { background: var(--ink); color: #e2e8f0; }
.strip-inner { padding: 22px 24px; text-align: center; }
.strip p { margin: 0; font-size: 0.98rem; color: #cbd5e0; }

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

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-sub { color: var(--slate); margin: 0; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(214, 158, 46, 0.14); margin-bottom: 16px;
}
.card p { color: var(--slate); margin: 0; font-size: 0.96rem; }

/* Steps */

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  font-weight: 800; font-size: 0.95rem; margin-bottom: 14px;
}
.step p { color: var(--slate); margin: 0; font-size: 0.96rem; }

/* Audience */

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-item {
  border-left: 3px solid var(--amber); padding: 4px 0 4px 20px;
}
.audience-item p { color: var(--slate); margin: 0; font-size: 0.96rem; }

/* Plans */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; position: relative;
}
.plan-featured {
  border-color: var(--ink); box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--amber); color: var(--ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin: 0;
}
.plan-for { color: var(--slate); font-size: 0.9rem; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  color: var(--ink-soft); font-size: 0.95rem;
}
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--amber); font-weight: 800;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--amber); font-weight: 800; font-size: 1.2rem; line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); margin: 12px 0 0; font-size: 0.97rem; }

/* CTA */

.cta {
  background: var(--ink); color: var(--white);
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { color: #cbd5e0; margin: 0; max-width: 40em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-primary { background: var(--amber); color: var(--ink); }
.cta .btn-primary:hover { background: var(--amber-light); }
.cta .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Footer */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 28px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--slate); font-size: 0.92rem; margin: 8px 0 0; max-width: 34em; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--slate); font-size: 0.93rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { padding-top: 20px; }
.footer-legal p { margin: 0; color: var(--slate-light); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; }
  .mock-window { transform: none; }
  .cards, .steps, .audience, .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { transform: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; display: none;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--surface-alt); }
  .primary-nav a.btn { margin-top: 14px; border-bottom: 0; }
  .cards, .steps, .audience, .plans { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
}
