:root {
  color-scheme: light;
  --bg-primary: #f7f7f4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f1f0ec;
  --text-primary: #15131a;
  --text-secondary: #45414e;
  --text-muted: #6b6770;
  --border: #e7e5e0;
  --border-strong: #dcd9d2;
  --accent: #35215c;
  --accent-light: #efeaf6;
  --accent-hover: #2a1a4a;
  --brand: #7b2ff7;
  --on-accent: #ffffff;
  --stage: #1a1a2e;
  --stage-line: #2b2837;
  --stage-text: #f3f1f8;
  --shadow: 0 10px 15px rgb(21 19 26 / .08);
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-frame: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 1rem/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-primary: #14121b;
    --bg-secondary: #1a1722;
    --bg-card: #201c2b;
    --bg-muted: #17141f;
    --text-primary: #f3f1f8;
    --text-secondary: #b6b1c4;
    --text-muted: #8a8597;
    --border: #2b2837;
    --border-strong: #332e42;
    --accent: #a892e0;
    --accent-light: #241f33;
    --accent-hover: #c2b1ec;
    --brand: #a892e0;
    --on-accent: #14121b;
    --stage: #0f0d15;
    --stage-line: #332e42;
    --shadow: 0 10px 15px rgb(0 0 0 / .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: 1rem; z-index: 3; padding: .6rem; background: var(--bg-secondary); transform: translateY(-180%); }
.skip:focus { transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg-secondary) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: .5px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; flex-wrap: wrap; min-height: 56px; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .94rem; }
.header-inner nav a { color: var(--text-secondary); text-decoration: none; padding-block: .3rem; }
.header-inner nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: .5rem; }

