/* ============================================================
   The Shaltoux Singing Challenge — landing page styles
   Palette: deep Shaltoux green, cream foundation, warm
   yellow/orange accents. Type: Baloo 2 (display) + Poppins
   (body, with italics for editorial emphasis).
   ============================================================ */

:root {
  --green-950: #00351B;
  --green-900: #004D27;
  --green-800: #006838;
  --green-700: #0B7A42;
  --green-600: #1E8A46;
  --green-400: #58B947;
  --green-300: #8CC63F;

  --cream-50: #FDFAF1;
  --cream-100: #FAF4E4;
  --cream-200: #F1E7CF;

  --ink: #1C3325;
  --ink-soft: #47604F;

  --yellow-300: #FFD34D;
  --yellow-400: #FFC20E;
  --yellow-600: #E8930C;

  --orange-500: #F26522;
  --orange-600: #DD4A0E;
  --orange-700: #C2410C;

  --radius-lg: 28px;
  --radius-md: 18px;

  --shadow-card: 0 12px 32px rgba(0, 53, 27, 0.10), 0 2px 8px rgba(0, 53, 27, 0.07);
  --shadow-pop: 0 24px 64px rgba(0, 53, 27, 0.35);

  --font-display: 'Baloo 2', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --focus-ring: var(--orange-600);

  /* Leaf-pattern tiles (four-petal motif from the campaign frames) */
  --pattern-light: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='96'%20height='96'%3E%3Cg%20fill='%23FFFFFF'%20fill-opacity='0.05'%3E%3Cellipse%20cx='34'%20cy='34'%20rx='7'%20ry='15'%20transform='rotate(-45%2034%2034)'/%3E%3Cellipse%20cx='62'%20cy='34'%20rx='7'%20ry='15'%20transform='rotate(45%2062%2034)'/%3E%3Cellipse%20cx='62'%20cy='62'%20rx='7'%20ry='15'%20transform='rotate(-45%2062%2062)'/%3E%3Cellipse%20cx='34'%20cy='62'%20rx='7'%20ry='15'%20transform='rotate(45%2034%2062)'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='96'%20height='96'%3E%3Cg%20fill='%23006838'%20fill-opacity='0.045'%3E%3Cellipse%20cx='34'%20cy='34'%20rx='7'%20ry='15'%20transform='rotate(-45%2034%2034)'/%3E%3Cellipse%20cx='62'%20cy='34'%20rx='7'%20ry='15'%20transform='rotate(45%2062%2034)'/%3E%3Cellipse%20cx='62'%20cy='62'%20rx='7'%20ry='15'%20transform='rotate(-45%2062%2062)'/%3E%3Cellipse%20cx='34'%20cy='62'%20rx='7'%20ry='15'%20transform='rotate(45%2034%2062)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */

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

* { margin: 0; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-50);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }

em { font-style: italic; }

::selection { background: var(--green-800); color: var(--cream-50); }

/* On dark green surfaces the default selection would vanish */
.hero ::selection,
.footer ::selection,
.terms__head ::selection { background: var(--yellow-300); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

html.has-modal body { overflow: hidden; }

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cream-50);
  color: var(--green-800);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

/* ---------- Buttons (base) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.linklike {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  cursor: pointer;
}

.linklike:hover { color: var(--orange-700); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  background:
    var(--pattern-light),
    linear-gradient(158deg, var(--green-700) 0%, var(--green-800) 30%, var(--green-900) 100%);
  color: var(--cream-50);
  text-align: center;
  --focus-ring: var(--yellow-300);
}

/* Diagonal white ribbons, echoing the campaign frames */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  height: 18px;
  width: 150vw;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-24deg);
  pointer-events: none;
}

.hero::before { top: 18%; left: -25vw; }
.hero::after { bottom: 12%; right: -25vw; transform: rotate(-24deg) translateY(30px); }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.9rem, 6vw, 3.8rem) 1.25rem clamp(1.8rem, 5vw, 3.2rem);
}

.lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 24px 13px;
  border-radius: var(--radius-md);
  background: var(--green-800);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 53, 27, 0.35);
}

.lockup__pre {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(253, 250, 241, 0.92);
}

.lockup__brand {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lockup__o {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.03em;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--yellow-300) 0%, #F7941D 55%, var(--orange-600) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero__title {
  margin-top: clamp(1.6rem, 5vw, 2.4rem);
  text-transform: uppercase;
}

.hero__title-small {
  display: block;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--yellow-300);
}

.hero__title-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 11vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0, 53, 27, 0.4);
}

.hero__tagline {
  margin-top: 1rem;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 3.8vw, 1.4rem);
  color: rgba(253, 250, 241, 0.95);
}

.hero__tagline em { color: var(--yellow-300); }

.hero__meta {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 250, 241, 0.85);
}

