/* ------------------------------------------------------------------
   Lista Marzeń / Kiddo's Wishlist — marketing site

   Colours, radii and shadows are lifted straight out of the app:
   ListaMarzen.App/Resources/Styles/Colors.xaml and the Card style in
   Pages/GiftsListPage.xaml. The two accents come from the Play feature
   graphic. Keep them in sync if the app's palette moves.
   ------------------------------------------------------------------ */

/* Display face is per-language: Fredoka One ships without the Polish
   diacritics, so /pl/ uses Baloo 2 — the same swap the app makes on
   ManageKidsPage and PrivacyPolicyPage. build.cs injects the right one. */
@font-face {
  font-family: "AppDisplay";
  src: url("../fonts/FredokaOne-Regular.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("../fonts/ComicNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* app palette */
  --peach: #fdf0e5;
  --card: #fff;
  --surface: #f3edf0;
  --ink: #5c4b51;
  --ink-soft: #6f6367;
  --ink-body: #4a3f43;
  --navy: #2f3a56;
  --divider: #e8dee7;

  /* app decorative circles */
  --c-blue: #a2d2ff;
  --c-lav: #cdb4db;
  --c-peach: #ffdab9;
  --c-pink: #ffc8dd;
  --c-pink-strong: #ffafcc;

  /* Store creative, nudged darker until they clear WCAG AA: the display
     pair at 3:1 for large text, the -ink pair at 4.5:1 for body-sized runs.
     Graphic originals were #5C9EF0 / #FE7D69 (2.5:1 and 2.3:1 on peach). */
  --blue: #4189e0;
  --coral: #ea5540;
  --coral-ink: #bf4130;
  --star-yellow: #fbd37a;
  --star-blue: #9ec9e8;
  --star-pink: #f4b8c6;
  --star-lav: #c9bce8;
  --green: #58bd72;

  --bezel: #2c2422;

  --radius: 24px;
  --radius-sm: 16px;
  /* Shadow Brush=Black Opacity=0.10 Radius=12 Offset=0,4 (Card style) */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 18px 44px rgba(92, 75, 81, 0.18);

  --display: "AppDisplay", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Comic Neue", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --topbar-h: 60px;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--peach);
  color: var(--ink-body);
  font: 400 17px/1.65 var(--body);
  font-synthesis-weight: none;
  overflow-x: hidden;
}

/* Soft pastel wash, the same idea as the blurred circles behind the app
   headers. Fixed so it drifts under the content as you scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 46vw at 82% -6%, rgba(162, 210, 255, 0.34), transparent 62%),
    radial-gradient(46vw 40vw at 6% 4%, rgba(255, 218, 185, 0.55), transparent 60%),
    radial-gradient(40vw 34vw at 96% 44%, rgba(205, 180, 219, 0.24), transparent 62%),
    radial-gradient(52vw 42vw at 12% 86%, rgba(255, 200, 221, 0.28), transparent 64%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance; /* no one-word orphan lines in the display face */
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: top 0.16s;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: rgba(253, 240, 229, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(92, 75, 81, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(92, 75, 81, 0.18);
}
.brand span {
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 26px;
  font-size: 16px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--c-pink-strong); }

/* language switch, styled like the app's pill controls */
.lang {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(92, 75, 81, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang a,
.lang span {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  line-height: 1;
}
.lang [aria-current] {
  background: var(--ink);
  color: #fff8f2;
}

@media (min-width: 900px) {
  .nav { display: flex; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 28px 0 8px;
}

.hero__grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 7px 15px 7px 11px;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  font-size: clamp(38px, 9.4vw, 62px);
  margin-bottom: 18px;
}
.hero h1 span { display: block; }
.hero h1 .l1 { color: var(--blue); }
.hero h1 .l2 { color: var(--coral); }

.hero__lead {
  font-size: clamp(17px, 4.3vw, 20px);
  color: var(--ink-body);
  max-width: 30em;
  margin-bottom: 26px;
}
.hero__lead em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--c-pink) 0);
  padding-inline: 2px;
}

/* store buttons ---------------------------------------------------------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.storebtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--bezel);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px 11px 17px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(44, 36, 34, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.storebtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 36, 34, 0.3);
}
.storebtn:active { transform: translateY(0); }
.storebtn svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.storebtn b {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}
.storebtn small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.4;
}

.stores__note {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* qr ---------------------------------------------------------------- */

.qrs { display: none; margin-top: 30px; }

