/* TuFit Nutrition - Landing */

:root {
  /* Exact iOS AppTheme (light) */
  --primary: #1B4F8A;          /* AppTheme.primary / primaryDeep */
  --brand-deep: #123764;       /* AppTheme.brandDeep */
  --primary-light: #E4EEF8;    /* AppTheme.primaryLight */
  --background: #F6F9FC;       /* AppTheme.background */
  --surface: #FFFFFF;          /* AppTheme.surface */
  --text: #1B4F8A;             /* AppTheme.primaryDeep (light) - headings */
  --text-secondary: #111111;   /* body copy on light backgrounds */
  --text-tertiary: #555555;
  --text-on-primary: #FFFFFF;
  --card-shadow: rgba(27, 79, 138, 0.08);
  --ring-track: rgba(27, 79, 138, 0.14);
  --macro-protein: #1480FA;
  --macro-carbs: #EF2938;
  --macro-fat: #FA8C0D;
  --splash-brand: #5A9BE6;

  /* Aliases used across the page */
  --navy: var(--primary);
  --navy-deep: var(--brand-deep);
  --navy-ink: var(--brand-deep);
  --navy-soft: var(--primary-light);
  --bg: var(--background);
  --text-soft: var(--text-secondary);
  --text-faint: var(--text-tertiary);
  --white: var(--text-on-primary);
  --line: var(--ring-track);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 56px;
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 18.5px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  width: min(1280px, 100% - 36px);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.eyebrow.light { color: rgba(255, 255, 255, 0.72); }

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo { border-radius: 7px; }

.brand-name {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 560;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
}

.nav-links a:hover {
  color: var(--brand-deep);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--text-on-primary) !important;
  font-weight: 700 !important;
  margin-left: 6px;
  padding: 7px 14px !important;
}

.nav-cta:hover { background: var(--brand-deep) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-deep);
  border-radius: 2px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform var(--ease), background var(--ease);
}

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

.btn-primary {
  background: var(--text-on-primary);
  color: var(--brand-deep);
  box-shadow: 0 4px 16px rgba(18, 55, 100, 0.2);
}

.btn-primary:hover { background: var(--primary-light); }

.btn-lg { padding: 13px 26px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn.disabled,
.btn[aria-disabled="true"] {
  cursor: default;
  transform: none;
  background: var(--text-on-primary);
  color: var(--brand-deep);
}

.product .btn-primary,
.more .btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 16px rgba(27, 79, 138, 0.22);
}

.product .btn-primary:hover,
.more .btn-primary:hover {
  background: var(--brand-deep);
}

.pro-section .btn-primary,
.cta-section .btn-primary,
.hero .btn-primary {
  background: var(--text-on-primary);
  color: var(--brand-deep);
}

.pro-section .btn-primary:hover,
.cta-section .btn-primary:hover,
.hero .btn-primary:hover {
  background: var(--primary-light);
}

.pro-section .btn.disabled,
.pro-section .btn[aria-disabled="true"],
.cta-section .btn.disabled,
.cta-section .btn[aria-disabled="true"],
.hero .btn.disabled,
.hero .btn[aria-disabled="true"] {
  background: var(--text-on-primary);
  color: var(--brand-deep);
}

/* Hero — compact blue band, centered text, no phone */

.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 56px;
  background: linear-gradient(155deg, var(--brand-deep) 0%, var(--primary) 100%);
  color: var(--text-on-primary);
  overflow: hidden;
  text-align: center;
}

.hero-atmosphere {
  display: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
}

.hero-copy {
  width: 100%;
  max-width: 48rem;
  color: var(--text-on-primary);
  text-align: center;
}

.hero-brand {
  font-size: clamp(2.35rem, 4.4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text-on-primary);
}