.btn--hero {
  margin-top: 1.6rem;
  padding: 12px 34px;
  background: var(--yellow-400);
  color: #3A2900;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.btn--hero:hover { background: var(--yellow-300); transform: translateY(-2px); }
.btn--hero:active { transform: scale(0.97); }

.btn__arrow { transition: transform 0.2s ease; }
.btn--hero:hover .btn__arrow { transform: translateY(3px); }

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hero__dot--mint { background: var(--green-300); }
.hero__dot--honey { background: var(--yellow-400); }
.hero__dot--orange { background: var(--orange-500); }

/* ---------- Section heads ---------- */

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding-inline: 1.25rem;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--green-800);
}

/* Baloo 2 has no italics — emphasis inside display type switches to
   Poppins italic so nothing renders as a synthesized oblique. */
.section-head__title em { font-family: var(--font-body); font-size: 0.92em; color: var(--orange-600); font-weight: 600; }

.section-head__sub {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Flavour cards ---------- */

.flavours {
  padding: clamp(2.2rem, 6vw, 4.2rem) 0 clamp(1.9rem, 5vw, 3.4rem);
  background: var(--pattern-dark), var(--cream-50);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 4vw, 26px);
  max-width: 620px;
  margin: clamp(1.5rem, 4.5vw, 2.6rem) auto 0;
}

/* ul.cards outranks the ul[role="list"] padding reset */
ul.cards { padding-inline: 1.25rem; }

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 53, 27, 0.06);
  overflow: clip;
}

.card--mint {
  --accent: #1E8A46;
  --accent-deep: #0B6B33;
  --accent-ink: #0B4A24;
  --accent-soft: #E9F5EB;
  --accent-border: #BFE3C6;
  --grad-a: #8CC63F;
  --grad-b: #006838;
  --btn-bg: #0B6B33;
  --btn-fg: #FFFFFF;
  --btn-hover: #085127;
}

.card--honey {
  --accent: #F5A80C;
  --accent-deep: #8A5B00;
  --accent-ink: #5C3D00;
  --accent-soft: #FFF5D8;
  --accent-border: #F0DCA0;
  --grad-a: #FFD34D;
  --grad-b: #E8930C;
  --btn-bg: #FFC20E;
  --btn-fg: #3A2900;
  --btn-hover: #F5B400;
}

.card--orange {
  --accent: #F26522;
  --accent-deep: #C2410C;
  --accent-ink: #8A2E08;
  --accent-soft: #FFEDE0;
  --accent-border: #F6CBAF;
  --grad-a: #FF8A3C;
  --grad-b: #E94E1B;
  --btn-bg: #C2410C;
  --btn-fg: #FFFFFF;
  --btn-hover: #A93409;
}

/* Miniature nod to the real video frame; the bottom scrim keeps the
   white caption legible over the lighter flavour gradients. */
.card__art {
  position: relative;
  height: 88px;
  overflow: clip;
  background:
    var(--pattern-light),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 100%);
}

.card__art::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -60px;
  width: 190px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(-24deg);
}

.card__art-frame { position: absolute; inset: 0; }

.card__art-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px 7px;
  border-radius: 0 0 12px 12px;
  background: var(--green-800);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 53, 27, 0.3);
}

.card__art-o {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.05em;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--yellow-300) 0%, #F7941D 55%, var(--orange-600) 100%);
}

.card__art-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.card__art-caption em {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.95;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.05rem, 3.5vw, 1.35rem) clamp(1rem, 3.5vw, 1.35rem) clamp(1.2rem, 4vw, 1.5rem);
}

.card__lane {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}

.card__flavour {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--green-950);
}

.card__track {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card__track strong { color: var(--ink); font-weight: 600; }

.card__traits {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

/* Preview button */

.card__preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 1rem;
  padding: 6px 18px 6px 6px;
  border: 2px solid var(--accent-border);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.card__preview:hover { background: var(--accent-soft); border-color: var(--accent); }
.card__preview:active { transform: scale(0.97); }
.card__preview.is-playing { background: var(--accent-soft); border-color: var(--accent); }

.card__preview-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff;
}

.card__preview .icon-pause { display: none; }
.card__preview.is-playing .icon-play { display: none; }
.card__preview.is-playing .icon-pause { display: block; }

.card__eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.card__preview.is-playing .card__eq { display: inline-flex; }

.card__eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 0.75s ease-in-out infinite alternate;
}

.card__eq i:nth-child(1) { animation-delay: 0s; }
.card__eq i:nth-child(2) { animation-delay: 0.18s; }
.card__eq i:nth-child(3) { animation-delay: 0.32s; }
.card__eq i:nth-child(4) { animation-delay: 0.1s; }

@keyframes eq {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

/* Download buttons */

.card__downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.1rem;
}

.btn--card {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 56px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
}

.btn--card:hover { background: #fff; border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 53, 27, 0.10); }
.btn--card:active { transform: scale(0.98); }

.btn--card .btn__icon {
  flex: none;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--accent-border);
  color: var(--accent-deep);
}

.btn--card-primary {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--card-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: 0 8px 20px rgba(0, 53, 27, 0.18); }

.btn--card-primary .btn__icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: transparent;
  color: currentColor;
}

