/* Home Ledger — sage / OLED design system
   Mobile-first, accessible, no build step */

:root {
  --bg: #0c0f0d;
  --bg-elevated: #141a16;
  --bg-card: #1a221c;
  --bg-card-hover: #212a23;
  --sage: #8fbc8f;
  --sage-bright: #a8d4a8;
  --sage-dim: #5a7d5a;
  --sage-glow: rgba(143, 188, 143, 0.18);
  --sage-glow-strong: rgba(143, 188, 143, 0.35);
  --text: #e8efe8;
  --text-muted: #9aab9a;
  --text-faint: #6b7a6b;
  --border: rgba(143, 188, 143, 0.14);
  --border-strong: rgba(143, 188, 143, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 1100px;
  --narrow: 720px;
  --header-h: 64px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--sage-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #c5e8c5; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--sage);
  color: #0c0f0d;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.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;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 15, 13, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--sage-bright), var(--sage-dim));
  box-shadow: 0 0 20px var(--sage-glow-strong);
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover { color: var(--text); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.mobile-nav a:hover { background: var(--bg-card); }

.mobile-nav .btn { margin-top: 0.5rem; text-align: center; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--sage);
  color: #0c0f0d;
}

.btn-primary:hover {
  background: var(--sage-bright);
  color: #0c0f0d;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

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

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* Typography */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--sage-bright);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.lede,
.section-lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 36em;
}

.section-lede { margin-inline: auto; text-align: center; }
.section-lede.left { margin-inline: 0; text-align: left; }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse, var(--sage-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 8px var(--sage-glow-strong);
}

/* Phone mock */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  background: #080a09;
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-notch {
  width: 88px;
  height: 8px;
  margin: 6px auto 14px;
  background: #1a1f1c;
  border-radius: 8px;
}

.phone-screen {
  background: linear-gradient(180deg, #121712 0%, #0e120f 100%);
  border-radius: 26px;
  padding: 1rem;
  min-height: 380px;
}

.ui-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ui-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.ui-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--sage-glow);
  color: var(--sage-bright);
  border: 1px solid var(--border);
}

.ui-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

.ui-card strong {
  display: block;
  margin: 0.15rem 0;
  font-size: 0.9375rem;
}

.ui-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dim);
}

.ui-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ui-card-accent {
  background: linear-gradient(135deg, rgba(143, 188, 143, 0.16), rgba(143, 188, 143, 0.04));
  border-color: var(--border-strong);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: var(--sage-glow-strong);
  top: 10%;
  right: 5%;
}

.orb-2 {
  width: 140px;
  height: 140px;
  background: rgba(90, 125, 90, 0.35);
  bottom: 15%;
  left: 10%;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(20, 26, 22, 0.6) 20%, rgba(20, 26, 22, 0.6) 80%, transparent);
}

.section .eyebrow,
.section h2 {
  text-align: center;
}

.section .wrap.narrow .eyebrow,
.section .wrap.narrow h2,
.waitlist .eyebrow,
.waitlist h2 {
  text-align: center;
}

.problem-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.glass-card,
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.glass-card:hover,
.feature:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.glass-card p,
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: var(--sage-glow);
  color: var(--sage-bright);
  font-size: 1rem;
  border: 1px solid var(--border);
}

/* Export */
.export-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .export-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .export-grid .eyebrow,
  .export-grid h2 {
    text-align: left;
  }
}

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

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child { border-bottom: 0; }

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.export-card {
  background: linear-gradient(160deg, #1e2a20 0%, #141a16 100%);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.export-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.export-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.export-card > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.export-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.export-badges span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--sage-glow);
  border: 1px solid var(--border);
  color: var(--sage-bright);
}

/* Steps */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #0c0f0d;
  font-weight: 700;
  font-size: 0.875rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 780px;
  margin-inline: auto;
}

@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--sage-dim);
  background: linear-gradient(165deg, rgba(143, 188, 143, 0.12), var(--bg-card) 45%);
  box-shadow: 0 0 0 1px rgba(143, 188, 143, 0.08), var(--shadow);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: #0c0f0d;
}

.price {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price span {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price .or {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-faint);
  margin: 0 0.15rem;
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  padding: 0.45rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.price-card li:last-child { border-bottom: 0; }

.price-card .btn { width: 100%; }

/* FAQ */
.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--sage);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after { content: "−"; }

details p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Waitlist */
.waitlist {
  padding-bottom: 5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 auto 1rem;
  max-width: 480px;
}

@media (min-width: 540px) {
  .waitlist-form {
    flex-direction: row;
    align-items: stretch;
  }
  .waitlist-form input[type="email"] { flex: 1; }
}

.waitlist-form input[type="email"] {
  appearance: none;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.waitlist-form input::placeholder { color: var(--text-faint); }

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-faint);
  max-width: 36em;
  margin: 0 auto;
}

.form-success {
  text-align: center;
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  max-width: 480px;
  border-radius: var(--radius-sm);
  background: var(--sage-glow);
  border: 1px solid var(--border-strong);
  color: var(--sage-bright);
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: #0a0c0b;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand p {
  margin: 0.2rem 0 0;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover { color: var(--sage-bright); }

.footer-legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
  max-width: 52em;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }
  .footer-legal { grid-column: 1 / -1; }
}
