/* Almost Know landing page - Campus theme (tokens in style.css: body[data-theme="campus"]). */
.landing {
  --lp-max: 1180px;
  --lp-gutter: clamp(16px, 4vw, 40px);
  --lp-panel: #15203a;
  --lp-gold-soft: #e9b9491f;
  background:
    linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 100% 32px,
    radial-gradient(900px 520px at 90% -5%, #2a3f6e66, transparent 65%),
    var(--bg);
  overflow-x: hidden;
}

.landing h1,.landing h2,.landing h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lp-eyebrow,.lp-label {
  color: var(--gelb);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lp-hint {
  color: var(--gedimmt);
  font-size: .88rem;
}

.lp-error {
  color: var(--rot);
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid var(--gelb);
  background: var(--gelb);
  color: var(--accent-text);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s,border-color .15s,transform .15s;
}

.lp-btn:hover {
  background: #f3c862;
}

.lp-btn:active {
  transform: translateY(1px);
}

.lp-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.lp-btn-ghost:hover {
  background: var(--soft);
  border-color: var(--gedimmt);
}

.lp-btn-small {
  padding: 8px 14px;
  font-size: .85rem;
}

.lp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lp-panel);
  padding: 24px;
}

:is(.lp-btn,.lp-seg button,.lp-topics button,.lp-answers button,.lp-faq summary,.lp-nav a):focus-visible,
.lp-join input:focus-visible,.landing input[type=range]:focus-visible {
  outline: 2px solid var(--gelb);
  outline-offset: 2px;
}

/* ---------- Navigation ---------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(var(--lp-gutter), calc((100% - var(--lp-max)) / 2));
  background: #0e1626e6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a385380;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.lp-wordmark em {
  color: var(--gelb);
  font-style: normal;
}

.lp-nav nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: .92rem;
}

.lp-nav nav a,.lp-footer nav a {
  color: var(--gedimmt);
  text-decoration: none;
}

.lp-nav nav a:hover,.lp-footer nav a:hover {
  color: var(--text);
}

.lp-nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) 400px;
  gap: clamp(28px,5vw,72px);
  align-items: center;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(48px,8vw,96px) var(--lp-gutter) 40px;
}

.lp-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.8rem,6.4vw,5rem);
  line-height: 1.02;
}

.lp-hero h1 span {
  display: block;
}

.lp-hero h1 em {
  display: block;
  color: var(--gelb);
  font-style: italic;
}

.lp-lead {
  max-width: 560px;
  color: var(--gedimmt);
  font-size: 1.12rem;
  line-height: 1.6;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.lp-center {
  justify-content: center;
}

.lp-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  list-style: none;
  color: var(--gedimmt);
  font-size: .9rem;
}

.lp-ticks li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 12px;
  margin: 0 12px 0 2px;
  border: solid var(--gruen);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-2px);
}

.lp-access {
  display: grid;
  gap: 14px;
}

.lp-join h2 {
  margin: 8px 0 20px;
  font-size: 1.9rem;
}

.lp-join label {
  display: block;
  margin-bottom: 8px;
  font-size: .88rem;
  font-weight: 650;
}

.lp-code-row {
  display: flex;
  gap: 8px;
}

.lp-join input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 700 1.35rem/1 ui-monospace,"Cascadia Mono",Consolas,monospace;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.lp-join input::placeholder {
  color: #a6b0c344;
}

.lp-join .lp-hint {
  margin-top: 12px;
}

.lp-teacher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.lp-teacher .lp-hint {
  margin-top: 4px;
}

/* ---------- Numbers ---------- */
.lp-numbers {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}

.lp-numbers dl {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lp-numbers dl div {
  padding: 22px 0 22px 22px;
  border-left: 1px solid var(--line);
}

.lp-numbers dl div:first-child {
  padding-left: 0;
  border-left: 0;
}

.lp-numbers dt {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.lp-numbers dd {
  margin-top: 6px;
  color: var(--gedimmt);
  font-size: .9rem;
}

/* ---------- Sections ---------- */
.lp-section {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(72px,10vw,120px) var(--lp-gutter) 0;
  scroll-margin-top: 50px;
}

.lp-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.lp-head-left {
  margin: 0 0 32px;
  text-align: left;
}

.lp-head h2,.lp-cta h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem,4vw,3rem);
}

.lp-head p:not(.lp-eyebrow) {
  color: var(--gedimmt);
  font-size: 1.05rem;
}

.lp-num {
  color: var(--gelb);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

/* ---------- Sample round ---------- */
.lp-quiz {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--lp-panel);
  box-shadow: 0 30px 80px #0006;
  overflow: hidden;
}

.lp-quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #0f1830;
}

.lp-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lp-topics .lp-label {
  margin-right: 6px;
}