.btn__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn__meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- How to enter ---------- */

.enter {
  background: var(--pattern-dark), var(--cream-100);
  border-top: 1px solid var(--cream-200);
  padding: clamp(2.2rem, 6vw, 4rem) 0;
}

.enter__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(0, 53, 27, 0.07);
  box-shadow: 0 4px 14px rgba(0, 53, 27, 0.05);
}

.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--cream-50);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  padding-bottom: 2px; /* optical centering: Baloo 2 digits sit low */
}

.steps__item:nth-child(2) .steps__num { background: var(--green-700); }
.steps__item:nth-child(3) .steps__num { background: var(--yellow-400); color: #3A2900; }
.steps__item:nth-child(4) .steps__num { background: var(--orange-700); }
.steps__item:nth-child(5) .steps__num { background: var(--green-900); }

.steps__item p { font-size: 0.95rem; color: var(--ink-soft); }
.steps__item strong { color: var(--ink); font-weight: 600; }

.rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 1.4rem;
}

.rules__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
}

.rules__chip::before {
  font-weight: 800;
  font-family: var(--font-body);
}

.rules__chip--yes { background: #E9F5EB; color: #0B4A24; border: 1px solid #BFE3C6; }
.rules__chip--yes::before { content: "\2713"; color: #0B6B33; }

.rules__chip--plus { background: #FFF5D8; color: #5C3D00; border: 1px solid #F0DCA0; }
.rules__chip--plus::before { content: "+"; color: #8A5B00; }

.rules__chip--no { background: #FFEDE0; color: #8A2E08; border: 1px solid #F6CBAF; }
.rules__chip--no::before { content: "\2715"; color: #C2410C; }

.enter__fineprint {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-inline: auto;
}

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

.footer {
  background:
    var(--pattern-light),
    linear-gradient(180deg, var(--green-800), var(--green-950));
  color: var(--cream-50);
  text-align: center;
  --focus-ring: var(--yellow-300);
}

.footer__inner {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2rem, 5.5vw, 3.2rem) 1.25rem clamp(1.8rem, 5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
}

.footer__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  line-height: 1.3;
}

.footer__tag em { font-family: var(--font-body); font-size: 0.95em; color: var(--yellow-300); font-weight: 500; }

.btn--ghost {
  background: transparent;
  border: 2px solid rgba(253, 250, 241, 0.5);
  color: var(--cream-50);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(253, 250, 241, 0.85); }

.footer__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.footer__hashtag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--yellow-300);
}

.footer__legal {
  font-size: 0.8rem;
  color: rgba(253, 250, 241, 0.7);
}

/* ---------- Terms & Conditions dialog ----------
   The <dialog> element is styled as a full-viewport container
   (its own dim layer) with the visual panel inside — this keeps
   backdrop-click detection identical in native and fallback modes. */

.terms {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border: 0;
  background: rgba(0, 42, 21, 0.62);
  align-items: center;
  justify-content: center;
}

.terms[open] { display: flex; }

/* Native modal mode: the ::backdrop covers the entire viewport
   (including the scrollbar gutter), so the dialog's own dim layer
   goes transparent. The dialog background remains as the dim for
   the non-native fallback. */
.terms::backdrop { background: rgba(0, 42, 21, 0.62); }
.terms:modal { background: transparent; }

@supports (backdrop-filter: blur(1px)) {
  .terms { backdrop-filter: blur(3px); }
}

.terms__panel {
  display: flex;
  flex-direction: column;
  width: min(660px, 100%);
  max-height: min(88dvh, 100%);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: terms-in 0.22s ease-out;
}

@keyframes terms-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.terms__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 1.25rem 1.35rem 1.1rem;
  background: var(--pattern-light), var(--green-800);
  color: var(--cream-50);
  --focus-ring: var(--yellow-300);
}

.terms__kicker {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--yellow-300);
}

.terms__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.terms__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(253, 250, 241, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: var(--cream-50);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.terms__close:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(253, 250, 241, 0.7); }
.terms__close:active { transform: scale(0.94); }

.terms__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.3rem 1.35rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--green-400) transparent;
}

.terms__section + .terms__section { margin-top: 1.4rem; }

.terms__section h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 0.5rem;
}

.terms__section ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.terms__section li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.terms__section li::marker { color: var(--orange-600); }

.terms__foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--cream-200);
  background: var(--cream-100);
}

.btn--terms-close {
  background: var(--green-800);
  color: var(--cream-50);
  padding: 8px 30px;
}

.btn--terms-close:hover { background: var(--green-900); }

/* ---------- Layout: tablet & desktop ---------- */

@media (min-width: 700px) {
  .cards { max-width: 640px; }
  .steps__item { padding: 18px 22px; }
}

@media (min-width: 1020px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1160px;
    gap: 26px;
  }

  .card__flavour { font-size: 1.7rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card__eq i { animation: none; transform: scaleY(0.7); }
  .btn:hover, .btn--card:hover { transform: none; }
}
