/* Vitals Meal & Macro System — Landing Page
   Byzantine Technologies LLC. Brand palette matched to product. */

:root, [data-theme="light"] {
  --teal: #0C4E54;
  --teal2: #01696F;
  --teal-soft: #cedcd8;
  --softbg: #EFF4F4;
  --ink: #28251D;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f6faf9;
  --color-surface-alt: #EFF4F4;
  --color-border: #d9e3e2;
  --color-divider: #e7eeed;
  --color-text: #28251D;
  --color-text-muted: #5d6663;
  --color-text-faint: #8b938f;

  --color-primary: #01696F;
  --color-primary-hover: #0C4E54;
  --color-primary-active: #0f3638;
  --color-on-primary: #ffffff;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.1rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(12,78,84,.06);
  --shadow-md: 0 8px 24px rgba(12,78,84,.10);
  --shadow-lg: 0 20px 48px rgba(12,78,84,.16);

  --wrap: 1140px;

  --font-display: 'Clash Display', Georgia, serif;
  --font-body: 'General Sans', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  --text-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);
}

[data-theme="dark"] {
  --color-bg: #121817;
  --color-surface: #18211f;
  --color-surface-2: #1c2624;
  --color-surface-alt: #16201e;
  --color-border: #2b3a37;
  --color-divider: #233230;
  --color-text: #e6efec;
  --color-text-muted: #9fb0ab;
  --color-text-faint: #71837e;

  --color-primary: #2f9aa1;
  --color-primary-hover: #4fb3ba;
  --color-primary-active: #69c4ca;
  --color-on-primary: #08201f;
  --softbg: #16201e;
  --teal-soft: #234642;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #121817; --color-surface: #18211f; --color-surface-2: #1c2624;
    --color-surface-alt: #16201e; --color-border: #2b3a37; --color-divider: #233230;
    --color-text: #e6efec; --color-text-muted: #9fb0ab; --color-text-faint: #71837e;
    --color-primary: #2f9aa1; --color-primary-hover: #4fb3ba; --color-primary-active: #69c4ca;
    --color-on-primary: #08201f; --softbg: #16201e; --teal-soft: #234642;
  }
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 84px;
}
body {
  min-height: 100dvh; line-height: 1.6; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--color-text); background: var(--color-bg);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
::selection { background: rgba(1,105,111,.22); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, input, [role="button"] {
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: var(--text-sm); line-height: 1;
  padding: .8rem 1.3rem; border-radius: var(--radius-full); white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { padding: 1rem 1.7rem; font-size: var(--text-base); }
.btn-sm { padding: .55rem 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); background: var(--color-surface-2); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; }
.header-nav { display: flex; align-items: center; gap: 1.6rem; font-size: var(--text-sm); font-weight: 500; }
.header-nav a:not(.btn):hover { color: var(--color-primary); }
@media (max-width: 760px) {
  .header-nav a:not(.btn) { display: none; }
}

/* Hero */
.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary);
  margin-bottom: .9rem;
}
.hero { padding-block: clamp(3rem, 6vw, 6rem); background:
  radial-gradient(120% 80% at 80% 0%, var(--color-surface-alt) 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: var(--text-hero); letter-spacing: -.02em; font-weight: 700; }
.hero h1 .accent { color: var(--color-primary); }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); margin-top: 1.3rem; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.trust-line { margin-top: 1.4rem; font-size: var(--text-sm); color: var(--color-text-faint); font-weight: 500; }
.hero-shot img {
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg); width: 100%;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lede { max-width: 46ch; }
}

/* Trust strip */
.trust-strip { border-block: 1px solid var(--color-divider); background: var(--color-surface-2); }
.trust-items { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; padding-block: 1.8rem; }
.trust-item { display: flex; flex-direction: column; gap: .15rem; }
.trust-item strong { font-size: var(--text-base); }
.trust-item span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 760px) { .trust-items { grid-template-columns: repeat(2,1fr); gap: 1.2rem; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--color-surface-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: var(--text-2xl); letter-spacing: -.02em; }
.section-sub { font-size: var(--text-lg); color: var(--color-text-muted); margin-top: .9rem; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: var(--text-xl); margin-bottom: .7rem; }
.feature-text p { color: var(--color-text-muted); font-size: var(--text-base); max-width: 44ch; }
.feature-text em { color: var(--color-text); font-style: normal; font-weight: 600; }
.muted-note { color: var(--color-text-faint); font-size: .92em; }
.feature-img img { border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-text p { max-width: 56ch; }
}

/* Editions */
.editions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: stretch; }
.edition-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
}
.edition-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.badge-pop {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: var(--color-on-primary);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em;
  padding: .35rem .9rem; border-radius: var(--radius-full); white-space: nowrap;
}
.edition-top { text-align: center; padding-bottom: 1.3rem; border-bottom: 1px solid var(--color-divider); margin-bottom: 1.3rem; }
.edition-top h3 { font-size: var(--text-xl); }
.price { margin: .6rem 0 .2rem; display: flex; align-items: baseline; justify-content: center; gap: .4rem; }
.price .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.price .per { font-size: var(--text-sm); color: var(--color-text-faint); }
.edition-tag { font-size: var(--text-sm); color: var(--color-text-muted); }
.edition-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; flex: 1; }
.edition-list li { position: relative; padding-left: 1.6rem; font-size: var(--text-sm); color: var(--color-text); }
.edition-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: .85rem; height: .85rem;
  background: var(--color-primary); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.edition-list .muted-note { display: block; padding-left: 0; }
