/* TinyBites website. Plain CSS, no framework. Colours and sizes match the app. */

/* Latin covers English and Portuguese; Cyrillic covers Russian. Each file loads only when the page needs it. */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-cyrillic.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --cream: #fff9f1;
  --sage: #dcebe0;
  --forest: #315c46;
  --coral: #f47c65;
  --peach: #ffe1cc;
  --muted: #59645c;
  --white: #fff;
  --font-heading: 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-soft: 0 10px 30px -12px rgb(49 92 70 / 0.25);
}

/* ---- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--cream);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--forest);
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip-path: none;
  border-radius: 9999px;
  background: var(--white);
}

/* ---- icons (an SVG sprite is defined in index.html) ---- */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-4 { width: 1rem; height: 1rem; }
.icon-5 { width: 1.25rem; height: 1.25rem; }
.icon-6 { width: 1.5rem; height: 1.5rem; }
.icon-7 { width: 1.75rem; height: 1.75rem; }
.icon-8 { width: 2rem; height: 2rem; }

/* ---- layout helpers ---- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}
.section { padding-block: 4rem; }
@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}
.section--white { background: var(--white); }
.section--sage { background: rgb(220 235 224 / 0.5); }
.section-head { max-width: 42rem; margin-inline: auto; text-align: center; }
.section-head--wide { max-width: 48rem; }
.title {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
}
@media (min-width: 640px) {
  .title { font-size: 2.25rem; line-height: 1.111; }
}
.lead { margin-top: 1rem; font-size: 1.125rem; line-height: 1.556; }
.small { font-size: 0.875rem; line-height: 1.429; }
.card-title { margin-top: 1rem; font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.card-text { margin-top: 0.5rem; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn--coral { background: var(--coral); }
.btn--coral:hover { background: #e96a52; }
.btn--forest { background: var(--forest); }
.btn--forest:hover { background: #274a38; }
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  color: var(--forest);
  font-weight: 600;
  text-underline-offset: 4px;
}
.link-btn:hover { text-decoration: underline; }

/* ---- phone frame (screenshots) ---- */
.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  border: 10px solid var(--forest);
  border-radius: 2.5rem;
  background: var(--forest);
  box-shadow: var(--shadow-soft);
}
.phone--large { max-width: 320px; }
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.8rem;
  background: var(--sage);
}
.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---- header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(220 235 224 / 0.7);
  background: rgb(255 249 241 / 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--forest);
}
.brand img { border-radius: 0.75rem; }
.header__right { display: flex; align-items: center; gap: 0.75rem; }
.header__cta { display: none; }
@media (min-width: 640px) {
  .header__cta { display: block; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero__blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
}
.hero__blob--sage { right: -6rem; top: -6rem; width: 24rem; height: 24rem; background: rgb(220 235 224 / 0.6); }
.hero__blob--peach { left: -6rem; bottom: 0; width: 18rem; height: 18rem; background: rgb(255 225 204 / 0.5); }
.hero .container {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 3.5rem;
}
@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1fr 1fr; padding-block: 6rem; }
}
.hero__text { position: relative; z-index: 2; text-align: center; }
@media (min-width: 768px) {
  .hero__text { text-align: left; }
}
.eyebrow { margin-bottom: 0.75rem; font-weight: 600; color: var(--coral); }
.hero h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}
.hero__sub {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
  color: rgb(49 92 70 / 0.9);
}
.hero__support { margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.556; }
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; justify-content: center; }
}
@media (min-width: 768px) {
  .hero__actions { justify-content: flex-start; }
}
.hero__note { margin-top: 1rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.6s ease-out both; }

/* ---- cards and grids ---- */
.grid-3 { display: grid; gap: 1.25rem; margin-top: 3rem; }
.grid-recipes { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) {
  .grid-recipes { grid-template-columns: repeat(2, 1fr); }
  }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-recipes { grid-template-columns: repeat(3, 1fr); }
  }
