/* Ever Better Skincare Labs shared styles
   Palette pulled from everbetterskincare.com to keep Labs feeling
   like a natural extension of the main brand. */

:root {
  --ink: #2F3A32;
  --forest: #1E3A2A;
  --rose: #D4748A;
  --rose-dark: #BE5C73;
  --gold: #D4B86A;
  --cream: #FAF9F6;
  --cream-alt: #F7F5EF;
  --peach: #FDF0E6;
  --sage: #F0F7EC;
  --pink-pale: #FDF2F8;
  --white: #FFFFFF;
  --muted: #7B847D;
  --muted-2: #6A746D;
  --border: rgba(47, 58, 50, 0.1);

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Cabin", "Helvetica Neue", Arial, sans-serif;

  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-card: 0 12px 30px rgba(47, 58, 50, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }

p { margin: 0 0 16px; color: var(--muted-2); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}

.eyebrow.on-dark { color: var(--gold); }

.section-sub {
  max-width: 640px;
  color: var(--muted-2);
  font-size: 18px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-rose { background: var(--rose); color: var(--white); }
.btn-rose:hover { background: var(--rose-dark); }

.btn-green { background: var(--forest); color: var(--cream); }
.btn-green:hover { background: #142d1f; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(250,249,246,0.5); }
.btn-outline-light:hover { background: rgba(250,249,246,0.12); }

.btn-sm { padding: 10px 22px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  font-family: var(--font-head);
  letter-spacing: 0.6px;
  font-weight: 600;
  padding: 10px 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo span { color: var(--rose); font-weight: 700; }

.logo-img { height: 46px; width: auto; display: block; }
.footer-inner .logo-img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a.nav-link {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
}
.main-nav a.nav-link:hover { opacity: 1; color: var(--rose); }

.nav-toggle { display: none; }

@media (max-width: 800px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
  }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 24px 30px;
  }
}

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 26px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }

.hero-visual {
  background: linear-gradient(160deg, var(--sage), var(--pink-pale));
  border-radius: 24px;
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.hero-visual .lab-tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-dark);
  background: rgba(255,255,255,0.7);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.hero-visual h3 { margin-bottom: 6px; }
.hero-visual p { margin-bottom: 0; font-size: 14px; }
.hero-visual-row { display: flex; flex-direction: column; gap: 14px; }
.hero-visual-card {
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 16px 18px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; background: var(--cream-alt); }
.section.white { background: var(--white); }
.section.dark {
  background: var(--forest);
  color: var(--cream);
}
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark p { color: rgba(250,249,246,0.75); }
.section-head { max-width: 700px; margin: 0 0 46px; }
.section-head.center { margin: 0 auto 46px; text-align: center; }

/* ---------- Principle / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.card.peach { background: var(--peach); box-shadow: none; }
.card.sage { background: var(--sage); box-shadow: none; }
.card.pink { background: var(--pink-pale); box-shadow: none; }

.card-icon { font-size: 30px; margin-bottom: 14px; display: block; }

/* ---------- Tier cards ---------- */
.tier-card { display: flex; flex-direction: column; gap: 18px; position: relative; }
.tier-card .tier-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.tier-card .tier-tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-dark);
}
.tier-card ul { margin: 0; padding: 0 0 0 4px; list-style: none; }
.tier-card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 15px;
  display: flex;
  gap: 10px;
}
.tier-card ul li:first-child { border-top: none; }
.tier-card ul li::before { content: "✓"; color: var(--rose-dark); font-weight: 700; flex-shrink: 0; }

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 50px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.pipeline .step {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}
.pipeline .arrow { color: var(--rose); font-size: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step-item { text-align: left; }
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  color: var(--rose);
  margin-bottom: 10px;
}
.step-item h3 { font-size: 17px; margin-bottom: 8px; }
.step-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- Lab prototype cards ---------- */
.lab-card {
  background: var(--sage);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-card .lab-id {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--rose-dark);
}
.lab-card .status {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.7);
  color: var(--muted-2);
}

.disclaimer-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 30px;
  max-width: 700px;
}

/* ---------- Sample report mockup ---------- */
.mock-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .mock-wrap { grid-template-columns: 1fr; } }
.mock-report {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px dashed var(--border);
}
.mock-report .mock-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream-alt);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.mock-stat { margin-bottom: 18px; }
.mock-stat .label { font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.mock-bar { background: var(--cream-alt); border-radius: var(--radius-pill); height: 10px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: var(--rose); border-radius: var(--radius-pill); }

/* ---------- Philosophy quote ---------- */
.philosophy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.philosophy .quote {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 18px;
}
.philosophy .attribution {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-q .plus { font-size: 22px; color: var(--rose); transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-item.open .accordion-q .plus { transform: rotate(45deg); }
.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-a-inner { padding: 0 4px 22px; font-size: 15px; color: var(--muted-2); }
.faq-group-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin: 50px 0 6px;
}
.faq-group-title:first-child { margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 620px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(250,249,246,0.7);
  padding: 50px 0 30px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner nav a { opacity: 0.85; }
.footer-inner nav a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(250,249,246,0.12);
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- Forms (apply page) ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 42px;
}
@media (max-width: 700px) { .form-card { padding: 26px; } }

.form-section-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin: 36px 0 18px;
}
.form-section-title:first-child { margin-top: 0; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream-alt);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option, .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--cream-alt);
}
.radio-option input, .checkbox-option input { margin-top: 3px; }
.radio-option strong, .checkbox-option strong { display: block; font-size: 14px; }
.radio-option span.desc, .checkbox-option span.desc { font-size: 13px; color: var(--muted); }

.creator-fields {
  border-left: 3px solid var(--rose);
  padding-left: 20px;
  margin-top: 18px;
  display: none;
}
.creator-fields.visible { display: block; }

.form-footer-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

.confirm-panel {
  display: none;
  text-align: center;
  padding: 60px 30px;
}
.confirm-panel.visible { display: block; }
.confirm-panel .icon { font-size: 44px; margin-bottom: 18px; }

.error-text { color: var(--rose-dark); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose-dark); }
.field.invalid .error-text { display: block; }
