/* ============================================================
   NUVITA — Apple-style design system
   ============================================================ */
:root {
  /* Surfaces */
  --bg:        #fbfbfd;   /* page off-white */
  --white:     #ffffff;
  --gray:      #f5f5f7;   /* Apple section gray */
  --gray-2:    #ededf0;
  --dark:      #0a0a0b;   /* near-black section */
  --dark-2:    #161618;

  /* Ink */
  --ink:       #1d1d1f;   /* primary text */
  --ink-soft:  #6e6e73;   /* secondary text */
  --ink-faint: #86868b;   /* tertiary / captions */
  --line:      rgba(0,0,0,0.10);
  --line-soft: rgba(0,0,0,0.06);

  /* Accent — refined warm amber (the old "gold", stilled) */
  --accent:      #b87a2e;
  --accent-deep: #9c641f;
  --accent-soft: rgba(184,122,46,0.10);
  --accent-line: rgba(184,122,46,0.28);

  /* On-dark ink */
  --d-ink:       #f5f5f7;
  --d-soft:      rgba(245,245,247,0.66);
  --d-faint:     rgba(245,245,247,0.40);
  --d-line:      rgba(255,255,255,0.12);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1040px;
  --maxw-wide: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent-soft); }

/* ---------- Reusable bits ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
section.dark .eyebrow { color: var(--accent); }

.h-display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 82px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.03em;
}
.h-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -0.025em;
}
.h-sub {
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 400; line-height: 1.45;
  color: var(--ink-soft); letter-spacing: -0.012em;
}
.muted { color: var(--ink-soft); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; cursor: pointer;
  border: none; border-radius: 980px;
  padding: 13px 26px; text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease);
}
.btn-fill { background: var(--ink); color: var(--white); }
.btn-fill:hover { background: #000; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); opacity: 0.9; }
.link-chev {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 17px; font-weight: 500; color: var(--accent);
  text-decoration: none; letter-spacing: -0.01em;
  transition: gap .25s var(--ease);
}
.link-chev::after { content: "›"; font-size: 20px; line-height: 1; transform: translateY(-1px); }
.link-chev:hover { gap: 7px; }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(251,251,253,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line-soft);
}
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-family: var(--font-display); }
.nav-logo b { font-weight: 600; color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--ink-soft); text-decoration: none; transition: color .2s; letter-spacing: 0; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px; font-weight: 500; color: #fff; background: var(--accent);
  border: none; border-radius: 980px; padding: 7px 15px; cursor: pointer;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-deep); }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
section.tight { padding: 96px 0; }
section.gray { background: var(--gray); }
section.white { background: var(--white); }
section.dark { background: var(--dark); color: var(--d-ink); }
section.dark .h-sub { color: var(--d-soft); }
section.dark .muted { color: var(--d-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head .h-sub { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh; padding: 130px 32px 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .lo { color: var(--ink-faint); display: block; font-weight: 600; }
.hero .tagline {
  font-size: clamp(20px, 2.4vw, 27px); font-weight: 600;
  color: var(--accent); letter-spacing: -0.01em; margin-bottom: 26px;
  font-family: var(--font-display); font-style: italic; white-space: nowrap;
}
.hero .h-sub { max-width: 600px; margin: 0 auto 40px; }
.hero .h-sub b { color: var(--ink); font-weight: 600; }
.hero-btns { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-visual { margin-top: 76px; width: 100%; max-width: 980px; }

/* ---------- Photo placeholder ---------- */
.ph {
  position: relative; overflow: hidden;
  background: var(--gray);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 11px);
  border: 0.5px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
}
.ph.on-dark {
  background: #111113;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 11px);
  border-color: var(--d-line);
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.05em; color: var(--ink-faint);
  text-transform: uppercase; padding: 6px 12px;
  border: 0.5px solid var(--line); border-radius: 980px;
  background: rgba(255,255,255,0.6);
}
.ph.on-dark span { color: var(--d-faint); border-color: var(--d-line); background: rgba(0,0,0,0.3); }
.hero-visual .ph { aspect-ratio: 16/9; }

/* ---------- Real images (cover, inherit container radius) ---------- */
.img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.hero-visual { border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 24px 70px rgba(0,0,0,0.10); }
.hero-visual .img { aspect-ratio: 16/9; }
.fc-media { overflow: hidden; }
.fc-media .img { aspect-ratio: 4/3; }
.mod-media { overflow: hidden; }
.mod-media .img { min-height: 340px; }
.day .dmedia { overflow: hidden; }

