/* ==========================================================================
   made for tiny — coming soon
   Tokens, base, animations, and the three pages (index / signup / success)
   ========================================================================== */

:root {
  --ink: #3D44C9;          /* page background (design purple) */
  --ink-deep: #343AB3;
  --lime: #BED35A;         /* wordmark */
  --lavender: #9D9BF9;     /* primary button */
  --lavender-hover: #ADABFA;
  --lavender-soft: #b9b9ff;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --coral: #e8382a;
  --plum: #4a2a55;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);   /* reveals: fast start, long settle */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 16px;
  --radius-lg: 22px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* Cross-document view transitions (Chrome / Safari). The wordmark morphs
   between its large hero size and the compact header size. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.45s; }
::view-transition-group(wordmark) {
  animation-duration: 0.6s;
  animation-timing-function: var(--ease-out);
}

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

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */
.wordmark {
  view-transition-name: wordmark;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.015em;
  line-height: 0.95;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.28em;
  text-decoration: none;
}
.wordmark .word { display: inline-flex; white-space: nowrap; }
.wordmark .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(4deg);
  transform-origin: bottom left;
}
.ready .wordmark .ch {
  animation: ch-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.06s * var(--i));
}
.wordmark .wm-break { display: none; flex-basis: 100%; }
@keyframes ch-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* --------------------------------------------------------------------------
   Primary button
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--lavender);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 9.5em;
  padding: 0.95em 2em;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out),
    background-color 0.25s var(--ease-out);
}
.btn:hover,
.btn:focus-visible {
  background: var(--lavender-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(190, 211, 90, 0.18);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn[aria-busy="true"] { pointer-events: none; color: transparent; }
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 1.1em; height: 1.1em;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-spring);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Text link */
.link {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--white-20);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.link:hover { border-color: var(--lime); }

/* --------------------------------------------------------------------------
   Reveal helpers (used on all pages)
   -------------------------------------------------------------------------- */
.rise {
  opacity: 0;
  transform: translateY(18px);
}
.ready .rise {
  animation: rise 1.1s var(--ease-expo) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   HOME — the 16:9 stage
   ========================================================================== */
.home {
  display: grid;
  place-items: center;
  min-height: 100dvh;
}
.stage {
  position: relative;
  /* Fill the viewport. Positions are % of width/height so the collage
     stretches with the window; the caps keep tiles from colliding on
     very wide (2.1:1) or very tall (5:4) windows. */
  width: min(100vw, calc(100dvh * 2.1));
  height: min(100dvh, calc(100vw * 0.8));
  container-type: size;
  /* 16:9 is the design ratio; sizes use whichever of width or height is
     the tighter constraint so tiles never grow taller than the design. */
  --k: 1.7778;
  --px: 0; /* pointer offset for the window effect, set by JS, range -1..1 */
  --py: 0;
}

/* Typography inside the stage scales with container width */
.stage .wordmark {
  position: absolute;
  left: 50%;
  top: 8.5%;
  transform: translateX(-50%);
  font-size: min(5.7cqw, calc(5.7 * var(--k) * 1cqh));
}
.stage .tagline {
  position: absolute;
  left: 33.5%;
  top: 20.2%;
  margin: 0;
  font-size: min(1.45cqw, calc(1.45 * var(--k) * 1cqh));
  line-height: 1.35;
  max-width: 34cqw;
  --d: 0.55s;
}
.stage .cta {
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6cqw;
  text-align: center;
}
.stage .cta__lead {
  margin: 0;
  font-size: min(1.1cqw, calc(1.1 * var(--k) * 1cqh));
  font-weight: 600;
  letter-spacing: 0.02em;
  --d: 1.6s;
}
.stage .signup {
  font-size: max(14px, min(1cqw, calc(1 * var(--k) * 1cqh)));
  --d: 1.75s;
}

/* --- Tiles --------------------------------------------------------------- */
.pair { display: contents; }

.tile {
  position: absolute;
  margin: 0;
  width: min(calc(var(--w) * 1cqw), calc(var(--w) * var(--k) * 1cqh));
  left: var(--x);
  top: var(--y);
  aspect-ratio: var(--ar);
  /* Reveal: a mask that opens from the bottom while the photo settles
     from 1.12 to 1. Order and timing come from --i (centre-out). */
  --d: calc(0.5s + var(--i, 0) * 0.12s);
  clip-path: inset(100% 0 0 0);
}
.ready .tile.in-view {
  animation: tile-reveal 1.3s var(--ease-expo) forwards;
  animation-delay: var(--d);
}
.ready .tile.in-view img {
  /* 'backwards' holds the zoomed-in start during the delay; after the
     animation the base transform applies again so hover can transition. */
  animation: img-settle 1.9s var(--ease-expo) backwards;
  animation-delay: var(--d);
}
@keyframes tile-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes img-settle  { from { transform: scale(1.16); } }
.tile__parallax { width: 100%; height: 100%; }
.tile__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--tone, var(--lavender-soft));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  transition: box-shadow 1s var(--ease-expo);
}
.tile__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Window effect: the photo sits slightly zoomed in (--zoom) so it can
     shift up to ~1.8% behind the fixed frame without showing an edge.
     --depth differs per tile so the collage gets a little depth. */
  --zoom: 1.06;
  --shift: 1.5%;
  transform:
    translate(calc(var(--px) * var(--depth, 0.8) * var(--shift) * -1),
              calc(var(--py) * var(--depth, 0.8) * var(--shift) * -1))
    scale(var(--zoom));
  transition: transform 1.1s var(--ease-expo);
}
/* Hover: a slow zoom inside the frame; the frame itself never moves */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__inner img { --zoom: 1.1; }
  .tile:hover .tile__inner { box-shadow: 0 36px 70px -30px rgba(0, 0, 0, 0.65); }
}

