/*
  offshoot.cloud. One stylesheet, no build step.
  Colors, radii and type come from the app's design tokens (design/tokens.css): warm monochrome,
  one muted indigo accent, 1px hairlines. Color only communicates state.
*/

:root {
  color-scheme: light dark;

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --bg-primary: #FAF9F7;
  --bg-secondary: #F3F1ED;
  --bg-tertiary: #ECE9E4;
  --bg-hover: rgba(60, 45, 30, 0.04);
  --bg-material: rgba(250, 249, 247, 0.82);
  --text-primary: #1F1D1A;
  --text-secondary: #5F5A53;
  --text-tertiary: #6F6962;
  --border-subtle: rgba(60, 45, 30, 0.10);
  --border-strong: rgba(60, 45, 30, 0.17);
  --border-window: rgba(0, 0, 0, 0.16);
  --accent: #4F5BD5;
  --accent-fill: #4F5BD5;
  --accent-fill-hover: #4450C8;
  --accent-subtle: rgba(79, 91, 213, 0.10);
  --status-waiting: #8A5E1A;
  --status-done: #3A7F55;
  --status-error: #BE4A3E;
  --status-idle: #B4AEA6;
  --window-shadow: 0 24px 64px rgba(40, 30, 20, 0.14), 0 4px 16px rgba(40, 30, 20, 0.06);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --page-max: 1200px;
  --gutter: 24px;
  --header-height: 56px;
  --section-space: 112px;
  --motion: 200ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1A1918;
    --bg-secondary: #151413;
    --bg-tertiary: #232220;
    --bg-hover: rgba(255, 245, 230, 0.035);
    --bg-material: rgba(26, 25, 24, 0.8);
    --text-primary: #EDEAE5;
    --text-secondary: #A9A49D;
    --text-tertiary: #8A857E;
    --border-subtle: rgba(255, 245, 230, 0.08);
    --border-strong: rgba(255, 245, 230, 0.14);
    --border-window: rgba(255, 245, 230, 0.14);
    --accent: #8E98F5;
    --accent-fill: #5A65D8;
    --accent-fill-hover: #4E59C9;
    --accent-subtle: rgba(124, 135, 242, 0.14);
    --status-waiting: #CFA05A;
    --status-done: #74AD86;
    --status-error: #DC7F72;
    --status-idle: #6A655F;
    --window-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

code, kbd { font-family: var(--font-mono); }

code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--accent-fill);
  color: #fff;
  font-size: 14px;
}
.skip:focus { top: 12px; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-material);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font: 600 18px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav a:not(.btn) { color: var(--text-secondary); }
.nav a:not(.btn):hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 500 15px/1 var(--font-ui);
  white-space: nowrap;
  transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: var(--accent-fill-hover); }

.btn-secondary { border-color: var(--border-strong); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-hover); }

.btn-soon {
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  cursor: default;
}

.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; border-radius: 7px; }

.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 0;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.dot-waiting { background: var(--status-waiting); }
.dot-error { background: var(--status-error); }
.dot-done { background: var(--status-done); }
.dot-idle { background: transparent; box-shadow: inset 0 0 0 1.5px var(--status-idle); }

