/* antwort.now — the colours are the app's own (AntWort wwwroot/app.css, dark theme): ground, surfaces, text, accent,
   the gender colours der / die / das / plural and the case colours Akk / Dat / Gen. The scene mechanics (pinned full-screen
   scenes, the next one sliding over like a card) are the ones of nodus.trade (nodus-site css/site.css, js/site.js).
   Layout values are mine. */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: #2b2b30;
  --text: #f3f3f4;
  --dim: #a1a1aa;
  --faint: #6f6f78;
  --accent: #6c9cff;
  --primary: #ffffff;
  --primary-ink: #0a0a0b;
  --der: #5aa5ff;
  --die: #ff7391;
  --das: #4fd38a;
  --pl: #f5b759;
  --akk: #ffab4a;
  --dat: #b592ff;
  --gen: #58d1c6;
  --radius: 16px;
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(30px, 3.3vw, 50px); font-weight: 750; }
h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 720; }

/* The ant: the app's own picture as a mask, so it takes the text colour (.mark.ant in app.css). */
.ant { display: inline-block; aspect-ratio: 428 / 640; background: currentColor;
  -webkit-mask: url(/brand/ant.png) center / contain no-repeat; mask: url(/brand/ant.png) center / contain no-repeat; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 14px;
  background: var(--primary); color: var(--primary-ink); font-weight: 650; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #e6e6ea; }
.btn:active { transform: scale(.98); }
.btn.small { min-height: 38px; padding: 0 16px; border-radius: 11px; font-size: 15px; }

/* Top bar: transparent over the first scene, solid once the page moves (js/site.js). */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 18px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: background .2s ease, border-color .2s ease; border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(10, 10, 11, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .ant { height: 30px; color: var(--text); transform: rotate(38deg); }
.brand .wordmark { height: 19px; width: auto; opacity: .96; }
.langs { display: flex; gap: 4px; font-size: 14px; font-weight: 650; }
.langs a, .langs span { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--dim); }
.langs a:hover { color: var(--text); background: var(--surface-2); }
.langs .on { color: var(--text); background: var(--surface-2); }

/* ---------- scenes ---------- */
.scene { position: relative; width: 100%; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bg);
  display: flex; align-items: center; }
.hold { position: relative; height: 85vh; pointer-events: none; }
.scene__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 5; }
/* every card that slides over another gets a real edge */
.scene--feature, .scene--cta {
  border-radius: 28px 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 -30px 90px rgba(0, 0, 0, .7);
}
.scene--feature:nth-of-type(odd) { background: radial-gradient(120% 90% at 100% 0%, rgba(108, 156, 255, .06) 0%, rgba(10, 10, 11, 0) 55%), var(--bg); }
.scene--feature:nth-of-type(even) { background: radial-gradient(120% 90% at 0% 0%, rgba(108, 156, 255, .05) 0%, rgba(10, 10, 11, 0) 55%), var(--bg); }

.scene__inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: clamp(28px, 4.5vw, 72px); align-items: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 36px;
}
.scene--feature[data-side="left"] .scene__inner { grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); }
/* the hero carries the stats in its text column: it keeps the wider text column, or it outgrows a 768-high screen */
.scene--hero .scene__inner { grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); }
.scene--feature[data-side="left"] .scene__copy { order: 2; }
.scene--feature[data-side="left"] .scene__media { order: 1; }
.scene__media { min-width: 0; }

.kicker { margin: 0 0 14px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.scene__copy > p:not(.kicker):not(.demo-case):not(.demo-gender) { color: var(--dim); margin: 20px 0 0; max-width: 34em; font-size: clamp(15px, 1.15vw, 17px); }
.scene__copy ul { margin: 18px 0 0; padding: 0; list-style: none; max-width: 36em; }
.scene__copy li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--text); font-size: clamp(15px, 1.1vw, 16px); }
.scene__copy li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- the first scene ---------- */
.scene--hero .ant.big { height: 70px; color: var(--text); margin-bottom: 20px; }
.scene--hero .lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text) !important; margin: 20px 0 10px !important; max-width: 34em; }
.scene--hero .note { color: var(--dim); font-size: 15px !important; margin: 0 0 26px !important; max-width: 34em; }
/* the numbers stand under the button, in the text column, so the first scene fits one screen and can be pinned */
.stats {
  list-style: none; margin: 30px 0 0; padding: 20px 0 0; max-width: 34em;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: 1px; }
