/* ==========================================================================
   Ducks In a Row, ducksgame.com
   Design system. Palette and shapes are lifted from the game itself:
   pool-blue water, rubber-duck yellow, chunky rounded tiles, white outlines.
   ========================================================================== */

@font-face {
  font-family: 'Chewy';
  src: url('../fonts/Chewy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Water */
  --water-900: #02448e;
  --water-800: #0068ae;
  --water-700: #0a86c8;
  --water-600: #0aa4eb;
  --water-500: #29b0ee;
  --water-400: #49b4e5;
  --water-300: #76cdf6;
  --water-200: #a4daf2;
  --water-100: #c2e5f9;
  --water-50:  #e9f6fe;

  /* Duck */
  --duck-700: #c28f00;
  --duck-600: #e0a800;
  --duck-500: #ffd702;
  --duck-400: #ffe047;
  --beak:     #f26d2a;

  /* Accents */
  --green-500: #3fb618;
  --green-700: #006837;
  --orange-500: #ff9a2e;
  --orange-700: #ad5220;
  --red-500:   #e21818;
  --slime-500: #7ac943;
  --gem-500:   #a86ff4;

  /* Ink */
  --ink:      #0a3a63;
  --ink-soft: #46708f;
  --white:    #ffffff;

  --font-display: 'Chewy', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 34px;

  --shadow-card: 0 2px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -18px rgba(2, 68, 142, .45);
  --shadow-float: 0 30px 60px -24px rgba(2, 68, 142, .55);

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 13px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* height:auto matters: the width/height attributes on every <img> are there for
   layout stability, and without this a CSS width would stretch the image to the
   attribute's pixel height instead of keeping its ratio. */
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--duck-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------- buttons -- */
/* Chunky pill with a hard bottom edge, the same shape the game's own
   Continue / New Game buttons use. */

.btn {
  --btn-face: var(--green-500);
  --btn-edge: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .82em 1.5em;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-face) 82%, white) 0%, var(--btn-face) 55%, color-mix(in srgb, var(--btn-face) 88%, black) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  box-shadow: 0 5px 0 var(--btn-edge), 0 16px 26px -12px rgba(2, 68, 142, .7);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge), 0 22px 30px -14px rgba(2, 68, 142, .7); filter: saturate(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--btn-edge), 0 8px 16px -10px rgba(2, 68, 142, .7); }

.btn--orange { --btn-face: var(--orange-500); --btn-edge: var(--orange-700); }
.btn--blue   { --btn-face: var(--water-500); --btn-edge: var(--water-800); }
.btn--sm     { padding: .6em 1.1em; font-size: 1rem; border-width: 2px; }

/* Store badges */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* flex-basis 0 so the two badges share the row evenly instead of being sized
     by their labels, which differ in length. */
  flex: 1 1 0;
  min-width: 212px;
  max-width: 320px;
  padding: 11px 20px;
  border-radius: 16px;
  background: #0d1b2a;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .22);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .8);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.store:hover { transform: translateY(-3px); background: #16283c; box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .85); }
.store:active { transform: translateY(0); }
.store img { width: 26px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.store span { display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; opacity: .78; line-height: 1.2; white-space: nowrap; }
.store strong { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.15; letter-spacing: .01em; white-space: nowrap; }

/* Narrow phones: trim the badge down rather than let the labels wrap. */
@media (max-width: 380px) {
  .store { min-width: 0; gap: 10px; padding: 10px 14px; }
  .store span { font-size: .62rem; letter-spacing: .06em; }
  .store strong { font-size: 1rem; }
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 164, 235, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 132px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  transition: background .14s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .site-header__inner { min-height: 64px; }
  .brand img { width: 108px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--water-600);
    border-bottom: 3px solid rgba(255, 255, 255, .3);
    box-shadow: 0 24px 30px -20px rgba(2, 68, 142, .9);
    display: none;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }

  /* The header's Play free button is hidden at this width, so the menu carries it. */
  .nav .nav__cta {
    margin-top: 8px;
    text-align: center;
    background: var(--green-500);
    border: 2px solid var(--white);
    border-radius: 999px;
    font-family: var(--font-display);
    box-shadow: 0 4px 0 var(--green-700);
  }
  .nav .nav__cta:hover { background: var(--green-500); }
}

.nav__cta { display: none; }
@media (max-width: 900px) { .nav__cta { display: block; } }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 88px) 0 0;
  background:
    radial-gradient(120% 90% at 15% 0%, var(--water-500) 0%, transparent 60%),
    linear-gradient(180deg, var(--water-600) 0%, var(--water-700) 62%, var(--water-800) 100%);
  color: var(--white);
  overflow: hidden;
}

/* soft moving water bands */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20%;
  z-index: -2;
  background:
    radial-gradient(38% 22% at 20% 30%, rgba(255, 255, 255, .13) 0%, transparent 70%),
    radial-gradient(30% 18% at 78% 18%, rgba(255, 255, 255, .10) 0%, transparent 70%),
    radial-gradient(42% 26% at 62% 74%, rgba(255, 255, 255, .09) 0%, transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.06); }
}

