/* Waf! public site — brand tokens from app theme */
:root {
  --primary: #ff6b6b;
  --primary-dark: #e85555;
  --accent: #4ecdc4;
  --accent-deep: #2f9e96;
  --sun: #ffd166;
  --bg: #f7f3ee;
  --bg-deep: #ebe4da;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #a8a29e;
  --line: rgba(28, 25, 23, 0.1);
  --radius: 22px;
  --radius-btn: 14px;
  --wide: 1120px;
  --max: 720px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

body.landing {
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(255, 107, 107, 0.1), transparent 55%),
    radial-gradient(800px 420px at 100% 8%, rgba(78, 205, 196, 0.12), transparent 50%),
    var(--bg);
}

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

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.journey__inner,
.pillar__inner,
.download__inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-link img.logo {
  height: 34px;
  width: auto;
}

.brand-link .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a.nav-cta {
  color: var(--surface);
  background: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-btn);
}

.nav a.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--surface);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.35rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.lang-switch button:hover:not(.is-active):not([aria-pressed="true"]) {
  color: var(--ink);
}

html[data-lang="en"] [data-lang="fr"],
html[data-lang="fr"] [data-lang="en"] {
  display: none !important;
}

main {
  padding-bottom: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 800px);
  display: grid;
  align-items: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.03);
  animation: heroSettle 1.5s ease-out both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 25, 23, 0.55) 0%, rgba(28, 25, 23, 0.2) 42%, transparent 72%),
    linear-gradient(180deg, transparent 45%, rgba(28, 25, 23, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
  color: #fff;
  animation: riseIn 0.95s ease-out 0.12s both;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 0.95;
  margin: 0 0 0.85rem;
  letter-spacing: -0.04em;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* —— Story bento (light) —— */
.story {
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.story__grid {
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.story__panel {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  animation: riseIn 0.8s ease-out both;
}

.story__panel--brand {
  background: var(--accent);
  color: var(--ink);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story__panel--brand h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 12ch;
}

.story__panel--brand p:not(.story__kicker) {
  margin: 0;
  font-size: 1.08rem;
  max-width: 34ch;
  color: rgba(28, 25, 23, 0.82);
}

.story__panel--photo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

/* —— Journey (single how-it-works) —— */
.journey {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.journey__intro {
  max-width: 34rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.journey__intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.journey__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 40ch;
}

.journey__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.journey-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 0.42fr);
  gap: 1rem 1.5rem;
  align-items: center;
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  color: var(--ink);
  animation: riseIn 0.75s ease-out both;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.06);
}

.journey-step:nth-child(2) {
  animation-delay: 0.06s;
}
.journey-step:nth-child(3) {
  animation-delay: 0.12s;
}

.journey-step--sun {
  background: var(--sun);
}
.journey-step--teal {
  background: var(--accent);
}
.journey-step--coral {
  background: var(--primary);
  color: #fff;
}

.journey-step__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.3;
}

.journey-step__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.journey-step__copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.journey-step__copy p:last-child {
  margin: 0;
  font-size: 1.02rem;
  max-width: 44ch;
  opacity: 0.9;
}

.journey-step__art {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  aspect-ratio: 4 / 3;
}

.journey-step__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-step--teal .journey-step__art,
.journey-step--coral .journey-step__art {
  background: rgba(255, 255, 255, 0.2);
}

.journey-step--teal .journey-step__art img,
.journey-step--coral .journey-step__art img {
  object-fit: contain;
  padding: 0.5rem;
}

/* —— Pillar —— */
.pillar {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.pillar__inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.05);
}

.pillar__inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.pillar__inner p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* —— Download —— */
.download {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(78, 205, 196, 0.18)),
    var(--bg-deep);
  color: var(--ink);
}

.download__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  max-width: 34rem;
}

.download h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.download p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.download a:not(.btn) {
  color: var(--accent-deep);
}

.download__art {
  position: absolute;
  right: max(0px, calc((100% - var(--wide)) / 2 - 1rem));
  bottom: 0;
  width: min(42vw, 400px);
  margin: 0;
  opacity: 0.95;
  pointer-events: none;
  animation: floatSoft 5.5s ease-in-out infinite;
}

.download__art img {
  width: 100%;
  filter: drop-shadow(0 18px 32px rgba(28, 25, 23, 0.18));
}

/* —— Legal pages —— */
.page {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  animation: riseIn 0.55s ease-out both;
  padding-bottom: 3rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2rem 0 0.65rem;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
}

.meta {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.callout {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-btn);
  background: rgba(78, 205, 196, 0.16);
  border: 1px solid rgba(78, 205, 196, 0.35);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 2.25rem 0 2.75rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p {
  margin: 0.25rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.site-footer a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--primary-dark);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSettle {
  from {
    transform: scale(1.07);
    opacity: 0.88;
  }
  to {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .story__grid,
  .journey-step {
    grid-template-columns: 1fr;
  }

  .journey-step__art {
    max-width: 280px;
  }

  .download__art {
    position: relative;
    right: auto;
    width: min(70%, 280px);
    margin: 0 auto 1.5rem;
    opacity: 0.9;
  }

  .download {
    display: flex;
    flex-direction: column-reverse;
  }

  .download__inner {
    padding-top: 1rem;
  }
}

@media (max-width: 720px) {
  .brand-link .wordmark {
    display: none;
  }

  .nav {
    gap: 0.35rem 0.85rem;
  }

  .nav a {
    font-size: 0.82rem;
  }

  .nav a.nav-cta {
    padding: 0.45rem 0.75rem;
  }

  .hero__content {
    padding-top: 6.5rem;
  }

  .site-header__inner,
  .site-footer__inner,
  .journey__inner,
  .pillar__inner,
  .download__inner,
  .story__grid {
    width: min(100% - 1.5rem, var(--wide));
  }

  .story__panel,
  .story__panel--photo img {
    min-height: 240px;
  }
}

.invite-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted, #5c5346);
  line-height: 1.45;
}

.invite-panel .hero__brand {
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
