/* ==========================================================================
   Dermai — shared stylesheet (dermaibeauty.com)
   Clean clinical theme · Fraunces display + Inter body
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #14231e;
  --ink-soft: #3d5049;
  --muted: #62726c;
  --faint: #8a9993;

  --brand: #0f7a63;
  --brand-deep: #0a5a49;
  --brand-soft: #e7f3ee;
  --brand-softer: #f3f9f6;
  --brand-line: #cbe3d9;

  --accent: #f6e9d9;
  --accent-deep: #96682a;

  --line: #e5ebe8;
  --line-strong: #d3deda;

  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-sm: 0 1px 2px rgba(20, 35, 30, 0.04), 0 2px 10px rgba(20, 35, 30, 0.05);
  --shadow-md: 0 2px 8px rgba(20, 35, 30, 0.06), 0 18px 44px rgba(20, 35, 30, 0.11);

  --maxw: 1060px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-soft); color: var(--brand-deep); }

img, svg { max-width: 100%; }
svg { display: block; }

a { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.15; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 28px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, #16907a, var(--brand-deep));
  display: grid; place-items: center;
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a[aria-current="page"] { color: var(--brand-deep); font-weight: 600; }
.header-cta { margin-left: auto; }
.nav-links + .header-cta { margin-left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 122, 99, 0.25); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }
.btn-inverse { background: #fff; color: var(--brand-deep); }
.btn-inverse:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Hero (index)
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob-a {
  width: min(520px, 60vw); aspect-ratio: 1; right: -8%; top: -18%;
  background: radial-gradient(closest-side, rgba(15, 122, 99, 0.13), transparent 70%);
}
.blob-b {
  width: min(460px, 55vw); aspect-ratio: 1; left: -10%; bottom: -22%;
  background: radial-gradient(closest-side, rgba(201, 141, 61, 0.12), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 60px); align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-deep);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.35rem, 5.4vw, 3.55rem); line-height: 1.06; letter-spacing: -0.02em;
  margin: 18px 0;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--brand); }
.hero-lede { color: var(--ink-soft); font-size: clamp(1.04rem, 1.7vw, 1.19rem); margin: 0 0 26px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--faint); font-size: 13.5px; }
.hero-note svg { width: 15px; height: 15px; flex: none; }

/* Routine preview card */
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute;
  width: min(300px, 45vw); aspect-ratio: 1;
  border: 1.5px dashed var(--brand-line); border-radius: 50%;
  top: -34px; right: -26px;
}
.app-card {
  position: relative; max-width: 440px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-md); padding: 22px 22px 18px;
}
.app-card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kicker-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.kicker-pill { font-size: 11.5px; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.app-card-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 6px; }

.step { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.step-num {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.step-name { font-weight: 600; font-size: 14.8px; }
.step-sub { font-size: 12.6px; color: var(--muted); }
.step-tag {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent-deep); background: var(--accent); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.step-chev { width: 15px; height: 15px; flex: none; color: var(--faint); }
.step.open { background: var(--brand-softer); border-top-color: transparent; border-radius: 14px 14px 0 0; margin-inline: -10px; padding-inline: 12px; }
.step.open .step-chev { transform: rotate(180deg); }
.step-detail {
  background: var(--brand-softer); border: 1px solid var(--brand-line); border-top: none;
  border-radius: 0 0 14px 14px; margin: 0 -10px 6px; padding: 2px 16px 14px;
}
.detail-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-deep); margin: 12px 0 5px; }
.detail-text { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 12px; }
.mini-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 5px; }
.mini-label.ok { color: var(--brand-deep); }
.mini-label.warn { color: var(--accent-deep); }
.mini-label svg { width: 13px; height: 13px; flex: none; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { font-size: 12.8px; color: var(--muted); padding: 2px 0; }
.app-card-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.chip { font-size: 12.3px; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }

/* --------------------------------------------------------------------------
   Sections & features
   -------------------------------------------------------------------------- */
.section { padding: clamp(48px, 7.5vw, 84px) 0; }
.section-head { max-width: 660px; margin: 0 auto clamp(30px, 4.5vw, 48px); text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; margin: 0 0 12px;
}
.section-sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.08rem); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #12836b, #0a5a49);
  border-radius: 26px; padding: clamp(34px, 5vw, 54px) clamp(24px, 5vw, 48px);
  text-align: center; color: #fff; box-shadow: var(--shadow-md);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.015em; margin: 0 0 10px; }
.cta-band p { margin: 0 auto 24px; max-width: 52ch; color: rgba(255, 255, 255, 0.86); font-size: 15.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding-block: clamp(34px, 5vw, 44px); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; justify-content: space-between; }
.footer-tag { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 34ch; }
.footer-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.footer-mail { font-weight: 600; font-size: 15px; color: var(--brand-deep); text-decoration: none; overflow-wrap: anywhere; }
.footer-mail:hover { text-decoration: underline; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; margin: 5px 0; }
.footer-col a:hover { color: var(--brand-deep); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px;
  color: var(--faint); font-size: 13px;
}

/* --------------------------------------------------------------------------
   Subpages (privacy / delete-account)
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(44px, 7vw, 72px) 0 0; }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.05rem, 4.4vw, 2.85rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.page-lede { color: var(--ink-soft); font-size: clamp(1.02rem, 1.6vw, 1.14rem); max-width: 62ch; margin: 0; }
.legal-meta { color: var(--faint); font-size: 13.5px; margin: 16px 0 0; }

.prose { max-width: 780px; padding: clamp(26px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); }
.prose h2 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; margin: 42px 0 12px; }
.prose p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { color: var(--ink-soft); font-size: 15.5px; margin: 7px 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 22px; margin: 30px 0 4px; box-shadow: var(--shadow-sm);
}
.toc summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); }
.toc summary::marker { color: var(--brand); }
.toc ul { margin: 10px 0 4px; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 0; }
.toc a { color: var(--brand-deep); text-decoration: none; font-size: 14px; line-height: 1.9; }
.toc a:hover { text-decoration: underline; }
.toc li::marker { color: var(--brand); }

.callout {
  background: var(--brand-softer); border: 1px solid var(--brand-line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-md); padding: 16px 20px; margin: 22px 0;
}
.callout p { margin: 0; font-size: 14.8px; }
.callout p + p { margin-top: 8px; }

.method {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 30px); margin: 22px 0; box-shadow: var(--shadow-sm);
}
.method-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.method-num { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.method-head h2 { margin: 0; font-size: 19px; }
.method ol { margin: 12px 0 6px; padding-left: 22px; }
.method ol li { margin: 9px 0; color: var(--ink-soft); font-size: 15.3px; }
.method ol li::marker { color: var(--brand); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }

.faq { margin-top: 46px; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 2px; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0 0 6px; font-weight: 600; font-size: 15.6px; }
.faq-a { margin: 0; color: var(--muted); font-size: 14.8px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-art { margin-top: 18px; }
  .hero-art::before { display: none; }
  .toc ul { columns: 1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 22px; }
}
@media (max-width: 480px) {
  .detail-cols { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
