/* ============================================================
   tēra — Biodegradable Dental Floss Picks
   Premium scroll-animated landing · ADV+MVMT Studio
   ============================================================ */

:root {
  --bone: #F4F0E8;
  --mist: #E5E0D5;
  --ink: #1C2420;
  --evergreen: #2E4639;
  --sage: #A8BCA1;
  --clay: #C8744A;        /* display accents (large text only — 3.5:1) */
  --clay-deep: #B05E36;   /* button fill — 4.65:1 with white text */
  --clay-text: #A35427;   /* small text on bone — 4.8:1 */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--narrow { width: min(860px, 92vw); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-text);
  margin-bottom: 1.2rem;
}
.eyebrow--sage { color: var(--sage); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title em, .problem__title em, .outro__title em, .hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
}
.section--dark .section-title em,
.section--dark .problem__title em,
.section--dark .outro__title em { color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  transition: transform 0.35s var(--ease-out), background 0.3s, box-shadow 0.35s, color 0.3s;
  will-change: transform;
}
.btn--clay {
  background: var(--clay-deep);
  color: #fff;
  box-shadow: 0 8px 28px rgba(200, 116, 74, 0.32);
}
.btn--clay:hover {
  background: #9C5230;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(200, 116, 74, 0.42);
}
.btn--ghost {
  border: 1.5px solid rgba(28, 36, 32, 0.25);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--xl { padding: 1.25rem 2.6rem; font-size: 1.1rem; }
.btn--nav { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(244, 240, 232, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(28, 36, 32, 0.07);
}
.nav__inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.nav__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
  margin-left: 4px;
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.25s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.hero__blob--1 {
  width: 520px; height: 520px;
  background: var(--sage);
  top: -10%; right: -5%;
}
.hero__blob--2 {
  width: 420px; height: 420px;
  background: #E8C9B0;
  bottom: -15%; left: -8%;
}
.hero__inner {
  position: relative;
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__sub {
  font-size: 1.1rem;
  max-width: 46ch;
  opacity: 0.8;
  margin-bottom: 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero__chips { display: flex; gap: 0.7rem; list-style: none; flex-wrap: wrap; }
.hero__chips li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(28, 36, 32, 0.18);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.4);
}

.hero__visual { position: relative; }
.hero__product { position: relative; z-index: 2; will-change: transform; }

.hero__badge {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 10px 30px rgba(28, 36, 32, 0.12);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  will-change: transform;
}
.hero__badge strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--evergreen); }
.hero__badge span { font-size: 0.75rem; opacity: 0.7; }
.hero__badge--1 { top: 14%; left: -4%; }
.hero__badge--2 { bottom: 12%; right: -2%; }

.hero__scrollcue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(28, 36, 32, 0.3);
  border-radius: 14px;
}
.hero__scrollcue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--clay);
  animation: scrollcue 1.8s infinite var(--ease-out);
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Generated product images ---------- */
.asset-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(28, 36, 32, 0.14);
  object-fit: cover;
}
.asset-img--hero,
.asset-img--product { aspect-ratio: 4 / 5; }

/* ---------- Image placeholders (kept as fallback utility) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 30% 20%, #FBF8F2 0%, var(--mist) 55%, #D8D2C2 100%);
  box-shadow: 0 30px 60px rgba(28, 36, 32, 0.14);
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.5) 0%, transparent 40%);
}
.ph--hero { aspect-ratio: 4 / 5; }
.ph--product { aspect-ratio: 4 / 5; }
.ph__pick { width: 38%; color: var(--evergreen); opacity: 0.85; }
.ph__pick--tilt { transform: rotate(18deg); }
.ph__note {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.45;
  font-family: monospace;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  white-space: nowrap;
}
.marquee__track i { color: var(--sage); font-style: normal; }

/* ---------- Dark sections ---------- */
.section--dark {
  background: linear-gradient(180deg, var(--ink) 0%, #222E27 100%);
  color: var(--bone);
}
.section--mist { background: var(--mist); }

/* ---------- Problem ---------- */
.problem { padding: 8rem 0; }
.problem__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.problem__lede { max-width: 60ch; opacity: 0.75; font-size: 1.1rem; margin-bottom: 4.5rem; }
.problem__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat {
  border-top: 1px solid rgba(244, 240, 232, 0.18);
  padding-top: 1.6rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
}
.stat__unit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--sage);
  margin-left: 0.3rem;
}
.stat p { margin-top: 0.8rem; opacity: 0.7; font-size: 0.95rem; max-width: 26ch; }

/* ---------- Product showcase ---------- */
.product { padding: 8rem 0 6rem; }
.product .section-title { margin-bottom: 0; }
.product__stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4rem;
}
.product__feature {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.feature__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--clay-text);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feature p { opacity: 0.75; font-size: 0.98rem; }
.product__feature--left { text-align: right; }
.product__feature--left .feature__num { text-align: right; }

/* ---------- Materials ---------- */
.materials { padding: 8rem 0; }
.materials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}
.mat-card {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 2.6rem;
  box-shadow: 0 16px 40px rgba(28, 36, 32, 0.08);
}
.mat-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}
.mat-card ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mat-card li { padding-left: 1.8rem; position: relative; }
.mat-card--in li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--evergreen);
  font-weight: 700;
}
.mat-card--out { background: var(--ink); color: var(--bone); }
.mat-card--out li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--clay);
  font-weight: 700;
}
.mat-card--out s { text-decoration-color: rgba(200, 116, 74, 0.6); opacity: 0.85; }

