/*
 * Landing page (GET /, PLAN 11.6; redesigned 2026-10-05). Loaded after guest.css, which still supplies the base
 * reset, the guest-page tokens the hero's phone mockup reuses (so it looks like a list's page), the cup motif and .button.
 * The page itself has its own tokens below (light and dark): a warm, light palette (cream paper, sand and sage
 * sections, forest ink, matcha for actions only, honey for the cup; a soft green-graphite in dark mode, 2026-10-14)
 * and one family, Instrument Sans (its @font-face is in guest.css, which the guest pages share since 15.8).
 * Plain CSS, mobile-first, no :has(), no JS.
 *
 * Motion: one orchestrated moment on load (the hero copy settles, the phone rises, a gift arrives and its cup fills)
 * and motion that answers the visitor (menu sheet, FAQ, buttons, the header once the page scrolls). All of it sits
 * behind `prefers-reduced-motion: no-preference` (guest.css also cuts every animation to 1 ms under `reduce`), and
 * nothing that crawlers or readers need starts hidden outside the hero's first second.
 */

/* ---------- Tokens ---------- */

:root {
  /* Layout: one centered column up to 72rem; sections breathe (5rem on phones, 8rem on wide screens). */
  --lp-paper: #fffcf7;
  --lp-mist: #f7f0e6;
  --lp-ink: #1f2d25;
  --lp-ink-2: #5a665e;
  --lp-ink-3: #7f8a82; /* the h1's second sentence: large text only (3.5:1 on paper) */
  --lp-line: #ebe2d5;
  --lp-matcha: #3f6b4e;
  --lp-matcha-hover: #31573f;
  --lp-on-matcha: #ffffff;
  --lp-leaf: #e6efe5;
  --lp-honey: #d9a441;
  --lp-band: #eaf1e7;
  --lp-on-band: #1f2d25;
  --lp-on-band-2: #56635a;
  --lp-band-icon: #3f6b4e;
  --lp-band-tile: #ffffff;
  --lp-band-tile-shadow: 0 1px 2px rgba(31, 45, 37, 0.08);
  --lp-device: #0f1512;
  --lp-glass: rgba(255, 252, 247, 0.85);
  --lp-shadow-soft: 0 1px 2px rgba(19, 38, 28, 0.06), 0 8px 24px -12px rgba(19, 38, 28, 0.18);
  --lp-shadow-float: 0 24px 48px -16px rgba(19, 38, 28, 0.32), 0 0 0 1px rgba(19, 38, 28, 0.06);
  --lp-shadow-phone: 0 60px 100px -40px rgba(19, 38, 28, 0.5), 0 30px 60px -30px rgba(19, 38, 28, 0.35);
  --lp-shadow-button: 0 12px 24px -10px rgba(63, 107, 78, 0.6);
  --lp-avatar-1: #f7e3db;
  --lp-avatar-2: #e2ecdf;
  --lp-avatar-3: #f6e7c4;
  --lp-avatar-ink: #1f2d25;

  --lp-font: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lp-wrap: 72rem;
  --lp-gutter: 1.25rem;
  --lp-section: 5rem;

  /* Motion: decelerate into place; a light overshoot only for the notification. */
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-ease-pop: cubic-bezier(0.34, 1.36, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --lp-paper: #1c2420;
    --lp-mist: #232d28;
    --lp-ink: #f3efe7;
    --lp-ink-2: #bcc5be;
    --lp-ink-3: #8f9b93;
    --lp-line: #34413a;
    --lp-matcha: #9fcfac;
    --lp-matcha-hover: #b4dcbf;
    --lp-on-matcha: #13261c;
    --lp-leaf: #2a3730;
    --lp-honey: #e3b45e;
    --lp-band: #27332d;
    --lp-on-band: #f3efe7;
    --lp-on-band-2: #bcc5be;
    --lp-band-icon: #e8bd6b;
    --lp-band-tile: rgba(255, 255, 255, 0.08);
    --lp-band-tile-shadow: none;
    --lp-device: #0d1210;
    --lp-glass: rgba(35, 45, 40, 0.86);
    --lp-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
    --lp-shadow-float: 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --lp-shadow-phone: 0 60px 100px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --lp-shadow-button: 0 12px 24px -10px rgba(141, 191, 156, 0.45);
    --lp-avatar-1: #5a3d33;
    --lp-avatar-2: #34503f;
    --lp-avatar-3: #5a4a2e;
    --lp-avatar-ink: #f3efe7;
  }
}

