/* ============================================================
   Skincoach — Marketing site styles
   Built on design-system tokens (../colors_and_type.css).
   Mobile-first, responsive. Light theme only for the site.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--sc-background);
  color: var(--sc-primary-text);
  font-family: var(--sc-font-rounded);
  font-size: 17px;
  line-height: var(--sc-leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--sc-radius-button);
  font-family: var(--sc-font-rounded);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--sc-motion-fast) var(--sc-motion-easing),
              background var(--sc-motion-base) var(--sc-motion-easing);
  white-space: nowrap;
}
.btn:active { transform: scale(0.99); }

.btn-primary { background: var(--sc-primary-action); color: var(--sc-on-primary); }
.btn-primary:hover { background: var(--sc-primary-action-hover); }

.btn-secondary {
  background: var(--sc-secondary-action);
  color: var(--sc-secondary-action-label);
  border: 1px solid color-mix(in srgb, var(--sc-primary-action) 25%, transparent);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--sc-secondary-action) 80%, #fff); }

/* App Store badge (black pill) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #0B1418;
  color: #fff;
  transition: transform var(--sc-motion-fast) var(--sc-motion-easing),
              filter var(--sc-motion-base) var(--sc-motion-easing);
}
.appstore-badge:hover { filter: brightness(1.12); }
.appstore-badge:active { transform: scale(0.99); }
.appstore-badge .as-label { line-height: 1.15; white-space: nowrap; }
.appstore-badge .as-small { font-size: 11px; font-weight: 600; opacity: 0.85; letter-spacing: 0.02em; }
.appstore-badge .as-big { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

/* eyebrow / micro label */
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-primary-action);
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-tertiary-text);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sc-background) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--sc-shadow-card);
  flex-shrink: 0;
}
.brand .mark img { width: 100%; height: 100%; }

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-secondary-text);
  white-space: nowrap;
  transition: color var(--sc-motion-base) var(--sc-motion-easing);
}
.nav-links a:hover { color: var(--sc-primary-text); }

.header-cta { display: none; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
              color-mix(in srgb, var(--sc-primary-action) 22%, transparent),
              transparent 68%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(38px, 9vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  margin-top: 18px;
}
.hero h1 .accent { color: var(--sc-primary-action); }
.hero-sub {
  font-size: clamp(17px, 4.4vw, 21px);
  color: var(--sc-secondary-text);
  font-weight: 500;
  margin-top: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-secondary-text);
}
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-success); }

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

@media (min-width: 860px) {
  .hero { padding: 76px 0 0; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
  .hero-phone { justify-content: flex-end; }
}

/* phone scaler — phones are 720x1480 raw; scaled via transform */
.phone-scale {
  transform-origin: top center;
  flex-shrink: 0;
}

/* ============================================================
   Section shell
   ============================================================ */
.section { padding: 72px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 6.5vw, 40px);
  font-weight: 800;
  margin-top: 12px;
  line-height: 1.1;
}
.section-head p {
  font-size: 17px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  margin: 14px auto 0;
  max-width: 540px;
  line-height: 1.5;
  text-wrap: pretty;
}

.section-alt { background: var(--sc-elevated-surface); }

/* ============================================================
   How it works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.step {
  position: relative;
  background: var(--sc-surface);
  border: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  border-radius: var(--sc-radius-card);
  box-shadow: var(--sc-shadow-card);
  padding: 26px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sc-secondary-action);
  color: var(--sc-secondary-action-label);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step .ico {
  position: absolute;
  top: 24px; right: 22px;
  color: var(--sc-primary-action);
  opacity: 0.9;
}
.step h3 { font-size: 19px; font-weight: 800; }
.step p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.45;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Features
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature {
  display: flex;
  gap: 18px;
  background: var(--sc-surface);
  border: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  border-radius: var(--sc-radius-card);
  box-shadow: var(--sc-shadow-card);
  padding: 26px 24px;
  transition: box-shadow var(--sc-motion-base) var(--sc-motion-easing),
              transform var(--sc-motion-base) var(--sc-motion-easing);
}
.feature:hover { box-shadow: var(--sc-shadow-card-hover); transform: translateY(-2px); }
.feature .ficon {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--sc-secondary-action);
  color: var(--sc-primary-action);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p {
  margin: 7px 0 0;
  font-size: 15px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.45;
}
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ============================================================
   Screenshots gallery
   ============================================================ */
