/* Panilo — panilo.cooking. Tokens from the Panilo design system (brandbook, tokens.json). */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #fbf6ef;
  --surface-raised: #fffdfa;
  --surface-sunken: #f3eadf;
  --ink: #2d1e29;
  --ink-muted: #6e5663;
  --hairline: #e6d7cb;
  --plum: #54314b;
  --plum-deep: #43293d;
  --on-plum: #fbf6ef;
  --plum-tint: #efe3ec;
  --sage: #9bb792;
  --sage-tint: #e5f3dd;
  --sage-ink: #4f6e47;
  --rose: #b37c9c;
  --rose-tint: #f7d3e8;
  --rose-ink: #8f5a7d;
  --cream: #e6c8ae;
  --danger: #b5413a;
  --danger-tint: #fbe3e0;
  /* Inside the plum header: the dark-theme tokens. */
  --d-ink: #f9f1e8;
  --d-ink-muted: #d9c3cf;
  --d-plum-tint: #4a2f45;
  --d-rose-ink: #f0c4dd;
  --d-sage-tint: #36443a;
  --d-sage-ink: #c6dcbf;
  --d-line: #7a5670;
  --accent: #e5b5d1;

  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--plum); }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 8px; }
.plum :focus-visible { outline-color: var(--accent); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px; border-radius: 16px; background: var(--surface-raised); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 16px; }