/* ---------- Frame ---------- */

body.landing {
  --font-body: var(--lp-font); /* guest.css components (store buttons) follow the page's face */
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--lp-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  /* The FAQ answers open with a height transition (::details-content, where supported). */
  interpolate-size: allow-keywords;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Anchors land below the sticky header. */
.landing [id] {
  scroll-margin-top: 5rem;
}

.landing main {
  flex: 1;
}

.landing a:focus-visible,
.landing summary:focus-visible {
  outline: 2px solid var(--lp-matcha);
  outline-offset: 3px;
  border-radius: 6px;
}

.landing-wrap {
  width: 100%;
  max-width: var(--lp-wrap);
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}

.landing-section {
  padding: var(--lp-section) 0;
}

.landing-h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-stretch: 94%;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  word-spacing: 0.06em;
  text-wrap: balance;
}

.landing-lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--lp-ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Buttons and links ---------- */

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  background: var(--lp-matcha);
  color: var(--lp-on-matcha);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(19, 38, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    background-color 200ms ease,
    box-shadow 240ms var(--lp-ease),
    translate 240ms var(--lp-ease),
    scale 160ms ease;
}

.landing-button:hover {
  background: var(--lp-matcha-hover);
  box-shadow: var(--lp-shadow-button), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  translate: 0 -1px;
}

.landing-button:active {
  translate: 0 0;
  scale: 0.98;
}

.landing-button--small {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.landing-button--large {
  min-height: 3.5rem;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
}

/* The landing's button on a <button> (the free tools' forms; it was built for links): no UA border, the page's font. */
button.landing-button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* A quiet text link whose underline draws in on hover. */
.landing-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--lp-ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(50% + 0.75em) / 0 1.5px;
  transition: background-size 320ms var(--lp-ease);
}

.landing-link:hover {
  background-size: 100% 1.5px;
}

/* ---------- Header ---------- */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-paper);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .landing-header {
    background: var(--lp-glass);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
}

.landing-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
  color: var(--lp-matcha);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.landing-logo__mark {
  width: 2.375rem;
  height: 2.375rem;
}

.landing-nav {
  display: none;
}

.landing-nav a {
  color: var(--lp-ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.landing-nav a:hover {
  color: var(--lp-ink);
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  color: var(--lp-ink);
  transition: background-color 160ms ease;
}

.landing-menu-button:hover {
  background: var(--lp-mist);
}

/* Two lines, drawn with borders. */
.landing-menu-button__lines {
  width: 1.25rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

/* The phone menu: a full-screen sheet while #menu is the URL's target. */
.landing-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2rem;
  padding: 0 var(--lp-gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--lp-paper);
  overflow-y: auto;
}

.landing-sheet:target {
  display: flex;
}

.landing-sheet__top {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.landing-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  color: var(--lp-ink);
}

.landing-sheet__close .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.landing-sheet__links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-sheet__links a {
  display: block;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--lp-line);
  color: var(--lp-ink);
  font-size: 1.75rem;
  font-stretch: 94%;
  font-weight: 600;
  letter-spacing: -0.025em;
  word-spacing: 0.05em;
  text-decoration: none;
}

.landing-sheet .landing-button {
  margin-top: auto;
}

/* ---------- 1. Hero ---------- */

.landing-hero {
  overflow: hidden;
  padding: 3rem 0 4.5rem;
}

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

.landing-hero__title {
  font-size: clamp(2.625rem, 1.25rem + 5.6vw, 5rem);
  font-stretch: 92%;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.036em;
  word-spacing: 0.06em;
  text-wrap: balance;
}

.landing-hero__title > span {
  display: block;
}

.landing-hero__title-more {
  color: var(--lp-ink-3);
}

/*
 * "Chega de presente repetido." — the last word cycles. Every word sits in the same grid cell, so the box is as wide
 * as the longest one and nothing around it moves; without motion only the first one shows.
 */
.landing-swap {
  display: inline-grid;
}

.landing-swap__word {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.landing-swap__word + .landing-swap__word {
  opacity: 0;
}

.landing-hero__subtitle {
  max-width: 31rem;
  margin-top: 1.5rem;
  color: var(--lp-ink-2);
  font-size: 1.1875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

.landing-hero__actions .landing-button {
  width: 100%;
}

.landing-hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--lp-ink-2);
  font-size: 0.9375rem;
}

.landing-hero__note .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--lp-matcha);
}