.hero-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text-on-primary);
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 18px;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-visual,
.hero-phone {
  display: none;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-intro {
  margin-bottom: 28px;
  max-width: 44rem;
}

.section-intro h2,
.spotlight-copy h2,
.pro-copy h2,
.cta-inner h2 {
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  color: var(--text);
}

.section-intro p:not(.eyebrow),
.spotlight-copy > p:not(.eyebrow),
.pro-copy > p:not(.eyebrow) {
  margin-top: 8px;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.product { background: var(--surface); }

.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.spotlight:last-child { margin-bottom: 0; }

.spotlight-flip .spotlight-copy { order: 2; }
.spotlight-flip .spotlight-media { order: 1; }

.spotlight-media {
  display: flex;
  justify-content: center;
  margin: 0;
}

.spotlight-media img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: 0 12px 32px var(--card-shadow);
}

.more {
  background: var(--bg);
  text-align: center;
  padding-top: 40px;
}

.more .section-intro {
  margin-inline: auto;
  margin-bottom: 24px;
  text-align: center;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  text-align: center;
}

.more-list li {
  max-width: 34rem;
  width: 100%;
  margin-inline: auto;
  padding: 22px 20px;
  border: 1px solid var(--ring-track);
  border-radius: 14px;
  background: var(--surface);
  box-sizing: border-box;
}

.more-list h3 {
  font-size: 1.18rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.more-list p {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 32rem;
  margin-inline: auto;
}

.pro-section {
  background: linear-gradient(145deg, var(--brand-deep), var(--primary));
  color: var(--text-on-primary);
}

.pro-section h2 { color: #ffffff !important; }

.pro-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.pro-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84) !important;
}

.pro-benefits {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pro-benefits li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.pro-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.pro-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px 18px;
}

.pro-price {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}

.pro-price span {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.75;
}

.pro-alt {
  margin-top: 8px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}

.pro-note {
  margin: 10px 0 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}


.cta-section {
  background: var(--brand-deep);
  color: var(--text-on-primary);
  padding: 56px 0;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-brand {
  font-size: clamp(2.15rem, 3.8vw, 2.8rem) !important;
  margin-bottom: 2px !important;
  color: #ffffff !important;
}

.cta-inner h2 { color: #ffffff !important; }

.cta-inner > p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
  max-width: 34rem;
  font-size: 1.08rem;
}

.site-footer {
  background: var(--surface);
  color: var(--text-soft);
  padding: 14px 0 10px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 10px;
  align-items: start;
}

.footer-brand .brand {
  gap: 6px;
}

.footer-brand .brand-logo {
  width: 22px;
  height: 22px;
}

.footer-brand .brand-name {
  font-size: 0.95rem;
}

.footer-brand p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.3;
}

.site-footer .brand-name {
  color: var(--brand-deep);
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.footer-col a {
  display: block;
  font-size: 0.84rem;
  padding: 1px 0;
  line-height: 1.35;
  color: var(--text-soft);
  transition: color var(--ease);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }

/* Legal */

body.legal-page { background: var(--surface); }

.legal-page main,
main.legal-page {
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 56px;
  min-height: 100vh;
}

.legal-page main .container,
main.legal-page .container { max-width: 880px; }

.legal-text {
  font-family: var(--font);
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.legal-back {
  display: inline-flex;
  font-size: 1rem;
  font-weight: 560;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.legal-back:hover { color: var(--navy); }

body.legal-page .site-header,
body.legal-page .site-header.scrolled {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

body.legal-page .brand-name { color: var(--navy-deep); }
body.legal-page .nav-toggle span { background: var(--navy-deep); }

.lang-switch {
  display: flex;
  margin-left: auto;
  background: var(--navy-soft);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  min-width: 40px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.lang-btn.active {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: 0 1px 3px rgba(16, 32, 51, 0.1);
}

.lang-btn:hover:not(.active) { color: var(--navy); }

@media (max-width: 980px) {
  .hero {
    padding: calc(var(--header-h) + 40px) 0 48px;
  }

  .hero-layout {
    max-width: 100%;
  }

  .spotlight,
  .spotlight-flip {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    margin-bottom: 40px;
  }

  .spotlight-flip .spotlight-copy,
  .spotlight-flip .spotlight-media { order: unset; }
  .spotlight-media { order: -1; }
  .spotlight-copy > p:not(.eyebrow) { margin-inline: auto; }

  .pro-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .more-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --header-h: 48px; }

  body { font-size: 15px; line-height: 1.5; }

  .container { width: min(1280px, 100% - 28px); }
  .container-narrow { width: min(760px, 100% - 28px); }

  .eyebrow {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  .brand-logo { width: 26px; height: 26px; }
  .brand-name { font-size: 0.98rem; }

  .nav-toggle { display: flex; padding: 6px; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 14px 12px;
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--ease), opacity var(--ease);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .nav-cta { margin-left: 0; text-align: center; }

  .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 9px;
  }

  .btn-lg { padding: 11px 18px; font-size: 0.95rem; }

  .hero {
    padding: calc(var(--header-h) + 28px) 0 32px;
  }

  .hero-brand {
    font-size: 1.85rem;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-note { font-size: 0.78rem; }

  .section { padding: 32px 0; }

  .section-intro { margin-bottom: 18px; }

  .section-intro h2,
  .spotlight-copy h2,
  .pro-copy h2,
  .cta-inner h2 {
    font-size: 1.28rem;
  }

  .section-intro p:not(.eyebrow),
  .spotlight-copy > p:not(.eyebrow),
  .pro-copy > p:not(.eyebrow),
  .cta-inner > p {
    font-size: 0.92rem;
    margin-top: 6px;
  }

  .spotlight {
    gap: 14px;
    margin-bottom: 28px;
  }

  .spotlight-media img {
    width: min(100%, 240px);
    box-shadow: 0 8px 22px var(--card-shadow);
  }

  .more { padding-top: 28px; }
  .more .section-intro { margin-bottom: 16px; }

  .more-list { gap: 12px; }

  .more-list li {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .more-list h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .more-list p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .pro-layout { gap: 16px; }

  .pro-benefits {
    margin-top: 10px;
    gap: 5px;
  }

  .pro-benefits li { font-size: 0.9rem; padding-left: 14px; }

  .pro-panel { padding: 14px 14px; border-radius: 12px; }

  .pro-price { font-size: 1.65rem; }
  .pro-price span { font-size: 0.88rem; }
  .pro-alt { font-size: 0.86rem; margin-top: 6px; }
  .pro-note { font-size: 0.78rem; margin: 8px 0 12px; }

  .cta-section { padding: 36px 0; }

  .cta-brand {
    font-size: 1.7rem !important;
  }

  .cta-inner > p {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 8px;
  }

  .site-footer { padding: 12px 0 8px; }

  .legal-page main,
  main.legal-page {
    padding-top: calc(var(--header-h) + 18px);
    padding-bottom: 36px;
  }

  .legal-back {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .legal-text {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
