/* TalkCraft product pages (index.html, anleitung/): shared look. */
:root {
  /* The paper tones of the guest page (remote/guest), with the app's green. */
  --bg: #f4f1ea; --surface: #ffffff; --text: #0b0b0c; --dim: #6b6b6b; --line: #e3ddd0;
  --accent: #2f9e63; --accent-ink: #ffffff; --accent-press: #237a4b; --accent-soft: #e6efe4; --code: #efe9dc;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171512; --surface: #201d19; --text: #ece7de; --dim: #a39d92; --line: #35302a;
    --accent: #3cb875; --accent-ink: #0d1a12; --accent-press: #2c8f59; --accent-soft: #1f2e22; --code: #2a2620; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.lang a { color: var(--dim); text-decoration: none; margin-left: 12px; font-size: 15px; }
.lang a[aria-current] { color: var(--text); font-weight: 600; }
.lang a.nav-link { color: var(--accent); font-weight: 600; margin-right: 8px; }
.hero { text-align: center; padding: 32px 0 24px; }
.hero img.icon { width: 128px; height: 128px; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 12px 0 8px; letter-spacing: -0.02em; }
.tagline { font-size: clamp(18px, 2.6vw, 22px); color: var(--dim); max-width: 680px; margin: 0 auto 24px; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 6px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.small { font-size: 14px; color: var(--dim); }
.shot { margin: 28px auto 0; max-width: 960px; }
.shot img, .flow img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 18px; letter-spacing: -0.01em; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow p { margin: 10px 0 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); }
.card ul { margin: 6px 0 0; padding-left: 18px; color: var(--dim); font-size: 16px; }
.card li { margin-bottom: 4px; }
.cta { text-align: center; margin: 28px 0 0; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.platforms ul { margin: 8px 0 0; padding-left: 18px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--code); border-radius: 6px; }
code { padding: 1px 5px; }
pre { padding: 12px 14px; overflow-x: auto; white-space: pre; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 15px; }
footer h3 { color: var(--text); font-size: 16px; margin: 18px 0 6px; }
/* Credits on the left, Impressum/Privacy on the right of the same line; below it when narrow. */
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-row > p { margin: 0; flex: 1 1 320px; }
.footer-row > p.ver { flex: 0 0 auto; font-size: 14px; font-variant-numeric: tabular-nums; opacity: .8; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; }
/* Like the download button (.btn.primary), only lower; the open one is pressed in. */
.legal-nav button { font: inherit; font-size: 14px; font-weight: 600; min-width: 150px; padding: 6px 22px;
  border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.legal-nav button:hover { filter: brightness(1.08); }
.legal-nav button[aria-expanded="true"] { background: var(--accent-press); border-color: var(--accent-press); box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.25); }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-top: 12px; color: var(--text); }
details summary { cursor: pointer; color: var(--text); font-weight: 600; }
.install { max-width: 620px; margin: 18px auto 0; text-align: left; }
.install > p.small { text-align: center; margin: 0 0 6px; }
.install [data-shell] p { margin: 8px 0 4px; text-align: center; }
.cmd { position: relative; margin: 6px 0 14px; }
.cmd pre { margin: 0; padding-right: 100px; white-space: pre-wrap; word-break: break-all; }
.copy { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); font: 600 13px/1 inherit;
  font-family: inherit; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; }
.copy:hover { border-color: var(--accent); }
.copy.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cmd + p, p + .cmd { margin-top: 8px; }
.howto { display: grid; gap: 12px; margin-top: 8px; }
.howto summary { font-size: 18px; }
.howto.howto p { margin: 10px 0; color: var(--text); }
.howto.howto p.small { color: var(--dim); }
.howto ol { padding-left: 22px; }
.howto li { margin-bottom: 6px; }
.howto pre { white-space: pre-wrap; word-break: break-all; }
[data-lang] { display: none; }
html[lang="de"] [data-lang="de"], html[lang="en"] [data-lang="en"] { display: revert; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } section { padding: 28px 0; } }
/* The tutorial (anleitung/). */
.tut-hero { text-align: center; padding: 28px 0 8px; }
.tut-hero .tagline { margin-bottom: 10px; }
.tut-hero .small { max-width: 720px; margin: 0 auto; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; flex: none; }
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.toc a.card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-decoration: none; color: var(--text); }
.toc a.card:hover { border-color: var(--accent); }
.toc a.card .num { grid-row: span 2; }
.chapter { border-top: 1px solid var(--line); }
.chapter > h2 { display: flex; align-items: center; gap: 12px; }
.step { margin: 8px 0 44px; }
.step h3 { font-size: 22px; margin: 0 0 6px; }
.step .lead { color: var(--dim); margin: 0 0 14px; max-width: 760px; }
figure { margin: 0; }
figure.anim { position: relative; cursor: pointer; }
figure.anim img, figure.phone img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #1e1e1e; }
/* Not display: block on the phone pictures: that would show the other language's picture too. */
figure.anim img { display: block; }
figure.anim.paused::after { content: "▶"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center; padding-left: 4px; box-sizing: border-box; }
.pair { display: grid; grid-template-columns: 1fr 230px; gap: 16px; align-items: start; }
figure.phone img { border-radius: 18px; }
figure.phone figcaption { text-align: center; font-size: 14px; color: var(--dim); margin-top: 6px; }
ol.steps { margin: 18px 0 0; padding-left: 22px; max-width: 820px; }
ol.steps li { margin-bottom: 8px; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 14px 0 0; max-width: 820px; }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; padding: 1px 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); white-space: nowrap; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } figure.phone { max-width: 260px; margin: 0 auto; } }
/* Back to top: like the secondary buttons (.btn, .copy), the arrow in the accent green. */
.totop { position: fixed; z-index: 20; right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--accent); cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / 0.14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s .2s, border-color .15s; }
.totop[hidden] { display: none; }
.totop.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, border-color .15s; }
.totop:hover { border-color: var(--accent); }
.totop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .totop, .totop.show { transition: none; } }
@media (forced-colors: active) { .totop { background: ButtonFace; color: ButtonText; border-color: ButtonText; } }
@media print { .totop { display: none !important; } }