/* ── Header + hero (plum) ───────────────────────────────────────────── */
.plum { background: var(--plum); color: var(--d-ink); }
.top { border-radius: 0 0 48px 48px; padding: 0 var(--pad) 96px; }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding: 24px 0;
}
.logo { display: flex; align-items: center; min-height: 48px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--d-ink); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 12px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--d-plum-tint); color: var(--d-ink); }
.bar-end { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--d-line); color: var(--d-ink);
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
  position: absolute; right: 0; top: 52px; z-index: 5; min-width: 180px;
  padding: 8px; border-radius: 20px; background: var(--surface-raised);
  border: 1px solid var(--hairline); box-shadow: 0 8px 24px #2d1e2926;
}
.lang li a {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 44px; align-items: center;
  border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
}
.lang li a:hover { background: var(--plum-tint); color: var(--ink); }
.lang li a[aria-current="true"] { background: var(--plum-tint); }
.lang li span { color: var(--ink-muted); font-weight: 500; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: 16px; text-decoration: none;
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.btn-sm { height: 44px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f0cfe2; color: var(--ink); }
.btn-plum { background: var(--plum); color: var(--on-plum); }
.btn-plum:hover { background: var(--plum-deep); color: var(--on-plum); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--d-ink); }
.btn-outline:hover { background: var(--d-plum-tint); color: var(--d-ink); }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge {
  align-self: flex-start; padding: 8px 14px; border-radius: 999px;
  background: var(--d-plum-tint); color: var(--d-rose-ink); font-size: 14px; line-height: 20px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.07; font-weight: 800; letter-spacing: -0.02em; color: var(--d-ink);
  text-wrap: balance;
}
.lead { font-size: 19px; line-height: 30px; color: var(--d-ink-muted); max-width: 560px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px;
  border-radius: 16px; text-decoration: none;
}
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 500; }
.store b { font-size: 17px; font-weight: 800; }
.store-primary { background: var(--accent); color: var(--ink); }
.store-primary:hover { background: #f0cfe2; color: var(--ink); }
.store-secondary { border: 1.5px solid var(--accent); color: var(--d-ink); }
.store-secondary:hover { background: var(--d-plum-tint); color: var(--d-ink); }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { background: inherit; }
.store-primary[aria-disabled="true"]:hover { background: var(--accent); }
.store-secondary[aria-disabled="true"]:hover { background: transparent; }
.hero-note { font-size: 14px; line-height: 20px; color: var(--d-ink-muted); }

.chat { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 86%; padding: 14px 18px; font-size: 17px; line-height: 26px; }
.bubble-app { align-self: flex-start; border-radius: 24px 24px 24px 8px; background: var(--d-plum-tint); color: var(--d-ink); font-weight: 600; }
.bubble-me { align-self: flex-end; border-radius: 24px 24px 8px 24px; background: var(--surface); color: var(--ink); }
.considered {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; background: var(--d-sage-tint); color: var(--d-sage-ink); font-size: 14px; line-height: 20px; font-weight: 600;
}
.considered svg { flex: none; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Recipe cards as on the app's «Два варианта» screen (canvas S09), with the owner's dish photos. */
.dish { background: var(--surface-raised); color: var(--ink); border-radius: 24px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-self: start; }
.dish-picked { box-shadow: 0 0 0 3px var(--accent); }
.dish-pic { position: relative; }
.dish-pic img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; object-fit: cover; background: var(--cream); }
.axis { position: absolute; left: 8px; top: 8px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 26px; font-weight: 600; }
.axis-sage { background: var(--sage-tint); color: var(--sage-ink); }
.axis-rose { background: var(--rose-tint); color: var(--rose-ink); }
.dish h3 { font-size: 17px; line-height: 22px; font-weight: 700; }
.dish .fit { font-size: 14px; line-height: 20px; font-weight: 600; }
.fit-sage { color: var(--sage-ink); }
.fit-rose { color: var(--rose-ink); }
.dish .meta { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.dish .meta .mono { font-size: 15px; line-height: 20px; color: var(--ink); }
.dish .buy { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 112px var(--pad) 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--rose-ink); letter-spacing: 0.02em; }
.section h2, .h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.sub { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 22px; line-height: 28px; font-weight: 700; }
.card p { color: var(--ink-muted); }
.card .mono { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.disc {
  width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
}
.disc-plum { background: var(--plum); color: var(--on-plum); }
.disc-tint { background: var(--plum-tint); color: var(--plum); }
.disc-sage { background: var(--sage-tint); color: var(--sage-ink); }
.callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 22px;
  border-radius: 24px; background: var(--plum-tint); font-size: 17px; line-height: 26px;
}
.callout svg { flex: none; }
.callout p { flex: 1 1 300px; }

.split { max-width: calc(var(--wrap) + 2 * var(--pad)); display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 72px var(--pad); }
.split > div { flex: 1 1 440px; min-width: 0; }
.split-text { display: flex; flex-direction: column; gap: 18px; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 1px; }
.family {
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: 32px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.family-title { font-size: 17px; line-height: 24px; font-weight: 600; }
.eater { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--surface); }
.avatar {
  width: 48px; height: 48px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.avatar-adult { background: var(--plum); color: var(--on-plum); }
.avatar-child { background: var(--sage); color: var(--ink); }
.avatar-elder { background: var(--cream); color: var(--ink); }
.eater-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.eater-text b { font-weight: 700; }
.eater-text span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.eater-text .allergen {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--danger-tint); color: var(--danger); font-size: 13px; line-height: 18px; font-weight: 600;
}

.band { background: var(--surface-sunken); border-radius: 48px; margin: 0 16px; padding: 88px var(--pad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--surface-raised); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 19px; line-height: 26px; font-weight: 700; }
.tile p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.safe { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--sage-ink); font-weight: 600; }
.safe svg { flex: none; margin-top: 1px; }

.extras { max-width: calc(var(--wrap) + 2 * var(--pad)); display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding: 112px var(--pad) 56px; }
.extras-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.extras-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; }
.fav { flex: 0 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }

/* RecipeCardTile, as on the app's «Рецепты» tab: photo fills the card (272, radius 24), ккал and
   bookmark on top, title and time on a bottom gradient. */