/* The visual: the phone on a soft light, the notification floating over its edge. */
.landing-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0 0;
}

.landing-hero__visual::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 34rem;
  height: 34rem;
  max-width: 130%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--lp-leaf), transparent),
    radial-gradient(closest-side at 70% 30%, rgba(217, 164, 65, 0.14), transparent);
  transform: translate(-50%, 0);
}

.landing-phone {
  position: relative;
  width: 17.5rem;
  height: 33rem;
  padding: 0.55rem;
  border-radius: 2.875rem;
  background: var(--lp-device);
  box-shadow: var(--lp-shadow-phone);
}

.landing-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 2.4rem 0.75rem 0;
  border-radius: 2.35rem;
  background: var(--bg); /* the guest page's own background, in the current theme */
  color: var(--text);
}

/* The camera island. */
.landing-phone__screen::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 5.25rem;
  height: 1.4rem;
  border-radius: 1rem;
  background: var(--lp-device);
  transform: translate(-50%, 0);
}

/* A miniature of a list's page: brand, event chip, title, the gift grid. */
.landing-mock__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.landing-mock__mark {
  width: 1.375rem;
  height: 1.375rem;
}

.landing-mock__chip {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: max-content;
  margin: 0.75rem auto 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}

.landing-mock__chip .icon {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--accent);
}

.landing-mock__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}

.landing-mock__gifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-mock__gift {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

/* The template's clay image, cropped like the guest card's (object-fit: cover); the tint shows while it loads. */
.landing-mock__media {
  position: relative;
  height: 5.25rem;
  overflow: hidden;
}

.landing-mock__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-mock__media--1 { background: var(--tint-1); }
.landing-mock__media--2 { background: var(--tint-2); }
.landing-mock__media--3 { background: var(--tint-3); }
.landing-mock__media--4 { background: var(--tint-4); }

.landing-mock__badge {
  position: absolute;
  bottom: 0.35rem;
  left: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.5625rem;
  font-weight: 600;
}

.landing-mock__badge .icon {
  width: 0.65rem;
  height: 0.65rem;
  color: var(--accent);
}

.landing-mock__name {
  padding: 0.45rem 0.5rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.landing-mock__price {
  padding: 0.1rem 0.5rem 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.landing-mock__status {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.5rem 0.55rem;
  color: var(--text-muted);
  font-size: 0.5625rem;
  line-height: 1.25;
}

.landing-mock__status .cup svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* "Faltam …" before and after the gift: one cell, the new amount shown by default. */
.landing-mock__amounts {
  display: grid;
}

.landing-mock__was,
.landing-mock__now {
  grid-area: 1 / 1;
}

.landing-mock__was {
  opacity: 0;
}

/* The creator's push notification, floating over the phone's edge. */
.landing-notice {
  position: absolute;
  top: 21rem;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  width: min(18.5rem, 86vw);
  padding: 0.75rem 0.875rem;
  border-radius: 1.25rem;
  background: var(--lp-glass);
  box-shadow: var(--lp-shadow-float);
  font-size: 0.8125rem;
  line-height: 1.35;
  transform: translate(-42%, 0);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .landing-notice {
    -webkit-backdrop-filter: saturate(1.6) blur(20px);
    backdrop-filter: saturate(1.6) blur(20px);
  }
}

.landing-notice__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.625rem;
  background: #3f6b4e;
  color: #ffffff;
}

.landing-notice__mark {
  width: 1.875rem;
  height: 1.875rem;
}

.landing-notice__text {
  display: grid;
  min-width: 0;
}

.landing-notice__meta {
  display: flex;
  justify-content: space-between;
  color: var(--lp-ink-2);
  font-size: 0.75rem;
}

.landing-notice strong {
  font-weight: 600;
}

/* ---------- 2. Pain ---------- */

.landing-pain {
  background: var(--lp-mist);
}

.landing-pain__list {
  display: grid;
  gap: 1.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-pain__list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--lp-line);
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 1.75rem);
  font-stretch: 96%;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  text-wrap: balance;
}