.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .18) 55%, rgba(255, 255, 255, .05));
  animation: rise linear infinite;
}
@keyframes rise {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .75; }
  90%  { opacity: .5; }
  to   { transform: translateY(-115vh) translateX(28px); opacity: 0; }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  padding-bottom: 20px;
}

.hero__copy { position: relative; z-index: 4; }

.hero__logo {
  width: min(330px, 74%);
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 26px rgba(2, 68, 142, .5));
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  text-shadow: 0 4px 0 var(--water-900), 0 14px 24px rgba(2, 68, 142, .5);
  margin-bottom: .35em;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  max-width: 46ch;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 1.6em;
}

.hero .stores { margin-bottom: 22px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .88);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta img { width: 20px; height: 20px; }

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 20px;
}

.hero__wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  color: var(--white);
}

/* ---------------------------------------------------------- phone frame -- */

.phone {
  position: relative;
  width: min(300px, 74vw);
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #23303f, #0d1620 60%);
  box-shadow: var(--shadow-float), 0 0 0 2px rgba(255, 255, 255, .18) inset;
  flex: none;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  display: block;
}
.phone--sm { width: min(232px, 60vw); border-radius: 36px; padding: 8px; }
.phone--sm img { border-radius: 29px; }

/* The flanking phones are sized down rather than scaled: a transform leaves the
   full width in the layout, and the stack then overflows its column and lands
   on top of the headline. */
.hero__phones .phone { width: clamp(168px, 15.5vw, 228px); }

.hero__phones .phone:first-child,
.hero__phones .phone:nth-child(3) {
  width: clamp(132px, 12.5vw, 182px);
  z-index: 1;
}
.hero__phones .phone:first-child { transform: rotate(-7deg) translateY(24px); margin-right: -12%; }
.hero__phones .phone:nth-child(2) { z-index: 3; }
.hero__phones .phone:nth-child(3) { transform: rotate(7deg) translateY(24px); margin-left: -12%; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { margin-inline: auto; }
  .hero__lede { margin-inline: auto; }
  .hero .stores, .hero__meta { justify-content: center; }
  .hero__phones { padding-top: 36px; justify-content: center; margin-right: 0; }
}
@media (max-width: 620px) {
  .hero__phones .phone:first-child,
  .hero__phones .phone:nth-child(3) { display: none; }
}

/* ------------------------------------------------------------- sections -- */

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tint { background: var(--water-50); }
.section--deep {
  background: linear-gradient(180deg, var(--water-700), var(--water-900));
  color: var(--white);
}

.section__head { max-width: 62ch; margin: 0 auto clamp(36px, 5vw, 58px); text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.06rem; }
.section--deep .section__head p { color: rgba(255, 255, 255, .85); }

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--duck-500);
  color: #6b4f00;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--duck-700);
}
.section--deep .eyebrow { color: #6b4f00; }

/* ----------------------------------------------------------- mode cards -- */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
}

.mode {
  --accent: var(--water-600);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 26px 34px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 3px solid var(--water-100);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mode:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 50px -22px rgba(2, 68, 142, .5); }
.mode::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--accent);
}
.mode--dash  { --accent: var(--orange-500); }
.mode--slime { --accent: var(--slime-500); }

.mode__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: color-mix(in srgb, var(--accent) 72%, black);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mode__badge img { width: 18px; height: 18px; }

.mode h3 { color: var(--ink); margin-bottom: .3em; }
.mode p { color: var(--ink-soft); font-size: .99rem; }
.mode .phone { margin-top: 22px; }

.mode__facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  font-size: .93rem;
  color: var(--ink);
}
.mode__facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--water-50);
}
.mode__facts b { font-family: var(--font-display); color: var(--accent); font-size: 1.05rem; }

/* ---------------------------------------------------------- how to play -- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 3px solid var(--water-100);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -22px; left: 26px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--duck-500);
  border: 3px solid var(--white);
  color: #6b4f00;
  font-family: var(--font-display);
  font-size: 1.6rem;
  box-shadow: 0 5px 0 var(--duck-700), 0 14px 20px -10px rgba(2, 68, 142, .5);
}
.step h3 { margin-top: 12px; color: var(--ink); }
.step p { color: var(--ink-soft); margin: 0; }

/* live demo board */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.board {
  --tile: clamp(26px, 4.4vw, 40px);
  display: grid;
  grid-template-columns: repeat(9, var(--tile));
  grid-template-rows: repeat(9, var(--tile));
  gap: 2px;
  /* The tracks are a fixed size, so the box has to shrink to them. Otherwise
     it stretches to the column and the tiles sit off to one side. */
  width: max-content;
  max-width: 100%;
  padding: 10px;
  border-radius: 20px;
  background: var(--water-400);
  box-shadow: 0 22px 44px -20px rgba(2, 68, 142, .6), 0 0 0 4px rgba(255, 255, 255, .6);
  margin-inline: auto;
}