.shots-scroll {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 8px 20px 28px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-scroll::-webkit-scrollbar { height: 8px; }
.shots-scroll::-webkit-scrollbar-thumb {
  background: var(--sc-hairline-strong);
  border-radius: 999px;
}
.shot {
  scroll-snap-align: center;
  flex-shrink: 0;
}
.shot-cap {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-secondary-text);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  margin: 0 auto;
  max-width: 980px;
  background: linear-gradient(125deg, var(--sc-primary-action) 0%, #066A85 100%);
  border-radius: 28px;
  padding: 52px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 30px 60px -28px rgba(8,148,179,0.6);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 12%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.1;
}
.cta-band p {
  position: relative;
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 17px;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.5;
}
.cta-band .badge-row {
  position: relative;
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.cta-band .appstore-badge {
  background: #fff;
  color: var(--sc-primary-text);
}
.cta-band .appstore-badge .as-small { opacity: 0.6; }

/* ============================================================
   Safety strip
   ============================================================ */
.safety {
  border-top: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  background: var(--sc-background);
}
.safety .wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 28px;
  max-width: 760px;
}
.safety .s-ico { color: var(--sc-secondary-text); flex-shrink: 0; margin-top: 1px; }
.safety p {
  margin: 0;
  font-size: 14px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--sc-surface);
  border-top: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  padding: 48px 0 36px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-tertiary-text);
}
.footer-col a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-secondary-text);
  margin-bottom: 11px;
  transition: color var(--sc-motion-base) var(--sc-motion-easing);
}
.footer-col a:hover { color: var(--sc-primary-action); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--sc-tertiary-text);
  font-weight: 500;
}

@media (min-width: 760px) {
  .footer-grid { flex-direction: row; justify-content: space-between; }
  .footer-cols { grid-template-columns: repeat(3, minmax(140px, auto)); gap: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   Legal / content pages
   ============================================================ */
.legal {
  padding: 48px 0 80px;
}
.legal .wrap { max-width: 760px; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-primary-action);
  margin-bottom: 26px;
}
.legal h1 {
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
}
.legal .updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--sc-tertiary-text);
  font-weight: 600;
}
.legal .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}
.legal h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 40px 0 0;
}
.legal p {
  font-size: 16px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.6;
  margin: 12px 0 0;
}
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li {
  font-size: 16px;
  color: var(--sc-secondary-text);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
}
.legal strong { color: var(--sc-primary-text); font-weight: 700; }
.legal a.inline { color: var(--sc-primary-action); font-weight: 700; }

.callout {
  margin-top: 22px;
  background: var(--sc-elevated-surface);
  border: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  border-radius: var(--sc-radius-card);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
}
.callout .c-ico { color: var(--sc-primary-action); flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; }

/* support cards */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}
.support-card {
  background: var(--sc-surface);
  border: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  border-radius: var(--sc-radius-card);
  box-shadow: var(--sc-shadow-card);
  padding: 24px;
}
.support-card .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sc-secondary-action);
  color: var(--sc-primary-action);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.support-card h3 { font-size: 18px; font-weight: 800; }
.support-card p { font-size: 15px; color: var(--sc-secondary-text); font-weight: 500; margin: 7px 0 0; line-height: 1.5; }
.support-card a.link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sc-primary-action);
}
@media (min-width: 680px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ */
.faq { margin-top: 36px; }
.faq details {
  border-bottom: 1px solid color-mix(in srgb, var(--sc-hairline) 70%, transparent);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--sc-primary-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform var(--sc-motion-base) var(--sc-motion-easing); color: var(--sc-tertiary-text); flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { font-size: 15px; }