.hero h1 {
  max-width: 14ch;
  margin: 28px auto 0;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.hero .lede {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.fine {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.hero-shot {
  margin: 72px auto 0;
  max-width: var(--page-max);
}

.window {
  overflow: hidden;
  border: 1px solid var(--border-window);
  border-radius: 12px;
  background: var(--bg-secondary);
  box-shadow: var(--window-shadow);
}

/* ---------- Sections ---------- */

.section { padding: var(--section-space) 0; }
.section + .section > .wrap > .rule,
.rule {
  height: 1px;
  margin: 0 0 var(--section-space);
  border: 0;
  background: var(--border-subtle);
}
.section.ruled { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section .body {
  margin-top: 20px;
  color: var(--text-secondary);
}
.section .body + .body { margin-top: 14px; }

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

/* Feature: text beside a panel that hugs its screenshot. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 80px;
}
.feature.flip { grid-template-columns: auto minmax(0, 1fr); }
.feature.flip .feature-text { order: 2; }
.feature-text { max-width: 520px; }

.facts {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}
.facts li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
  line-height: 1.5;
}
.facts .k { color: var(--text-primary); font-weight: 500; }
.facts .v { color: var(--text-secondary); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 14px;
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* Panel: a quiet stage for a real screenshot at its actual size. */
.panel {
  margin: 0;
  padding: 56px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
}
.panel img { margin: 0 auto; }
.panel .crop {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.panel .sheet { border-radius: var(--radius-lg); }

.panel figcaption {
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Review: one wide panel, then two small ones. */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.review-grid .wide { grid-column: 1 / -1; }
.review-grid .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 80px;
  align-items: end;
}
.split-head .body { margin-top: 0; }

/* Keyboard */
.keys {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}
.keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15px;
}
.keys .combo { display: inline-flex; gap: 4px; }

/* iPhone */
.phones {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.phone {
  width: 264px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  background: var(--bg-primary);
}
.phone img { width: 100%; }
.phones.two .phone { max-width: calc(50% - 12px); }

.cipher {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.cipher strong { color: var(--text-primary); font-weight: 500; }
.cipher .path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font: 500 13px/1 var(--font-mono);
}
.cipher .path .line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 4px, transparent 4px 8px);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  counter-reset: step;
}
.steps li {
  padding: 28px 32px 0 0;
  counter-increment: step;
}
.steps li + li { padding-left: 32px; border-left: 1px solid var(--border-subtle); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font: 500 13px/1 var(--font-mono);
}
.steps h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.steps p { margin-top: 10px; color: var(--text-secondary); font-size: 16px; line-height: 1.55; }

/* Privacy strip */
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
}
.trust > div { padding: 32px 28px; }
.trust > div + div { border-left: 1px solid var(--border-subtle); }
.trust h3 { font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.trust p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.trust .mark {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 20px;
  color: var(--accent);
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 56px auto 0;
  border-top: 1px solid var(--border-subtle);
}
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--text-primary); }
.faq .answer { padding: 0 48px 24px 0; color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.faq .answer p + p { margin-top: 10px; }

/* Final CTA */
.closing { text-align: center; }
.closing .mark-lg { width: 64px; height: 64px; margin: 0 auto 32px; }
.closing h2 { max-width: 16ch; margin: 0 auto; }
.closing .body { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 48px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); text-decoration: none; }
.site-footer .brand { font-size: 15px; }
.site-footer .brand svg { width: 20px; height: 20px; }
.foot-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Document pages (privacy, terms, support, impressum) ---------- */

.doc { padding: 96px 0 128px; }
.doc .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.doc h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.doc .meta { margin-top: 16px; color: var(--text-tertiary); font-size: 14px; }
.doc .intro { margin-top: 24px; color: var(--text-secondary); font-size: 18px; line-height: 1.6; }
.doc h2 {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.doc h3 { margin: 28px 0 0; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--text-tertiary); }
.doc strong { color: var(--text-primary); font-weight: 500; }
.doc address { font-style: normal; }
.doc .card {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}
.doc .card p:first-child { margin-top: 0; }
.doc .toc {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  columns: 2;
  column-gap: 32px;
  list-style: none;
}
.doc .toc li { margin: 0 0 6px; font-size: 15px; break-inside: avoid; }
.doc .toc a { color: var(--text-secondary); }
.doc .toc a:hover { color: var(--text-primary); }

.table-scroll { margin-top: 16px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
.doc th { color: var(--text-primary); font-weight: 500; font-size: 13px; }

.not-found { padding: 160px 0; text-align: center; }
.not-found h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.05; }
.not-found p { margin-top: 16px; color: var(--text-secondary); }
.not-found .cta-row { margin-top: 32px; }

/* ---------- Motion (progressive: only with JS, only without reduced motion) ---------- */

.pre {
  opacity: 0;
  transform: translateY(12px);
}
.pre.in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .feature .panel { padding: 40px; }
}

@media (max-width: 1100px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n + 3) { border-top: 1px solid var(--border-subtle); }
}

@media (max-width: 900px) {
  :root { --section-space: 88px; }
  .nav .nav-link { display: none; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .feature-text { order: 0; }
  .feature-text { max-width: none; }
  .feature .panel { justify-self: stretch; }
  .split-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--border-subtle); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section-space: 72px; }
  body { font-size: 16px; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 48px; }
  .window { border-radius: 8px; }
  .cta-row .btn { width: 100%; }
  .panel, .feature .panel, .review-grid .panel { padding: 24px 16px; border-radius: 12px; }
  .review-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .phones { gap: 12px; }
  .phone { border-radius: 32px; }
  .phones.two .phone { width: calc(50% - 6px); max-width: none; border-radius: 24px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust > div + div { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .faq .answer { padding-right: 0; }
  .doc { padding: 56px 0 88px; }
  .doc .toc { columns: 1; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