.lp-topics button,.lp-seg button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gedimmt);
  font-size: .85rem;
  font-weight: 650;
}

.lp-topics button:hover,.lp-seg button:not(:disabled):hover {
  color: var(--text);
  border-color: var(--gedimmt);
}

.lp-topics button[aria-pressed="true"],.lp-seg button[aria-pressed="true"] {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--accent-text);
}

.lp-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lp-seg button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.lp-wallet {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--gedimmt);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lp-wallet strong {
  display: inline-block;
  color: var(--gelb);
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0;
}

.lp-wallet strong::after {
  content: " Taler";
  font-size: 1rem;
}

.lp-bump {
  animation: lp-bump .45s ease;
}

@keyframes lp-bump {
  40% { transform: scale(1.18); }
}

.lp-quiz-body {
  min-height: 420px;
  padding: clamp(20px,4vw,36px);
}

.lp-ready {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  min-height: 340px;
  text-align: center;
  color: var(--gedimmt);
}

.lp-q-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gedimmt);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-q-timer {
  color: var(--text);
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.lp-q-bar {
  height: 4px;
  margin: 12px 0 22px;
  border-radius: 4px;
  background: var(--soft);
  overflow: hidden;
}

.lp-q-bar span {
  display: block;
  height: 100%;
  background: var(--gelb);
  transform-origin: left;
}

.lp-question h3 {
  margin-bottom: 20px;
  font-size: clamp(1.4rem,3vw,1.9rem);
}

.lp-stakes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  color: var(--gedimmt);
  font-size: .88rem;
}

.lp-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lp-answers button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--karte);
  color: var(--text);
  font-weight: 650;
  text-align: left;
  transition: border-color .15s,background .15s;
}

.lp-answers button b {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--gelb);
  font-family: var(--serif);
}

.lp-answers button:not(:disabled):hover {
  border-color: var(--gelb);
  background: #1d2a46;
}

.lp-answers button:disabled {
  cursor: default;
  opacity: .5;
}

.lp-answers button.is-right {
  opacity: 1;
  border-color: var(--gruen);
  background: #7fcfaa1f;
}

.lp-answers button.is-wrong {
  opacity: 1;
  border-color: var(--rot);
  background: #f08c841f;
}

.lp-question > .lp-hint {
  margin-top: 16px;
}

.lp-reveal {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rot);
  background: #0f1830;
  animation: lp-in .3s ease;
}

.lp-reveal.is-right {
  border-left-color: var(--gruen);
}

.lp-verdict {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.lp-reveal.is-right .lp-verdict { color: var(--gruen); }
.lp-reveal.is-wrong .lp-verdict { color: var(--rot); }

.lp-reveal dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 10px 0 4px;
  font-size: .9rem;
}

.lp-reveal dl div {
  display: flex;
  gap: 8px;
}

.lp-reveal dt {
  color: var(--gedimmt);
}

.lp-reveal dd {
  font-weight: 750;
}

.lp-why {
  margin: 12px 0 18px;
  line-height: 1.6;
}

.lp-why strong {
  color: var(--gelb);
}

@keyframes lp-in {
  from { opacity: 0; transform: translateY(6px); }
}

.lp-summary {
  display: grid;
  gap: 14px;
  justify-items: start;
  animation: lp-in .3s ease;
}

.lp-score {
  font-family: var(--serif);
  font-size: clamp(1.6rem,3.5vw,2.2rem);
  font-weight: 600;
}

.lp-dots {
  display: flex;
  gap: 8px;
  list-style: none;
}

.lp-dots li {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
}

.lp-dots .is-right { background: #7fcfaa26; color: var(--gruen); }
.lp-dots .is-wrong { background: #f08c8426; color: var(--rot); }

.lp-insight {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--lp-gold-soft);
  border: 1px solid #e9b94955;
  max-width: 640px;
}

.lp-summary .lp-hero-actions {
  margin-top: 6px;
}

/* ---------- Science ---------- */
.lp-science {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}

.lp-science article,.lp-three article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--lp-panel);
}

.lp-science h3,.lp-three h3 {
  font-size: 1.45rem;
}

.lp-science p,.lp-three p {
  color: var(--gedimmt);
}

.lp-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--lp-gold-soft);
  color: var(--gelb);
  font-size: .78rem;
  font-weight: 700;
}

/* ---------- Calculator ---------- */
.lp-split {
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: clamp(28px,5vw,64px);
  align-items: center;
}

.lp-controls {
  display: grid;
  gap: 22px;
}

.lp-control {
  display: grid;
  gap: 10px;
  font-size: .92rem;
  font-weight: 650;
}

.landing input[type=range] {
  width: 100%;
  accent-color: var(--gelb);
}

.lp-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  cursor: pointer;
}

.lp-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--gelb);
}