/* ---------- Math / savings table ---------- */
.math-card {
  background: var(--white); border-radius: 26px;
  border: 0.5px solid var(--line-soft);
  box-shadow: 0 2px 30px rgba(0,0,0,0.04);
  overflow: hidden; max-width: 740px; margin: 0 auto;
}
.math-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 0.5px solid var(--line-soft);
}
.math-row:last-child { border-bottom: none; }
.math-row .lbl { font-size: 16px; color: var(--ink-soft); }
.math-row .val { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.math-row.sum { background: var(--gray); }
.math-row.sum .lbl, .math-row.sum .val { color: var(--ink); font-weight: 600; font-size: 17px; }
.math-row.win { background: var(--accent-soft); }
.math-row.win .lbl { color: var(--accent-deep); font-weight: 600; font-size: 17px; }
.math-row.win .val { color: var(--accent-deep); font-weight: 700; font-size: 26px; }

.save-banner {
  margin-top: 28px; max-width: 740px; margin-left: auto; margin-right: auto;
  background: var(--ink); color: var(--white);
  border-radius: 22px; padding: 34px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.save-banner .lead { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 320px; }
.save-banner .lead b { display: block; color: #fff; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.save-banner .big { font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; font-family: var(--font-display); }
.save-banner .big small { display: block; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.45); margin-top: 6px; letter-spacing: 0; }

/* ---------- Pillars ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--white); border-radius: 24px; padding: 36px 32px;
  border: 0.5px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
section.dark .feature-card { background: var(--dark-2); border-color: var(--d-line); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.08); }
.fc-index { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.fc-media { aspect-ratio: 4/3; border-radius: 16px; margin-bottom: 4px; }
.fc-title { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); }
.fc-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
section.dark .fc-desc { color: var(--d-soft); }
.fc-foot { margin-top: auto; padding-top: 14px; border-top: 0.5px solid var(--line-soft); font-size: 13px; color: var(--accent); }
section.dark .fc-foot { border-color: var(--d-line); }

/* ---------- Week plan ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 72px; }
.day {
  background: var(--white); border: 0.5px solid var(--line-soft);
  border-radius: 18px; padding: 22px 12px; text-align: center;
  transition: transform .3s var(--ease);
}
.day:hover { transform: translateY(-3px); }
.day.well { background: var(--accent-soft); border-color: var(--accent-line); }
.day .dname { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.day.well .dname { color: var(--accent-deep); }
.day .dmedia { width: 38px; height: 38px; border-radius: 11px; margin: 0 auto 14px; }
.day .dact { font-size: 14px; font-weight: 600; color: var(--ink); }
.day.well .dact { color: var(--accent-deep); }
.day .dnote { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .v { font-size: clamp(48px, 5vw, 64px); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; font-family: var(--font-display); }
.stat .l { font-size: 15px; color: var(--ink-soft); margin-top: 12px; line-height: 1.4; }
section.dark .stat .l { color: var(--d-soft); }

/* ---------- Modules (alternating rows) ---------- */
.modules { display: flex; flex-direction: column; gap: 28px; }
.module {
  background: var(--white); border-radius: 28px; border: 0.5px solid var(--line-soft);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.module:nth-child(even) .mod-media { order: -1; }
.mod-media { min-height: 340px; }
.mod-media .ph { width: 100%; height: 100%; border-radius: 0; border: none; }
.mod-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mod-num { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.mod-title { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.025em; font-family: var(--font-display); }
.mod-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.58; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font-size: 13px; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 13px; border-radius: 980px; }

/* ---------- Science ---------- */
.science { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
.sci-card {
  background: var(--dark-2); border: 0.5px solid var(--d-line);
  border-radius: 22px; padding: 36px 34px;
}
.sci-v { font-size: clamp(44px, 5vw, 60px); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; margin-bottom: 14px; font-family: var(--font-display); }
.sci-l { font-size: 18px; font-weight: 600; color: var(--d-ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.sci-src { font-size: 13px; color: var(--d-faint); line-height: 1.5; }
.sci-src a { color: var(--accent); text-decoration: none; }
.sci-src a:hover { text-decoration: underline; }

/* ---------- CTA / price ---------- */
.cta { text-align: center; }
.price-block { margin: 40px 0 8px; }
.price { font-size: clamp(80px, 11vw, 132px); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.045em; font-family: var(--font-display); }
section.dark .price { color: var(--d-ink); }
.price-note { font-size: 16px; color: var(--ink-soft); margin-top: 10px; }
section.dark .price-note { color: var(--d-soft); }
.includes { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; max-width: 760px; margin: 40px auto 48px; }
.include { font-size: 15px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
section.dark .include { color: var(--d-soft); }
.include::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid var(--accent); flex: none; }
.cta-guarantee { font-size: 13px; color: var(--ink-faint); margin-top: 22px; }
.cta-foot { margin-top: 80px; padding-top: 40px; border-top: 0.5px solid var(--line-soft); }
section.dark .cta-foot { border-color: var(--d-line); }
.cta-foot .ft { font-size: 21px; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.cta-foot .fn { font-size: 14px; color: var(--ink-faint); margin-top: 8px; }

/* ---------- Footer ---------- */
footer {
  background: var(--gray); padding: 40px 32px;
  border-top: 0.5px solid var(--line-soft);
}
.footer-in {
  max-width: var(--maxw-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer-logo { font-size: 17px; font-weight: 600; color: var(--ink); }
.footer-logo b { color: var(--accent); font-weight: 600; }
.footer-tag { font-size: 13px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Hidden only when JS is active; if JS fails content stays visible. */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .module { grid-template-columns: 1fr; }
  .module:nth-child(even) .mod-media { order: 0; }
  .mod-media { min-height: 260px; }
  .mod-body { padding: 40px 32px; }
  .science { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  section { padding: 84px 0; }
  .wrap, .wrap-wide { padding: 0 22px; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .save-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero { min-height: 88vh; padding: 110px 22px 60px; }
}
@media (max-width: 460px) {
  .week { grid-template-columns: repeat(2, 1fr); }
  .math-row { padding: 16px 20px; }
}