/* ---------- 3. Solution ---------- */

.landing-solution__grid {
  display: grid;
  gap: 3rem;
}

.landing-solution__occasions {
  max-width: 34rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lp-line);
  color: var(--lp-ink-2);
  font-size: 0.9375rem;
}

/* A real sequence, so numbered; the numbers sit on a thin line. */
.landing-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.landing-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 1.25rem;
  padding-bottom: 2rem;
  counter-increment: step;
}

.landing-step::before {
  content: counter(step);
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  background: var(--lp-paper);
  color: var(--lp-matcha);
  font-weight: 600;
}

.landing-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: 0;
  left: calc(1.375rem - 0.5px);
  width: 1px;
  background: var(--lp-line);
}

.landing-step__title {
  margin-top: 0.55rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.landing-step p {
  margin-top: 0.25rem;
  color: var(--lp-ink-2);
}

/* ---------- 4. Benefits (a soft sage band) ---------- */

.landing-benefits {
  background: var(--lp-band);
  color: var(--lp-on-band);
}

.landing-benefits__list {
  display: grid;
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-benefit {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.landing-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--lp-band-tile);
  box-shadow: var(--lp-band-tile-shadow);
  color: var(--lp-band-icon);
}

.landing-benefit__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.landing-benefit p {
  color: var(--lp-on-band-2);
}

.landing-benefit strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--lp-on-band);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ---------- 5. Social proof ---------- */

.landing-quotes {
  display: grid;
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  padding-top: 1.5rem;
  border-top: 2px solid var(--lp-ink);
}

.landing-quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.landing-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  color: var(--lp-ink-2);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.landing-quote figcaption strong {
  display: block;
  color: var(--lp-ink);
  font-weight: 600;
}

.landing-quote__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--lp-avatar-ink);
  font-weight: 600;
}

.landing-quote__avatar--1 { background: var(--lp-avatar-1); }
.landing-quote__avatar--2 { background: var(--lp-avatar-2); }
.landing-quote__avatar--3 { background: var(--lp-avatar-3); }

/* Placeholders only (development): tagged so nobody mistakes them for real people. */
.landing-quote__example {
  position: absolute;
  top: 1.5rem;
  right: 0;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--lp-leaf);
  color: var(--lp-matcha);
  font-size: 0.75rem;
  font-weight: 600;
}

.landing-quote__example + blockquote {
  padding-right: 4.5rem;
}

/* ---------- 6. FAQ (<details>, no JS) ---------- */

.landing-faq {
  background: var(--lp-mist);
}

.landing-faq__grid {
  display: grid;
  gap: 2rem;
}

.landing-faq__more {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--lp-ink-2);
}

