/* Around landing — hero per Figma "Landing Page (web)".
   Layout: one centered column over a full-bleed sky → white → meadow backdrop.
   Fluid between 393 (mobile frame) and 1512 (desktop frame) via clamp().
   Deliberately single-theme (light): the illustration is the theme. */

:root {
  --bg: #ffffff;
  --ink: #101010;             /* headline, pills, icons */
  --ink-soft: rgba(16, 16, 16, 0.62);
  --pill-text: #ffffff;
  --font-display: 'Averia Serif Libre', Georgia, 'Times New Roman', serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Backdrop ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(84px, 11vh, 110px);
}

picture.bg { display: contents; }

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  animation: drift 75s ease-in-out infinite alternate;
}

.fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 28%, #ffffff 58%);
}

.meadow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 80%;
  object-fit: cover;
  object-position: bottom center;
  z-index: 2;
}

/* ---------- Socials, top right ---------- */

.socials {
  position: absolute;
  top: max(28px, env(safe-area-inset-top, 0px));
  right: max(28px, env(safe-area-inset-right, 0px));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
}
.socials a {
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.15s ease;
  line-height: 0;
}
.socials a:hover, .socials a:focus-visible { opacity: 1; }

/* ---------- Content ---------- */

.content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 3.2vw, 48px);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  text-align: center;
  width: 100%;
}

.cluster {
  width: clamp(170px, 16.5vw, 250px);
  height: auto;
  aspect-ratio: 490 / 582;
  animation: fade-up 0.5s ease-out both;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6.35vw, 96px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: fade-up 0.5s ease-out 0.09s both;
}
.br-m { display: none; }

/* ---------- CTAs + QR ---------- */

.ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.5s ease-out 0.18s both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--pill-text);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pill:hover, .pill:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(16, 16, 16, 0.18);
}
.pill svg { flex: none; }

.scan {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  animation: fade-up 0.5s ease-out 0.18s both;
}

/* Desktop: tucked away in the bottom-right corner, label above the card */
@media (min-width: 769px) {
  .scan {
    position: absolute;
    right: max(26px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 8px;
  }
}
.scan .lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.qr-card {
  display: block;
  line-height: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 11px;
  box-shadow: 0 2px 14px rgba(16, 16, 16, 0.08);
}
.qr-card img { width: 64px; height: 64px; display: block; }

/* ---------- Footer ---------- */

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 4;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.footer p { margin: 3px 0; }
.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer a:hover { color: var(--ink); }

/* ---------- Waitlist form (prelaunch variant) ---------- */

.form {
  width: 100%;
  max-width: 240px; /* 40% narrower than the original 400px */
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  animation: fade-up 0.5s ease-out 0.18s both;
}

.field { display: flex; flex-direction: column; }

.form input[type="text"],
.form input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;   /* >=16px so iOS doesn't zoom on focus */
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #e7e2df;
  border-radius: 14px;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form input::placeholder { color: #a8a29e; }
.form input:focus { border-color: var(--ink); }
.form input.invalid { border-color: #c0392b; }
.form input:disabled { background: #ffffff; opacity: 1; }

/* Phone field with a fixed "+31 6" prefix the user can't edit */
.phone-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e7e2df;
  border-radius: 14px;
  padding: 0 18px;
  transition: border-color 0.15s ease;
}
.phone-wrap:focus-within { border-color: var(--ink); }
.phone-wrap.invalid { border-color: #c0392b; }
.phone-prefix {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  padding-right: 8px;
  white-space: nowrap;
  user-select: none;
}
.phone-wrap input[type="tel"] {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 16px 0;
  flex: 1;
  min-width: 0;
}

.err {
  margin: 6px 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: #c0392b;
  display: none;
}
.err.show { display: block; }
.err-form { margin: 12px 4px 0; text-align: center; }

.btn {
  margin-top: 2px;
  width: 100%;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: var(--ink);
  border: none;
  border-radius: 14px;
  padding: 17px 20px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: default; }
.btn[disabled]:hover { opacity: 1; }

.btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Success: app grey with a green check that draws itself in */
.btn.done {
  background: #f5f5f5;
  color: var(--ink);
}
.btn.done svg path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: draw-check 0.45s ease-out 0.15s forwards;
}
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.consent {
  margin: 12px auto 0;
  max-width: 240px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* honeypot: off-screen, never seen or tabbed to by people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* visually hidden but read by screen readers + used by autofill */
.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;
}

/* ---------- Animations ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: scale(1.045) translateX(-0.6%); }
  to   { transform: scale(1.045) translateX(0.6%); }
}

@media (prefers-reduced-motion: reduce) {
  .sky, .cluster, h1, .ctas, .scan, .form { animation: none; }
  .btn.done svg path { animation: none; stroke-dashoffset: 0; }
  .pill, .pill:hover { transition: none; transform: none; }
}

/* ---------- Mobile (≤768px, Figma frame 393) ---------- */

@media (max-width: 768px) {
  .br-m { display: inline; }

  .pill { padding: 10px 16px; font-size: 13px; gap: 7px; }
  .ctas { gap: 12px; }

  /* QR centered on its own row, below the store CTAs;
     same breathing room as between headline and CTAs */
  .scan {
    position: relative;
    justify-content: center;
    margin: 36px 0 0;
  }
}
