/* Enviya marketing site: brand system ported from the app's design tokens
   (STYLE_GUIDE.md + lib/core/theme/). Warm pink-cream, plum ink, mauve + gold,
   serif display over humanist sans. Light-only, like the app. */

:root {
  /* colour: app_colors.dart */
  --bg: #F4ECEC;
  --bg2: #EFE2E3;
  --surface: #FCF8F7;
  --surface2: #FFFFFF;
  --ink: #2E2427;
  --ink2: #6B585C;
  --ink3: #9E8A8E;
  --line: rgba(46, 36, 39, .10);
  --mauve: #9C6B74;
  --mauve-deep: #7C4F58;
  --blush: #E2C6CB;
  --blush-soft: #F0DCDF;
  --gold: #C39A6E;
  --gold-soft: #E6CDA8;
  --gold-deep: #B98A5E;
  --gold-text: #835B2D;

  --grad-score: linear-gradient(135deg, var(--mauve) 0%, var(--gold) 100%);
  --grad-cta: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --r-pill: 999px;
  --r-card: 20px;
  --r-card-lg: 26px;

  --shadow-card: 0 18px 40px -24px rgba(46, 36, 39, .28);
  --shadow-phone: 0 40px 80px -40px rgba(46, 36, 39, .45);
  --shadow-cta: 0 14px 30px -12px rgba(156, 107, 116, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--mauve-deep); text-decoration: none; }
a:hover { color: var(--mauve); }

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

/* ── type ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.06; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.accent { font-style: italic; color: var(--mauve-deep); }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  color: var(--gold-text);
  font-weight: 500;
}

.lead { font-size: 1.18rem; color: var(--ink2); max-width: 46ch; }
.section-desc { font-size: 1.1rem; color: var(--ink2); max-width: 52ch; margin: 14px auto 0; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(252, 248, 247, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav-logo { font-family: var(--mono); font-weight: 500; letter-spacing: .2em; font-size: .8rem; color: var(--ink); text-transform: uppercase; }
.nav-logo:hover { color: var(--mauve-deep); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--ink2); text-transform: lowercase; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  color: #fff; background: var(--mauve-deep);
  padding: 10px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-cta);
}
.nav-cta:hover { color: #fff; background: #683b44; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ── section rhythm ── */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

/* ── hero ── */
.hero { padding: 56px 0 72px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(226, 198, 203, .55), transparent 60%),
    radial-gradient(50% 45% at 95% 15%, rgba(230, 205, 168, .4), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .eyebrow { margin-bottom: 20px; display: block; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  padding: 13px 22px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, background .2s ease;
}
.btn-store:hover { color: #fff; background: #3d3033; transform: translateY(-2px); }
.btn-store svg { flex: none; }
.store-note { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--ink3); margin-top: 16px; text-transform: uppercase; }

/* hero visual */
.hero-visual { position: relative; }
.hero-visual picture { display: block; }
.hero-visual img {
  width: 100%; border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.hero-chip {
  position: absolute; left: -14px; bottom: 28px;
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 11px 18px;
  box-shadow: var(--shadow-card);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.hero-chip .spark { color: var(--gold); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .store-buttons { }
}

/* ── how it works ── */
.steps { display: flex; flex-direction: column; gap: 88px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.step:nth-child(even) .step-media { order: -1; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--mauve); line-height: 1; margin-bottom: 10px; }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--ink2); font-size: 1.05rem; margin: 0; max-width: 42ch; }
.step-media { display: flex; justify-content: center; }

/* phone frame */
.phone {
  width: 264px; max-width: 72vw;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #2c2327, #40343a);
  box-shadow: var(--shadow-phone);
}
.phone img { border-radius: 30px; width: 100%; }

@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .step:nth-child(even) .step-media { order: 0; }
  .step p { margin-inline: auto; }
  .steps { gap: 64px; }
}

/* ── wedge band ── */
.wedge { background: var(--ink); color: #fff; border-radius: var(--r-card-lg); padding: 56px 48px; text-align: center; }
.wedge h2 { color: #fff; }
.wedge .eyebrow { color: var(--gold-soft); display: block; margin-bottom: 14px; }
.wedge p { color: rgba(255, 255, 255, .82); font-size: 1.14rem; max-width: 56ch; margin: 18px auto 0; }
@media (max-width: 600px) { .wedge { padding: 40px 24px; } }

/* ── features ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 30px 28px;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blush-soft); color: var(--mauve-deep); font-size: 1.35rem;
}
.feature-card:nth-child(2) .card-icon,
.feature-card:nth-child(3) .card-icon { background: rgba(195, 154, 110, .18); color: var(--gold-text); }
.feature-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.16rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink2); margin: 0; font-size: 1rem; }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-family: var(--sans); font-weight: 600; font-size: 1.08rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.6rem; color: var(--mauve);
  transition: transform .2s ease; line-height: 1;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 26px 24px; color: var(--ink2); font-size: 1.02rem; }
.faq .faq-body p { margin: 0; }

/* ── final CTA ── */
.final { text-align: center; }
.final .store-buttons { justify-content: center; }

/* ── footer ── */
footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--mono); font-size: .82rem; color: var(--ink2); letter-spacing: .04em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: .9rem; color: var(--ink2); }
.footer-links a:hover { color: var(--ink); }

/* ── scroll reveal ── */
.anim { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.anim.vis { opacity: 1; transform: none; }
.anim-d1 { transition-delay: .08s; }
.anim-d2 { transition-delay: .16s; }
.anim-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; transition: none; }
}

/* inline CTA row */
.inline-cta { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; padding: 8px 0 0; }
.inline-cta a { font-family: var(--mono); font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--mauve-deep); }
.inline-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