.faq {
  border-top: 1px solid var(--lp-line);
}

.faq__item {
  border-bottom: 1px solid var(--lp-line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding: 1.125rem 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--lp-matcha);
}

/* A plus that turns into a minus. */
.faq__toggle {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  background: var(--lp-paper);
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1.5px;
  border-radius: 1px;
  background: var(--lp-ink);
  transform: translate(-50%, -50%);
  transition: transform 320ms var(--lp-ease);
}

.faq__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer {
  max-width: 40rem;
  padding: 0 3.5rem 1.5rem 0;
  color: var(--lp-ink-2);
  line-height: 1.6;
}

/* ---------- 7. Final call to action ---------- */

.landing-cta {
  padding: var(--lp-section) 0;
}

.landing-cta__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
  border-radius: 2rem;
  background: #3f6b4e;
  color: #ffffff;
  text-align: center;
}

/* A soft light from above, the panel's only decoration. */
.landing-cta__panel::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 50%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
  transform: translate(-50%, 0);
}

.landing-cta__panel > * {
  position: relative;
}

.landing-cta .landing-h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
}

.landing-cta__body {
  margin: 1rem 0 2rem;
  color: #dfe8e0;
  font-size: 1.1875rem;
  text-wrap: balance;
}

.landing-cta .stores {
  align-items: center;
}

.landing-cta .stores__buttons {
  justify-content: center;
}

.landing-cta .stores__button {
  background: #ffffff;
  color: #2c4c37;
}

/* The web create flow next to live store buttons: the same size, outlined, so the stores lead. */
.landing-cta .stores__button--outline {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.landing-cta .stores__button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-cta .stores__soon {
  align-self: center;
  text-align: left;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.landing-cta a:focus-visible {
  outline-color: #ffffff;
}

/* ---------- Footer ---------- */

.landing-footer {
  padding: 1rem 0 3rem;
  color: var(--lp-ink-2);
  font-size: 0.9375rem;
}

.landing-footer__grid {
  display: grid;
  gap: 1.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--lp-line);
}

.landing-footer__about p {
  max-width: 22rem;
  margin-top: 0.75rem;
}

.landing-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.landing-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--lp-ink-2);
  text-decoration: none;
}

.landing-footer__nav a:hover {
  color: var(--lp-ink);
}

/* The guides, the games pages, the example lists and the free tools, one per line under their titles: their names are
   longer than the sections'. */
.landing-footer__nav--guides,
.landing-footer__nav--games,
.landing-footer__nav--examples,
.landing-footer__nav--tools {
  grid-template-columns: 1fr;
  align-content: start;
}

.landing-footer__title {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--lp-ink);
  font-weight: 600;
}

.landing-footer__legal {
  display: grid;
  gap: 0.25rem;
  font-size: 0.875rem;
}

/* ---------- Store links (partial shared by the final call to action) ---------- */

