/* Dermi marketing + legal site — shared styles */
:root {
  --cream: #f8f7f2;
  --cream-2: #f1efe7;
  --white: #ffffff;
  --ink-900: #1c2530;
  --ink-700: #38414f;
  --ink-600: #566072;
  --ink-400: #8b93a1;
  --ink-100: #e7e4db;
  --brand: #3b7dd8;
  --brand-dark: #2564b0;
  --brand-50: #eaf2fb;
  --brand-100: #d6e6f8;
  --leaf: #4a90e2;
  --good: #3fb083;
  --good-50: #e6f5ee;
  --shadow-sm: 0 1px 2px rgba(28, 37, 48, 0.06), 0 1px 3px rgba(28, 37, 48, 0.04);
  --shadow-md: 0 10px 30px rgba(28, 37, 48, 0.10);
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; color: var(--ink-900); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--brand-50); border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--ink-600); font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--ink-900); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink-900); border-color: var(--ink-100); }
.btn--ghost:hover { border-color: var(--brand-100); }
.btn:active { transform: translateY(1px); }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-900); color: #fff; padding: 10px 18px; border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.appstore:hover { text-decoration: none; opacity: .92; }
.appstore small { display: block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.appstore strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.15; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-dark); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 5px 12px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 600; }
.hero .lead { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-600); max-width: 34ch; }
.hero__cta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--ink-400); }

/* Score-card mock */
.mock {
  background: #fff; border-radius: 26px; box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-100); padding: 22px; max-width: 360px; margin: 0 auto;
}
.mock__top { display: flex; align-items: center; gap: 12px; }
.mock__thumb { width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; font-size: 22px; }
.mock__name { font-weight: 600; font-size: 15px; }
.mock__brand { font-size: 12px; color: var(--ink-400); }
.ring { --p: 82; --c: var(--good); width: 132px; height: 132px; border-radius: 50%; margin: 20px auto 8px;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--brand-50) 0);
  display: grid; place-items: center; }
.ring__inner { width: 104px; height: 104px; background: #fff; border-radius: 50%; display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px var(--ink-100); }
.ring__num { font-family: "Fraunces", serif; font-size: 34px; font-weight: 600; line-height: 1; color: var(--ink-900); }
.ring__lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); margin-top: 2px; }
.mock__verdict { text-align: center; color: var(--good); font-weight: 600; font-size: 14px; margin-top: 2px; }
.mock__rows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-600); background: var(--cream); border-radius: 10px; padding: 9px 12px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.tag--good { color: var(--good); background: var(--good-50); }
.tag--mid { color: #b7791f; background: #fbf1dd; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section__head p { margin-top: 14px; color: var(--ink-600); font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 19px; }
.card p { margin-top: 8px; color: var(--ink-600); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px; background: var(--cream-2); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--brand); color: #fff; font-family: "Fraunces", serif; font-weight: 600; margin-bottom: 14px; }
.step h3 { font-size: 18px; }
.step p { margin-top: 6px; color: var(--ink-600); font-size: 15px; }

/* Disclaimer band */
.band { background: var(--brand-dark); color: #fff; border-radius: 24px; padding: 40px; text-align: center; }
.band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.band p { margin: 14px auto 0; max-width: 60ch; color: rgba(255,255,255,.85); font-size: 16px; }
.band .btn--primary { background: #fff; color: var(--brand-dark); margin-top: 24px; }
.band .btn--primary:hover { background: var(--cream); }

.disclaimer { text-align: center; color: var(--ink-400); font-size: 13px; max-width: 60ch; margin: 40px auto 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: #cfd4dc; margin-top: 72px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer .brand__mark { background: rgba(255,255,255,.10); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: #cfd4dc; font-size: 14px; }
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__copy { width: 100%; border-top: 1px solid rgba(255,255,255,.10); padding: 18px 0; font-size: 13px; color: var(--ink-400); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 8px; }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-600); font-weight: 500; }
.legal h1 { font-size: clamp(30px, 4.5vw, 42px); margin-top: 18px; }
.legal .updated { color: var(--ink-400); font-size: 14px; margin-top: 10px; }
.legal__body { margin-top: 8px; }
.legal__body h2 { font-size: 22px; margin-top: 40px; }
.legal__body p { margin-top: 14px; color: var(--ink-700); }
.legal__body ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.legal__body li { position: relative; padding-left: 22px; margin-top: 10px; color: var(--ink-700); }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.legal__body strong { color: var(--ink-900); }
.callout { margin-top: 18px; background: #fbf1dd; border: 1px solid #f0dcae; border-radius: 14px; padding: 16px 18px; color: #7a5a17; }
.callout strong { color: #7a5a17; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 24px; }
  .hero .lead { max-width: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav__links .nav__hide { display: none; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .band { padding: 30px 22px; }
}