@media (min-width: 900px) {
  .qrs {
    display: flex;
    align-items: flex-start;
    gap: 18px;
  }
  .qrs__label {
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 8.5em;
    align-self: center;
    text-align: right;
    line-height: 1.4;
  }
  .qr {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 9px 9px 6px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    transition: transform 0.16s ease;
  }
  .qr:hover { transform: translateY(-2px); }
  .qr img { width: 84px; height: 84px; }
  .qr span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-top: 3px;
  }
}

/* phone ------------------------------------------------------------- */

.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 10px;
}

/* the app's decorative circles, behind the device */
.hero__device::before,
.hero__device::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero__device::before {
  width: 210px;
  height: 210px;
  background: var(--c-blue);
  opacity: 0.5;
  right: 2%;
  top: 4%;
}
.hero__device::after {
  width: 150px;
  height: 150px;
  background: var(--c-lav);
  opacity: 0.42;
  left: 4%;
  bottom: 6%;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(288px, 74vw);
  padding: 9px;
  background: var(--bezel);
  border-radius: 42px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}
.phone img {
  width: 100%;
  border-radius: 34px;
  background: var(--peach);
}
/* side buttons, same silhouette as the store promo mockups */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 2px;
  border-radius: 2px;
  background: var(--bezel);
}
.phone::before { top: 21%; height: 7%; }
.phone::after { top: 31%; height: 11%; }

.hero__stars {
  position: absolute;
  inset: -10px 0 0;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero { padding: 46px 0 20px; }
  .hero__grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 40px;
  }
  .hero__device { padding-block: 0; }
  .phone { width: 300px; }
}

/* --------------------------------------------------------------- sections */

.section { padding: 54px 0; }
.section--tight { padding-top: 34px; }

.section__head { margin-bottom: 26px; max-width: 40em; }

.kicker {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.section h2 { font-size: clamp(27px, 6.4vw, 38px); }

.lede {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 17px;
}

/* ------------------------------------------------------------- screenshots */

.screens__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.arrows { display: none; gap: 8px; flex: none; }
.arrows button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(92, 75, 81, 0.12);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s, opacity 0.15s;
}
.arrows button:hover { transform: translateY(-2px); }
.arrows button[disabled] { opacity: 0.35; cursor: default; transform: none; }
.arrows svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 20px 8px;
  scroll-padding-inline: 20px;
}
.rail::-webkit-scrollbar { display: none; }

.screen {
  flex: 0 0 auto;
  width: 232px;
  scroll-snap-align: center;
  margin: 0;
}
.screen .phone { width: 232px; border-radius: 34px; padding: 7px; }
.screen .phone img { border-radius: 27px; }
.screen figcaption { margin-top: 16px; }
.screen h3 {
  font-size: 19px;
  margin-bottom: 5px;
  line-height: 1.2;
  min-height: 2.4em; /* two lines, so every caption body starts level */
}
.screen p { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--divider);
  transition: background 0.2s, width 0.2s;
}
.dots i.on { background: var(--c-pink-strong); width: 22px; border-radius: 4px; }

/* Phones get no arrows, so say out loud that the row scrolls. */
.rail-hint {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
}

@media (min-width: 760px) {
  .screen, .screen .phone { width: 244px; }
  .arrows { display: flex; }
  .dots, .rail-hint { display: none; }
}
@media (min-width: 1160px) {
  .rail { padding-inline: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); }
}

/* ------------------------------------------------------------------ steps */

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.step__num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}
.step:nth-child(1) .step__num { background: var(--c-peach); }
.step:nth-child(2) .step__num { background: var(--c-blue); }
.step:nth-child(3) .step__num { background: var(--c-pink); }
.step:nth-child(4) .step__num { background: var(--c-lav); }
.step h3 { font-size: 19px; margin-bottom: 3px; }
.step p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