.stores {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stores__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stores__soon {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  :root {
    --lp-gutter: 2rem;
    --lp-section: 6.5rem;
  }

  .landing-hero__actions .landing-button {
    width: auto;
  }

  .landing-pain__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .landing-benefits__list {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }

  .landing-quotes {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .landing-phone {
    width: 19rem;
    height: 36rem;
  }

  .landing-notice {
    top: 23rem;
    transform: translate(-28%, 0);
  }

  .landing-cta__panel {
    padding: 5.5rem 2rem;
    border-radius: 2.5rem;
  }

  .stores__buttons .button {
    width: auto;
    padding: 0.75rem 1.5rem;
  }

  .landing-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 60rem) {
  :root {
    --lp-section: 8rem;
  }

  .landing-nav {
    display: flex;
    gap: 2rem;
    margin-right: 1rem;
  }

  .landing-menu-button,
  .landing-sheet {
    display: none !important;
  }

  .landing-hero {
    padding: 5rem 0 7rem;
  }

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

  .landing-solution__grid,
  .landing-faq__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .landing-steps {
    padding-top: 0.5rem;
  }

  .landing-benefits__list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About and the sections (two columns of links) on one row, the four columns of pages under them, contact last. */
  .landing-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .landing-footer__about,
  .landing-footer__about + .landing-footer__nav {
    grid-column: span 2;
  }

  .landing-footer__legal {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* The hero copy settles in, line by line. */
  .landing-in {
    animation: landing-settle 900ms var(--lp-ease) both;
    animation-delay: calc(var(--i) * 80ms + 60ms);
  }

  /*
   * The headline's last word: each one holds for 2.6 s, then rises out as the next rises in, looping. The four
   * keyframe stops below assume four words (one quarter of the cycle each).
   */
  .landing-swap__word {
    opacity: 0;
    animation: landing-swap calc(var(--words) * 2.6s) var(--lp-ease) infinite both;
    animation-delay: calc(var(--w) * 2.6s + 140ms);
  }

  /* Then the phone rises into the light. */
  .landing-phone {
    animation: landing-rise 1200ms var(--lp-ease) 220ms both;
  }

  .landing-hero__visual::before {
    animation: landing-light 1600ms ease-out 200ms both;
  }

  /* Its cups fill once it has landed (guest.css's own rise, later). */
  .landing-phone .cup__rise {
    animation-delay: 1000ms;
  }

  /* A gift arrives: the notification drops in, the stroller's cup climbs from 30 % to 60 % and "Faltam" updates. */
  .landing-notice {
    animation: landing-arrive 720ms var(--lp-ease-pop) 2300ms both;
  }

  .landing-mock__gift--live .cup__rise {
    animation: landing-cup-step 3000ms linear 900ms both;
  }

  .landing-mock__was {
    animation: landing-hide 240ms ease 2800ms both;
  }

  .landing-mock__now {
    animation: landing-show 360ms ease 2900ms both;
  }

  /* The phone menu slides into place. */
  .landing-sheet:target {
    animation: landing-sheet 320ms var(--lp-ease);
  }

  /* The header picks up a hairline and a stronger glass once the page scrolls. */
  @supports (animation-timeline: scroll()) {
    .landing-header {
      border-bottom-color: transparent;
      animation: landing-header linear both;
      animation-timeline: scroll();
      animation-range: 0 5rem;
    }
  }
}

/* The FAQ answers slide open, where the browser can animate <details>. */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq__item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 380ms var(--lp-ease), content-visibility 380ms allow-discrete;
    }

    .faq__item[open]::details-content {
      block-size: auto;
    }
  }
}

@keyframes landing-swap {
  0% { opacity: 0; translate: 0 0.32em; filter: blur(5px); }
  5%, 22% { opacity: 1; translate: 0 0; filter: blur(0); }
  27%, 100% { opacity: 0; translate: 0 -0.32em; filter: blur(5px); }
}

@keyframes landing-settle {
  from { opacity: 0; translate: 0 1.125rem; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

@keyframes landing-rise {
  from { opacity: 0; translate: 0 3rem; scale: 0.97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes landing-light {
  from { opacity: 0; scale: 0.8; }
  to { opacity: 1; scale: 1; }
}

@keyframes landing-arrive {
  from { opacity: 0; translate: 0 -1rem; scale: 0.94; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* The cup's liquid: empty → 30 % (after the phone lands) → hold → 60 % (the new gift). The cup is drawn at 60 %, so
   30 % is 30 units further down. */
@keyframes landing-cup-step {
  0% { transform: translate(0, 100px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  28% { transform: translate(0, 30px); }
  62% { transform: translate(0, 30px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { transform: none; }
}

@keyframes landing-hide {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes landing-show {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes landing-sheet {
  from { opacity: 0; translate: 0 -0.75rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes landing-header {
  to { border-bottom-color: var(--lp-line); box-shadow: 0 8px 24px -16px rgba(19, 38, 28, 0.25); }
}