/* Positions are % of the 16:9 stage, measured from the design. */
.tile--bunny    { --x: 15%;   --y: 20.6%; --w: 10;   --ar: 200 / 366; --tone: #c9c9ff; --depth: 1.2; }
.tile--cleo     { --x: 10.2%; --y: 55.6%; --w: 14.8; --ar: 296 / 367;  --tone: #2f5fb8; --depth: 0.8; }
.tile--noah     { --x: 26.3%; --y: 33.6%; --w: 23.7; --ar: 473 / 364; --tone: #1e3f9a; --depth: 0.5; }
.tile--sleepbag { --x: 51.3%; --y: 38%;   --w: 23.7; --ar: 475 / 365;  --tone: #efeef6; --depth: 0.6; }
.tile--billie   { --x: 76.2%; --y: 52.6%; --w: 19.5; --ar: 389 / 366; --tone: #c7b4e6; --depth: 1.0; }
.tile--hat      { display: none; --tone: #2f5fb8; --depth: 0.7; }

/* ==========================================================================
   HOME — mobile (stacked, matching the mobile design)
   ========================================================================== */
@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .home { place-items: start center; }
  .stage {
    width: 100%;
    height: auto;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(40px, 12vw, 72px) 7% 40px;
    gap: 0;
  }
  .stage .wordmark {
    position: static;
    transform: none;
    font-size: clamp(56px, 18vw, 92px);
    text-align: center;
    order: 1;
  }
  .wordmark .wm-break { display: block; }

  .stage .tagline {
    position: static;
    order: 2;
    max-width: 22em;
    font-size: clamp(18px, 5.4vw, 24px);
    margin: 1.4em 0 1.6em;
    align-self: flex-start;
  }
  .stage .cta {
    position: static;
    transform: none;
    order: 4;
    margin: 32px 0 44px;
    gap: 22px;
  }
  .stage .cta__lead { font-size: 1rem; }
  .stage .signup { font-size: 1rem; width: 100%; }

  .pair { display: block; position: relative; width: 100%; }

  .tile { --d: 0.15s; }
  .pair--top .tile--cleo   { --d: 0.5s; }
  .pair--top .tile--billie { --d: 0.7s; }

  /* overlapping pair: CLEO top-right, BILLIE lower-left */
  .pair--top { order: 3; aspect-ratio: 430 / 372; }
  .pair--top .tile { width: calc(var(--w) * 1%); }
  .pair--top .tile--cleo   { --x: 46%; --y: 0;   --w: 54; --ar: 210 / 262; --d: 0.35s; }
  .pair--top .tile--billie { --x: 0;   --y: 27%; --w: 50; --ar: 190 / 230; --d: 0.55s; }

  .tile--sleepbag,
  .tile--noah {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  .tile--sleepbag { order: 5; --ar: 370 / 275; }
  .tile--noah     { order: 6; --ar: 370 / 265; }

  /* side-by-side pair: bunny + hat */
  .pair--bottom { order: 7; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pair--bottom .tile { position: static; width: 100%; --ar: 1 / 1.05; display: block; }
  .pair--bottom .tile__inner { width: 100%; height: 100%; }
  .tile--hat { --d: 0.5s; }

  .tile__inner { box-shadow: 0 24px 40px -28px rgba(0,0,0,0.5); }
}

/* ==========================================================================
   SIGNUP + SUCCESS — shared shell
   ========================================================================== */
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 6vw, 72px);
}
.shell__header { display: flex; justify-content: center; }
.shell__header .wordmark {
  font-size: clamp(30px, 3.2vw, 44px);
}
.shell__header .wordmark .ch { opacity: 1; transform: none; animation: none; }
.shell__main {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vh, 72px) 0;
}
.shell__footer {
  display: flex;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white-70);
}

.panel {
  width: min(100%, 440px);
  text-align: left;
}
.panel h2 {
  margin: 0 0 0.35em;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.panel p.lead {
  margin: 0 0 2em;
  color: var(--white-70);
  font-size: 1.05rem;
  font-weight: 400;
}
.panel h2 em {
  font-style: normal;
  color: var(--lime);
}

/* --- Form ---------------------------------------------------------------- */
.field {
  position: relative;
  margin-bottom: 18px;
}
.field input {
  width: 100%;
  padding: 1.35rem 1rem 0.55rem;
  border: 1.5px solid var(--white-20);
  border-radius: var(--radius);
  background: var(--white-10);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-70);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.2s var(--ease-out), font-size 0.2s var(--ease-out), color 0.2s;
}
.field input:focus,
.field input:not(:placeholder-shown) {
  background: rgba(255, 255, 255, 0.14);
}
.field input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(190, 211, 90, 0.18);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lavender-soft);
}
.field input:focus + label { color: var(--lime); }
.field input:user-invalid { border-color: #ff8a7a; }
.field .hint {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #ffb3a8;
}
.field input:user-invalid ~ .hint { display: block; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form__note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--white-70);
  font-weight: 400;
}
.form__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(232, 56, 42, 0.18);
  border: 1px solid rgba(232, 56, 42, 0.5);
  font-size: 0.9rem;
}
.form__error[hidden] { display: none; }

