/* menus-app.com — one stylesheet for the French and English pages. No external resources. */

:root {
  --green: #7aac2c;
  --green-light: #9bc455;
  --green-deep: #4f7a17;
  --green-wash: #f2f7e8;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --surface-alt: #f6f8f2;
  /* Chip colors of the app (asset catalog, light appearance). */
  --starter: #e8684f;
  --dish: #a1c45a;
  --dessert: #f1c246;
  --ingredient: #5cc6f1;
  --shadow-device: 0 2.5rem 4.5rem -2rem rgba(31, 52, 6, 0.42), 0 0.9rem 1.6rem -0.9rem rgba(0, 0, 0, 0.28);
  --max: 72rem;
  color-scheme: light;
}

@supports (color: color(display-p3 0 0 0)) {
  :root {
    --ingredient: color(display-p3 0.471 0.769 0.929);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

h1,
h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Chips: the app's capsules (17 pt text, 12 × 4 pt padding, white text). */

.chip {
  display: inline-block;
  padding: 0.235em 0.706em;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

.chip--starter { background: var(--starter); }
.chip--dish { background: var(--dish); }
.chip--dessert { background: var(--dessert); }
.chip--ingredient { background: var(--ingredient); }
/* Section labels: the gray of the Menus view's day badges, the green of the Settings icons
   (same asset as the dish chips). */
.chip--date { background: #bebec1; }
.chip--settings { background: var(--dish); }

.chip--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
}

.chip--label {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Devices: rectangular captures, with the screen corners of the simulator masks. */

.device {
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-device);
}

.device img {
  width: 100%;
}

.device--iphone { border-radius: 12.6% / 5.8%; }
.device--ipad { border-radius: 1.5% / 2.2%; }

/* Two overlapping phones: the front one whole, the back one lowered and shifted. */

.duo {
  position: relative;
  width: min(100%, 33rem);
  aspect-ratio: 1559 / 2165;
  margin-inline: auto;
}

.duo .device {
  position: absolute;
}

.duo__front {
  left: 0;
  top: 0;
  width: 62.5%;
  z-index: 1;
}

.duo__back {
  left: 42.5%;
  top: 9.93%;
  width: 57.5%;
}

.duo--mirror .duo__front {
  left: 37.5%;
}

.duo--mirror .duo__back {
  left: 0;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  filter: drop-shadow(0 0.25rem 0.6rem rgba(31, 52, 6, 0.28));
}

.lang {
  display: flex;
  gap: 0.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.lang a,
.lang span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
}

.lang a:hover {
  color: #fff;
}

.lang [aria-current] {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.2), transparent 65%),
    linear-gradient(180deg, var(--green-light), var(--green));
  padding: 8rem 0 5rem;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 4.4rem);
  line-height: 1.03;
}

.hero__lead {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2.5rem;
}

.badge img {
  width: auto;
  height: 3.4rem;
}

.hero__platforms {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decor .chip {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Statement */

.statement {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

.statement__text {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.marquee {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* Each row holds its list six times (each half wider than very large screens); a margin per
   chip (no gap) keeps the -50 % loop seamless. */
.marquee__row {
  display: flex;
  width: max-content;
}

.marquee .chip {
  margin-right: 0.75rem;
  font-size: 1.125rem;
}

/* Features */

.feature {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.feature--alt {
  background: var(--surface-alt);
}

.feature__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.feature__text {
  max-width: 31rem;
}

.feature h2,
.privacy h2 {
  margin-top: 1.2rem;
  font-size: clamp(2.2rem, 1.3rem + 2.7vw, 3.5rem);
  line-height: 1.05;
}

.feature p,
.privacy p {
  margin-top: 1.35rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.feature--wide .feature__text {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.ipad {
  width: min(100%, 62rem);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

/* Sharing: the shared menus screen with the two widgets in front. */

.together {
  position: relative;
  width: min(100%, 33rem);
  aspect-ratio: 1 / 1.14;
  margin-inline: auto;
}

.together .device {
  position: absolute;
  left: 0;
  top: 0;
  width: 52%;
}

.together__widget {
  position: absolute;
  right: 0;
  z-index: 1;
  width: 56%;
  filter: drop-shadow(0 1.4rem 1.8rem rgba(31, 52, 6, 0.3)) drop-shadow(0 0.4rem 0.6rem rgba(0, 0, 0, 0.12));
}

.together__widget--large { top: 4%; }
.together__widget--medium { top: 60%; }

/* Privacy */

.privacy {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  text-align: center;
  background: var(--green-wash);
}

.privacy__icon {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto;
}

.privacy p {
  max-width: 34rem;
  margin-inline: auto;
}

/* Final call to action */

.final {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--green-light), var(--green));
}

.final .wrap {
  position: relative;
  z-index: 1;
}

.final__icon {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 1rem 1.8rem rgba(31, 52, 6, 0.35));
}

.final h2 {
  font-size: clamp(2.8rem, 1.8rem + 3vw, 4.25rem);
}

.final__subtitle {
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
}

.final .badge {
  display: inline-block;
  margin-top: 2.4rem;
}

.final__platforms {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Privacy policy page: a short green band, then a readable column. */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 3.5rem;
  color: #fff;
  background:
    radial-gradient(90% 90% at 15% 0%, rgba(255, 255, 255, 0.2), transparent 65%),
    linear-gradient(180deg, var(--green-light), var(--green));
}

.page-hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.05;
}

/* Title aligned on the text column below. */
.page-hero__inner {
  max-width: 44rem;
  margin-inline: auto;
}

.page-hero__date {
  margin-top: 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.policy {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.policy__intro {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.summary {
  margin-top: 2.25rem;
  padding: 1.6rem 1.75rem;
  border-radius: 1.4rem;
  background: var(--green-wash);
}

.policy .summary h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.policy h2 {
  margin-top: 3rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.summary h2 + ul,
.policy h2 + p,
.policy p + p,
.policy p + ul,
.policy ul + p {
  margin-top: 1rem;
}

.policy p,
.policy li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.policy ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.policy li + li {
  margin-top: 0.45rem;
}

.policy a {
  color: var(--green-deep);
  text-underline-offset: 0.18em;
}

/* Footer */

.site-footer {
  padding: 2.25rem 0 2.75rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Same spacing as the header's language switch (the footer nav gap would apply otherwise). */
.site-footer .lang {
  gap: 0.2rem;
}

.site-footer .lang a,
.site-footer .lang span {
  color: var(--ink-3);
}

.site-footer .lang [aria-current] {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand img {
  width: 1.6rem;
  height: 1.6rem;
}

/* Wide screens */

@media (min-width: 60rem) {
  .hero {
    padding: 9rem 0 6rem;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5.5rem;
  }

  .feature--flip .feature__text {
    order: 2;
  }
}

/* Small screens: no room for the decorative chips around the text. */

@media (max-width: 59.99rem) {
  .hero__text,
  .feature__text {
    margin-inline: auto;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .decor {
    display: none;
  }

  .duo,
  .together {
    width: min(100%, 26rem);
  }
}

/* Motion, only for people who have not asked to reduce it. */

@media (prefers-reduced-motion: no-preference) {
  .marquee__row {
    animation: marquee 80s linear infinite;
  }

  .marquee__row--reverse {
    animation-direction: reverse;
    animation-duration: 95s;
  }

  .hero__visual .duo {
    animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.15s;
  }

  /* Revealed once when scrolled into view (inline script); visible as is without JavaScript. */
  .js .reveal {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
}