.board i {
  border-radius: 5px;
  background: var(--water-100);
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.board i[data-band='1'] { background: var(--water-200); }
.board i[data-fill='1'] {
  background: linear-gradient(165deg, var(--duck-400), var(--duck-500) 55%, var(--duck-600));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.board i[data-clear='1'] {
  transform: scale(.25) rotate(14deg);
  opacity: 0;
  background: var(--white);
}

.demo__copy h2 { color: var(--ink); }
.section--deep .demo__copy h2 { color: var(--white); }

.scoretable {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.scoretable li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}
.scoretable b { font-family: var(--font-display); font-size: 1.25rem; color: var(--duck-400); }

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo__copy { order: -1; text-align: center; }
  .scoretable { margin-inline: auto; }
}

/* ------------------------------------------------------------- features -- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 3px solid var(--water-100);
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, border-color .16s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--water-300); }
.feature img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 14px; }
.feature h3 { font-size: 1.22rem; color: var(--ink); margin-bottom: .3em; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* power-up row */

.powerups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: 8px;
}
.powerup {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
}
.powerup img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.powerup h3 { color: var(--white); font-size: 1.22rem; margin-bottom: .2em; }
.powerup p { color: rgba(255, 255, 255, .84); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------- leaderboard -- */

.leader {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.leader__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}
.leader__tabs span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--water-200);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--water-800);
}
.leader__tabs span:first-child { background: var(--duck-500); border-color: var(--duck-600); color: #6b4f00; }

@media (max-width: 860px) {
  .leader { grid-template-columns: 1fr; text-align: center; }
  .leader__tabs { justify-content: center; }
}

/* -------------------------------------------------------------- gallery -- */

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery .phone { scroll-snap-align: center; flex: none; }
.gallery::-webkit-scrollbar { height: 10px; }
.gallery::-webkit-scrollbar-track { background: rgba(255, 255, 255, .18); border-radius: 999px; }
.gallery::-webkit-scrollbar-thumb { background: var(--duck-500); border-radius: 999px; }

/* ------------------------------------------------------------------ faq -- */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }

.faq details {
  border-radius: var(--radius);
  background: var(--white);
  border: 3px solid var(--water-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 13px; height: 13px;
  border-right: 3px solid var(--water-600);
  border-bottom: 3px solid var(--water-600);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .18s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details[open] summary { background: var(--water-50); }
.faq .faq__body { padding: 4px 24px 22px; color: var(--ink-soft); }

/* ----------------------------------------------------------------- cta -- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(60px, 8vw, 104px) 0;
  background: linear-gradient(180deg, var(--water-600), var(--water-800));
  color: var(--white);
}
.cta img.cta__logo { width: min(340px, 74vw); margin: 0 auto 24px; filter: drop-shadow(0 14px 22px rgba(2, 68, 142, .5)); }
.cta .stores { justify-content: center; }
.cta p { max-width: 52ch; margin-inline: auto; color: rgba(255, 255, 255, .92); }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--water-900);
  color: rgba(255, 255, 255, .8);
  padding: clamp(40px, 5vw, 64px) 0 32px;
  font-size: .94rem;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a:hover { color: var(--duck-400); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
}

.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  transition: background .16s ease, transform .16s ease;
}
.socials a:hover { background: var(--duck-500); transform: translateY(-3px); }
.socials img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.socials a:hover img { filter: none; }

/* --------------------------------------------------------- scroll reveal -- */

/* Gated on .has-js, which the document sets before first paint. Without
   scripting the page must still be fully readable, so the hiding rule never
   applies at all. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- legal pages -- */

.legal {
  padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 96px);
  background: var(--white);
}
.legal__inner { max-width: 820px; margin-inline: auto; }
.legal h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
  margin-top: 1.6em;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .45em; }
.legal a { color: var(--water-700); text-decoration: underline; text-underline-offset: 3px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: .93rem;
  display: block;
  overflow-x: auto;
}
.legal th, .legal td { border: 1px solid var(--water-200); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--water-50); color: var(--ink); }

.page-head {
  padding: clamp(38px, 5vw, 64px) 0 clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, var(--water-600), var(--water-800));
  color: var(--white);
  text-align: center;
}
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); text-shadow: 0 4px 0 var(--water-900); }
.page-head p { color: rgba(255, 255, 255, .88); margin: 0; }

/* -------------------------------------------------------------- 404 -------*/

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(180deg, var(--water-600), var(--water-800));
  color: var(--white);
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: .9;
  text-shadow: 0 6px 0 var(--water-900), 0 22px 34px rgba(2, 68, 142, .55);
  margin: 0;
}
.notfound__ducks { display: flex; gap: 12px; justify-content: center; margin: 26px 0 8px; }
.notfound__ducks img { width: 54px; height: 54px; animation: bob 3.4s ease-in-out infinite; }
.notfound__ducks img:nth-child(2) { animation-delay: .3s; }
.notfound__ducks img:nth-child(3) { animation-delay: .6s; }

/* --------------------------------------------------- reduced motion ------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}
