/* loopevents.io: the waitlist page. Values and lp- components from Chani's Loop design kit (Bright theme): tokens.json /
   loop-tokens.css / loop-components.css / DESIGN.md "Marketing". Texts live in the HTML; this file holds no words. */

@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-300-600.woff2) format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-400-600.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --canvas: #F3F4F6;
  --surface: rgba(255,255,255,0.62);
  --surface-thick: rgba(255,255,255,0.42);
  --surface-raised: rgba(255,255,255,0.78);
  --fill: rgba(20,22,26,0.045);
  --border-glass: rgba(255,255,255,0.85);
  --hairline: rgba(20,22,26,0.07);
  --ink: #1D2025;
  --ink-secondary: #61666F;
  --ink-tertiary: #686D76;
  --on-ink: #FFFFFF;
  --glow-sky: rgba(176,196,230,0.55);
  --glow-peach: rgba(240,202,186,0.55);
  --glow-pistachio: rgba(222,232,170,0.45);
  --critical-dot: #D9776E;
  --critical-text: #9E433C;
  --success-dot: #7FAE76;
  --success-tint: rgba(127,174,118,.18);
  --success-text: #3F6A3B;
  --focus-ring: rgba(29,32,37,0.9);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.9) inset, 0 8px 24px rgba(40,50,70,0.06);
  --shadow-glass: 0 1px 0 rgba(255,255,255,0.9) inset, 0 20px 60px rgba(40,50,70,0.08);
  --shadow-button: 0 10px 24px rgba(29,32,37,0.18);
  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --radius-xl: 22px; --radius-2xl: 28px; --radius-pill: 999px;
  --blur-glass: 18px; --blur-glass-thick: 28px; --blur-glow: 70px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --dur-press: 120ms;
  --dur-enter: 200ms;
  --section-gap: clamp(80px, 12vw, 150px);
  --page-gutter: clamp(20px, 5vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: var(--font-text); font-size: 17px;
  line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* GlowBackground: three orbs behind each stage; the only place the brand hues live. The orbs bleed past their stage
   (no seam where the next stage begins); the page clips them at its own edges. */
.page { position: relative; overflow: clip; }
.lp-stage { position: relative; }
.lp-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-glow i { position: absolute; border-radius: 50%; filter: blur(var(--blur-glow)); }
.lp-glow .sky { width: max(80%, 520px); aspect-ratio: 1; left: -25%; top: -40%; background: radial-gradient(closest-side, var(--glow-sky), transparent); }
.lp-glow .peach { width: max(70%, 460px); aspect-ratio: 1; right: -22%; top: -18%; background: radial-gradient(closest-side, var(--glow-peach), transparent); }
.lp-glow .pistachio { width: max(65%, 440px); aspect-ratio: 1; left: 22%; bottom: -45%; background: radial-gradient(closest-side, var(--glow-pistachio), transparent); }
.lp-glow--flip .sky { left: auto; right: -25%; }
.lp-glow--flip .peach { right: auto; left: -22%; }

/* TitlePair: bold title, light subtitle at ~45 % in ink-secondary. */
.lp-title { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; color: var(--ink); text-wrap: balance; }
.lp-title em { display: block; margin-top: .28em; font-style: normal; font-weight: 300; font-size: .45em; line-height: 1.15; letter-spacing: -.02em; color: var(--ink-secondary); }
.display-xl { font-size: clamp(56px, 10vw, 112px); }
.display-m { font-size: clamp(40px, 6vw, 56px); }
.title-s { font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-secondary); margin: 0; text-wrap: pretty; }

/* Buttons: pills; primary is ink, the secondary is glass. */
.lp-btn { font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 0; cursor: pointer; text-decoration: none; letter-spacing: -.01em;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-press) var(--ease-out); }
.lp-btn:active { transform: scale(.98); }
.lp-btn-primary { background: var(--ink); color: var(--on-ink); }
.lp-btn-glass { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border-glass); font-weight: 500; }
.lp-btn-lg { min-height: 54px; font-size: 17px; padding: 0 var(--space-6); }
.lp-btn-cta { box-shadow: var(--shadow-button); }
.lp-btn:focus-visible, .lp-field:focus-visible, .logo:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.lp-btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.lp-btn svg { width: 16px; height: 16px; flex: none; }

/* Glass cards over the glow. */
.lp-card { background: var(--surface); border: 1px solid var(--border-glass); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: var(--space-6);
  backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass)); }
