/* Telkino website — "Graphit leuchtend": graphite surfaces, one mint accent,
   mono for technical values. Tokens mirror the app's design system.
   No third-party requests; chapter playback is progressively enhanced. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg-base: #0d0f11;
  --bg-raised: #121417;
  --bg-lift: #1d2024;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.07);
  --ink: #ffffff;
  --ink-2: #c9ccd1;
  --ink-3: #9ea1a7;
  --ink-4: #7c8085;
  --mint: #2bc79a;
  --mint-bright: #3be8b0;
  --mint-glow: rgba(59, 232, 176, 0.55);
  --on-mint: #08110e;
  --danger: #ff6b5e;
  --radius-card: 22px;
  --radius-sm: 16px;
  --max: 1120px;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Anchor targets stop below the sticky header (about 56 px) with room to spare. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background: graphite gradient + faint grid + drifting mint glow. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(140% 90% at 50% -10%, var(--bg-lift) 0%, var(--bg-raised) 55%, var(--bg-base) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 0%, transparent 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
p { max-width: 62ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-4); }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mint-bright);
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 12px var(--mint-glow); }
.dot { color: var(--mint-bright); text-shadow: 0 0 18px var(--mint-glow); }
.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #d9fff3 45%, var(--mint-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Sticky glass header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; margin: 14px 0 0; border-radius: 999px;
  background: rgba(18, 20, 23, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.wordmark { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.header-nav { display: flex; gap: 22px; font-size: 0.9rem; font-weight: 700; }
.header-nav a { color: var(--ink-3); }
.header-nav a:hover { color: var(--ink); text-decoration: none; }
.lang { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-4); }
.lang a { color: var(--ink-3); }
.lang a[aria-current="true"] { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--on-mint); box-shadow: 0 8px 30px rgba(43, 199, 154, 0.25); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 40px rgba(43, 199, 154, 0.38); }
.btn-ghost { color: var(--ink); border-color: var(--border-strong); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink-4); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 88px 0 96px; position: relative;
}
.hero-copy .lede { font-size: 1.2rem; color: var(--ink-3); margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; }
.hero-shot { position: relative; justify-self: center; perspective: 1400px; }
.hero-shot::before {
  content: ""; position: absolute; inset: 10% -10% -10% -10%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(43, 199, 154, 0.28), transparent 70%);
  filter: blur(30px);
  animation: breathe 6s ease-in-out infinite;
}
.hero-shot .device { width: min(340px, 78vw); transform: rotateY(-10deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-shot:hover .device { transform: rotateY(0deg) rotateX(0deg); }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* Metric strip under the hero */
.strip {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  padding: 18px 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3);
}
.strip span b { color: var(--ink); font-weight: 700; }
.strip .sep { color: var(--ink-4); }

/* Sections + reveal */
section { padding: 72px 0; }
section header { margin-bottom: 32px; }
section header p { color: var(--ink-3); font-size: 1.05rem; }
.reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Cards */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-strong); }
.card p { color: var(--ink-3); font-size: 0.95rem; }
.card .glyph {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--mint-bright); font-family: var(--mono); font-weight: 700; font-size: 1rem;
  background: rgba(59, 232, 176, 0.12); margin-bottom: 14px;
}
.card-mint { border-color: rgba(59, 232, 176, 0.4); box-shadow: inset 0 0 40px rgba(43, 199, 154, 0.08), 0 20px 60px rgba(43, 199, 154, 0.08); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--mint-bright); background: rgba(59, 232, 176, 0.14); padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }

/* Device frames: CSS only, the screenshot fills the screen area. */
.device {
  position: relative; display: block; margin: 0 auto;
  background: #0b0d10; border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.device img { width: 100%; height: auto; }
.device-iphone {
  --phone-bezel: 6px;
  --phone-radius: 40px;
  padding: var(--phone-bezel); border-radius: var(--phone-radius);
  background: #111316; border-color: rgba(196, 203, 211, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.device-iphone img {
  display: block;
  border-radius: calc(var(--phone-radius) - var(--phone-bezel) - 1px);
}
.device-iphone::after {
  content: ""; position: absolute; top: calc(var(--phone-bezel) + 1.8%);
  left: 50%; transform: translateX(-50%); pointer-events: none;
  width: 25%; height: 2.1%; border-radius: 999px; background: #050607;
}
.device-ipad { padding: 22px; border-radius: 34px; }
.device-ipad img { border-radius: 16px; }
.device-mac { padding: 0; border-radius: 14px; overflow: hidden; }
/* Photographic mockup: the picture brings its own device, so no CSS frame. Capped so it fits a laptop window. */
.device-photo { padding: 0; border: none; background: none; border-radius: 28px; overflow: hidden; width: min(900px, 100%); }
.device-photo img { display: block; border-radius: 28px; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
/* The photo already has depth; a subtle zoom replaces the tilt used for flat screenshots. */
.wide-shot .device-photo { transform: none; }
.wide-shot figure:hover .device-photo { transform: none; }
.wide-shot figure:hover .device-photo img { transform: scale(1.03); }
.device-mac img { border-radius: 14px; }

/* Steps */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .device { grid-column: 1 / -1; margin-top: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.step .device-iphone {
  --phone-bezel: 4px;
  --phone-radius: 26px;
  width: min(220px, 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--mint-bright); font-weight: 800; font-family: var(--mono);
  background: rgba(59, 232, 176, 0.14); border: 1px solid rgba(59, 232, 176, 0.35);
}

/* Pricing */
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.price-row strong { color: var(--ink); font-size: 1.05rem; }
.price { color: var(--ink); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { color: var(--ink-2); padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-bright); font-weight: 800; }

/* iPad shot */
.wide-shot { padding-top: 0; }
.wide-shot figure { position: relative; perspective: 2000px; }
.wide-shot .device { transform: rotateX(6deg); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.wide-shot figure:hover .device { transform: rotateX(0); }
.wide-shot figcaption { margin-top: 14px; text-align: center; }

/* FAQ */
details { border-top: 1px solid var(--hairline); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; color: var(--ink); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mint-bright); font-family: var(--mono); font-size: 1.2rem; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-3); margin-top: 12px; }

/* CTA band */
.cta {
  text-align: center; padding: 64px 24px; border-radius: 32px;
  background: linear-gradient(160deg, rgba(43, 199, 154, 0.16), rgba(255,255,255,0.03) 60%);
  border: 1px solid rgba(59, 232, 176, 0.3);
}
.cta h2 { margin-bottom: 12px; }
.cta p { margin: 0 auto 26px; color: var(--ink-3); }

/* iPhone Duo page and homepage teaser */
.duo-hero { padding-bottom: 48px; }
.duo-film { position: relative; justify-self: center; width: min(520px, 100%); }
.duo-film::before {
  content: ""; position: absolute; inset: 8%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(43, 199, 154, 0.22), transparent 70%);
  filter: blur(40px);
}
.duo-film video {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 28px; border: 1px solid var(--border); background: var(--bg-base);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.duo-note { margin-top: 18px; color: var(--ink-3); }
.duo-teaser { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding: 28px; }
.duo-teaser-media img { border-radius: 18px; border: 1px solid var(--border); }
.duo-teaser-copy > p:not(.eyebrow) { margin-bottom: 22px; }
/* `.card p` would otherwise turn the eyebrow grey and body-sized. */
.duo-teaser-copy .eyebrow { color: var(--mint-bright); font-size: 0.72rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline); padding: 32px 0 56px; margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--ink-4); font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-3); }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { margin-top: 44px; font-size: 1.5rem; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal .note { font-size: 0.9rem; color: var(--ink-3); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Comparison table: scrolls sideways inside its frame on narrow screens,
   with the row labels pinned to the left edge. */
.compare-scroll {
  margin-top: 18px; overflow-x: auto; border: 1px solid var(--border);
  border-radius: 16px; background: var(--bg-raised);
}
.compare-scroll:focus-visible { outline: 2px solid var(--mint-bright); outline-offset: 2px; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.94rem; }
.compare th, .compare td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--hairline); color: var(--ink-2);
}
.compare thead th { color: var(--ink); font-weight: 700; background: var(--bg-lift); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 24%; }
.compare th[scope="row"], .compare thead th:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--bg-raised);
}
.compare thead th:first-child { background: var(--bg-lift); }
.compare .us { color: var(--ink); background: rgba(43, 199, 154, 0.07); }
.compare thead .us { color: var(--mint-bright); }
.compare tbody tr:last-child > * { border-bottom: 0; }
/* On phones each feature becomes a card with one labelled line per app. */
@media (max-width: 640px) {
  .compare-scroll { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th[scope="row"] { position: static; width: auto; padding: 0 0 6px; border: 0; background: none; }
  .compare td { position: relative; padding: 4px 0 4px 8.2em; border: 0; background: none; }
  .compare td::before { content: attr(data-label); position: absolute; left: 0; width: 7.6em; color: var(--ink-3); }
  .compare td.us::before { color: var(--mint-bright); }
}

.todo { background: rgba(255, 166, 87, 0.12); border: 1px solid rgba(255, 166, 87, 0.4); color: #ffa657; padding: 2px 8px; border-radius: 8px; font-family: var(--mono); font-size: 0.78rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 64px; gap: 40px; }
  /* Explain the app and show the download action before the tall phone. */
  .hero-shot { order: 0; }
  .hero-shot .device { transform: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
  .duo-hero .duo-film { order: -1; }
  .duo-teaser { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .hero-shot::before { animation: none; }
  .hero-shot .device, .wide-shot .device, .device-photo img, .card, .btn { transition: none; }
}
