/* Dermaa promo site — mirrors the app's AppColors palette (warm cream & sage). */
:root {
  --bg: #F5F0EB;
  --surface: #EDE9E2;
  --card: #FBF8F4;
  --primary: #7A9B68;
  --primary-dark: #5F7C50;
  --forest: #2D3B28;
  --olive: #6B7C5C;
  --text: #3A4234;
  --text-soft: #7C8474;
  --border: #E2DCD2;
  --gold: #C4914A;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  /* No layout may ever widen the canvas on a phone — a single overflowing
     element makes mobile browsers zoom out to a "desktop" view. */
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3.serif {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--forest); font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--olive); font-size: 0.92rem; font-weight: 500; }
.btn-outline {
  border: 1.5px solid var(--primary); color: var(--primary-dark);
  padding: 8px 18px; border-radius: 22px; font-weight: 600; font-size: 0.9rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary); color: #fff;
  padding: 14px 28px; border-radius: 28px;
  font-weight: 600; font-size: 1rem; border: none; cursor: default;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }

/* ── Hero ── */
.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 12px;
}
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--olive); max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.qr-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 10px; width: 96px; text-align: center;
}
.qr-card img { width: 76px; height: 76px; display: block; }
.qr-card span { font-size: 0.62rem; color: var(--text-soft); display: block; margin-top: 4px; letter-spacing: 0.04em; }

/* Phone frame */
.phone {
  border: 10px solid var(--forest); border-radius: 38px;
  overflow: hidden; background: var(--forest);
  box-shadow: 0 24px 60px rgba(45, 59, 40, 0.18);
  width: 100%; max-width: 290px; margin: 0 auto;
}
.phone img { width: 100%; display: block; border-radius: 26px; }

/* ── Sections ── */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--olive); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  /* Stitch design-md "ambient shadow": forest-tinted, never black */
  box-shadow: 0px 4px 20px rgba(45, 59, 40, 0.05);
}
.feature .chip {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(122, 155, 104, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; color: var(--forest); margin-bottom: 6px; font-weight: 700; }
.feature p { font-size: 0.93rem; color: var(--text-soft); }

.features-note {
  text-align: center; color: var(--text-soft); font-size: 0.9rem;
  margin-top: 26px;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { text-align: center; padding: 18px; }
.step .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  font-family: 'Lora', serif;
}
.step h3 { color: var(--forest); font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--text-soft); }

/* Screenshot showcase */
.shots { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots-row { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; }
.shots .phone { max-width: 250px; }
.shot-callout {
  max-width: 260px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0px 4px 20px rgba(45, 59, 40, 0.05);
}
.shot-callout .chip {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(122, 155, 104, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 14px;
}
.shot-callout h3 { color: var(--forest); font-size: 1.02rem; margin-bottom: 6px; }
.shot-callout p { font-size: 0.92rem; color: var(--text-soft); }

/* Free & Premium */
.plans { max-width: 640px; margin: 0 auto; }
.plans table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0px 4px 20px rgba(45, 59, 40, 0.05);
}
.plans th, .plans td { padding: 14px 18px; text-align: left; font-size: 0.95rem; }
.plans thead th {
  background: var(--surface); color: var(--forest); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.03em;
}
.plans thead th:last-child, .plans tbody td:last-child { color: var(--primary-dark); font-weight: 600; }
.plans tbody th { color: var(--text); font-weight: 500; }
.plans tbody td { color: var(--text-soft); white-space: nowrap; }
.plans tbody tr + tr > * { border-top: 1px solid var(--border); }
.plans-note { text-align: center; color: var(--text-soft); font-size: 0.88rem; margin-top: 16px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font-weight: 600; color: var(--forest);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-dark); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-soft); font-size: 0.95rem; padding-bottom: 16px; }

/* Download band */
.download-band {
  background: var(--forest); border-radius: 28px;
  padding: 48px 40px; color: #F5F0EB;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between;
}
.download-band h2 { color: #F5F0EB; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.download-band p { color: rgba(245, 240, 235, 0.75); max-width: 30em; }
.download-actions { display: flex; align-items: center; gap: 22px; }
.qr-card.on-dark { background: #F5F0EB; border-color: transparent; }
.play-badge {
  border: 1.5px solid rgba(245, 240, 235, 0.5); border-radius: 12px;
  padding: 10px 20px; font-size: 0.9rem; color: rgba(245, 240, 235, 0.9);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}

/* Footer */
footer { padding: 36px 0 48px; }
.footer-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-soft); font-size: 0.88rem;
  border-top: 1px solid var(--border); padding-top: 28px;
}
.footer-inner .brand { font-size: 0.98rem; }
.footer-inner .brand img { width: 24px; height: 24px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; }

/* ── Privacy page ── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.doc h1 { font-size: 2.1rem; margin-bottom: 6px; }
.doc .updated { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text); font-size: 0.98rem; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }

.feature-link { display: inline-block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; }
.lead-doc { font-size: 1.08rem; color: var(--olive) !important; margin: 14px 0 8px; }
.doc .eyebrow { margin-bottom: 8px; }
.doc p + p { margin-top: 12px; }
.doc .faq { margin-top: 14px; }
.doc .faq details p { color: var(--text-soft); }
.doc-cta {
  margin-top: 44px; background: var(--forest); border-radius: 24px;
  padding: 32px 28px; text-align: center;
}
.doc-cta h2 { color: #F5F0EB; margin: 0 0 6px; }
.doc-cta p { color: rgba(245, 240, 235, 0.75) !important; margin-bottom: 18px; }
.doc-cta .btn { cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .phone { max-width: 240px; }
  .nav-links a:not(.btn-outline) { display: none; }
  .download-band { justify-content: center; text-align: center; }
}

/* Phones */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  section { padding: 44px 0; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.lead { font-size: 1rem; }
  .hero-cta { flex-direction: column; gap: 16px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section-head { margin-bottom: 28px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 12px; }
  .shots-row { gap: 20px; }
  .shot-callout { max-width: 100%; }
  .download-band {
    flex-direction: column; align-items: center;
    padding: 32px 22px; gap: 24px; border-radius: 22px;
  }
  .download-actions { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .plans th, .plans td { padding: 12px; font-size: 0.88rem; }
  .footer-links { margin-left: 0; }
  .nav-inner { height: 58px; gap: 12px; }
  .brand { font-size: 1rem; }
}
