/* Elderlai — marketing site. Warm editorial: cream paper, deep teal anchor,
   warm sand accents, real photography. Zero external requests (fast, private,
   deploys anywhere). System serif display + system sans body. */

:root {
  --paper:       oklch(0.972 0.012 84);   /* warm cream page */
  --paper-deep:  oklch(0.945 0.016 82);   /* slightly deeper band */
  --surface:     oklch(0.992 0.006 84);   /* card / panel */
  --ink:         oklch(0.265 0.022 250);  /* deep warm charcoal, ~15:1 on paper */
  --ink-soft:    oklch(0.435 0.02 250);   /* muted body / captions, AA+ */
  --teal:        oklch(0.475 0.088 216);  /* committed brand anchor */
  --teal-deep:   oklch(0.40 0.082 218);   /* links / heading accents on paper */
  --teal-ink:    oklch(0.30 0.06 220);    /* drenched teal band background */
  --sand:        oklch(0.80 0.072 80);    /* warm decorative accent */
  --sand-soft:   oklch(0.92 0.05 82);     /* soft highlight fill */
  --line:        oklch(0.88 0.014 84);    /* hairline */
  --on-teal:     oklch(0.975 0.012 84);   /* text on teal band */

  --maxw: 1140px;
  --measure: 68ch;
  --radius: 18px;
  --shadow: 0 1px 2px oklch(0.4 0.03 250 / 0.05), 0 12px 32px oklch(0.4 0.03 250 / 0.07);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--teal-deep); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 650; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-soft); line-height: 1.55; }
.eyebrow { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 0.9rem; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band { background: var(--paper-deep); }
.band-teal { background: var(--teal-ink); color: var(--on-teal); }
.band-teal h2, .band-teal h3 { color: var(--on-teal); }
.band-teal p { color: oklch(0.92 0.02 84); }
.band-teal a { color: var(--sand-soft); }

/* ---- top nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: oklch(0.972 0.012 84 / 0.9); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .nav { backdrop-filter: none; background: var(--paper); } }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--teal-deep); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; font-weight: 500; }
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--on-teal); }  /* keep cream on teal */
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---- buttons / app badge ---- */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 650; font-size: 1.02rem; padding: 0.85rem 1.4rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn-ghost:hover { background: oklch(0.475 0.088 216 / 0.08); }
.band-teal .btn-primary { background: var(--sand); color: oklch(0.28 0.04 70); }
.band-teal .btn-primary:hover { background: oklch(0.85 0.08 80); }

.appstore { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: var(--paper); padding: 0.7rem 1.25rem; border-radius: 14px; text-decoration: none; }
.appstore svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.appstore .as-t { font-size: 0.7rem; line-height: 1.1; opacity: 0.85; display: block; }
.appstore .as-b { font-size: 1.15rem; line-height: 1.15; font-weight: 600; display: block; }
.appstore:hover { background: oklch(0.32 0.02 250); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.6rem; }

/* ---- hero ---- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .reassure { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; font-size: 0.98rem; color: var(--ink-soft); }
.hero .reassure svg { width: 20px; height: 20px; fill: var(--teal); flex: none; }
.hero-img { border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 3 / 2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-img { order: -1; } }

/* ---- trust bar (prominent) ---- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.4rem; padding: 1.5rem 1.8rem; background: var(--sand-soft); border-radius: 18px; margin-top: 0.5rem; }
.trust span { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.trust svg { width: 26px; height: 26px; fill: var(--teal-deep); flex: none; }

/* ---- alternating feature rows ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 3 / 2; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { margin-bottom: 0.5rem; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* ---- supporting points (icon chip + text) ---- */
.mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 3rem; }
.mini div { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.mini .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sand-soft); display: grid; place-items: center; }
.mini svg { width: 28px; height: 28px; fill: var(--teal-deep); }
.mini h3 { font-size: 1.18rem; margin: 0 0 0.25rem; }
.mini p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 680px) { .mini { grid-template-columns: 1fr; } }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.6rem; counter-reset: step; }
.steps li { list-style: none; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sand-soft); color: var(--teal-deep); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---- pricing ---- */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 760px; margin: 2.6rem auto 0; }
.price .plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.price .plan.feature-plan { border-color: var(--teal); border-width: 2px; }
.price .plan h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.price .amount { font-family: var(--serif); font-size: 2rem; color: var(--teal-deep); }
.price .amount small { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.price ul { padding-left: 1.1rem; margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.price li { margin: 0.4rem 0; }
@media (max-width: 640px) { .price { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 2.4rem auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; cursor: pointer; list-style: none; padding: 0.9rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-family: var(--sans); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); }

/* ---- footer ---- */
footer { background: var(--paper-deep); border-top: 1px solid var(--line); padding: 3rem 0 2.4rem; font-size: 0.95rem; color: var(--ink-soft); }
footer .cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
footer a { color: var(--ink-soft); text-decoration: none; display: block; padding: 0.25rem 0; }
footer a:hover { color: var(--teal-deep); }
footer .ft-brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
footer .ft-brand b { color: var(--teal-deep); }
footer h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.5rem; }
footer .disclaimer { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: none; font-size: 0.86rem; }

/* ---- legal / support article pages ---- */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.2rem; }
.doc p, .doc li { font-size: 1.08rem; color: var(--ink); max-width: none; }
.doc .updated { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 2rem; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin: 0.5rem 0; }

/* ---- gentle on-load entrance (CSS-only: visible by default, no JS needed,
   so content never depends on scripts or scrolling) ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 0.7rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }
