/* ==========================================================================
   Quizano – Website Prototype
   Brand blend: Quizano (blue → lilac gradient, DM Sans, glass cards)
              + scoolio (violet #6a5aff, coral #ff5f5f, generous 30px radii)
   ========================================================================== */

/* Selbst gehostet statt Google Fonts (DSGVO, kein Render-Blocking durch Drittanbieter) */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --blue: #4a88cc;
  --blue-bright: #5b8def;
  --violet: #6a5aff;          /* scoolio */
  --lilac: #8b7fd4;
  --coral: #ff5f5f;           /* scoolio */
  --green: #1f9d63;
  --green-soft: #ddf6e9;
  --coral-soft: #ffe6e4;
  --green-ink: #147049;      /* Text auf --green-soft, Kontrast ≥ 4.5:1 */
  --coral-ink: #b42c2c;      /* Text auf --coral-soft, Kontrast ≥ 4.5:1 */

  /* Neutrals */
  --ink: #141a2e;
  --ink-2: #3a4258;
  --muted: #6b7390;
  --line: rgba(20, 26, 46, .09);
  --bg: #f6f5fb;
  --bg-tint: #eef0fb;
  --surface: #ffffff;

  --grad: linear-gradient(120deg, var(--blue-bright) 0%, var(--violet) 55%, var(--lilac) 100%);
  --grad-soft: linear-gradient(135deg, #ddeeff 0%, #eef0ff 50%, #f3eafc 100%);

  /* Type */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  /* Shape & motion */
  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 46, .05), 0 4px 14px rgba(20, 26, 46, .05);
  --shadow-lg: 0 2px 6px rgba(20, 26, 46, .05), 0 30px 60px -20px rgba(64, 54, 160, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(3.2rem, 8.4vw, 7rem);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 700;
}
.display--sm { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.display em, .h2 em, .statement__text em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .1em .12em .04em;
  margin: 0 -.06em -.12em -.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 22ch;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 34ch; line-height: 1.55; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 18px;
}
.kicker--coral { color: var(--coral); }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 99px; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(20,26,46,.45); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 16px;
  background: var(--ink); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.08rem; }
.store small { font-size: .7rem; font-weight: 500; opacity: .7; letter-spacing: .02em; }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(20,26,46,.55); }
.store--light { background: #fff; color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px var(--gutter);
  transition: padding .3s var(--ease);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 18px; border-radius: 99px;
  border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 99px; font-weight: 500; color: var(--ink-2); font-size: .97rem; transition: background .2s, color .2s; }
.nav__links a:hover { background: rgba(106,90,255,.08); color: var(--violet); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -84px; padding: calc(84px + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 110px); overflow: clip; }
.hero__glow {
  position: absolute; inset: 0 -10% auto -10%; height: 100%;
  background:
    radial-gradient(40% 45% at 78% 35%, rgba(106,90,255,.22), transparent 70%),
    radial-gradient(35% 40% at 92% 70%, rgba(255,95,95,.14), transparent 70%),
    radial-gradient(40% 50% at 15% 20%, rgba(91,141,239,.18), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .demo { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ---------- Demo / Deck ---------- */
.demo {
  position: relative;
  padding: 22px; border-radius: 36px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.demo__head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 16px; }
.demo__label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 22px; height: 6px; border-radius: 99px; background: rgba(20,26,46,.1); transition: background .3s, width .3s var(--ease); }
.demo__dots i.is-current { width: 34px; background: var(--violet); }
.demo__dots i.is-ok { background: var(--green); }
.demo__dots i.is-bad { background: var(--coral); }

.feedback {
  position: absolute; z-index: 5; left: 50%; top: -14px;
  padding: 8px 16px; border-radius: 99px; white-space: nowrap;
  font-weight: 700; font-size: .92rem; pointer-events: none;
  box-shadow: 0 10px 24px -10px rgba(20,26,46,.35);
  opacity: 0; transform: translate(-50%, 6px) scale(.9);
  transition: opacity .25s, transform .35s var(--ease);
}
.feedback.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.feedback--ok { background: var(--green); color: #fff; }
.feedback--bad { background: var(--coral); color: #fff; }

.deck { position: relative; height: 380px; perspective: 1200px; }
.deck__ghost, .card {
  position: absolute; inset: 0; border-radius: var(--r-lg);
}
.deck__ghost { background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); transform-origin: 50% 110%; }
.deck__ghost--l { transform: rotate(-6deg) scale(.96); }
.deck__ghost--r { transform: rotate(6deg) scale(.96); }

.card {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20,26,46,.06), 0 20px 40px -18px rgba(20,26,46,.25);
  padding: 26px; display: flex; flex-direction: column;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab;
  transition: transform .45s var(--ease), opacity .35s;
  will-change: transform;
}
.card.is-dragging { transition: none; cursor: grabbing; }
.card__q { margin-top: auto; margin-bottom: auto; font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.22; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.card__foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }
.card__foot img { width: 22px; height: 22px; border-radius: 6px; opacity: .9; }

.chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px;
  font-size: .8rem; font-weight: 600;
  color: color-mix(in srgb, var(--c) 72%, black); background: color-mix(in srgb, var(--c) 12%, white);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.stamp {
  position: absolute; top: 28px; padding: 6px 14px; border-radius: 10px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  border: 3px solid currentColor; opacity: 0; pointer-events: none;
}
.card .stamp--yes { left: 22px; color: var(--green); transform: rotate(-12deg); }
.card .stamp--no { right: 22px; color: var(--coral); transform: rotate(12deg); }

.card--summary { align-items: center; justify-content: center; text-align: center; gap: 14px; cursor: default; }
.summary__score {
  font-size: clamp(4rem, 8vw, 5.4rem); line-height: 1; font-weight: 800; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.summary__score small { font-size: .42em; letter-spacing: -.02em; }
.summary__text { color: var(--ink-2); max-width: 30ch; text-wrap: balance; }
.summary__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 10px; }
.summary__actions .btn { justify-content: center; }
.restart { background: var(--ink); color: #fff; font-size: 1.05rem; padding: 16px 24px; box-shadow: 0 10px 24px -10px rgba(20,26,46,.55); }
.restart svg { display: inline-block; transition: transform .5s var(--ease); }
.restart:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(20,26,46,.6); }
.restart:hover svg { transform: rotate(-200deg); }
.btn--grad { background: var(--grad); color: #fff; }
.btn--grad:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(106,90,255,.7); }

.demo__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; transition: opacity .3s; }
.demo__actions.is-hidden { opacity: 0; pointer-events: none; }
.answer {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 16px; border-radius: 18px; font-weight: 700; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.answer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.answer--no { background: var(--coral-soft); color: var(--coral-ink); }
.answer--yes { background: var(--green-soft); color: var(--green-ink); }
.answer:hover { transform: translateY(-2px); }
.answer--no:hover { box-shadow: 0 10px 22px -12px rgba(255,95,95,.8); }
.answer--yes:hover { box-shadow: 0 10px 22px -12px rgba(31,157,99,.8); }
.answer:active { transform: scale(.97); }
.demo__hint { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }
@media (hover: none) { .demo__hint { visibility: hidden; height: 0; margin: 0; } }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--line); background: #fff; overflow: hidden; display: grid; gap: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.fact {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px 10px 12px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; color: var(--ink-2);
}
.fact i { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; }
.fact i.t { background: var(--green-soft); color: var(--green-ink); }
.fact i.f { background: var(--coral-soft); color: var(--coral-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__aside { max-width: 34ch; color: var(--ink-2); font-size: 1.05rem; }

/* Features: Daily */
.daily {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  padding: clamp(30px, 5vw, 56px) clamp(26px, 5vw, 64px) 0;
  border-radius: var(--r-lg); background: var(--grad); color: #fff;
}
.daily__text { display: flex; flex-direction: column; gap: 16px; max-width: 420px; align-self: center; padding-bottom: clamp(30px, 5vw, 56px); }
.daily h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.08; letter-spacing: -.03em; }
.daily p { color: rgba(255,255,255,.88); font-size: 1.08rem; }

.phone {
  flex: none; width: 250px; align-self: flex-end; margin-bottom: -80px;
  border-radius: 40px 40px 0 0; padding: 10px 10px 0;
  background: #0f1324; box-shadow: 0 30px 60px -20px rgba(15,19,36,.6);
}
.phone__screen { border-radius: 31px 31px 0 0; background: var(--grad-soft); padding: 20px 14px 90px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.app-top { display: flex; gap: 10px; align-items: center; }
.app-top img { width: 32px; height: 32px; border-radius: 8px; }
.app-top b { display: block; font-size: .95rem; }
.app-top small, .app-row small { display: block; font-size: .65rem; color: var(--muted); }
.app-daily { background: linear-gradient(120deg, var(--blue), #7a6dcc); color: #fff; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.app-daily > small { font-size: .62rem; opacity: .8; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.app-daily > b { font-size: 1.2rem; }
.app-daily > span:not(.app-btn) { font-size: .7rem; opacity: .85; }
.app-daily__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.app-daily__stats div { background: rgba(255,255,255,.18); border-radius: 12px; padding: 7px 9px; }
.app-daily__stats small { display: block; font-size: .58rem; opacity: .85; }
.app-daily__stats b { font-size: .85rem; }
.app-btn { background: #fff; color: var(--ink); border-radius: 12px; text-align: center; padding: 8px; font-weight: 700; font-size: .72rem; }
.app-row { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.8); border-radius: 16px; padding: 10px; }
.app-row b { font-size: .75rem; display: block; }
.app-row__ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #eef0ff; color: var(--violet); font-weight: 700; }
.app-row__ic--badge { background: #fff1d8; color: #d18719; }


@media (max-width: 760px) {
  .daily { grid-template-columns: 1fr; gap: 0; }
  .daily__text { padding-bottom: 32px; }
  .phone { justify-self: center; margin-bottom: 0; width: 240px; }
  .phone__screen { padding-bottom: 24px; }
}

/* Categories */
.cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; letter-spacing: -.01em;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, white); box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--c) 70%, transparent); }
.cat__ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; background: color-mix(in srgb, var(--c) 13%, white); }
@media (max-width: 600px) { .cats { gap: 8px; } .cat { font-size: .9rem; padding: 6px 14px 6px 6px; } .cat__ic { width: 32px; height: 32px; font-size: .95rem; } }

/* scoolio */
.scoolio { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 36px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.scoolio::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,95,95,.16), transparent); pointer-events: none; }
.scoolio__copy { display: flex; flex-direction: column; gap: 18px; }
.scoolio__copy .kicker { margin-bottom: 0; color: var(--coral); }
.scoolio__copy p { color: var(--ink-2); max-width: 46ch; }
.scoolio .h2 em { background: linear-gradient(120deg, var(--violet), var(--coral)); -webkit-background-clip: text; background-clip: text; }
.link-arrow { font-weight: 700; color: var(--violet); display: inline-flex; gap: 8px; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.scoolio__stats { display: grid; gap: 12px; position: relative; z-index: 1; }
.scoolio__stats div { display: flex; align-items: baseline; gap: 16px; padding: 18px 22px; border-radius: var(--r-md); background: var(--bg); }
.scoolio__stats b { font-size: 2rem; letter-spacing: -.04em; min-width: 4.2ch; color: var(--violet); }
.scoolio__stats div:nth-child(3) b { color: var(--coral); }
.scoolio__stats span { color: var(--ink-2); font-weight: 500; }
@media (max-width: 860px) { .scoolio { grid-template-columns: 1fr; } }

/* CTA */
.cta { padding: clamp(80px, 10vw, 130px) 0; }
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  border-radius: 40px; background: var(--grad); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cta__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(255,95,95,.45), transparent 70%); pointer-events: none; }
.cta__card > * { position: relative; }
.cta__card .display em { background: none; color: #fff; -webkit-background-clip: initial; background-clip: initial; }
.cta__card .lead { color: rgba(255,255,255,.85); }
.cta__icon { border-radius: 24px; box-shadow: 0 20px 40px -10px rgba(20,26,46,.4); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* Footer */
.footer { padding: 70px 0 34px; border-top: 1px solid var(--line); background: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { color: var(--muted); margin-top: 12px; }
.footer__title { font-size: .78rem; font-weight: 700; line-height: 1.6; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer__grid a:not(.brand) { display: block; padding: 4px 0; color: var(--ink-2); font-weight: 500; }
.footer__grid a:not(.brand):hover { color: var(--violet); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.heart { color: var(--coral); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .cta__icon { animation: none; }
  .card { transition: opacity .2s; }
}

@media (max-width: 520px) {
  .demo { padding: 16px; border-radius: 30px; }
  .deck { height: 340px; }
  .deck__ghost--l { transform: rotate(-3deg) scale(.97); }
  .deck__ghost--r { transform: rotate(3deg) scale(.97); }
  .answer { white-space: nowrap; padding: 14px 10px; font-size: .95rem; }
  .display { font-size: clamp(3.4rem, 17vw, 4.6rem); }
}
.hero__copy .kicker { margin-bottom: -8px; }
.h2 em, .display em { white-space: nowrap; }

/* ---------- Legal pages ---------- */
.legal { position: relative; margin-top: -84px; padding: calc(84px + clamp(36px, 6vw, 72px)) 0 clamp(70px, 9vw, 120px); overflow: clip; }
.legal__glow {
  position: absolute; inset: 0 -10% auto -10%; height: 520px; z-index: -1;
  background: radial-gradient(60% 70% at 20% 0%, #dfe9ff 0%, transparent 70%),
              radial-gradient(50% 60% at 85% 10%, #efe6ff 0%, transparent 70%);
}
.legal__back { display: inline-flex; gap: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; margin-bottom: 36px; }
.legal__back span { transition: transform .25s var(--ease); }
.legal__back:hover { color: var(--violet); }
.legal__back:hover span { transform: translateX(-4px); }
.legal__title {
  font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -.04em; font-weight: 700;
  hyphens: manual; overflow-wrap: break-word;
}
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; }
.legal__tabs a {
  padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  background: rgba(255,255,255,.7); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.legal__tabs a:hover { color: var(--violet); border-color: rgba(106,90,255,.3); }
.legal__tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.legal__card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: clamp(26px, 5vw, 56px); color: var(--ink-2); font-size: 1rem; line-height: 1.7;
  overflow-wrap: break-word;
}
.legal__card h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 2.4em 0 .7em; }
.legal__card h2:first-child { margin-top: 0; }
.legal__card p + p { margin-top: .9em; }
.legal__card ul { margin: .9em 0; padding-left: 1.2em; }
.legal__card li { margin: .5em 0; }
.legal__card li::marker { color: var(--violet); }
.legal__card a { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(106,90,255,.3); text-underline-offset: 3px; }
.legal__card a:hover { text-decoration-color: currentColor; }
.legal__card strong { color: var(--ink); }
.legal__meta { color: var(--muted); font-weight: 500; }
.legal__meta span { color: var(--line); }

/* ---------- Contact page ---------- */
.contact__lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 52ch; margin-top: 20px; }
.contact { display: grid; grid-template-columns: 1fr 1.7fr; gap: 24px; margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.contact__info, .contact__form {
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
}
.contact__team { display: flex; margin-bottom: 22px; }
.contact__team img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); background: var(--bg-tint); }
.contact__team img + img { margin-left: -12px; }
.contact__info address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.contact__info strong { color: var(--ink); }
.contact__list { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-2); }
.contact__list span { display: inline-block; width: 76px; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { color: var(--violet); font-weight: 600; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full, .contact__error, .contact__submit { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(106,90,255,.14); }
.contact__error { color: var(--coral); font-weight: 600; font-size: .95rem; margin: -6px 0; }
.contact__error:empty { display: none; }
.contact__submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact__submit .btn { padding: 15px 28px; font-size: 1.05rem; }
.contact__submit p { color: var(--muted); font-size: .88rem; max-width: 34ch; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact__form { grid-template-columns: 1fr; } }