/* Decorative tiles on signup/success (desktop only) */
.deco {
  position: fixed;
  z-index: -1;
  margin: 0;
  width: var(--w);
  aspect-ratio: var(--ar);
  left: var(--x);
  top: var(--y);
  opacity: 0;
  transform: translateY(30px);
  border-radius: 2px;
  overflow: hidden;
  background: var(--tone, var(--lavender-soft));
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55);
  pointer-events: none;
}
.deco img { width: 100%; height: 100%; object-fit: cover; }
.ready .deco {
  animation: deco-in 1.2s var(--ease-out) forwards;
  animation-delay: var(--d, 0.3s);
}
@keyframes deco-in { to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .deco { display: none; } }

/* --- Success ------------------------------------------------------------- */
.success { text-align: center; width: min(100%, 520px); }
.check {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  display: block;
}
.check circle,
.check path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check circle {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}
.check path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.ready .check circle { animation: draw 0.9s var(--ease-out) 0.2s forwards; }
.ready .check path   { animation: draw 0.5s var(--ease-out) 0.9s forwards; }
.ready .check { animation: pop 0.6s var(--ease-spring) 1.25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.success h2 { margin: 0 0 0.4em; font-size: clamp(32px, 5vw, 48px); font-weight: 600; line-height: 1.1; }
.success h2 em { font-style: normal; color: var(--lime); }
.success p { margin: 0 auto 2.2em; max-width: 30em; color: var(--white-70); font-weight: 400; font-size: 1.05rem; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rise, .tile, .wordmark .ch, .deco { opacity: 1; transform: none; }
  .tile { clip-path: none; }
  .tile__inner img { transform: scale(1.06); }
  .check circle, .check path { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Logo image (optional). Drop images/logo.svg or images/logo.png in place
   and it replaces the typeset wordmark; otherwise the text version shows.
   -------------------------------------------------------------------------- */
.wordmark__img {
  width: min(31.5cqw, calc(31.5 * var(--k, 1.7778) * 1cqh));   /* logo width from the design */
  height: auto;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(0.15em);
}
.wordmark:has(.wordmark__img) .word,
.wordmark:has(.wordmark__img) .wm-break { display: none; }
.ready .wordmark__img {
  animation: logo-in 1.1s var(--ease-out) 0.1s forwards;
}
.shell__header .wordmark__img { width: clamp(150px, 15vw, 210px); opacity: 1; clip-path: none; transform: none; animation: none; }
@keyframes logo-in {
  to { opacity: 1; clip-path: inset(0 -5% 0 0); transform: none; }
}
@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .stage .wordmark__img { height: auto; width: min(78vw, 360px); }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark__img { opacity: 1; clip-path: none; transform: none; }
}

/* Bottom pair without a hat photo: centre the bunny on its own */
@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .pair--bottom:has(.tile--hat[hidden]) { grid-template-columns: minmax(0, 62%); justify-content: center; }
}
.tile[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Inline signup (home): the button expands into the form, then into the
   confirmation. Width is animated by JS (FLIP); everything else is CSS.
   -------------------------------------------------------------------------- */
.signup {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  overflow: hidden;
  border-radius: var(--radius);
  white-space: nowrap;
}
.signup .btn { font-size: 1em; }
.signup.is-open .signup__trigger,
.signup.is-done .signup__trigger,
.signup.is-done .signup__form { display: none; }
.signup.is-open .signup__form { display: flex; }
.signup.is-done .signup__done { display: inline-flex; }

.signup__form {
  display: none;
  align-items: center;
  gap: 0;
  padding: 0.3em 0.3em 0.3em 0.4em;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--white-20);
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s;
}
.signup__form:focus-within {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(190, 211, 90, 0.18);
}
.signup__form input {
  width: 11.5em;
  padding: 0.7em 0.9em;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 500;
  outline: none;
  min-width: 0;
}
.signup__form input::placeholder { color: var(--white-70); }
.signup__form input:user-invalid { color: #ffb3a8; }
.signup__divider {
  width: 1.5px;
  height: 1.6em;
  background: var(--white-20);
  flex: none;
}
.signup__submit {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  margin-left: 0.4em;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), background-color 0.25s;
}
/* Desktop pill: arrow only (label stays for screen readers) */
.signup__submit-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.signup__submit .arrow { display: inline-block; transition: transform 0.35s var(--ease-spring); }
.signup__submit:hover .arrow { transform: translateX(3px); }
.signup__submit:hover { background: #CBDD72; }
.signup__submit:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.signup__submit[aria-busy="true"] { pointer-events: none; }
.signup__submit[aria-busy="true"] .arrow {
  width: 1em; height: 1em; color: transparent;
  border: 2px solid rgba(61,61,217,0.3); border-top-color: var(--ink); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Stagger the fields in once the box has opened */
.signup__form > input,
.signup__form > .signup__divider,
.signup__form > .signup__submit { opacity: 0; transform: translateY(6px); }
.signup.is-open .signup__form > * { animation: rise 0.7s var(--ease-expo) forwards; }
.signup.is-open .signup__form > input:first-of-type { animation-delay: 0.25s; }
.signup.is-open .signup__form > .signup__divider   { animation-delay: 0.32s; }
.signup.is-open .signup__form > input:last-of-type  { animation-delay: 0.36s; }
.signup.is-open .signup__form > .signup__submit     { animation-delay: 0.45s; }

.signup__done {
  display: none;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--white-20);
  color: var(--white);
  font-weight: 500;
}
.signup__done strong { color: var(--lime); font-weight: 600; }
.signup__check {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.signup.is-done .signup__check { animation: draw 0.6s var(--ease-expo) 0.35s forwards; }
.signup__error {
  margin: 0;
  padding: 0.6em 0.9em;
  border-radius: var(--radius);
  background: rgba(232, 56, 42, 0.18);
  border: 1px solid rgba(232, 56, 42, 0.5);
  font-size: 0.85em;
}
.signup__error[hidden] { display: none; }

/* Mobile: separate fields, full-width button with a label */
@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .signup { white-space: normal; width: 100%; overflow: visible; }
  .signup__form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .signup__form:focus-within { background: none; box-shadow: none; }
  .signup__form input {
    width: 100%;
    padding: 0.95em 1em;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1.5px var(--white-20);
    transition: box-shadow 0.25s var(--ease-out), background-color 0.25s;
  }
  .signup__form input:focus {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(190, 211, 90, 0.18);
  }
  .signup__divider { display: none; }
  .signup__submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    height: auto;
    margin: 4px 0 0;
    padding: 1em 1.4em;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .signup__submit-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .signup__submit[aria-busy="true"] .signup__submit-label { visibility: hidden; }
  .signup__done { width: 100%; justify-content: center; text-align: center; white-space: normal; }
}

/* ==========================================================================
   Site footer (all pages)
   ========================================================================== */
:root {
  --cream: #F9EFE3;
  --text-dark: #14184A;
}
.site-footer {
  width: 100%;
  background: var(--cream);
  color: var(--text-dark);
  color-scheme: light;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(56px, 6vw, 100px) clamp(24px, 10vw, 195px) clamp(56px, 5vw, 80px);
}
.site-footer__ig {
  flex: none;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--text-dark);
  transition: color 0.2s;
}
.site-footer__ig svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
.site-footer__ig:hover { color: var(--ink); }
.site-footer__address {
  font-style: normal;
  min-width: 14em;
}
.site-footer__address a {
  display: inline-block;
  margin-top: 1.6em;
  color: inherit;
  text-decoration: none;
}
.site-footer__address a:hover { text-decoration: underline; }
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  margin-left: clamp(0px, 2vw, 40px);
}
.site-footer__nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.15em 0;
}
.site-footer__nav a:hover { text-decoration: underline; }