@media (min-width: 780px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ------------------------------------------------------------------ story */

.story { display: grid; gap: 18px; }

.storycard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.storycard::after {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  right: -58px;
  top: -58px;
  opacity: 0.4;
}
.storycard:nth-child(1)::after { background: var(--c-peach); }
.storycard:nth-child(2)::after { background: var(--c-blue); }
.storycard h3 {
  font-size: clamp(23px, 5.6vw, 28px);
  margin-bottom: 12px;
  position: relative;
}
.storycard p { color: var(--ink-body); position: relative; }

@media (min-width: 820px) {
  .story { grid-template-columns: 1fr 1fr; gap: 22px; }
  .storycard { padding: 34px 32px; }
}

/* ---------------------------------------------------------------- privacy */

.privacy {
  background: var(--navy);
  color: #eae4dc;
  border-radius: 28px;
  padding: 34px 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.privacy::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -120px;
  bottom: -160px;
  background: rgba(162, 210, 255, 0.14);
}
.privacy .kicker { color: rgba(234, 228, 220, 0.6); }
.privacy h2 { color: #fff6ec; font-size: clamp(26px, 6vw, 34px); }
.privacy > * { position: relative; }
.privacy__body { margin-top: 14px; max-width: 46ch; color: rgba(234, 228, 220, 0.88); }

.privacy__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  max-width: 58ch;
}
.privacy__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
  line-height: 1.5;
}
.privacy__list svg {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy__foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 15px;
  color: rgba(234, 228, 220, 0.66);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
}
.privacy__foot a { color: var(--c-blue); text-underline-offset: 3px; }

@media (min-width: 820px) {
  .privacy { padding: 46px 44px; }
}

/* --------------------------------------------------------------- audience */

.audience { display: grid; gap: 12px; }
.aud {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--divider);
}
.aud:last-child { border-bottom: 0; }
.aud h3 { font-size: 18px; flex: none; min-width: 0; }
.aud p { color: var(--ink-soft); font-size: 16px; }

@media (min-width: 780px) {
  .aud { display: grid; grid-template-columns: 15em 1fr; gap: 24px; align-items: baseline; }
}

/* -------------------------------------------------------------------- faq */

.faq { max-width: 780px; }

.faq details {
  border-bottom: 1px solid var(--divider);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 2px;
  position: relative;
  font-family: var(--display);
  font-size: 18.5px;
  color: var(--ink);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 15px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink-soft);
  transform: translateY(-50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.faq summary::before { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq summary:hover { color: var(--coral-ink); }
.faq details > p {
  padding: 0 44px 20px 2px;
  color: var(--ink-soft);
  margin-top: -4px;
}

/* -------------------------------------------------------------------- cta */

.cta {
  background: var(--card);
  border-radius: 28px;
  padding: 38px 26px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
}
.cta::before { width: 190px; height: 190px; background: var(--c-pink); left: -74px; bottom: -84px; }
.cta::after { width: 150px; height: 150px; background: var(--c-blue); right: -56px; top: -60px; }
.cta h2 { font-size: clamp(25px, 6vw, 36px); max-width: 17em; margin-inline: auto; position: relative; }
.cta p { color: var(--ink-soft); margin-top: 12px; position: relative; }
.cta .stores { justify-content: center; margin-top: 24px; position: relative; }

@media (min-width: 820px) { .cta { padding: 52px 40px; } }

/* ----------------------------------------------------------------- footer */

.footer {
  margin-top: 54px;
  padding: 38px 0 calc(38px + var(--dock-space, 0px));
  border-top: 1px solid var(--divider);
  font-size: 15.5px;
  color: var(--ink-soft);
}
.footer__grid { display: grid; gap: 26px; }
.footer h3 { font-size: 18px; margin-bottom: 8px; }
.footer a { color: var(--ink); text-underline-offset: 3px; }
.footer .footer__mail {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--coral-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--c-pink);
}
.footer .footer__mail:hover { border-bottom-color: var(--coral-ink); }
.footer__meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}
.footer__meta span { color: var(--ink-soft); }

@media (min-width: 780px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}

/* ------------------------------------------------------- mobile store dock */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 240, 229, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(92, 75, 81, 0.1);
  transform: translateY(110%);
  /* parked off-screen: hide it properly so its links leave the tab order */
  visibility: hidden;
  transition: transform 0.26s ease, visibility 0s linear 0.26s;
}
.dock.on {
  transform: none;
  visibility: visible;
  transition: transform 0.26s ease, visibility 0s;
}
.dock .storebtn {
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 13px;
  box-shadow: none;
}
.dock .storebtn:hover { transform: none; }
.dock .storebtn svg { width: 21px; height: 21px; }
.dock .storebtn b { font-size: 16px; }
.dock .storebtn small { display: none; }

@media (min-width: 900px) {
  .dock { display: none; }
}

/* --------------------------------------------------------------- niceties */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .topbar, .dock, .arrows, .qrs { display: none !important; }
  body::before { display: none; }
}
