/* MySkin site — palette and shapes follow the app's DesignSystem/Theme.swift. Light only. */
:root {
  --cream: #F6F1E7;
  --cream-deep: #EFE7D8;
  --sand: #E8DCC6;
  --ink: #3B3A33;
  --ink-soft: #7C786B;
  --accent: #5B8A9A;
  --accent-soft: #D4E4E7;
  --sage: #A9BFA3;
  --sage-soft: #DCE6D5;
  --sage-deep: #5E7560;
  --calm: #B9CDB2;
  --mild: #E6CB93;
  --moderate: #DDA36C;
  --severe: #C27A5E;

  --radius: 28px;
  --radius-sm: 18px;
  --glass: rgba(255, 253, 248, 0.62);
  --glass-line: rgba(59, 58, 51, 0.10);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  /* Same idea as WarmBackground: sage top-left, cream centre, teal right, sand bottom. */
  background-image:
    radial-gradient(60% 45% at 0% 0%, var(--sage-soft) 0%, rgba(220, 230, 213, 0) 70%),
    radial-gradient(50% 40% at 100% 38%, var(--accent-soft) 0%, rgba(212, 228, 231, 0) 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 55%, var(--cream-deep) 85%, var(--sand) 100%);
  background-attachment: scroll;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--cream); padding: 8px 14px; border-radius: 12px; z-index: 10; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 420px) { .nav .hide-sm { display: none; } }

/* Glass card */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 28px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
@media (max-width: 600px) { .card { padding: 22px 18px; border-radius: 24px; } }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 22px; box-shadow: 0 6px 20px rgba(59, 58, 51, 0.10); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 28px 0 14px; }
.note { font-size: 0.92rem; color: var(--ink-soft); }

/* Official App Store badge — never recolour or redraw it. */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 600;
}
.btn:hover { background: #2a2924; color: var(--cream); }

.hero-shot { justify-self: center; width: min(340px, 82vw); }

/* Phone screenshots: the raw files already have rounded corners; we only add a soft ring. */
.phone { filter: drop-shadow(0 18px 40px rgba(59, 58, 51, 0.14)); }

/* Features */
.section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 10px; }
.features { display: grid; gap: 28px; }
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 0.8fr 1.2fr; gap: 56px; padding: 36px 44px; }
  .feature.flip { grid-template-columns: 1.2fr 0.8fr; }
  .feature.flip .feature-media { order: 2; }
}
.feature-media { justify-self: center; width: min(300px, 74vw); }
.feature-text p { color: var(--ink-soft); }
.feature-text ul { margin: 0; padding: 0; list-style: none; }
.feature-text li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.feature-text li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-deep); vertical-align: middle; margin-left: 6px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--ink-soft); margin: 10px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 6px; padding: 0; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; position: static; }
.legend .l0::before { background: var(--calm); }
.legend .l1::before { background: var(--mild); }
.legend .l2::before { background: var(--moderate); }
.legend .l3::before { background: var(--severe); }

/* Privacy band */
.privacy-band { display: grid; gap: 28px; align-items: center; background: linear-gradient(135deg, rgba(220, 230, 213, 0.75), rgba(212, 228, 231, 0.75)); }
@media (min-width: 860px) { .privacy-band { grid-template-columns: 1.2fr 0.8fr; padding: 44px; } }
.privacy-band img { width: min(320px, 70vw); justify-self: center; }
.points { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { background: rgba(255, 253, 248, 0.6); border-radius: var(--radius-sm); padding: 14px 16px; }
.points strong { display: block; }
.points span { color: var(--ink-soft); font-size: 0.95rem; }

/* Two-up cards */
.duo { display: grid; gap: 24px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.card.pricing { background: linear-gradient(160deg, rgba(94, 117, 96, 0.95), rgba(94, 117, 96, 0.88)); color: var(--cream); border-color: transparent; }
.card.pricing p, .card.pricing li { color: rgba(246, 241, 231, 0.88); }
.card.pricing a { color: var(--cream); }
.card.disclaimer { border-left: 6px solid var(--mild); }

/* Legal / prose pages */
.page-head { padding: 20px 0 8px; }
.page-head .updated { color: var(--ink-soft); font-size: 0.95rem; }
.prose { max-width: 760px; margin: 0 auto 56px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .summary { background: var(--sage-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--glass-line); }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--glass-line); padding: 14px 0; }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: 0.92rem; border-top: 1px solid var(--glass-line); margin-top: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0 0 6px; }

.center { text-align: center; }
.mt0 { margin-top: 0; }

/* Screenshot strip: scrolls inside itself, never the page. */
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: 0 -4px; overscroll-behavior-x: contain;
}
.gallery img { flex: 0 0 auto; width: 260px; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 8px 24px rgba(59, 58, 51, 0.10); }
@media (max-width: 420px) { .gallery img { width: 72vw; } }