/* Home: stage on top, footer below */
.home {
  grid-template-rows: auto auto;
  align-content: start;
}
.home .site-footer { justify-self: stretch; }

/* Shell pages: padding moves from body to header/main so the footer can bleed */
.shell { padding: 0; }
.shell__header { padding: clamp(20px, 3vw, 36px) clamp(20px, 6vw, 72px) 0; }
.shell__main { padding-left: clamp(20px, 6vw, 72px); padding-right: clamp(20px, 6vw, 72px); }
.shell .site-footer { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .site-footer__inner {
    flex-wrap: wrap;
    gap: 28px 24px;
    padding: 48px 7% 48px;
  }
  .site-footer__ig { width: 30px; height: 30px; }
  .site-footer__address { min-width: 0; flex: 1 1 12em; }
  .site-footer__nav { margin-left: 0; flex: 1 1 100%; flex-direction: row; gap: 24px; }
}

/* ==========================================================================
   Document pages (Legal Notice, Privacy Policy)
   ========================================================================== */
.doc {
  background: #ffffff;
  color: var(--text-dark);
  color-scheme: light;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.doc__header {
  padding: clamp(40px, 6vw, 90px) clamp(24px, 12vw, 160px) 0;
}
.doc__logo { display: inline-block; }
.doc__logo img {
  display: block;
  width: clamp(150px, 16vw, 210px);
  height: auto;
}
.logo-dark { filter: brightness(0); }
.doc__main {
  flex: 1;
  width: 100%;
  max-width: calc(760px + 2 * clamp(24px, 12vw, 160px));
  padding: clamp(56px, 7vw, 100px) clamp(24px, 12vw, 160px) clamp(80px, 10vw, 140px);
  box-sizing: border-box;
}
.doc h1 {
  margin: 0 0 clamp(40px, 5vw, 64px);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.doc section { margin-bottom: 26px; }
.doc h2 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
}
.doc p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.65;
}
.doc p:last-child { margin-bottom: 0; }
.doc ul {
  margin: 0 0 8px;
  padding-left: 1.2em;
  font-size: 0.9rem;
  line-height: 1.65;
}
.doc li { margin: 0; }
.doc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--ink); }
.doc .ph { color: #6b6b6b; }
.doc .rise { --d: 0.05s; }

/* Doc pages: tables */
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid #e6e0d6;
}
.doc th { font-weight: 700; }
.doc td:first-child { white-space: nowrap; }
@media (max-width: 640px) {
  .doc td:first-child { white-space: normal; }
}

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(420px, calc(100vw - 48px));
  padding: 22px 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--text-dark);
  color-scheme: light;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo);
}
.consent.is-visible { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.consent__text { margin: 0 0 16px; }
.consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__btn {
  padding: 0.7em 1.3em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), background-color 0.2s, border-color 0.2s;
}
.consent__btn:hover { transform: translateY(-1px); }
.consent__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent__btn--accept { background: var(--ink); color: var(--white); }
.consent__btn--accept:hover { background: var(--ink-deep); }
.consent__btn--decline { background: transparent; color: var(--text-dark); border-color: rgba(20, 20, 20, 0.3); }
.consent__btn--decline:hover { border-color: var(--text-dark); }