/* Type */
h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.03em; max-width: 16ch; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.024em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
p { max-width: 66ch; }
.eyebrow { margin: 0 0 .75rem; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { display: inline-block; padding: .3rem .65rem; border-radius: 999px; background: var(--accent-light); }

/* Hero */
.hero { padding-block: clamp(2.4rem, 6.5vw, 5rem) clamp(1.2rem, 3vw, 2.5rem); }
.intro { font-size: clamp(1.08rem, 1.9vw, 1.26rem); color: var(--text-secondary); max-width: 58ch; margin: 1.2rem 0 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25em .45em; min-height: 44px; padding: .55rem 1.05rem; border: .5px solid transparent; border-radius: var(--radius-control); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.button:hover { background: var(--accent-hover); }
.button.secondary { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-strong); }
.button.secondary:hover { background: var(--bg-muted); border-color: var(--text-muted); }
.button.compact { height: 36px; min-height: 36px; padding: 0 .8rem; font-size: .92rem; white-space: nowrap; }
.button span { font-weight: 400; opacity: .85; font-size: .9em; }
.trust { display: flex; flex-wrap: wrap; gap: .45rem 1rem; list-style: none; padding: 0; margin: 1.1rem 0 0; color: var(--text-muted); font-size: .88rem; }
.trust li::before { content: "✓"; margin-right: .35em; color: var(--accent); font-weight: 700; }
.overview { margin-top: clamp(1.8rem, 4vw, 3rem); }

/* Screenshots */
.shot { display: grid; place-items: center; gap: .6rem; padding: clamp(.5rem, 1.6vw, 1rem); background: var(--stage); border: .5px solid var(--stage-line); border-radius: var(--radius-frame); color: var(--stage-text); text-decoration: none; box-shadow: var(--shadow); }
.shot img { width: 100%; max-height: 34rem; object-fit: contain; border-radius: 6px; }
.overview .shot img { max-height: 40rem; }
.shot:hover .zoom { text-decoration: underline; }
.zoom { justify-self: end; font-size: .82rem; font-weight: 600; opacity: .85; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.highlights div { background: var(--bg-card); border: .5px solid var(--border); border-radius: var(--radius-card); padding: 1.1rem 1.15rem; }
.highlights dt { font-weight: 700; font-size: 1.02rem; }
.highlights dd { color: var(--text-secondary); margin-top: .3rem; font-size: .95rem; }

/* Sections */
.origin, .features, .ai, .limits, .faq { margin-block: clamp(3.25rem, 8vw, 6rem); }
.origin { max-width: 46rem; }
.origin h2 { margin-bottom: 1rem; }
.origin p:not(.eyebrow) { color: var(--text-secondary); font-size: 1.06rem; }
.features > h2, .faq > h2 { margin-bottom: 1.4rem; }
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: center; gap: clamp(1.2rem, 5vw, 4rem); padding-block: clamp(1.6rem, 4vw, 3rem); border-top: .5px solid var(--border-strong); }
.feature.reverse { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
.feature.reverse > .shot { grid-column: 1; grid-row: 1; }
.feature ul { margin: .9rem 0 0; padding-left: 1.2rem; color: var(--text-secondary); }
.feature li + li { margin-top: .5rem; }

/* AI */
.ai { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.ai-intro h2 { margin-bottom: 1rem; }
.ai-intro p:not(.eyebrow) { color: var(--text-secondary); }
.ai-intro .shot { margin-top: 1.5rem; }
.prompts { background: var(--bg-card); border: .5px solid var(--border); border-radius: var(--radius-card); padding: clamp(1.1rem, 3vw, 1.6rem); }
.prompts h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.prompts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.prompts li { padding: .75rem .9rem; border-radius: var(--radius-control); background: var(--accent-light); color: var(--text-primary); font-size: .97rem; }
.note { margin: 1rem 0 0; color: var(--text-muted); font-size: .88rem; }

/* Limits */
.limits h2 { margin-bottom: 1.4rem; }
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.limits li { background: var(--bg-card); border: .5px solid var(--border); border-radius: var(--radius-card); padding: 1.1rem 1.2rem; }
.limits h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.limits p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

/* Download, credit */
.download, .credit { padding: clamp(1.25rem, 4.5vw, 3rem); background: var(--bg-card); border: .5px solid var(--border); border-radius: var(--radius-frame); }
.credit { margin-top: clamp(3rem, 7vw, 5rem); background: var(--accent-light); border-color: transparent; }
.credit p { color: var(--text-secondary); margin-block: .9rem 1.3rem; }
.steps { padding-left: 1.3rem; margin-block: 1.25rem 1.6rem; }
.steps li + li { margin-top: .35rem; }
.release-meta { color: var(--text-muted); font-size: .9rem; }
summary { cursor: pointer; font-weight: 600; padding-block: .85rem; }
summary:hover { color: var(--accent); }
.checksum, .faq details { border-top: .5px solid var(--border-strong); }
.checksum code { display: block; overflow-wrap: anywhere; margin-bottom: .75rem; font-size: .88rem; }
.copy-message { display: block; margin-block: .35rem; }
.agent-prompt { margin: 0 0 .8rem; padding: 1rem; border: .5px solid var(--border); border-radius: var(--radius-control); background: var(--bg-muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; }
.faq details:last-child { border-bottom: .5px solid var(--border-strong); }
.faq details p { margin: 0 0 1rem; color: var(--text-secondary); }

/* Footer */
.footer { margin-top: clamp(3rem, 7vw, 5rem); background: var(--bg-muted); border-top: .5px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.75rem; }
.footer p { margin: 0 0 .35rem; }
.footer nav { display: flex; gap: 1.1rem; }

/* Lightbox */
dialog { inset: 0; margin: auto; width: min(1240px, calc(100% - 1.5rem)); max-width: none; max-height: 90dvh; padding: clamp(.55rem, 2vw, 1.15rem); background: var(--bg-secondary); color: var(--text-primary); border: .5px solid var(--border); border-radius: var(--radius-card); }
dialog::backdrop { background: rgb(20 18 27 / .92); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.lightbox-bar h2 { font-size: clamp(1.05rem, 3vw, 1.45rem); }
.lightbox-bar form { margin: 0; }
.lightbox-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-control); color: var(--text-primary); background: transparent; font: 1.75rem/1 system-ui, sans-serif; cursor: pointer; }
.lightbox-close:hover { background: var(--bg-muted); }
dialog img { width: 100%; max-height: 75dvh; object-fit: contain; background: var(--stage); border-radius: 6px; }

@media (max-width: 900px) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 660px) {
  .header-inner nav { order: 1; flex-basis: 100%; }
  .feature, .feature.reverse, .limits ul { grid-template-columns: minmax(0, 1fr); }
  .feature.reverse > .shot { grid-area: auto; }
  .site-header { position: static; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 2rem); }
  .highlights { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

[id] { scroll-margin-top: 72px; }

/* Tarnkappe workflow and placeholder examples */
.flow { max-width: none; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  padding: 0;
}
.flow-steps li {
  background: var(--bg-card);
  border: .5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.15rem;
}
.flow-steps h3 { font-size: 1.05rem; }
.flow .step-where { margin-block: .35rem .8rem; font-size: .88rem; }
.flow .sample { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.flow .note { color: var(--text-muted); font-size: .88rem; }
.sample mark, .placeholder-panel code {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-control);
  padding: .1em .28em;
}
.placeholder-panel { align-content: center; padding: clamp(1.15rem, 4vw, 2.5rem); }
.placeholder-panel h3 { font-size: 1.05rem; }
.placeholder-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
  width: 100%;
  color: inherit;
}
.placeholder-panel li {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .45rem;
  font-size: .9rem;
}
.placeholder-panel li + li { margin: 0; }
.placeholder-panel code { overflow-wrap: anywhere; }
.faq-group { font-size: 1.05rem; margin-block: 1.65rem .5rem; }

@media (max-width: 660px) {
  .flow-steps { grid-template-columns: minmax(0, 1fr); }
}
