:root {
  --ink: #281d2c;
  --muted: #78667b;
  --line: #ead7ee;
  --soft: #fbf4fb;
  --brand: #873c91;
  --brand-2: #c45ca8;
  --rose: #f8e8f6;
  --white: #fff;
  --shadow: 0 24px 70px rgba(74, 35, 82, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 92, 168, 0.18), transparent 30%),
    radial-gradient(circle at 92% 16%, rgba(135, 60, 145, 0.12), transparent 24%),
    linear-gradient(135deg, #fff8fd, #f5eef8 55%, #fff);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  min-height: 82px;
  margin-top: 14px;
  padding: 6px 18px;
  border: 1px solid rgba(135, 60, 145, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(82, 42, 87, 0.08);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 205px;
  height: 76px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

nav,
.site-footer {
  font-size: 14px;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

nav a,
.site-footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

nav a:hover,
.site-footer a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.login-link {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  margin-top: -8px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(135, 60, 145, 0.18);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.login-link:hover {
  background: #a846a0;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(135, 60, 145, 0.26);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.screen-section {
  min-height: min(720px, calc(100vh - 82px));
  padding: 38px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.tariff p,
.legal-block p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-link {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(135, 60, 145, 0.22);
}

.primary-link:hover {
  background: #a846a0;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(135, 60, 145, 0.28);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--brand);
}

.secondary-link:hover {
  border-color: rgba(135, 60, 145, 0.32);
  background: #fff;
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  justify-items: center;
}

.hero-preview,
.price-card,
.legal-grid article,
.feature-card,
.phone-mock {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.hero-preview {
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 24px;
}

.hero-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.hero-preview div {
  padding: 18px;
}

.hero-preview span,
.hero-preview strong,
.hero-preview small {
  display: block;
}

.hero-preview span,
.screen-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-preview strong {
  margin-top: 6px;
  font-size: 22px;
}

.hero-preview small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.feature-screen {
  display: grid;
  place-items: center;
}

.cards-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.feature-card,
.legal-grid article {
  border-radius: 16px;
  padding: 18px;
}

.feature-card {
  width: min(380px, 100%);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,.82);
}

.feature-card .eyebrow {
  margin-bottom: 6px;
}

.feature-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.feature-line:hover {
  transform: translateX(4px);
  background: rgba(251, 240, 250, 0.62);
}

.feature-line:last-child {
  border-bottom: 0;
}

.feature-line span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f6eafa;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.feature-line strong {
  font-size: 17px;
  line-height: 1.2;
}

.line-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f6eafa;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.quiz-showcase {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
}

.phone-stage {
  display: grid;
  justify-items: center;
  padding: 10px;
}

.phone-mock {
  position: relative;
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 34px;
  padding: 14px;
  background:
    linear-gradient(#fff9ff, #fff),
    rgba(255,255,255,.86);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.phone-mock:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(74, 35, 82, 0.22);
}

.landing-card {
  min-height: 560px;
}

.landing-card .phone-content {
  min-height: 510px;
  display: flex;
  flex-direction: column;
}

.phone-mock::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(135, 60, 145, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.phone-top {
  width: 82px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #ead7ee;
}

.recipe-photo {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
  border-radius: 22px;
}

.phone-content {
  position: relative;
  padding: 14px 4px 4px;
}

.phone-content h3 {
  font-size: 23px;
  line-height: 1.04;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 12px 0;
}

.stat-row span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f8edf8;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.nutrition-preview {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff8ff;
}

.mini-donut {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#a85ca4 0 43%, #df8f9f 43% 61%, #8b63d4 61% 92%, #c9a6df 92% 100%);
}

.mini-legend {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mini-legend span {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 6px;
  align-items: center;
}

.mini-legend b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.mini-legend span:nth-child(2) b { background: #df8f9f; }
.mini-legend span:nth-child(3) b { background: #8b63d4; }
.mini-legend span:nth-child(4) b { background: #c9a6df; }

.mini-block {
  margin-top: 9px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
}

.mini-block strong,
.mini-block p {
  margin: 0;
}

.mini-block strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 13px;
}

.mini-block strong svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-block p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.mini-block.soft {
  background: #fbf0fa;
}

.app-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-mini-head img {
  width: 132px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.app-mini-head span {
  padding: 10px 18px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.progress-line {
  height: 8px;
  margin: 18px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #f5e8f5;
}

.progress-line span {
  display: block;
  width: 56%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c45ca8, #9b5cff);
}

.mini-copy {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.allergen-grid button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start;
  padding: 0 7px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.allergen-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(135, 60, 145, .34);
  background: #fff8ff;
}

.allergen-grid button i {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(135, 60, 145, .34);
  border-radius: 4px;
  background: #fff;
}

.allergen-grid button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a85ca4;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.allergen-grid button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allergen-grid button.checked {
  border-color: rgba(135, 60, 145, .28);
  background: #fbf0fa;
  color: var(--brand);
}

.allergen-grid button.checked i {
  background: var(--brand);
  border-color: var(--brand);
}

.allergen-grid button.checked i::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.mock-next {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: var(--brand-2);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mock-next:hover {
  background: #a846a0;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(135, 60, 145, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.access-list {
  display: grid;
  margin-top: 10px;
}

.access-list div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.access-list div:hover {
  transform: translateX(4px);
  background: rgba(251, 240, 250, 0.62);
}

.access-list div:last-child {
  border-bottom: 0;
}

.access-list span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f6eafa;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.access-list strong {
  font-size: 13px;
  line-height: 1.2;
}

.access-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.tariff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  padding: 50px 0;
}

.price-card {
  display: grid;
  gap: 14px;
  border-radius: 20px;
  padding: 22px;
}

.price-card strong {
  font-size: 22px;
}

.price-card span {
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.price-card label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legal-block {
  padding: 48px 0 60px;
}

.articles-hero {
  max-width: 860px;
  padding: 58px 0 28px;
}

.articles-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0 58px;
}

.articles-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(74, 35, 82, 0.1);
  padding: 20px;
}

.articles-grid h2 {
  font-size: 23px;
  line-height: 1.12;
}

.articles-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.faq-line {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.legal-grid article {
  box-shadow: none;
}

.about-grid {
  padding: 20px 0 60px;
}

.site-footer {
  min-height: 86px;
  border-top: 1px solid var(--line);
  gap: 10px;
}

.site-footer span {
  font-weight: 900;
}

.footer-legal {
  color: var(--brand);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .hero,
  .cards-showcase,
  .quiz-showcase,
  .tariff,
  .legal-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .landing-card {
    min-height: auto;
  }

  .landing-card .phone-content {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 12px 0;
  }

  .brand img {
    width: 176px;
    height: 62px;
  }

  nav {
    gap: 10px;
    font-size: 12px;
  }

  .screen-section {
    min-height: auto;
    padding: 26px 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .phone-mock {
    border-radius: 28px;
  }

  .nutrition-preview {
    grid-template-columns: 78px 1fr;
  }

  .mini-donut {
    width: 76px;
    height: 76px;
  }
}