.site-footer__link-btn {
  padding: 0.15em 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-footer__link-btn:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 16px; }
  .consent__btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; opacity: 1; transform: none; }
}


/* ===== Stand 07.10.2026: Design System, deutsche Texte, Abschnitte ===== */
.btn, .signup__submit { border-radius: 999px; }
.btn { --btn-bg: var(--lime); color: var(--text-dark); }
.signup, .signup__form { border-radius: 999px; }
.tile, .tile__inner { border-radius: 18px; }
.tile__inner { box-shadow: 0 30px 60px -30px rgba(20, 24, 74, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__inner { box-shadow: 0 36px 70px -30px rgba(20, 24, 74, 0.7); }
}
.stage .tagline { max-width: 46cqw; font-weight: 600; }
.eyebrow {
  display: block;
  margin-bottom: 0.7em;
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}
.eyebrow span { white-space: nowrap; }
.stage .cta { gap: 1.1cqw; top: 77%; }
.signup__note {
  margin: 0;
  max-width: 34em;
  font-size: max(11.5px, min(0.8cqw, calc(0.8 * var(--k) * 1cqh)));
  font-weight: 400;
  line-height: 1.5;
  color: var(--white-70);
  --d: 1.9s;
}
.signup__note a { color: var(--white); text-underline-offset: 2px; }
.signup.is-done { border-radius: var(--radius); white-space: normal; }
.signup__done { max-width: 34em; text-align: left; line-height: 1.5; border-radius: var(--radius); }

.about {
  width: 100%;
  background: #FBF9F5;
  color: var(--text-dark);
  color-scheme: light;
  font-weight: 400;
}
.about__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) clamp(24px, 6vw, 72px);
}
.about h2 {
  margin: 0 0 0.5em;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.about p { margin: 0; font-size: 1rem; line-height: 1.6; max-width: 26em; }
@media (max-width: 1000px) { .about__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .about__inner { grid-template-columns: minmax(0, 1fr); } }

.home { grid-template-rows: auto auto auto; }
.home .about { justify-self: stretch; }
.site-footer__brandline {
  margin: 0;
  padding: 0 clamp(24px, 10vw, 195px) clamp(32px, 4vw, 56px);
  font-size: 0.85rem;
  color: rgba(20, 24, 74, 0.7);
}
.site-footer__inner { padding-bottom: clamp(24px, 3vw, 40px); }

@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .stage .tagline { max-width: 22em; }
  .eyebrow { font-size: 0.6em; }
  .stage .cta { gap: 18px; }
  .signup, .signup__form { border-radius: var(--radius); }
  .signup__form input { border-radius: var(--radius); }
  .signup__submit { border-radius: 999px; }
  .signup__note { font-size: 0.8rem; }
  .signup__done { text-align: left; }
}