/* ---------- Comparison ---------- */
.compare { padding: 8rem 0; }
.compare__table {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 36, 32, 0.1);
  background: #fff;
}
.compare__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  padding: 1.15rem 1.8rem;
  border-bottom: 1px solid rgba(28, 36, 32, 0.07);
  font-size: 0.97rem;
  align-items: center;
}
.compare__row:last-child { border-bottom: 0; }
.compare__row--head {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding-block: 1.3rem;
}
.compare__row--head .compare__tera { color: var(--sage); font-style: italic; font-weight: 600; font-size: 1.3rem; }
.compare__row > span:first-child { font-weight: 600; opacity: 0.85; }
.compare__row .compare__tera { font-weight: 600; color: var(--evergreen); }
.compare__row > span:last-child { opacity: 0.6; }
.compare__row--head > span:last-child { opacity: 0.8; }
.compare__cta { text-align: center; margin-top: 3rem; }

/* ---------- Ritual ---------- */
.ritual { padding: 8rem 0; }
.ritual__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
.step {
  border-top: 1px solid rgba(244, 240, 232, 0.18);
  padding-top: 1.8rem;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.step p { opacity: 0.72; font-size: 0.97rem; }

/* ---------- Reviews ---------- */
.reviews { padding: 8rem 0; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3.5rem;
}
.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 14px 36px rgba(28, 36, 32, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.review:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(28, 36, 32, 0.12);
}
.review__stars { color: var(--clay); letter-spacing: 3px; }
.review blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}
.review figcaption { font-size: 0.85rem; opacity: 0.6; }

/* ---------- FAQ ---------- */
.faq { padding: 8rem 0; }
.faq__list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.faq__item {
  background: var(--bone);
  border-radius: 16px;
  padding: 0 1.8rem;
  box-shadow: 0 8px 24px rgba(28, 36, 32, 0.06);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.8px;
  background: var(--clay);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { padding-bottom: 1.5rem; opacity: 0.75; max-width: 64ch; }

/* ---------- Outro / footer CTA ---------- */
.outro {
  position: relative;
  overflow: hidden;
  padding: 9rem 0;
  text-align: center;
}
.outro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 36, 32, 0.76), rgba(28, 36, 32, 0.9));
  z-index: 1;
}
.outro__inner { position: relative; z-index: 2; }
.outro__inner > :not(.outro__image) {
  position: relative;
  z-index: 2;
}
.outro__image,
.outro__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.outro__image { z-index: 0; }
.outro__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 36, 32, 0.72), rgba(28, 36, 32, 0.9));
  z-index: 1;
}
.outro__image img {
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.85) contrast(0.95);
}
.outro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.outro__title .line { display: block; overflow: hidden; }
.outro__sub { opacity: 0.75; font-size: 1.1rem; margin-bottom: 2.6rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.footer__links { display: flex; gap: 1.8rem; }
.footer__links a {
  font-size: 0.88rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.footer__links a:hover { opacity: 1; }
.footer__fine { font-size: 0.8rem; opacity: 0.45; }

/* ---------- Reveal base state (animated by GSAP) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.line { display: block; overflow: hidden; }
.line__inner { display: block; will-change: transform; }
.js .line__inner { transform: translateY(112%); }
.js .hero__eyebrow, .js .hero__sub, .js .hero__cta .btn { opacity: 0; transform: translateY(24px); }
.js .hero__chips li { opacity: 0; transform: translateY(16px); }
.js .hero__badge { opacity: 0; transform: scale(0.6); }
.js .hero__product { opacity: 0; transform: translateY(60px) scale(0.96); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .product__stage { grid-template-columns: 1fr; }
  .product__feature--left { text-align: left; }
  .product__feature--left .feature__num { text-align: left; }
  .product__feature { gap: 2.2rem; }
  .product__visual { max-width: 420px; margin-inline: auto; width: 100%; order: -1; }
  .problem__stats, .ritual__steps, .reviews__grid { grid-template-columns: 1fr; }
  .materials__grid { grid-template-columns: 1fr; }
  .nav__links, .nav .btn--nav { display: none; }
  .nav__burger { display: block; }
  .nav__mobile {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.5rem 4vw 2rem;
    background: rgba(244, 240, 232, 0.97);
    backdrop-filter: blur(14px);
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease-out);
    position: absolute;
    inset: 100% 0 auto 0;
    box-shadow: 0 20px 40px rgba(28,36,32,0.1);
  }
  .nav__mobile a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
  .nav__mobile .btn { justify-content: center; }
  .nav.menu-open .nav__mobile { transform: translateY(0); }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav.menu-open { background: rgba(244, 240, 232, 0.97); }
  .hero__badge--1 { left: 0; }
  .hero__badge--2 { right: 0; }
  .compare__row { padding: 1rem 1.1rem; font-size: 0.88rem; gap: 0.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .line__inner { transform: none; }
  .js .hero__eyebrow, .js .hero__sub, .js .hero__cta .btn, .js .hero__chips li,
  .js .hero__badge, .js .hero__product { opacity: 1; transform: none; }
}