.lp-card-thick { background: var(--surface-thick); border: 1px solid var(--border-glass); border-radius: var(--radius-2xl); box-shadow: var(--shadow-glass); padding: var(--space-8);
  backdrop-filter: blur(var(--blur-glass-thick)) saturate(150%); -webkit-backdrop-filter: blur(var(--blur-glass-thick)) saturate(150%); }

/* Page frame. */
.top { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: var(--space-6) var(--page-gutter); }
.logo { display: block; width: 84px; aspect-ratio: 501 / 212; background: var(--ink); -webkit-mask: url(loop-logo.png) center / contain no-repeat; mask: url(loop-logo.png) center / contain no-repeat; }
.logo--small { width: 64px; }
a.logo { aspect-ratio: auto; height: 44px; } /* a 44 px target; the mask keeps the mark at its width */
.section { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gutter); }

/* Hero: centred TitlePair, lede, the sign-up. */
.hero { text-align: center; padding: clamp(48px, 9vw, 120px) var(--page-gutter) var(--section-gap); }
.hero .lede { max-width: 34ch; margin: var(--space-8) auto 0; }
.hero .lp-title em { margin-top: .24em; }

.join { max-width: 560px; margin: var(--space-10) auto 0; }
.join-row { display: flex; gap: var(--space-3); padding: 6px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--border-glass); box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass)); }
.lp-field { flex: 1; min-width: 0; min-height: 54px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; letter-spacing: -0.01em; }
.lp-field::placeholder { color: var(--ink-tertiary); }
.lp-field[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--critical-dot); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-note { margin: var(--space-3) 0 0; min-height: 1.4em; font-size: 15px; line-height: 1.4; }
.join-note:empty { min-height: 0; margin: 0; }
.status { display: inline-flex; align-items: baseline; gap: var(--space-2); }
.status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-1px); background: currentColor; }
.status--critical { color: var(--critical-text); }
.status--critical::before { background: var(--critical-dot); }
.consent { margin: var(--space-4) auto 0; max-width: 52ch; font-size: 13px; line-height: 1.5; color: var(--ink-tertiary); text-wrap: pretty; }
.consent a { color: var(--ink-secondary); }
.hero-more { margin-top: var(--space-8); }

/* The thank-you in place of the form (JS) and on thanks.html (no JS). */
.joined { max-width: 560px; margin: var(--space-10) auto 0; text-align: left; }
.joined .title-s { display: flex; align-items: center; gap: var(--space-3); }
.done-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--success-tint); color: var(--success-text); }
.done-mark svg { width: 18px; height: 18px; }
.joined p { margin: var(--space-3) 0 0; color: var(--ink-secondary); }
.joined[hidden], .join[hidden] { display: none; }
.rise { animation: rise var(--dur-enter) var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* What Loop does. */
.what { padding-bottom: var(--section-gap); }
.what-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-12); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.cards .lp-card { padding: var(--space-8); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--fill); margin-bottom: var(--space-5); color: var(--ink); }
.feature-icon svg { width: 24px; height: 24px; }
.cards p { margin: var(--space-3) 0 0; color: var(--ink-secondary); font-size: 16px; }

/* Last call. */
.closing { padding-bottom: var(--section-gap); }
.closing .lp-card-thick { text-align: center; padding: clamp(40px, 7vw, 80px) var(--space-8); }
.closing .lp-btn { margin-top: var(--space-8); }

.foot { max-width: 1180px; margin: 0 auto; padding: var(--space-8) var(--page-gutter) var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  align-items: center; justify-content: space-between; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-tertiary); }
.foot p { margin: 0; }

/* A page with one card: thanks.html and the server's answers to a form without JS. */
.lp-plain { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: var(--space-8) var(--page-gutter); overflow: hidden; }
.lp-notice { width: min(560px, 100%); }
.lp-notice h1 { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; }
.lp-notice p { margin: var(--space-4) 0 0; color: var(--ink-secondary); }
.lp-notice .lp-btn { margin-top: var(--space-8); }
.lp-notice .logo { margin-bottom: var(--space-8); }

/* The preview copy for M (docs/evidence/…/vorbild): says it sends nothing. */
.preview-note { position: sticky; top: 0; z-index: 2; margin: 0; padding: var(--space-2) var(--page-gutter); text-align: center; font-size: 13px; background: var(--ink); color: var(--on-ink); }

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .join-row { flex-direction: column; border-radius: var(--radius-xl); padding: 8px; }
  .join-row .lp-btn { width: 100%; }
  .lp-field { min-height: 50px; }
  .hero .lede { margin-top: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .lp-btn { transition: none; }
  .lp-btn:active { transform: none; }
}