.stats b { font-size: clamp(22px, 2vw, 30px); font-weight: 750; letter-spacing: -0.01em; }
.stats span { color: var(--dim); font-size: 13px; line-height: 1.3; }

/* ---------- the stage: the iPad in landscape (1366 × 1024) and the phone (428 × 926) BESIDE it, on the scene's outer side,
   both standing on one line. Neither covers the other: every screen is seen whole (the owner, 2026-12-04 — the phone in
   front of the iPad's corner hid AntWord's panel docked to the right). Its height never exceeds what the screen leaves. ---------- */
.stage { position: relative; width: 100%; max-width: calc((100svh - var(--nav-h) - 90px) / .55); margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; }
[data-side="left"] .stage { flex-direction: row-reverse; }
.tablet {
  margin: 0; flex: 0 0 auto; width: 73%; aspect-ratio: 1366 / 1024; overflow: hidden; background: var(--surface);
  border-radius: 2.4% / 3.2%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 10px #050506, 0 0 0 11px var(--line);
}
.phone {
  margin: 0; flex: 0 0 auto; width: 22.5%; aspect-ratio: 428 / 926; overflow: hidden; background: var(--surface);
  border-radius: 13% / 6%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 0 0 7px #050506, 0 0 0 8px var(--line);
}
.tablet img, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; will-change: transform; }
.phone.empty { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; }
/* Only the phone's screen exists: it stands alone. */
.stage.solo { padding-bottom: 0; display: flex; justify-content: center; }
.stage.solo .phone { position: static; width: min(100%, 300px, calc((100svh - var(--nav-h) - 90px) / 2.163)); }

/* ---------- the app's marks: gender colour of a noun phrase, case chip above it ---------- */
.g-der { color: var(--der); } .g-die { color: var(--die); } .g-das { color: var(--das); } .g-pl { color: var(--pl); }
.demo-case { margin: 14px 0 0; padding: 16px 20px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 21px; line-height: 2.1; display: inline-block; }
.demo-case ruby { ruby-position: over; font-weight: 600; }
.demo-case rt { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding-bottom: 2px; }
.c-akk { color: var(--akk); } .c-dat { color: var(--dat); } .c-gen { color: var(--gen); }
.demo-gender { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 12px; font-weight: 650; font-size: 17px;
  background: color-mix(in srgb, currentColor 13%, var(--bg)); border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }

/* ---------- the last card ---------- */
.scene--cta { min-height: 80vh; min-height: 80svh; }
.scene--cta .scene__inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; }
.scene--cta .ant.big { height: 70px; color: var(--text); transform: rotate(38deg); margin-bottom: 20px; }
.scene--cta p { color: var(--dim); margin: 16px auto 30px; max-width: 30em; }

.foot {
  position: relative; z-index: 50; background: var(--bg);
  padding: 30px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px;
}
.foot .wordmark { height: 16px; width: auto; opacity: .8; }
.foot .qn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.foot .qn img { height: 18px; width: auto; }
.foot .qn .qn-word { height: 12px; }

/* ---------- narrow screens: one column; a scene taller than the screen is not pinned (js/site.js) ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .scene--feature, .scene--cta { border-radius: 22px 22px 0 0; }
  .scene__inner, .scene--feature[data-side="left"] .scene__inner { grid-template-columns: 1fr; gap: 28px; padding-top: calc(var(--nav-h) + 18px); }
  .scene--feature[data-side="left"] .scene__copy { order: 1; }
  .scene--feature[data-side="left"] .scene__media { order: 2; }

  /* the phone grows so its screen stays readable */
  .stage { max-width: 560px; }
  .tablet { width: 69%; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 6px #050506, 0 0 0 7px var(--line); }
  .phone { width: 25%; box-shadow: 0 16px 40px rgba(0, 0, 0, .65), 0 0 0 5px #050506, 0 0 0 6px var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .brand .wordmark { display: none; }
  .langs a, .langs span { padding: 5px 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:last-child { grid-column: 1 / -1; }
  .demo-case { font-size: 18px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .hold { display: none; } }
/* a low laptop screen (720 px): tighter spacing, so the scenes still fit and stay pinned */
@media (min-width: 901px) and (max-height: 760px) {
  .scene__inner { padding-top: calc(var(--nav-h) + 10px); padding-bottom: 20px; }
  .scene--hero .lead { margin: 14px 0 8px !important; }
  .scene--hero .note { margin-bottom: 18px !important; }
  .stats { margin-top: 20px; padding-top: 14px; gap: 10px 18px; }
}
