/* ==========================================================================
   Plumpy — design tokens
   ========================================================================== */
:root {
  --color-plum: #3d2452;
  --color-plum-soft: #5d4f7a;
  --color-pink: #f7c4c0;
  --color-pink-soft: #fde9e6;
  --color-coral: #e26259;
  --color-coral-dark: #c4433a; /* buttons / links: AA contrast with white */
  --color-lilac: #cdc9d6;
  --color-lilac-soft: #ebe8f1;
  --color-mint: #daf6dd;
  --color-green: #2f8f4e;
  --color-cream: antiquewhite;
  --color-sand: #f9f4ed;
  --color-white: #fefefe;

  --font-sans: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
    "Arial", sans-serif;
  --fs-body: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --fs-h1: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-emoji: clamp(5rem, 3rem + 8vw, 9rem);

  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px -14px rgba(61, 36, 82, 0.4);
  --shadow-soft: 0 4px 16px -8px rgba(61, 36, 82, 0.3);
  --header-height: 64px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  margin: 0;
  background-color: var(--color-sand);
  color: var(--color-plum);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

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

h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  margin: 0.3em 0 0.2em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

a {
  color: var(--color-coral-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-plum);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-plum);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  color: var(--color-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-coral-dark);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-plum);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-plum);
  border-color: var(--color-plum);
}

.btn-secondary:hover {
  background: var(--color-plum);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.45em 1.1em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.appstore_link {
  display: inline-block;
  line-height: 0;
}

.appstore_logo {
  margin-top: var(--space-sm);
  transition: transform 0.2s ease;
}

.appstore_logo:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   Site header (sticky, on every page)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-lilac-soft);
}

.site-header_bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-plum);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--color-coral-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-header_actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-group {
  position: relative;
}

.nav-top,
.nav-lang {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-plum);
  text-decoration: none;
}

.nav-top:hover,
.nav-lang:hover,
.nav-group:focus-within > .nav-top {
  background: var(--color-pink-soft);
  color: var(--color-coral-dark);
}

.nav-lang {
  border: 1px solid var(--color-lilac);
  font-size: 0.9rem;
  margin-left: 0.4rem;
}

.nav-drop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-lilac-soft);
}

.nav-group:hover > .nav-drop,
.nav-group:focus-within > .nav-drop {
  display: block;
}

.nav-drop a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--color-plum);
  text-decoration: none;
}

.nav-drop a:hover {
  background: var(--color-pink-soft);
  color: var(--color-coral-dark);
}

.nav-drop_all a {
  font-weight: 700;
  color: var(--color-coral-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-plum);
  background: var(--color-white);
  border: 1px solid var(--color-lilac);
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header_bar {
    flex-wrap: wrap;
  }

  .site-header_actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding-bottom: 1rem;
    max-height: calc(100vh - var(--header-height) - 1rem);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-top {
    font-size: 1.1rem;
  }

  .nav-drop {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 0.8rem;
  }

  .nav-lang {
    margin: 0.5rem 0 0;
    text-align: center;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--color-cream), #fbe8df);
  padding: var(--space-lg) 0;
}

.hero_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.hero_logo {
  width: clamp(90px, 14vw, 130px);
  height: auto;
}

.hero_pitch h1 {
  margin-top: 0;
}

.hero_pitch h2 {
  color: var(--color-plum-soft);
  font-size: var(--fs-h3);
  margin: 0.2em 0;
}

.hero_pitch p {
  font-size: 1.15em;
}

.hero_promo {
  display: flex;
  justify-content: center;
}

.hero_video {
  width: clamp(240px, 60vw, 380px);
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--color-plum);
}

/* ==========================================================================
   Quick links
   ========================================================================== */
.quick-links {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-lilac-soft);
}

.quick-links_row {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.quick-links a {
  flex: 0 0 auto;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--color-pink-soft);
  color: var(--color-plum);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.quick-links a:hover {
  background: var(--color-pink);
  color: var(--color-plum);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--space-lg) 0;
}

.section--white {
  background: var(--color-white);
}

.section--sand {
  background: var(--color-sand);
}

.section--cream {
  background: #fbf0e3;
}

.section--pink {
  background: var(--color-pink-soft);
}

.section--lilac {
  background: var(--color-lilac-soft);
}

.section--mint {
  background: #eaf9ec;
}