.lp-receipt dl {
  display: grid;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.lp-receipt dl div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.lp-receipt dt {
  color: var(--gedimmt);
}

.lp-receipt dd {
  font-weight: 750;
}

.lp-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 14px;
  font-weight: 700;
}

.lp-total strong {
  color: var(--gelb);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lp-total strong.is-negative {
  color: var(--rot);
}

/* ---------- Table simulator ---------- */
.lp-sim-controls {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  font-weight: 650;
}

.lp-sim-controls strong {
  color: var(--gelb);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.lp-sim-tables {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(170px,1fr));
  gap: 10px;
  list-style: none;
}

.lp-sim-tables li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--karte);
  animation: lp-in .25s ease;
}

.lp-sim-tables li.is-top {
  border-color: var(--gelb);
}

.lp-sim-name {
  overflow: hidden;
  font-size: .88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-sim-factor {
  color: var(--gelb);
  font-size: .85rem;
  font-weight: 750;
}

.lp-seats {
  display: flex;
  grid-column: 1 / -1;
  gap: 6px;
}

.lp-seats i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blau);
  opacity: .85;
}

/* ---------- Three-up, FAQ, CTA, footer ---------- */
.lp-three {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.lp-faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.lp-faq details {
  border-bottom: 1px solid var(--line);
}

.lp-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "+";
  color: var(--gelb);
  font-size: 1.4rem;
  line-height: 1;
}

.lp-faq details[open] summary::after {
  content: "-";
}

.lp-faq details p {
  padding: 0 2px 20px;
  color: var(--gedimmt);
}

.lp-cta {
  max-width: var(--lp-max);
  margin: clamp(72px,10vw,120px) auto 0;
  padding: clamp(40px,6vw,72px) var(--lp-gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}

.lp-cta p {
  color: var(--gedimmt);
}

.lp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 32px var(--lp-gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--gedimmt);
  font-size: .85rem;
}

.lp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Inline icons inherit the text colour of their button or link. */
.lp-ico {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.15em;
}

.lp-dots .lp-ico {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

/* Comfortable tap targets for the small footer links. */
.lp-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Tablets keep the section links as a scrollable second row under the brand. */
  .lp-nav { flex-wrap: wrap; row-gap: 8px; }
  .lp-nav nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .lp-nav nav a { white-space: nowrap; padding: 6px 0; }
  .lp-nav-tools { margin-left: auto; }
  .lp-hero,.lp-split { grid-template-columns: 1fr; }
  .lp-three { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lp-nav nav { display: none; }
  .lp-nav .lp-nav-login { display: none; }
  .lp-numbers dl { grid-template-columns: 1fr 1fr; }
  .lp-numbers dl div { padding: 18px 0 18px 18px; }
  .lp-numbers dl div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .lp-numbers dl div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-science,.lp-answers { grid-template-columns: 1fr; }
  .lp-sim-controls { grid-template-columns: 1fr; gap: 10px; }
  .lp-teacher { flex-direction: column; align-items: stretch; }
  .lp-quiz-top { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-bump,.lp-reveal,.lp-summary,.lp-sim-tables li { animation: none; }
}

.ak-logo-hero {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
}

.lp-brand .ak-logo {
  color: var(--text);
}

/* ---------- Neural background (neuro.js) ---------- */
.lp-neuro {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .8;
}

.landing main,.landing .lp-footer {
  position: relative;
  z-index: 1;
  /* The text glows below reach past the screen edge; clip them so phones do not zoom out. */
  overflow-x: clip;
}

/* Keep long text readable over the network. */
.lp-hero-copy {
  position: relative;
}

.lp-hero-copy::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  z-index: -1;
  background: radial-gradient(closest-side, #0e1626d9, #0e162600);
  pointer-events: none;
}

.lp-head,.lp-faq,.lp-cta {
  position: relative;
}

.lp-head::before,.lp-cta::before {
  content: "";
  position: absolute;
  inset: -24px -40px;
  z-index: -1;
  background: radial-gradient(closest-side, #0e1626cc, #0e162600);
  pointer-events: none;
}

.lp-faq {
  background: #0e1626b3;
}

.lp-neuro-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 560px;
  margin-top: 26px;
  color: var(--gedimmt);
  font-size: .82rem;
  line-height: 1.55;
}

.lp-pulse {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gelb);
  box-shadow: 0 0 0 0 #e9b94980;
  animation: lp-pulse 2s ease-out infinite;
}

@keyframes lp-pulse {
  70% { box-shadow: 0 0 0 9px #e9b94900; }
  100% { box-shadow: 0 0 0 0 #e9b94900; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pulse { animation: none; }
}

.lp-neuro-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0e1626cc;
}

@media (max-width: 640px) {
  .lp-neuro { opacity: .55; }
}
