/* Sequora Bio — all styles. Values come from the design handoff (README.md + reference/). */

:root {
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --pearl: #f7f4ee;
  --white: #ffffff;
  --soft: #f3f7fa;
  --tint: #eef4f9;
  --hover-blue: #cfe3f4;
  --hover-ring: #9fc3e0;
  --img-fallback: #e9eef2;
  --img-fallback-2: #dfe9f3;

  --ink: #1b2733;
  --muted: #55636f;
  --hero-body: #3e4a55;
  --hairline: #e4e9ed;
  --ring: #c3d2de;

  --accent: #3d7bab;
  --accent-400: #6fa3cc;
  --accent-500: #4a87b6;
  --accent-600: #30668f;
  --accent-700: #24557a;
  --kicker: #2f6a96;
  --error: #8a3b2a;

  /* Elevation, copied from the Organic design system stylesheet */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  --gutter: clamp(20px, 5vw, 72px);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--pearl); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  text-wrap: pretty; overflow-x: clip;
}
h1, h2, h3 {
  font-family: var(--font-heading); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.015em; margin: 0;
}
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* — shared bits — */
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--kicker);
}
.h2 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.05; }
.sub { font-size: 17px; color: var(--muted); }
.link-strong { font-weight: 700; text-underline-offset: 4px; }

.section {
  max-width: 1360px; margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  scroll-margin-top: calc(var(--nav-h, 100px) + 12px); /* --nav-h is measured in site.js; the nav wraps to two rows on phones */
}
.section-head { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.section-head > .link-strong { margin-left: auto; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }

/* — buttons (pill) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: var(--ink); background: transparent;
  border: 1px solid transparent; border-radius: 999px;
  padding: 8.8px 15.84px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary, .btn-primary:hover { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-600); }
.btn-primary:active:not(:disabled) { background: var(--accent-700); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-ghost-light {
  color: var(--ink); background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 2px var(--ring);
}
.btn-ghost-light:hover { color: var(--ink); background: rgba(255, 255, 255, .9); }
.btn-ghost-dark { color: #fff; box-shadow: inset 0 0 0 2px var(--muted); }
.btn-ghost-dark:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.btn-ghost-dark:active { background: color-mix(in srgb, var(--accent) 28%, transparent); }

.input {
  min-height: 36px; padding: 6px 14px; font: inherit; font-size: 14px;
  color: var(--ink); caret-color: var(--accent); background: var(--white);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }

/* — 0. research-use-only gate — */
.gate {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px;
  background: rgba(27, 39, 51, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html.gate-open .gate { display: grid; }
html.gate-open body { overflow: hidden; }
.gate-card {
  background: var(--white); border-radius: 40px; max-width: 520px; width: 100%;
  padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-lg);
}
.gate-card h2 { font-size: 44px; line-height: 1.05; }
.gate-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.gate-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.gate-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.gate-card .btn { width: 100%; margin-top: 8.8px; padding: 14px; }

/* — 1. ticker — */
.ticker {
  background: var(--ink); color: var(--tint);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: marquee 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding: 0 28px; }
.ticker-track span::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-400);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* — 2. nav — */
.nav {
  position: sticky; top: 0; z-index: 20; background: var(--pearl);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 16px var(--gutter); box-shadow: 0 1px 0 var(--hairline);
}
/* Transparent logo cropped from the handoff PNG (1610×314). */
.logo { display: block; flex: none; }
.logo img { width: 100%; height: auto; }
.logo-nav { width: 308px; }
.logo-footer { width: 220px; }

.nav-links {
  display: flex; flex-wrap: nowrap; gap: 18px; font-size: 14px; font-weight: 600;
  flex: 1 1 200px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* — 3. hero — */
.hero { padding: 24px var(--gutter) 72px; display: flex; flex-direction: column; gap: 32px; }
.hero-panel {
  position: relative; border-radius: 56px; overflow: hidden;
  min-height: clamp(560px, 72vh, 760px); display: flex; align-items: center;
  background: var(--img-fallback);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,244,238,.94) 0%, rgba(247,244,238,.82) 38%, rgba(247,244,238,0) 72%);
}
.hero-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px;
  padding: clamp(32px, 6vw, 80px); max-width: 720px;
}
.hero-copy h1 { font-size: clamp(52px, 7vw, 92px); line-height: 1; letter-spacing: -.015em; }
.hero-copy p { font-size: 18px; line-height: 1.6; max-width: 46ch; color: var(--hero-body); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-card {
  position: absolute; z-index: 2; right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 48px);
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow-md);
  padding: 16px 22px; display: flex; flex-direction: column; gap: 2px;
}
.stat-card .kicker { font-size: 12px; }
.stat-value { font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1.1; }
.stat-note { font-size: 14px; color: var(--muted); }

/* Narrow screens: the floating stat card would cover the buttons, so it joins the flow,
   and the text needs a full-width wash instead of the left-to-right fade. */
@media (max-width: 719px) {
  .hero-panel { flex-direction: column; align-items: stretch; justify-content: center; }
  .hero-panel::before { background: linear-gradient(180deg, rgba(247,244,238,.92) 0%, rgba(247,244,238,.82) 70%, rgba(247,244,238,.5) 100%); }
  .stat-card { position: relative; right: auto; bottom: auto; align-self: flex-start; margin: 0 clamp(32px, 6vw, 80px) 32px; }
}

.proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.proof { background: var(--soft); border-radius: 28px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.proof strong { font-size: 16px; }
.proof span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* — 4. featured products — */
#products { padding-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.product {
  background: var(--white); border-radius: 24px; padding: 14px 14px 20px;
  display: flex; flex-direction: column; gap: 14px;
  color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-sm);
  transition: background .25s ease, box-shadow .25s ease;
}
.product:hover { background: var(--hover-blue); color: var(--ink); box-shadow: 0 0 0 1px var(--hover-ring), var(--shadow-md); }
.product img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--img-fallback-2); }
.product-text { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 4px; }
.product h3 { font-size: 30px; }
.product-meta { font-size: 14px; color: var(--muted); }

/* — 5. categories — */
#categories { display: flex; flex-direction: column; gap: 28px; }
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.category {
  text-decoration: none; color: var(--ink); background: var(--soft);
  border-radius: 36px; padding: 32px 28px; min-height: 220px;
  display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s ease;
}
.category:nth-child(4n+1), .category:nth-child(4n) { background: var(--tint); }
.category:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.num-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--kicker);
}
.category h3 { font-size: 30px; }
.category-desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.category-more { margin-top: auto; font-weight: 700; color: var(--accent-700); }

/* — 6. purpose — */
.purpose { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.purpose p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.purpose .pull { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1.2; color: var(--kicker); max-width: none; }
.purpose .link-strong { align-self: flex-start; }

/* — 7. research focus — */
#research { display: flex; flex-direction: column; gap: 28px; }
.research { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 16px; min-height: 520px; }
.rcard {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 520px;
  border-radius: 40px; overflow: hidden; cursor: pointer; background: var(--img-fallback);
  transition: flex-grow .5s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.rcard.is-active { flex-grow: 2.6; box-shadow: var(--shadow-md); }
.rcard-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: var(--pos, 50% 50%);
}
.rcard-num {
  position: absolute; top: 20px; left: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--kicker);
}
.rcard-panel {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--white); border-radius: 30px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
}
.rcard h3 { font-size: 21px; line-height: 1.05; overflow-wrap: anywhere; hyphens: auto; }
.rcard-more { display: none; flex-direction: column; gap: 10px; }
.rcard.is-active .rcard-panel { padding: 22px 22px 20px; }
.rcard.is-active h3 { font-size: 28px; }
.rcard.is-active .rcard-more { display: flex; }
.rcard-more p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--tint); color: var(--accent-700); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.rcard-more .link-strong { align-self: flex-start; }

@media (max-width: 719px) {
  .research { flex-direction: column; }
  .rcard { min-height: 150px; }
  .rcard.is-active { min-height: 440px; }
  .rcard .rcard-panel { padding: 22px 22px 20px; }
  .rcard h3 { font-size: 28px; }
}

/* — 8. quality — */
.quality { background: var(--soft); border-radius: 56px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 40px; }
.quality-head { max-width: 560px; }
.quality-head p { line-height: 1.6; }
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.standard { display: flex; flex-direction: column; gap: 12px; }
.standard-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 24px;
}
.standard h3 { font-size: 26px; }
.standard p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* — 9. difference — */
#difference {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: start;
}
.diff-copy { display: flex; flex-direction: column; gap: 22px; }
.diff-copy > p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.diffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; }
.diffs div { display: flex; flex-direction: column; gap: 4px; }
.diffs strong { font-size: 16px; }
.diffs span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.coa-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin-top: 8px; }
.coa-form .input { flex: 1 1 220px; }
.coa-form .btn { flex: none; }
.coa-result {
  background: var(--soft); border-radius: 24px; padding: 20px 24px; max-width: 480px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px;
}
.coa-result[hidden], .coa-missing[hidden] { display: none; }
.coa-result div { display: flex; flex-direction: column; gap: 2px; }
.coa-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.coa-result a { font-weight: 700; }
.coa-missing { color: var(--error); font-weight: 600; }

.slider {
  background: var(--ink); color: var(--tint); border-radius: 56px;
  padding: clamp(32px, 5vw, 56px); min-height: 380px;
  display: flex; flex-direction: column; gap: 20px;
}
.slide-count { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--hover-ring); }
.slider h3 { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; color: #fff; }
.slider p { font-size: 17px; line-height: 1.6; color: #c9d7e3; max-width: 40ch; }
.slider-controls { margin-top: auto; display: flex; gap: 10px; }

/* — 10. FAQ — */
#faq { max-width: 1000px; display: flex; flex-direction: column; gap: 24px; }
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--soft); border-radius: 28px; overflow: hidden; }
.faq-q {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 16px; padding: 20px 26px;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 28px; }
.faq-q span:first-child { flex: 1; }
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; font-size: 18px; flex: none;
}
.faq-icon::before { content: '+'; }
.faq-q[aria-expanded="true"] .faq-icon::before { content: '\2212'; }
.faq-a { padding: 0 26px 22px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.faq-a[hidden] { display: none; }

/* — 11. footer — */
.footer {
  max-width: 1360px; margin: 0 auto; padding: 48px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 36px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col:first-child { gap: 12px; }
.footer-col strong { color: var(--ink); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-col .social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--ink); transition: background .2s ease, color .2s ease;
}
.footer-col .social:hover { background: var(--accent); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
#contact { scroll-margin-top: calc(var(--nav-h, 100px) + 12px); overflow-wrap: anywhere; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 13px; }
.footer-legal p { max-width: 80ch; flex: 1 1 400px; }

/* — reduced motion — */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .rcard, .product, .category { transition: none; }
}