.recipe-tile { position: relative; height: 272px; border-radius: 24px; overflow: hidden; background: var(--sage-tint); color: #fffdfa; }
.recipe-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-tile-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; }
.kcal { padding: 6px 12px; border-radius: 999px; background: var(--surface-raised); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 600; }
.bookmark { width: 48px; height: 48px; border-radius: 999px; background: var(--surface-raised); color: var(--plum); display: flex; align-items: center; justify-content: center; }
.recipe-tile-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 16px;
  background: linear-gradient(to bottom, rgba(45, 30, 41, 0), rgba(45, 30, 41, 0.82) 55%);
  display: flex; flex-direction: column; gap: 4px;
}
.recipe-tile-title { font-size: 20px; line-height: 26px; font-weight: 700; }
.recipe-tile-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: #f9f1e8; }
.recipe-tile-meta .mono { font-size: 14px; }
.extras-head { display: flex; flex-direction: column; gap: 12px; }
.extras-head h2 { font-size: 36px; line-height: 42px; font-weight: 800; letter-spacing: -0.02em; }
.extras-head p { font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.extra { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid; }
.extra h3 { font-size: 20px; line-height: 26px; font-weight: 700; }
.extra p { color: var(--ink-muted); }
.line-sage { border-color: var(--sage); }
.line-rose { border-color: var(--rose); }
.line-cream { border-color: var(--cream); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan-free { background: var(--surface-raised); border: 1px solid var(--hairline); }
.plan-family { background: var(--plum); color: var(--d-ink); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 22px; line-height: 28px; font-weight: 700; }
.price { font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink-muted); }
.plan-family .price small { color: var(--d-ink-muted); }
.plan ul { display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.soon { padding: 6px 12px; border-radius: 999px; background: var(--d-plum-tint); color: var(--d-rose-ink); font-size: 13px; line-height: 18px; font-weight: 700; }
.plan-later {
  margin-top: auto; display: flex; align-items: center; justify-content: center; height: 48px;
  border-radius: 16px; border: 1.5px solid var(--d-line); color: var(--d-ink-muted); font-size: 15px; font-weight: 700; text-align: center; padding: 0 16px;
}

.faq { max-width: 880px; margin: 0 auto; padding: 24px var(--pad) 112px; display: flex; flex-direction: column; gap: 24px; }
.faq details { border-top: 1px solid var(--hairline); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px;
  font-size: 19px; line-height: 26px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 150ms; color: var(--ink-muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }
.faq details p { padding: 4px 40px 12px 0; color: var(--ink-muted); }

/* ── Footer ────────────────────────────────────────────────────────── */
.foot { border-radius: 48px 48px 0 0; padding: 72px var(--pad) 40px; color: var(--d-ink-muted); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand img { height: 48px; width: auto; align-self: flex-start; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px;
  border-top: 1px solid var(--d-line); padding-top: 24px; font-size: 14px; line-height: 20px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--d-ink); }
.foot a:hover { color: var(--accent); }
.foot .stores { padding-top: 0; }

/* ── Phone ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .top { border-radius: 0 0 32px 32px; padding-bottom: 64px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -8px; }
  .nav a { white-space: nowrap; padding: 12px 10px; }
  .logo img { height: 30px; }
  .hero { padding-top: 16px; gap: 40px; }
  .lead { font-size: 17px; line-height: 27px; }
  .bubble { font-size: 16px; line-height: 24px; }
  .pair { gap: 10px; }
  .dish { border-radius: 20px; }
  .dish h3 { font-size: 15px; line-height: 20px; }
  .section { padding-top: 72px; }
  .split { padding: 48px var(--pad); gap: 32px; }
  .band { margin: 0 8px; border-radius: 32px; padding: 56px var(--pad); }
  .extras { padding-top: 72px; }
  .plan { padding: 24px; border-radius: 24px; }
  .faq { padding-bottom: 72px; }
  .faq details p { padding-right: 0; }
  .foot { border-radius: 32px 32px 0 0; padding-top: 48px; }
}
