/* ─────────────────────────────────────────────────────────────────────────
   Dermi — marketing site styles
   Palette + type transcribed from the app's design tokens (theme/tokens.ts):
   warm-modern editorial — ivory canvas, magenta-berry accent, plum-black ink.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Base / neutrals */
  --cream: #F3EED9;
  --cream-deep: #EAE3CC;
  --sand: #DAD0B6;
  --warm-white: #FDFBF3;

  /* Brand accent — magenta-berry */
  --coral: #C20B6A;
  --coral-deep: #9B0854;
  --coral-soft: #F7D7E5;

  /* Ink — plum-black actions + structure */
  --ink: #231F20;
  --ink-soft: #414042;

  /* Text */
  --plum: #231F20;
  --plum-ink: #3C3A3B;
  --taupe: #8B8275;
  --taupe-light: #BFB7A6;

  /* Semantic */
  --sage: #A7C29E;
  --sage-deep: #638F63;
  --amber: #D68A2C;
  --amber-soft: #F1E2BE;

  --shadow: 30px 60px 120px -40px rgba(45, 36, 34, 0.28);
  --shadow-sm: 0 20px 40px -24px rgba(45, 36, 34, 0.32);
  --radius: 28px;
  --maxw: 1160px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--plum);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ── Type helpers ────────────────────────────────────────────────────────── */
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
}
.display {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(33px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
h2.section-title {
  font-weight: 900;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--plum-ink);
  line-height: 1.6;
  max-width: 34ch;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.accent { color: var(--coral); }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--warm-white); box-shadow: var(--shadow-sm); }
