/* Diario Lunar landing page. Tokens mirror design-tokens.json (the app's design system). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #2B2E40;
  --bg-nav: #24273A;
  --surface: #353A50;
  --border: #3F4560;
  --border-strong: #566577;
  --text-heading: #F2D9B6;
  --text: #EDE3D3;
  --text-soft: #D9D2C5;
  --text-muted: #A9B6BB;
  --accent: #C2A684;
  --on-accent: #2B2E40;
  --gray-blue: #8FA3AA;
  --radius-card: 16px;
  --radius-large: 20px;
  --radius-pill: 999px;
  --gutter: 20px;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-heading); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--text-heading); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-pill); z-index: 10; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(36, 39, 58, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-heading); font-family: var(--font-heading); font-size: 1.25rem; }
.brand img { border-radius: 50%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn:hover { background: var(--text-heading); border-color: var(--text-heading); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text-heading); border-color: var(--gray-blue); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }

.eyebrow { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 34em; }

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 60% 55% at 78% 40%, rgba(242, 217, 182, 0.10), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.phone {
  margin: 0 auto;
  max-width: 300px;
  border: 8px solid var(--bg-nav);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-strong), 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 80px rgba(242, 217, 182, 0.08);
  background: var(--bg);
}
.phone img { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-nav); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { font-size: 1.1rem; color: var(--text-soft); max-width: 40em; margin-bottom: 36px; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 24px;
}
.card p:last-child, .card ol:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 16px;
}
.card:nth-child(2) .card-num { background: var(--text-heading); }
.card:nth-child(3) .card-num { background: var(--gray-blue); }

.feature { display: grid; gap: 40px; align-items: center; margin-top: 64px; }
.feature-text p { color: var(--text-soft); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text-soft);
}
.checks li::before {
  content: '';
  position: absolute; left: 20px; top: 22px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-heading);
  box-shadow: inset -6px -2px 0 0 var(--surface); /* a small crescent */
}
.checks strong { color: var(--text); font-weight: 600; }
.note { margin-top: 24px; color: var(--text-muted); font-size: 0.95rem; max-width: 44em; }

/* Brenda */
.brenda { display: grid; gap: 40px; align-items: center; }
.brenda-photo { margin: 0; max-width: 400px; }
.brenda-photo img { border-radius: 200px 200px var(--radius-large) var(--radius-large); border: 1px solid var(--border-strong); }
.brenda-text p { color: var(--text-soft); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-block; padding: 10px 0; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 24px 24px 20px 84px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.2rem;
}
.steps p { color: var(--text-soft); margin-bottom: 0.4em; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: var(--bg); border: 1px solid var(--border-strong); padding: 1px 6px; border-radius: 6px; color: var(--text-heading); }

/* Install */
.install { display: grid; gap: 16px; }
.install ol { padding-left: 1.3em; margin: 0; color: var(--text-soft); }
.install li { margin-bottom: 8px; }
.install li::marker { color: var(--accent); font-weight: 600; }

/* Disclaimer */
.disclaimer { padding: 40px 0 56px; }
.disclaimer .wrap > * { max-width: 46em; }
.disclaimer h2 { font-size: 1.3rem; }
.disclaimer p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.footer { background: var(--bg-nav); border-top: 1px solid var(--border); padding: 36px 0 44px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer img { border-radius: 50%; margin-bottom: 12px; }
.footer p { margin: 0; font-size: 0.95rem; }

/* Wider screens */
@media (min-width: 760px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .phone { max-width: 320px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .brenda { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 84px 24px 24px; }
  .steps li::before { top: 24px; }
  .install { grid-template-columns: 1fr 1fr; }
}
