:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --card: #ffffff;
  --muted: #4f627a;
  --text: #0f1a2b;
  --accent: #2bd5a3;
  --accent-2: #ff7a59;
  --accent-3: #4b8dff;
  --border: #e4e9f2;
  --shadow: 0 16px 50px rgba(15, 26, 43, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --gutter: min(5vw, 32px);
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 18% 10%, rgba(75, 141, 255, 0.18), transparent 34%), radial-gradient(circle at 75% 10%, rgba(43, 213, 163, 0.18), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.page::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(255, 138, 92, 0.08), transparent 45%);
  pointer-events: none;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}

.hero-banner {
  width: 100%;
  max-width: 1200px;
  margin: clamp(0.75rem, 2vw, 1.4rem) auto clamp(0.6rem, 1.8vw, 1.2rem);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.eyebrow--muted {
  color: var(--muted);
  opacity: 0.9;
}

.lede {
  color: var(--muted);
  margin: 0.4rem 0 0;
  max-width: 640px;
}

.section__header h2 {
  margin: 0.1rem 0 0.4rem;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}

.section__header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.section__header .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand--header {
  gap: 0.10rem;
}

.brand--header .brand__name {
  display: flex;
  align-items: center;
  height: 40px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #041020;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(108, 243, 167, 0.35);
}

.brand__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand__tag {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(15, 26, 43, 0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
  background: #eff4fb;
}

.nav-account {
  display: none;
}

html.is-authed .nav-account {
  display: inline-flex;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  padding: 0.85rem 1.3rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6ff1c6);
  color: #041020;
  box-shadow: 0 12px 30px rgba(43, 213, 163, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(43, 213, 163, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 26, 43, 0.08);
}

.btn-ghost:hover {
  border-color: #d7deeb;
  background: #f8fbff;
}

.btn-login {
  width: 44px;
  height: 44px;
  padding: 0;
  gap: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(43, 213, 163, 0.7);
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(43, 213, 163, 0.18);
  flex-shrink: 0;
}

.btn-login__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-login__icon--account {
  display: none;
}

.btn-login__label {
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-login svg {
  width: 20px;
  height: 20px;
}

.btn-login.is-auth {
  width: 44px;
  padding: 0;
}

.btn-login.is-auth .btn-login__icon--login {
  display: none;
}

.btn-login.is-auth .btn-login__icon--account {
  display: inline-flex;
}

.btn-login.is-auth .btn-login__label {
  display: none;
}

html.is-authed .btn-login:not(.btn-login--label) .btn-login__icon--login {
  display: none;
}

html.is-authed .btn-login:not(.btn-login--label) .btn-login__icon--account {
  display: inline-flex;
}

html.is-authed .btn-login:not(.btn-login--label) .btn-login__label {
  display: none;
}

.btn-login.is-auth.btn-login--label {
  width: auto;
  padding: 0 1.1rem;
}

.btn-login.is-auth.btn-login--label .btn-login__label {
  display: inline-flex;
}

.btn-login:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: rgba(43, 213, 163, 0.08);
  box-shadow: 0 12px 26px rgba(43, 213, 163, 0.25);
}

.btn-login:focus-visible {
  outline: 2px solid rgba(43, 213, 163, 0.5);
  outline-offset: 2px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 43, 0.55);
  backdrop-filter: blur(6px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  border-radius: 20px;
  border: 1px solid rgba(75, 141, 255, 0.2);
  background: linear-gradient(145deg, rgba(75, 141, 255, 0.08), rgba(43, 213, 163, 0.06)), #ffffff;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 32px 80px rgba(15, 26, 43, 0.3);
}

.info-card {
  width: min(680px, 92vw);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  display: grid;
  gap: 0.85rem;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-close:hover {
  transform: translateY(-1px);
  border-color: #d7deeb;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(15, 26, 43, 0.12);
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.auth-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-field label {
  font-weight: 600;
}

.auth-meta {
  display: flex;
  justify-content: flex-end;
}

.auth-link {
  font-size: 0.9rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.auth-status {
  margin: 0;
}

.auth-switch-text {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.auth-note {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.info-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.info-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.info-list li {
  color: var(--text);
  line-height: 1.5;
}

.purchase-info-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.purchase-card {
  width: min(460px, 94vw);
  padding-top: 1.4rem;
  max-height: min(90vh, 720px);
  overflow: auto;
}

.purchase-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef4fb;
  border: 1px solid rgba(75, 141, 255, 0.2);
  color: var(--accent-3);
  margin-bottom: 0.75rem;
}

.purchase-badge svg {
  width: 20px;
  height: 20px;
}

.purchase-features {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.purchase-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.purchase-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.purchase-section-title {
  margin: 0.6rem 0 0.6rem;
  font-weight: 600;
  color: var(--text);
}

.purchase-form {
  gap: 0.75rem;
}

.purchase-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.purchase-actions .btn {
  width: 100%;
}

.purchase-price {
  margin: 0.35rem 0 0.6rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.purchase-submit {
  width: 100%;
}

.purchase-widget {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fbff;
}

.purchase-widget #purchase-payment-form {
  width: 100%;
}

.purchase-card.is-authed .purchase-form .field {
  display: none;
}

.purchase-card.is-payment {
  padding-top: 1rem;
}

.purchase-card.is-payment .purchase-badge,
.purchase-card.is-payment .auth-title,
.purchase-card.is-payment .auth-subtitle,
.purchase-card.is-payment .purchase-features,
.purchase-card.is-payment .purchase-footer,
.purchase-card.is-payment .purchase-confirm {
  display: none;
}

.purchase-card.is-payment .purchase-widget {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.purchase-footer {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.55rem;
}

.purchase-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.purchase-secure svg {
  width: 18px;
  height: 18px;
}

.purchase-legal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.purchase-footnote {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f2f6ff;
  color: var(--muted);
  font-size: 0.85rem;
}

body.modal-open {
  overflow: hidden;
}

.account-header {
  text-align: left;
}

.account-header .lede {
  margin-left: 0;
  margin-right: 0;
}

.account-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-summary__note {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.account-empty {
  margin-top: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: #f8fbff;
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.account-plans {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 12px 24px rgba(15, 26, 43, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-badge.is-ready {
  background: rgba(43, 213, 163, 0.18);
  color: #1b7b62;
}

.plan-badge.is-unpaid {
  background: rgba(214, 69, 69, 0.18);
  color: #b93535;
}

.plan-badge.is-processing {
  background: rgba(75, 141, 255, 0.16);
  color: #2b5bb8;
}

.plan-badge.is-pending {
  background: rgba(15, 26, 43, 0.08);
  color: var(--muted);
}

.plan-badge.is-failed {
  background: rgba(214, 69, 69, 0.16);
  color: #b93535;
}

.plan-id {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.plan-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.plan-actions .btn {
  width: 110px;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle__button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 6px 16px rgba(15, 26, 43, 0.08);
}

.nav-toggle__button span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}

.hero__grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hero__text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__text h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.15;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.4rem;
}

.hero__chips {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.chip-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.06);
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eef4fb;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.chip--accent {
  background: rgba(43, 213, 163, 0.15);
}

.chip--warm {
  background: rgba(255, 122, 89, 0.16);
}

.hero__panel .panel {
  background: linear-gradient(145deg, #ffffff, #f5fbff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.banner__box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(75, 141, 255, 0.08), rgba(43, 213, 163, 0.08));
  box-shadow: 0 16px 36px rgba(15, 26, 43, 0.12);
}

.banner__media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.15);
}

.panel__header,
.panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f7fbff;
}

.stat__label {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat__value {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}

.stat__hint {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel__timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1rem 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f9fbff;
}

.timeline__title {
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.timeline__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(75, 141, 255, 0.16);
}

.dot--accent {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(43, 213, 163, 0.18);
}

.dot--warm {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(255, 122, 89, 0.18);
}

.time {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel__note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  max-width: 420px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.pill--accent {
  background: rgba(43, 213, 163, 0.14);
}

.pill--warm {
  background: rgba(255, 122, 89, 0.16);
}

.text-link {
  color: var(--accent-3);
  font-weight: 600;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards--steps {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards--features {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}

.card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  min-height: 220px;
  box-shadow: 0 12px 30px rgba(15, 26, 43, 0.07);
}

.card--highlight {
  background: linear-gradient(145deg, rgba(75, 141, 255, 0.12), rgba(43, 213, 163, 0.12));
}

.card h3 {
  margin: 0.4rem 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef4fb;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.list {
  padding-left: 1.1rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
  line-height: 1.5;
}

.list li {
  margin-bottom: 0.35rem;
}

.features__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.plan__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.plan__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.plan__thumbnail {
  width: min(100%, 720px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 26, 43, 0.08);
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.plan__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.plan__fallback {
  width: min(100%, 720px);
  display: flex;
  justify-content: center;
}

.plan__card {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 26, 43, 0.06);
}

.plan__day {
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 0.25rem;
}

.plan__title {
  margin: 0.1rem 0 0.45rem;
  font-weight: 600;
}

.plan__meal {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.intake__grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}

.intake-form {
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  box-shadow: 0 12px 30px rgba(15, 26, 43, 0.08);
  overflow: visible;
}

.form-steps {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.form-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
}

.form-steps__active {
  color: var(--accent-3);
  background: rgba(75, 141, 255, 0.08);
}

.personal-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.personal-fields.hidden {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
}

.field__hint {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  font-family: inherit;
  width: 100%;
  display: block;
  font-size: 16px;
  line-height: 1.5;
}

.custom-select {
  position: relative;
}

.custom-select__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select__btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.custom-select__btn:focus {
  outline: 2px solid rgba(43, 213, 163, 0.35);
}

.custom-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 230px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.16);
  padding: 0.4rem 0;
  z-index: 30;
  display: none;
}

.custom-select.open .custom-select__list {
  display: block;
}

.custom-select__option {
  width: 100%;
  padding: 0.55rem 0.9rem;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

.custom-select__option:hover,
.custom-select__option.is-selected {
  background: rgba(75, 141, 255, 0.08);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(43, 213, 163, 0.35);
}

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.form__note {
  margin: 0;
  color: var(--muted);
}

.form__status {
  margin: 0;
  color: var(--accent-3);
  font-weight: 600;
}

.form__status--center {
  text-align: center;
}

.form__status.is-error {
  color: #d64545;
}

.progress {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.progress__track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(75, 141, 255, 0.12);
  border: 1px solid rgba(75, 141, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  transition: width 0.35s ease;
}

.progress__meta {
  display: flex;
  justify-content: flex-end;
  font-size: 0.9rem;
  color: var(--muted);
}

.progress__meta span {
  font-variant-numeric: tabular-nums;
}

.progress.is-indeterminate .progress__fill {
  position: absolute;
  width: 35%;
  animation: progress-indeterminate 1.1s ease-in-out infinite;
}

@keyframes progress-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(310%);
  }
}

.food-fields {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.food-fields.visible {
  display: flex;
}

.food-fields.visible .food-card {
  width: 100%;
  align-self: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.food-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid rgba(15, 26, 43, 0.08);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 24px 50px rgba(15, 26, 43, 0.12);
}

.food-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(111, 241, 198, 0.25), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(75, 141, 255, 0.2), transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.food-fields.visible .food-card::before {
  content: none;
}

.food-card > * {
  position: relative;
}

.food-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 26, 43, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 26, 43, 0.08);
}

.food-card__header h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.food-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
}

.food-group {
  margin-top: 1rem;
  border: 1px solid rgba(15, 26, 43, 0.08);
  border-radius: 16px;
  padding: 0.95rem 1rem 0.8rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 26, 43, 0.06);
}

.food-group__title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.food-group__title h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.food-hint {
  color: #d64545;
  font-weight: 700;
  font-size: 0.9rem;
}

.food-error {
  color: #d64545;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
}

.food-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.55rem 0.75rem;
  margin-top: 0.8rem;
}

.food-list label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f5f7fb;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.food-list label:hover {
  border-color: rgba(75, 141, 255, 0.3);
  background: #eef3ff;
  transform: translateY(-1px);
}

.food-list > label:nth-of-type(n+5) {
  display: none;
}

.food-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--accent-3);
}

.food-extra {
  display: none;
}

.food-group.expanded .food-extra {
  display: flex;
}

.food-group.expanded .food-list > label {
  display: flex;
}

.food-more {
  margin-top: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.food-more:hover {
  color: var(--accent-3);
  border-color: rgba(43, 213, 163, 0.45);
  background: #f4fffa;
}

@supports(selector(:has(*))) {
  .food-list label:has(input:checked) {
    border-color: rgba(43, 213, 163, 0.6);
    background: rgba(111, 241, 198, 0.2);
  }
}

.food-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.sport-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.sport-fields.hidden {
  display: none;
}

.health-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.health-fields.hidden {
  display: none;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
  padding: 0.75rem 0.85rem;
}

.summary {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 26, 43, 0.08);
  margin-top: 1rem;
}

.summary.hidden {
  display: none;
}

.form-hidden {
  display: none !important;
}

.summary h3 {
  margin: 0 0 0.6rem;
}

.summary-section {
  margin-bottom: 0.9rem;
}

.summary-section h4 {
  margin: 0 0 0.4rem;
}

.summary ul {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.summary p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.summary .compact-days {
  list-style: none;
  margin: 0.6rem 0 0;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
}

.summary .compact-days > li {
  margin: 0;
}

.summary .day-details {
  margin-top: 0.5rem;
}

.summary .day-details > p {
  margin-top: 0.4rem;
}

.summary-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.summary-actions .btn {
  flex: 1;
  justify-content: center;
}

.payment-summary {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.9rem;
  min-height: 220px;
}

.payment-status {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
}

.payment-status.is-success {
  color: #1e8f62;
}

.payment-status.is-error {
  color: #d64545;
}

.payment-actions {
  justify-content: center;
}

.week-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
}

.week-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.week-tab:hover {
  background: #f2f6ff;
  color: var(--text);
}

.week-tab.is-active {
  background: linear-gradient(135deg, var(--accent-3), #7bb1ff);
  color: #ffffff;
  border-color: rgba(75, 141, 255, 0.35);
  box-shadow: 0 10px 24px rgba(75, 141, 255, 0.28);
}

.week-tab:focus-visible {
  outline: 2px solid rgba(43, 213, 163, 0.45);
  outline-offset: 2px;
}

.week-panels {
  margin-top: 1rem;
}

.week-panel[hidden] {
  display: none;
}

.offer-text {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--text);
}

.offer-title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.offer-prices {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
}

.offer-old {
  color: #9e9e9e;
  text-decoration: line-through;
  margin-right: 0.6rem;
}

.offer-new {
  color: #d64545;
}

.plan-preview {
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(75, 141, 255, 0.08), rgba(43, 213, 163, 0.08));
  min-height: 100%;
  box-shadow: 0 12px 30px rgba(15, 26, 43, 0.08);
}

.plan-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-preview__title {
  margin: 0.2rem 0 0;
}

.plan-preview__body {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan-preview__goal {
  margin: 0;
  color: var(--muted);
}

.preview-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.preview-block {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
}

.preview-label {
  margin: 0;
  color: var(--muted);
}

.preview-value {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.preview-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.preview-day {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.06);
}

.preview-title {
  margin: 0.2rem 0 0.2rem;
  font-weight: 700;
}

.preview-text {
  margin: 0;
  color: var(--muted);
}

.faq__items {
  display: grid;
  gap: 0.8rem;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 18px rgba(15, 26, 43, 0.06);
}

summary {
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.cta__box {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(43, 213, 163, 0.15), rgba(75, 141, 255, 0.12));
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 14px 32px rgba(15, 26, 43, 0.08);
}

.cta__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: #eef2f8;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

.footer__text {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

@media (max-width: 960px) {
  .site-header {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-toggle__button {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: var(--gutter);
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-direction: column;
    gap: 0.6rem;
    min-width: 220px;
    display: none;
    box-shadow: 0 12px 28px rgba(15, 26, 43, 0.15);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav.site-nav--static {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: auto;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .panel__header,
  .panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .week-tabs {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
  }

  .week-tab {
    width: 100%;
    padding: 0.45rem 0.4rem;
    font-size: 0.82rem;
    text-align: center;
    white-space: normal;
  }

  .pill--warm {
    justify-content: center;
    text-align: center;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .cta__box {
    grid-template-columns: 1fr;
  }

  .intake-form,
  .personal-fields,
  .sport-fields,
  .health-fields {
    grid-template-columns: 1fr;
  }
}
