/* SkinClarity public site — editorial skincare × health-tech */
@import url("../brand/theme.css");

:root {
  --bg: var(--background-primary);
  --bg-elevated: var(--background-elevated);
  --ink: var(--text-primary);
  --ink-soft: var(--text-soft);
  --muted: var(--text-secondary);
  --line: var(--border);
  --accent: var(--brand-primary-dark);
  --accent-hover: var(--brand-primary-darker);
  --accent-soft: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  --nav-h: 5.25rem;
  --max: 1240px;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(246, 243, 239, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 252, 248, 0.94);
}

.nav-inner {
  width: min(var(--max), calc(100% - 2.75rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.brand:hover {
  color: inherit;
}

/* Cropped wordmark ~3.1:1 — size by width so "SkinClarity" is readable */
.brand img {
  width: 180px;
  height: auto;
  max-height: none;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 10px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .nav-portal {
  margin-left: 0.35rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.nav-links .nav-portal:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-elevated);
}

/* —— Layout —— */
.wrap {
  width: min(var(--max), calc(100% - 2.75rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* —— Hero —— */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
}

.hero-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-logo {
  width: min(320px, 78vw);
  height: auto;
  margin-bottom: 1.75rem;
}

.hero-lead {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 36rem;
}

.hero-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  max-width: 38rem;
}

.hero-tagline {
  margin: 1.35rem 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: var(--bg-elevated);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: #f0ebe4;
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

/* —— How it works —— */
.how {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.how-intro {
  margin-bottom: 2.75rem;
}

.how-intro h2 {
  max-width: 18ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 1.75rem 1.5rem 0.25rem 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step:first-child {
  padding-left: 0;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
}

.step h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 28ch;
  padding-right: 0.5rem;
}

/* —— Technology —— */
.tech-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tech-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.tech-list strong {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tech-list span {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Research band —— */
.band {
  background: var(--warm-deep);
  color: #f5f1ea;
  padding: 4.5rem 0;
}

.band .section-label {
  color: var(--brand-primary);
}

.band .lead {
  color: #b7aea3;
}

.band-inner {
  display: grid;
  grid-template-columns: 1.45fr auto;
  gap: 2rem;
  align-items: end;
}

.band h2 {
  color: #fff;
  max-width: 14ch;
}

/* —— Mission —— */
.mission {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.75rem;
  align-items: start;
}

.mission blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}

/* —— Disclaimer —— */
.disclaimer {
  padding: 2rem 0 1rem;
}

.disclaimer-box {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 48rem;
}

.disclaimer-box strong {
  color: var(--ink-soft);
  font-weight: 650;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 2.25rem;
  margin-top: 0.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand img {
  width: 150px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Assessment entry (separate product) —— */
.assess-entry {
  padding: 4.5rem 0 5.5rem;
  max-width: 40rem;
}

.assess-entry h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.15rem;
}

.assess-entry .lead {
  margin-bottom: 1.75rem;
}

.assess-note {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 36rem;
}

/* —— Legal pages —— */
.legal {
  padding: 3.5rem 0 5rem;
  max-width: 42rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.legal h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin: 2rem 0 0.55rem;
  max-width: none;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding: 2.5rem 0 3rem;
  }

  .hero-logo {
    width: min(260px, 72vw);
  }

  .tech-grid,
  .band-inner,
  .mission {
    grid-template-columns: 1fr;
  }



  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .step {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
  }

  .step p {
    max-width: none;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 4.5rem;
  }

  .brand img {
    width: 138px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(22, 20, 18, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.15rem;
  }

  .nav-links .nav-portal {
    margin: 0.85rem 0 0.25rem;
    text-align: center;
  }

  .wrap {
    width: min(var(--max), calc(100% - 1.75rem));
  }






}

@media (min-width: 1100px) {
  .brand img {
    width: 190px;
  }
}