.problem-card { padding: 1.5rem; border-radius: 1.5rem; background: rgb(255 225 204 / 0.5); }
.problem-card .icon { color: var(--coral); }

/* two-column feature sections (tracker, planner) */
.split .container {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 768px) {
  .split .container { grid-template-columns: 1fr 1fr; }
  .split--text-last .split__text { order: 2; }
  .split--text-last .split__media { order: 1; }
}
.points { margin-top: 2rem; }
.points > li + li { margin-top: 1.25rem; }
.points li { display: flex; align-items: flex-start; gap: 1rem; }
.points__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: var(--forest);
  color: var(--white);
}
.points h3 { font-size: 1.125rem; line-height: 1.556; font-weight: 700; }
.points p { margin-top: 0.25rem; }
.split__note { margin-top: 1.5rem; }

.checks { margin-top: 1.5rem; }
.checks > li + li { margin-top: 0.75rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.75rem; }
.checks__tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  background: var(--forest);
  color: var(--white);
}

/* recipes */
.recipe {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.recipe img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recipe__body { padding: 1.25rem; }
.recipe__tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--sage);
  color: var(--forest);
  font-size: 0.75rem;
  line-height: 1.333;
  font-weight: 600;
}
.recipe h3 { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.556; font-weight: 700; }
.recipes-note { margin-top: 1.5rem; text-align: center; }

/* how it works */
.steps { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step { text-align: center; }
.step__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  border-radius: 1rem;
  background: var(--sage);
  color: var(--forest);
}
.step__label {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.429;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--coral);
}
.step h3 { margin-top: 0.25rem; font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.step p:last-child { margin-top: 0.5rem; }


/* about */
.about { padding-block: 4rem; background: var(--white); }
@media (min-width: 768px) {
  .about { padding-block: 5rem; }
}
.about .container { max-width: 42rem; text-align: center; }

/* final call to action */
.final {
  padding: 3.5rem 1.5rem;
  border-radius: 2rem;
  background: var(--forest);
  text-align: center;
}
@media (min-width: 640px) {
  .final { padding-inline: 3rem; }
}
.final .title { color: var(--white); }
.final__body { max-width: 36rem; margin: 1rem auto 0; font-size: 1.125rem; line-height: 1.556; color: var(--sage); }
.final__cta { margin-top: 2rem; }
.final__note { margin-top: 1rem; color: var(--sage); }

/* footer */
.footer { padding-block: 3rem; border-top: 1px solid var(--sage); background: var(--white); }
.footer__top { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) {
  .footer__top { flex-direction: row; justify-content: space-between; }
}
.footer__about { max-width: 24rem; }
.footer__about p { margin-top: 0.75rem; }
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 500; }
.footer__nav a:hover { text-decoration: underline; }
.footer__medical { max-width: 48rem; margin-top: 2rem; }
.footer__copy { margin-top: 0.5rem; }

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

/* ---- language dropdown ---- */
.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background: rgb(220 235 224 / 0.6);
  color: var(--forest);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--sage); }
.lang[open] summary .icon:last-child { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  min-width: 10rem;
  padding: 0.375rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgb(220 235 224 / 0.9);
}
.lang__menu a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  color: var(--forest);
  font-weight: 500;
}
.lang__menu a:hover { background: var(--cream); }
.lang__menu a[aria-current] { background: var(--sage); font-weight: 700; }

/* ---- download chooser (Android / iPhone) ---- */
.download { position: relative; display: inline-block; }
.download summary {
  cursor: pointer;
  list-style: none;
}
.download summary::-webkit-details-marker { display: none; }
.download[open] summary .icon { transform: rotate(180deg); }
.download__menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  z-index: 30;
  min-width: 16rem;
  padding: 0.375rem;
  transform: translateX(-50%);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgb(220 235 224 / 0.9);
  text-align: left;
}
.header .download__menu { left: auto; right: 0; transform: none; }
@media (min-width: 768px) {
  .hero__text .download__menu { left: 0; transform: none; }
}
.download__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  color: var(--forest);
}
.download__item small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.download__item[aria-disabled='true'] { cursor: default; }
.download__item[href]:hover { background: var(--cream); }
.download__item[href] small { display: none; }

.download__item strong { display: block; font-weight: 700; }
.download__item em { display: block; font-style: normal; font-size: 0.875rem; color: var(--muted); }
.download__item small {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--cream);
  white-space: nowrap;
}

/* ---- contact ---- */
.contact { padding-block: 1rem 4rem; }
.contact .container { max-width: 42rem; text-align: center; }
.contact__mail { margin-top: 1.5rem; }
.contact__mail .btn { text-transform: none; word-break: break-all; }
.contact__note { margin-top: 1rem; }

/* ---- hero: three app screens, the planner largest ---- */
.shots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}
.shots .phone { max-width: none; flex-shrink: 0; }
.phone--main { width: 52%; z-index: 2; }
.phone--side { display: none; width: 35%; border-width: 7px; border-radius: 1.75rem; }
.phone--side .phone__screen { border-radius: 1.2rem; }
.phone--left { margin-right: -6%; transform: rotate(-5deg); }
.phone--right { margin-left: -6%; transform: rotate(5deg); }
@media (min-width: 480px) {
  .phone--main { width: 50%; }
  .phone--side { display: block; }
}
@media (max-width: 479px) {
  .phone--main { width: 70%; max-width: 280px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .phone--side { display: none; }
  .phone--main { width: 72%; }
}
.phone--xl { max-width: 360px; }

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--forest);
}
@media (min-width: 768px) {
  .hero__trust { justify-content: flex-start; }
}
.hero__trust + .hero__note { margin-top: 0.25rem; }

/* ---- status chips (colours match the app) ---- */
.chips-label { margin-top: 1.5rem; font-weight: 600; color: var(--forest); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: #302535;
  font-size: 0.875rem;
  font-weight: 600;
}
.chip--accepted { background: #cfe8cb; }
.chip--tasted { background: #f7efc2; }
.chip--refused { background: #f6d6e2; }

/* ---- "try again" example card, styled like the app's "Worth trying again" ---- */
.split__grid { display: grid; align-items: center; gap: 3rem; }
@media (min-width: 768px) {
  .split__grid { grid-template-columns: 1fr 1fr; }
}
.tryagain__support { margin-top: 1rem; font-weight: 600; color: var(--forest); }
.tryagain {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  padding: 2.25rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  background: #f9dce6;
  box-shadow: var(--shadow-soft);
  color: #302535;
}
.example-tag {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  font-weight: 600;
}
.tryagain__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.tryagain__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.tryagain__food { font-size: 1.125rem; font-weight: 700; }
.tryagain__info { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.43; }
.tryagain__button {
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background: #efb3c9;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* ---- two example child profiles ---- */
.family { display: grid; gap: 1.25rem; max-width: 44rem; margin: 3rem auto 0; }
@media (min-width: 640px) {
  .family { grid-template-columns: 1fr 1fr; }
}
.profile-card { padding: 1.5rem; border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow-soft); color: #302535; }
.profile-card__head { display: flex; align-items: center; gap: 0.875rem; }
.profile-card__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #a77b88;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}
.profile-card__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--forest); }
.profile-card__age { font-size: 0.875rem; color: var(--muted); }
.profile-card__stats { display: flex; gap: 1.5rem; margin-top: 1.25rem; }
.profile-card__stats strong { display: block; font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.1; color: var(--forest); }
.profile-card__stats p { font-size: 0.875rem; color: var(--muted); }
.profile-card__again { margin-top: 1.25rem; font-size: 0.875rem; }
.family__note { margin-top: 1rem; text-align: center; }

/* ---- how it works, four steps ---- */
@media (min-width: 768px) {
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- no registration ---- */
.trust { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--white);
  color: var(--forest);
  font-weight: 600;
}