.section_head {
  max-width: 44rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.section_head--closing {
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.section_more {
  text-align: center;
  margin: var(--space-md) 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-lg);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.split--top {
  align-items: start;
}

.split_media {
  display: flex;
  justify-content: center;
}

.split_text p {
  max-width: 38rem;
}

.shot {
  filter: drop-shadow(var(--shadow));
}

.emoji-badge {
  font-size: var(--fs-emoji);
  line-height: 1;
  margin: 0;
}

@media (max-width: 760px) {
  .split,
  .split--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  /* Media first on small screens for every row */
  .split--reverse .split_media {
    order: -1;
  }
}

/* Feature cards */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.feature-grid li {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 0.75em 1em;
  box-shadow: var(--shadow-soft);
}

.feature-grid li p {
  margin: 0;
}

/* Milestones */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.milestone-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.milestone-card h3 {
  margin: 0 0 0.5rem;
}

.milestone-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* Guide topics on the home page */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.topic-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.topic-card h3 {
  margin: 0 0 0.5rem;
}

.topic-card h3 a {
  color: var(--color-plum);
  text-decoration: none;
}

.topic-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-card li {
  margin: 0.35rem 0;
  line-height: 1.4;
}

/* ==========================================================================
   Guides
   ========================================================================== */
.guide_shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.guide_shell.has-aside {
  grid-template-columns: minmax(0, 46rem) minmax(0, 20rem);
  justify-content: space-between;
}

.guide_main {
  min-width: 0;
}

.guide_main h1 {
  margin-top: 0;
}

.guide_article h2,
.guide_related h2 {
  margin-top: 2rem;
}

.guide_crumbs,
.guide_meta {
  font-size: 0.9rem;
  color: var(--color-plum-soft);
  margin: 0 0 0.5rem;
}

.guide_lead {
  font-size: 1.2em;
  font-weight: 500;
}

.guide_list,
.guide_related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.is-wide .guide_list {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.guide_list a,
.guide_related a {
  display: block;
  height: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  color: var(--color-plum);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide_list a:hover,
.guide_related a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.guide_list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.guide_list p,
.guide_related span {
  margin: 0;
  display: block;
  font-size: 0.95rem;
}

.guide_topic h2 small {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--color-plum-soft);
}

.guide_topic {
  margin-top: var(--space-lg);
}

.guide_search {
  margin: var(--space-md) 0 var(--space-sm);
}

.guide_search label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.guide_search input {
  width: 100%;
  max-width: 34rem;
  padding: 0.75rem 1.1rem;
  font: inherit;
  color: var(--color-plum);
  background: var(--color-white);
  border: 2px solid var(--color-lilac);
  border-radius: 999px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--color-pink-soft);
  color: var(--color-plum);
  font-weight: 600;
  text-decoration: none;
}

.chips a:hover {
  background: var(--color-pink);
  color: var(--color-plum);
}

.guide_faq h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.05rem;
}

.guide_faq p {
  margin-top: 0;
}

.guide_note {
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-left: 4px solid var(--color-coral);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* Sticky sidebar */
.guide_aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.aside-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.aside-card--cta {
  background: var(--color-mint);
  text-align: center;
}

.aside-card_title {
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.aside-card_title a {
  color: var(--color-plum);
  text-decoration: none;
}

.toc,
.aside-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.aside-list {
  list-style: none;
  padding-left: 0;
}

.toc li,
.aside-list li {
  margin: 0.35rem 0;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .guide_shell.has-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide_aside {
    position: static;
  }
}

/* Download banner above the footer on guide pages */
.guide_cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--color-mint);
  border-radius: var(--radius);
}

.guide_cta h2 {
  margin: 0 0 0.25rem;
}

.guide_cta p {
  margin: 0;
  max-width: 36rem;
}

/* Privacy promise, shown at the very top of every page */
.privacy-band {
  background: var(--color-pink);
  color: var(--color-plum);
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.privacy-band_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: left;
}

.privacy-band p {
  margin: 0;
}

.privacy-band_icon {
  font-size: 2rem;
  line-height: 1;
}

.privacy-band a {
  color: var(--color-plum);
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-plum);
  color: var(--color-lilac);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: auto;
}

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-pink);
  text-decoration: underline;
}

.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-pink);
  margin: 0 0 0.75rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.3rem 0;
  line-height: 1.4;
  font-size: 0.95rem;
}

.site-brand--light {
  color: var(--color-white);
}

.site-footer_grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 2.4fr);
  gap: var(--space-lg);
}

.site-footer_topiclist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.site-footer_lang {
  margin-top: var(--space-sm);
}

.site-footer_legal {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(205, 201, 214, 0.3);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-footer_grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Video carousel + playable video
   ========================================================================== */
/* ==========================================================================
   Video carousel
   ========================================================================== */
.video-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) clamp(1rem, 4vw, 2rem);
}

.video-carousel_row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  width: 100%;
}

.video-carousel_stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-carousel_video {
  width: clamp(240px, 70vw, 400px);
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--color-plum);
}

.video-carousel_btn {
  flex: 0 0 auto;
  width: clamp(40px, 8vw, 56px);
  height: clamp(40px, 8vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  line-height: 1;
  color: var(--color-plum);
  background-color: var(--color-white);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.video-carousel_btn:hover {
  background-color: var(--color-cream);
  color: var(--color-coral);
  transform: translateY(-2px);
}

.video-carousel_dots {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
}

.video-carousel_dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: var(--color-lilac);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-carousel_dot:hover {
  transform: scale(1.15);
}

.video-carousel_dot.is-active {
  background-color: var(--color-coral);
  transform: scale(1.2);
}

/* ==========================================================================
   Playable video — big play-button overlay
   ========================================================================== */
.playable-video {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.playable-video video {
  display: block;
  cursor: pointer;
}

.playable-video_play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 18%, 96px);
  height: clamp(64px, 18%, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: rgba(61, 36, 82, 0.72); /* plum, translucent */
  color: var(--color-white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.playable-video_play:hover {
  background-color: var(--color-coral);
  transform: translate(-50%, -50%) scale(1.06);
}

.playable-video_play:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
}

.playable-video_play-icon {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  line-height: 1;
  margin-left: 0.12em; /* optically center the triangle in the circle */
}

/* ==========================================================================
   Entrance animation + reduced motion
   ========================================================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.split_text,
.split_media,
.hero_pitch {
  animation: fade-up 0.6s ease both;
}

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

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