.cta:has(.signup.is-done) .signup__note { display: none; }

/* Wortmarke: gestapeltes Logo aus dem Design System, inline als SVG in Lime */
.wordmark__img { display: block; width: min(15cqw, calc(15 * var(--k, 1.7778) * 1cqh)); }
.stage .wordmark { top: 3%; }
.stage .tagline { left: 27%; top: 22%; width: 46cqw; max-width: 46cqw; text-align: center; }
@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .stage .wordmark__img { width: min(58vw, 250px); height: auto; }
  .stage .tagline { width: auto; max-width: 22em; text-align: left; }
}

/* Footer: Instagram, Facebook, LinkedIn */
.site-footer__social { flex: none; display: flex; gap: 14px; }
.site-footer__ig--fill { width: 28px; height: 28px; }
.site-footer__ig--fill svg { fill: currentColor; stroke: none; }
@media (max-width: 640px) { .site-footer__ig--fill { width: 26px; height: 26px; } }

.site-footer__address strong { font-weight: 700; }
.site-footer__inner { padding-bottom: clamp(56px, 5vw, 80px); }

/* Handy: Eyebrow, Titelzeile und Hinweis zur Warteliste zentriert */
@media (max-width: 820px), (max-aspect-ratio: 1 / 1) {
  .stage .tagline { align-self: center; text-align: center; max-width: 22em; }
  .stage .cta__lead { text-align: center; }
}