.edition-foot { text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); margin-top: .8rem; }
@media (max-width: 820px) { .editions-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .edition-card.featured { order: -1; } }

/* Signup */
.signup-section { background:
  linear-gradient(160deg, var(--teal) 0%, var(--teal2) 100%); color: #fff; }
[data-theme="dark"] .signup-section { background: linear-gradient(160deg, #0c3a3d 0%, #114b50 100%); }
.signup-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.signup-copy .eyebrow { color: var(--teal-soft); }
.signup-copy h2 { color: #fff; font-size: var(--text-2xl); }
.signup-copy p { color: rgba(255,255,255,.85); margin-top: .9rem; max-width: 40ch; }
.signup-points { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.signup-points li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,.92); font-size: var(--text-sm); }
.signup-points li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-soft); font-weight: 700; }
.signup-card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-lg); }
#lite-form { display: flex; flex-direction: column; gap: 1rem; }
#lite-form label { font-size: var(--text-sm); font-weight: 600; }
#lite-form input[type="email"], #lite-form input[type="text"],
#launch-form input[type="email"], #launch-form input[type="text"] {
  width: 100%; padding: .9rem 1rem; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: var(--color-bg);
  color: var(--color-text); font-size: var(--text-base); font-family: inherit;
}
#lite-form input::placeholder, #launch-form input::placeholder { color: var(--color-text-faint); opacity: 1; }
#lite-form input[type="email"]:focus, #lite-form input[type="text"]:focus,
#launch-form input[type="email"]:focus, #launch-form input[type="text"]:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(1,105,111,.15); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400 !important; font-size: var(--text-sm) !important; color: var(--color-text-muted); }
.consent input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--color-primary); flex-shrink: 0; }
.cf-turnstile { min-height: 65px; }
.form-msg { font-size: var(--text-sm); min-height: 1.2em; }
.form-msg.error { color: #b3261e; }
[data-theme="dark"] .form-msg.error { color: #ff8a80; }
.form-success { text-align: center; padding: 1rem 0; }
.success-check {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--color-primary); color: var(--color-on-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700;
}
.form-success h3 { font-size: var(--text-lg); margin-bottom: .5rem; }
.form-success p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: 1.3rem; }
.success-next {
  text-align: left; margin: 1.4rem 0 1rem;
  padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--color-surface-alt, var(--color-bg-alt, rgba(12,78,84,.06)));
  border: 1px solid var(--color-border, rgba(12,78,84,.14));
}
.success-next-title { font-weight: 600; color: var(--color-text); font-size: var(--text-sm); margin: 0 0 .5rem; }
.success-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.success-steps li { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.45; margin: 0; }
.success-steps li strong { color: var(--color-text); }
.success-note { font-size: var(--text-xs, .8rem); color: var(--color-text-muted); margin: 1rem 0 0; line-height: 1.5; }
.success-note a { color: var(--color-primary); }
.success-help { font-size: var(--text-xs, .8rem); color: var(--color-text-muted); margin: .6rem 0 0; line-height: 1.5; }
.success-help a { color: var(--color-primary); }
.success-check.error-check { background: #b3261e; color: #fff; }
[data-theme="dark"] .success-check.error-check { background: #ff5449; }
@media (max-width: 820px) { .signup-wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* Launch-list modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(10, 30, 32, .55); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--color-surface, #fff); color: var(--color-text);
  border-radius: 16px; padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); border: 1px solid var(--color-border, rgba(0,0,0,.08));
  max-height: 92vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: .7rem; right: .8rem; width: 34px; height: 34px;
  border: none; background: transparent; color: var(--color-text-muted);
  font-size: 1.7rem; line-height: 1; cursor: pointer; border-radius: 8px;
}
.modal-close:hover { background: var(--color-bg-alt, rgba(0,0,0,.05)); color: var(--color-text); }
.modal-card .eyebrow { display: inline-block; margin-bottom: .4rem; }
.modal-card h3 { font-size: var(--text-xl); margin: 0 0 .4rem; }
.modal-card > #launch-form-wrap > p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0 0 1.1rem; line-height: 1.5; }
.modal-card label[for="launch-email"], .modal-card label[for="launch-name"] { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: .35rem; }
.modal-card label[for="launch-email"] { margin-top: .9rem; }
.modal-card #launch-email, .modal-card #launch-name {
  width: 100%; padding: .7rem .8rem; border-radius: 10px; font-size: var(--text-base); font-family: inherit;
  border: 1px solid var(--color-border, rgba(0,0,0,.18)); background: var(--color-bg, #fff); color: var(--color-text);
}
.modal-card #launch-email::placeholder, .modal-card #launch-name::placeholder { color: var(--color-text-faint); opacity: 1; }
.modal-card .consent { display: flex; gap: .55rem; align-items: flex-start; margin: .9rem 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.45; }
.modal-card .consent input { margin-top: .2rem; flex-shrink: 0; }
.modal-card #launch-turnstile { margin: .4rem 0 .9rem; }

/* FAQ */
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-list details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.1rem 1.3rem;
}
.faq-list summary {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-base);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--color-primary); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: .8rem; }

/* Footer */
.site-footer { background: var(--color-surface-2); border-top: 1px solid var(--color-divider); padding-block: 2.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; }
.footer-disclaimer { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 70ch; }
.footer-support { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 70ch; }
.footer-support a { color: var(--color-primary); }
.footer-legal { font-size: var(--text-xs); color: var(--color-text-muted); }
.footer-legal a { color: var(--color-primary); }

/* Theme toggle */
.theme-toggle {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