.btn-ink:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--sand); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* Store badges */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--warm-white);
  padding: 12px 22px 12px 20px; border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease;
}
.store-badge:hover { transform: translateY(-3px); background: #000; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-small { font-size: 10px; letter-spacing: .5px; opacity: .8; text-transform: uppercase; line-height: 1; }
.store-badge .sb-big { font-size: 18px; font-weight: 600; line-height: 1.15; margin-top: 2px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(243, 238, 217, 0.78);
  border-bottom: 1px solid rgba(218, 208, 182, 0.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand .wordmark { font-size: 25px; color: var(--coral-deep); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { font-size: 15px; font-weight: 500; color: var(--plum-ink); transition: color .15s; }
.nav-links a.navlink:hover { color: var(--coral); }
.nav-cta { padding: 11px 22px; font-size: 14px; }
@media (max-width: 760px) { .nav-links a.navlink { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy .display { margin: 20px 0 22px; }
.hero-copy .lead { max-width: 40ch; }
.hero-actions { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-note { font-size: 13.5px; color: var(--taupe); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-note svg { width: 15px; height: 15px; }

/* soft blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; z-index: 0; pointer-events: none; }
.blob-1 { width: 460px; height: 460px; background: var(--coral-soft); top: -160px; right: -120px; }
.blob-2 { width: 320px; height: 320px; background: #E7ECD8; bottom: -120px; left: -110px; opacity: .7; }

.hero-copy, .hero-visual { position: relative; z-index: 1; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; display: flex; justify-content: center; }
  .hero-actions { align-items: stretch; }
  .stores { justify-content: center; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-note { justify-content: center; }
}

/* ── Phone mockup ────────────────────────────────────────────────────────── */
.phone {
  position: relative; width: 300px; margin: 0 auto;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2c2729, #17141550);
  background-color: var(--ink);
  box-shadow: var(--shadow);
}
.phone-screen {
  border-radius: 36px; overflow: hidden; background: var(--cream);
  aspect-ratio: 300 / 640; position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 5;
}
.phone.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .phone.floaty { animation: none; } }

/* Screen: score reveal */
.screen-pad { padding: 44px 22px 24px; height: 100%; display: flex; flex-direction: column; }
.screen-kicker { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--taupe); font-weight: 700; }
.screen-h { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 3px 0 18px; }
.ring-wrap { display: flex; justify-content: center; margin: 6px 0 14px; }
.score-num { font-weight: 900; font-size: 62px; letter-spacing: -0.04em; line-height: 1; color: var(--coral); }
.score-cap { text-align: center; font-size: 12px; color: var(--taupe); margin-bottom: 18px; }
.metric { background: var(--warm-white); border-radius: 16px; padding: 12px 14px; margin-bottom: 9px; box-shadow: 0 8px 18px -14px rgba(45,36,34,.4); }
.metric-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; }
.metric-top .mv { color: var(--coral); font-weight: 800; }
.metric-bar { height: 6px; border-radius: 999px; background: var(--cream-deep); margin-top: 8px; overflow: hidden; }
.metric-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--coral); }
.pill-cta { margin-top: auto; background: var(--ink); color: var(--warm-white); text-align: center; font-size: 13px; font-weight: 600; padding: 13px; border-radius: 999px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker { margin-bottom: 14px; display: inline-block; }
.section-head p { color: var(--plum-ink); font-size: 18px; margin-top: 16px; line-height: 1.6; }

/* Scanner feature (dark editorial band) */
.band-dark { background: var(--ink); color: var(--warm-white); border-radius: 40px; margin: 0 auto; }
.band-dark .wrap { padding-top: 72px; padding-bottom: 72px; }
.scanner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.scanner-grid .kicker { color: #F2A9CE; }
.scanner-grid h2 { color: var(--warm-white); }
.scanner-grid p { color: #E7E0DE; }
.scanner-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.scanner-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #EFE9E7; }
.scanner-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(194,11,106,0.22); display: grid; place-items: center; margin-top: 1px; }
.scanner-list .tick svg { width: 12px; height: 12px; }
@media (max-width: 820px) { .scanner-grid { grid-template-columns: 1fr; gap: 34px; } }

/* Scanner result card mock */
.scan-card { background: var(--warm-white); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); color: var(--plum); max-width: 380px; margin: 0 auto; }
.scan-card .verdict { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--cream-deep); }
.verdict-badge { width: 46px; height: 46px; border-radius: 14px; background: var(--sage); display: grid; place-items: center; flex: none; }
.verdict-badge svg { width: 24px; height: 24px; }
.verdict h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.verdict span { font-size: 13px; color: var(--taupe); }
.ing { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--cream); }
.ing:last-child { border-bottom: none; padding-bottom: 0; }
.ing-name { font-weight: 600; font-size: 14px; }
.ing-desc { font-size: 12px; color: var(--taupe); margin-top: 1px; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag-good { background: #E4EFDE; color: var(--sage-deep); }
.tag-note { background: var(--amber-soft); color: #A9691B; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--warm-white); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(218,208,182,0.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ficon { width: 50px; height: 50px; border-radius: 14px; background: var(--coral-soft); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ficon svg { width: 26px; height: 26px; color: var(--coral); }
.feature h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--plum-ink); line-height: 1.55; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; }
.step .num {
  font-weight: 900; font-size: 15px; color: var(--warm-white);
  width: 38px; height: 38px; border-radius: 50%; background: var(--coral);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--plum-ink); line-height: 1.55; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* Privacy strip */
.privacy-strip {
  background: linear-gradient(135deg, #EEF2E2, var(--coral-soft));
  border-radius: 40px; padding: 60px clamp(28px, 6vw, 72px);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
}
.privacy-strip .lock { width: 92px; height: 92px; border-radius: 26px; background: var(--warm-white); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.privacy-strip .lock svg { width: 46px; height: 46px; color: var(--coral); }
.privacy-strip h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.privacy-strip p { margin-top: 14px; font-size: 17px; color: var(--plum-ink); max-width: 60ch; line-height: 1.6; }
.privacy-strip a.pv-link { color: var(--coral-deep); font-weight: 600; border-bottom: 1.5px solid currentColor; }
@media (max-width: 680px) { .privacy-strip { grid-template-columns: 1fr; text-align: center; padding: 44px 28px; } .privacy-strip .lock { margin: 0 auto; } .privacy-strip p { margin-left: auto; margin-right: auto; } }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .display { margin: 18px auto 22px; max-width: 15ch; }
.cta-final .stores { justify-content: center; margin-top: 8px; }
.cta-final .lead { margin: 0 auto; }

/* Footer */
footer { background: var(--ink); color: #C9C2C0; padding: 60px 0 40px; }
footer .f-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
footer .brand .wordmark { color: var(--warm-white); }
footer .f-tag { max-width: 30ch; margin-top: 14px; font-size: 14px; line-height: 1.6; color: #9E9795; }
footer .f-links { display: flex; gap: 48px; flex-wrap: wrap; }
footer .f-col h5 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #8A8281; margin-bottom: 14px; }
footer .f-col a { display: block; font-size: 14.5px; color: #D8D2D0; margin-bottom: 10px; transition: color .15s; }
footer .f-col a:hover { color: var(--warm-white); }
footer .f-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a3536; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8A8281; }

/* Disclaimer note */
.fine { font-size: 12.5px; color: var(--taupe); max-width: 70ch; margin: 0 auto; text-align: center; line-height: 1.6; }

/* ── Privacy policy page ─────────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.doc .back { font-size: 14px; color: var(--coral); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.doc .updated { color: var(--taupe); font-size: 14px; margin-top: 12px; }
.doc .intro { font-size: 18px; color: var(--plum-ink); margin-top: 26px; line-height: 1.65; }
.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.doc p { color: var(--plum-ink); margin-bottom: 14px; line-height: 1.7; font-size: 15.5px; }
.doc ul { margin: 0 0 16px 20px; }
.doc li { color: var(--plum-ink); margin-bottom: 9px; line-height: 1.6; font-size: 15.5px; }
.doc strong { color: var(--plum); }
.doc a.inline { color: var(--coral-deep); font-weight: 600; border-bottom: 1px solid var(--coral-soft); }
.doc .callout {
  background: var(--warm-white); border: 1px solid var(--sand);
  border-left: 4px solid var(--coral); border-radius: 14px;
  padding: 20px 22px; margin: 22px 0;
}
.doc .callout p { margin: 0; font-size: 15px; }
.doc .toc { background: var(--warm-white); border-radius: 18px; padding: 22px 26px; margin: 30px 0; border: 1px solid rgba(218,208,182,0.5); }
.doc .toc h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--taupe); margin-bottom: 12px; }
.doc .toc a { display: block; font-size: 15px; color: var(--coral-deep); margin-bottom: 8px; font-weight: 500; }
.doc .toc a:hover { text-decoration: underline; }