/* Icon-Leiste wie Hangtag-Rückseite: Icon, Titel in Versalien, ein Satz */
.about--icons .about__inner { text-align: center; }
.about--icons .about__inner > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.about__icon { width: 32px; height: 32px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about--icons h2 { font-size: clamp(13px, 1vw, 15px); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.35; margin: 0 0 0.7em; }
.about--icons p { max-width: 22em; }
@media (max-width: 560px) {
  .about--icons .about__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; padding-left: 18px; padding-right: 18px; }
  .about--icons h2 { font-size: 12px; letter-spacing: 0.12em; }
  .about--icons p { font-size: 0.875rem; }
}

/* Gruppengeschenk: eigene Zeile unter der Icon-Leiste */
.about--icons .about__inner { padding-bottom: clamp(36px, 4.5vw, 60px); }
.about .about__gift { max-width: 34em; margin: 0 auto; padding: clamp(28px, 3.5vw, 44px) 24px clamp(56px, 7vw, 104px); border-top: 1px solid rgba(61, 68, 201, 0.18); text-align: center; }
.about__gift strong { display: block; margin-bottom: 0.35em; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; line-height: 1.25; color: var(--ink); }


/* ---------- Sprachumschalter ---------- */
.langswitch{
  position:fixed; top:18px; right:18px; z-index:60;
  display:flex; align-items:center; gap:6px;
  padding:5px; border-radius:999px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border:1px solid var(--white-20);
}
.langswitch__item{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 12px 6px 7px; border-radius:999px;
  font-size:12px; font-weight:500; letter-spacing:.06em; line-height:1;
  color:var(--white-70); text-decoration:none;
  transition:background .25s var(--ease-out), color .25s var(--ease-out);
}
.langswitch__item:hover,
.langswitch__item:focus-visible{ background:var(--white-10); color:var(--white); }
.langswitch__item[aria-current="true"]{ background:var(--white); color:var(--ink); }
.langswitch__item:focus-visible{ outline:2px solid var(--lavender-soft); outline-offset:2px; }
.langswitch__flag{
  display:block; width:20px; height:14px; border-radius:3px; flex:0 0 auto;
  box-shadow:0 0 0 1px rgba(0,0,0,.18);
}
@media (max-width:520px){
  /* Auf dem Handy nur die Flaggen, sonst ueberlappt der Umschalter die Wortmarke */
  .langswitch{ top:10px; right:8px; gap:3px; padding:4px; }
  .langswitch__item{ padding:5px; }
  .langswitch__item span{ display:none; }
  .langswitch__flag{ width:18px; height:13px; }
}
@media (prefers-reduced-motion:reduce){ .langswitch__item{ transition:none; } }

/* ---------- Versandhinweis unter dem CTA ---------- */
.cta__shipping{
  margin:6px 0 20px;
  font-size:13px;
  color:var(--white-70);
}
