/* Kartemo website.
   Layout: a checkout counter at night. Deep green from the app, mint for what you can act on,
   and one scanner-red laser line as the only loud color. Wide display type for headlines,
   a quiet humanist face for reading, mono for card numbers and barcode digits. */

:root {
  --bg: #071b18;
  --bg-raise: #0d2925;
  --bg-deep: #04120f;
  --line: rgba(143, 239, 220, 0.14);
  --line-strong: rgba(143, 239, 220, 0.28);
  --fg: #eaf7f3;
  --muted: #9dbfb6;
  --mint: #8fefdc;
  --teal: #1fcfb0;
  --on-teal: #03211b;
  --laser: #ff4b3e;
  --paper: #ffffff;
  --ink: #0b1513;

  --display: "Unbounded", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--mint); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--teal); color: var(--on-teal); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.lead { font-size: var(--step-1); color: var(--muted); max-width: 34em; line-height: 1.55; }
.label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: flex; gap: var(--space-3); margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: var(--space-2); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg);
  display: flex; align-items: center; gap: 6px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 12px; height: 12px; transition: transform 0.2s; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 150px;
  background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.lang a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.lang a span { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.lang a:hover { background: rgba(143, 239, 220, 0.08); }
.lang a[aria-current="true"] { color: var(--mint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal); color: var(--on-teal); box-shadow: 0 10px 30px -10px rgba(31, 207, 176, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(31, 207, 176, 0.75); text-decoration: none; }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(143, 239, 220, 0.07); text-decoration: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }

/* Hero */

.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) var(--space-6); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 30%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(31, 207, 176, 0.22), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.hero-copy { display: grid; gap: var(--space-3); min-width: 0; }
.hero-copy h1 { max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-1); }
.hero-note { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); letter-spacing: 0.02em; }

.stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1.08; margin-inline: auto; }

.fan { position: absolute; inset: 0; }
.mini-card {
  position: absolute; left: 22%; top: 30%; width: 46%; aspect-ratio: 1.586;
  border-radius: 7% / 11%; padding: 6% 7%;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  animation: fan 1.25s var(--ease) both;
  animation-delay: var(--d);
}
.mini-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 40%, rgba(255, 255, 255, 0.06) 70%, transparent);
}
.mini-card .top, .mini-card .num { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.mini-card .top { display: flex; align-items: center; gap: 8%; font-family: var(--body); font-weight: 700; font-size: clamp(0.72rem, 0.5rem + 0.9vw, 1.05rem); letter-spacing: -0.01em; }
.mini-card .top svg { width: 1.25em; height: 1.25em; flex: none; }
.mini-card .num { font-family: var(--mono); font-size: clamp(0.6rem, 0.45rem + 0.6vw, 0.82rem); opacity: 0.8; letter-spacing: 0.04em; }
.mini-card.light { color: #1d2a27; }

@keyframes fan {
  from { transform: translate(18%, 4%) rotate(0deg) scale(0.92); }
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

.phone {
  position: absolute; right: 4%; top: 2%; width: 49%; aspect-ratio: 720 / 1564;
  padding: 2.2%; border-radius: 15% / 7%;
  background: linear-gradient(160deg, #22332f, #050c0b 40%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: rise 1.1s var(--ease) both;
}
.phone .screen { position: relative; height: 100%; border-radius: 13% / 6%; overflow: hidden; background: var(--bg-deep); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; left: 50%; top: 2.6%; width: 30%; height: 3.6%; translate: -50% 0; background: #000; border-radius: 999px; z-index: 2; }

@keyframes rise { from { transform: translateY(6%); } to { transform: none; } }

.laser {
  position: absolute; left: 10%; right: 10%; top: 41%; height: 2px; z-index: 3;
  background: var(--laser); border-radius: 2px;
  box-shadow: 0 0 10px 2px rgba(255, 75, 62, 0.75), 0 0 28px 6px rgba(255, 75, 62, 0.35);
  animation: sweep 1.3s ease-in-out 1.1s infinite alternate both;
}
.hero:not(.in-view) .laser { animation-play-state: paused; }
@keyframes sweep { from { top: 41%; } to { top: 52.5%; } }

.scan-chip {
  position: absolute; z-index: 4; right: -3%; top: 60%;
  display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px;
  background: rgba(7, 27, 24, 0.86); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--mono); font-size: 0.8rem; color: var(--fg); white-space: nowrap;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.8);
  animation: pop 0.6s var(--ease) 2.1s both;
}
.scan-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.scan-chip svg { width: 13px; height: 13px; color: var(--on-teal); }
.scan-chip b { color: var(--mint); font-weight: 500; }
@keyframes pop { from { transform: translateY(8px) scale(0.9); } to { transform: none; } }

/* Sections */

.section { padding-block: var(--space-6); position: relative; }
.section-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); max-width: 46rem; }

.band { background: var(--bg-raise); border-block: 1px solid var(--line); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.way {
  display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4) var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(143, 239, 220, 0.05), transparent 70%);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.way:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.way .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(31, 207, 176, 0.14); color: var(--mint); }
.way .icon svg { width: 26px; height: 26px; }
.way p { color: var(--muted); }
button.way { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.way-title { font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); }
.way-text { color: var(--muted); }
.way[aria-selected="true"] { border-color: rgba(143, 239, 220, 0.55); background: linear-gradient(180deg, rgba(143, 239, 220, 0.12), rgba(143, 239, 220, 0.03) 80%); }
.way[aria-selected="true"] .icon { background: var(--teal); color: var(--on-teal); }
.way:active { transform: scale(0.98); }

.add-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: var(--space-5); align-items: center; }
.add-layout .device-col { justify-self: center; width: 100%; max-width: 300px; }

/* Checkout demo */

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.checkout-copy { display: grid; gap: var(--space-3); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.formats li { font-family: var(--mono); font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }

.demo {
  display: grid; gap: var(--space-3); padding: var(--space-3);
  border-radius: 28px; background: var(--bg-raise); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.paper { position: relative; background: var(--paper); border-radius: 18px; padding: 8% 9% 6%; overflow: hidden; }
.paper svg { width: 100%; height: auto; color: var(--ink); }
.paper .laser { left: 4%; right: 4%; top: 18%; animation: sweep-paper 1.6s ease-in-out 0.3s infinite alternate both; }
.paper:not(.in-view) .laser { animation-play-state: paused; }
@keyframes sweep-paper { from { top: 18%; } to { top: 70%; } }
.paper.bad .laser { display: none; }
.paper .code { transition: opacity 0.2s; }
.paper.bad .code { opacity: 0.18; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field .row { display: flex; gap: 10px; align-items: center; }
.field input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid rgba(143, 239, 220, 0.5); color: var(--fg);
  font-family: var(--mono); font-size: 1.1rem; letter-spacing: 0.08em;
}
.field input:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.field .hint { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.status { min-height: 1.6em; font-size: 0.95rem; color: var(--mint); display: flex; gap: 8px; align-items: center; }
.status.bad { color: #ffb3ab; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* Watch */

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.watch-copy { display: grid; gap: var(--space-3); }
.points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points li svg { width: 22px; height: 22px; flex: none; color: var(--mint); margin-top: 2px; }

.watches { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px); }
/* Apple Watch Ultra: natural titanium case, thin black bezel, crown and side button right, orange Action button left */
.watch { position: relative; width: min(42%, 210px); display: grid; justify-items: center; }
.watch .case { position: relative; width: 100%; padding: 3.6%; border-radius: 24% / 20%;
  background: linear-gradient(145deg, #e6e2da 0%, #a8a49c 32%, #d8d4cc 58%, #8c887f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 34px 60px -26px rgba(0, 0, 0, 0.9); }
.watch .bezel { padding: 1.8%; border-radius: 21% / 17.4%; background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.watch .bezel img { display: block; width: 100%; height: auto; aspect-ratio: 422 / 514; border-radius: 19.5% / 16%; background: #000; }
.watch .crown { position: absolute; right: -4.5%; top: 22%; width: 6%; height: 17%; border-radius: 2px 7px 7px 2px;
  background: repeating-linear-gradient(0deg, #cfcbc3 0 2px, #8f8b83 2px 4px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.watch .side-button { position: absolute; right: -2.6%; top: 50%; width: 4%; height: 20%; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, #a6a29a, #d6d2ca); }
.watch .action-button { position: absolute; left: -2.6%; top: 27%; width: 4%; height: 17%; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, #ff7a2f, #e5541a); }
.watch .strap { width: 64%; height: 46px; background: linear-gradient(90deg, #1b2523, #2b3633 50%, #1b2523); }
.watch .strap-top { border-radius: 10px 10px 0 0; -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent); }
.watch .strap-bottom { border-radius: 0 0 10px 10px; -webkit-mask: linear-gradient(to bottom, #000 30%, transparent); mask: linear-gradient(to bottom, #000 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .watch { animation: float 2.4s ease-in-out 1; }
  .watch:nth-child(2) { animation-delay: 0.4s; }
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Organize */

.organize { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.organize-copy { display: grid; gap: var(--space-4); }
.feature-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; gap: 4px; padding-left: var(--space-3); border-left: 2px solid var(--line-strong); }
.feature-list p { color: var(--muted); }

.duo { position: relative; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; justify-self: center; }
.duo .phone { animation: none; top: 0; right: 0; width: 52%; }
.duo .phone.back { right: auto; left: 2%; top: 9%; width: 48%; opacity: 0.9; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .duo .phone { animation: drift-a linear both; animation-timeline: view(); animation-range: cover; }
    .duo .phone.back { animation-name: drift-b; }
  }
}
@keyframes drift-a { from { transform: translateY(8%); } to { transform: translateY(-6%); } }
@keyframes drift-b { from { transform: translateY(-4%) rotate(-3deg); } to { transform: translateY(6%) rotate(-3deg); } }

/* Privacy */

.privacy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-5); align-items: center; }
.privacy-copy { display: grid; gap: var(--space-3); }

.map { display: grid; gap: var(--space-3); }
.map-row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.map-row > .node { position: relative; z-index: 1; background: #10302b; }
.map-track { position: absolute; z-index: 2; left: 16.6%; right: 16.6%; top: 50%; height: 0; container-type: inline-size; pointer-events: none; }
.map-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px 4px rgba(143, 239, 220, 0.55); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .map-dot { animation: run 2.8s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
  .map-row:not(.in-view) .map-dot { animation-play-state: paused; }
}
@keyframes run { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(100cqw); opacity: 0; } }
.node {
  display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: rgba(143, 239, 220, 0.05); text-align: center; font-size: 0.9rem; font-weight: 500;
}
.node svg { width: 28px; height: 28px; color: var(--mint); }
.link { width: clamp(24px, 4.5vw, 56px); height: 2px; background: repeating-linear-gradient(90deg, var(--mint) 0 6px, transparent 6px 10px); background-size: 20px 2px; }
@media (prefers-reduced-motion: no-preference) {
  .link { animation: none; }
}
@keyframes flow { to { background-position: 20px 0; } }
.node.none { border-style: dashed; border-color: var(--line); background: none; color: var(--muted); grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; padding: 14px 18px; }
.node.none svg { color: var(--muted); }
.node.none b { font-family: var(--mono); font-weight: 500; color: var(--laser); letter-spacing: 0.04em; }

/* Final call */

.final { text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: var(--space-3); }
.final img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 24px 60px -20px rgba(31, 207, 176, 0.6); }
.final p { color: var(--muted); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: var(--space-3); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 8px; color: var(--fg); text-decoration: none; }
.footer-links a:hover { color: var(--mint); }
.footer-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-langs a { display: inline-flex; align-items: center; min-height: 36px; font-family: var(--mono); font-size: 0.78rem; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.footer-langs a[aria-current="true"] { color: var(--mint); border-color: var(--line-strong); }
.disclaimer { max-width: 60rem; font-size: 0.85rem; line-height: 1.55; }

/* Document pages */

.doc { padding-block: var(--space-5) var(--space-6); }
.doc .wrap { max-width: 820px; }
.doc header { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.doc h1 { font-size: var(--step-3); }
.doc .meta { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.doc section { display: grid; gap: var(--space-2); padding-block: var(--space-3); }
.doc h2 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.doc section + section { border-top: 1px solid var(--line); }
.doc p, .doc li { color: #cfe3dd; max-width: 68ch; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc li::marker { color: var(--mint); }

.contact-card {
  display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-3); margin-bottom: var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-raise);
}
.contact-card .email-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-card .email { font-family: var(--mono); font-size: var(--step-1); color: var(--fg); user-select: all; overflow-wrap: anywhere; }
.copy-btn { cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: inherit; font-size: 0.9rem; min-height: 44px; padding: 0 18px; border-radius: 999px; }
.copy-btn:hover { background: rgba(143, 239, 220, 0.08); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(143, 239, 220, 0.03); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--mint); transition: transform 0.25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

.imprint dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 14px 24px; margin: 0; }
.imprint dt { color: var(--muted); }
.imprint dd { margin: 0; white-space: pre-line; }
.todo { color: #ffb3ab; font-family: var(--mono); font-size: 0.9em; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .wrap { display: grid; gap: var(--space-3); justify-items: center; }

/* Reveal on scroll: content is always readable; it only slides into place. */

.js .reveal { transform: translateY(28px); transition: transform 0.9s var(--ease); }
.js .reveal.in { transform: none; }

/* Responsive */

@media (max-width: 960px) {
  .hero .wrap, .checkout, .watch-layout, .organize, .privacy, .add-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 14ch; }
  .stage { max-width: 460px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .organize .duo { order: -1; max-width: 440px; }
  .watch-layout .watches { order: -1; }
  .add-layout .device-col { max-width: 280px; margin-top: var(--space-2); }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .header-actions { margin-left: auto; }
  .header-actions .btn-small span { display: none; }
  .header-actions .btn-small { padding: 0 12px; }
  .scan-chip { right: 0; font-size: 0.72rem; }
  .imprint dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .imprint dd { margin-bottom: 12px; }
  .field .hint { display: none; }
  .map-row { gap: 4px; }
  .node { padding: 14px 4px; font-size: 0.8rem; }
  .link { width: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .laser { animation: none; top: 47%; }
  .paper .laser { top: 44%; }
  .js .reveal { transform: none; }
}

.device-col .phone { position: relative; right: auto; top: auto; width: 100%; animation: none; }
.line { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .hero { padding-top: 1.75rem; }
  .hero-copy { gap: var(--space-2); }
  .hero-copy h1 { font-size: clamp(2rem, 1.2rem + 4.6vw, 2.5rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .stage { margin-top: var(--space-2); }
}

/* The phone in "add a card": one screen per tab, cross-fading with a light blur so the swap reads as one screen changing */
.switcher .pane { position: absolute; inset: 0; transition: opacity 260ms cubic-bezier(0.23, 1, 0.32, 1), transform 260ms cubic-bezier(0.23, 1, 0.32, 1), filter 260ms ease; }
.switcher .pane:not(.is-active) { opacity: 0; transform: scale(0.985); filter: blur(3px); pointer-events: none; }
.switcher .pane img { width: 100%; height: 100%; object-fit: cover; }
.cam { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 10px; padding: 9% 7% 10%; text-align: center;
  background: radial-gradient(120% 70% at 50% 45%, #2e403b, #0b1513 75%); color: #fff; font-family: var(--body); }
.cam-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 6%; font-size: 12px; font-weight: 600; }
.cam-icons { display: flex; gap: 3px; } .cam-icons i { width: 12px; height: 8px; border-radius: 2px; background: #fff; opacity: .9; } .cam-icons i:last-child { width: 18px; background: #3bd16f; }
.cam-title { font-size: 14px; font-weight: 600; margin-top: 4px; }
.cam-view { position: relative; display: grid; place-items: center; border-radius: 20px; overflow: hidden; }
.cam-card { width: 86%; padding: 12px 12px 8px; border-radius: 14px; background: linear-gradient(135deg, #2bb5a3, #0b6e63); text-align: left; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8); transform: rotate(-4deg); }
.cam-card-top { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; } .cam-card-top svg { width: 14px; height: 14px; }
.cam-code { margin-top: 10px; padding: 6px 8px 2px; border-radius: 8px; background: #fff; color: #111; } .cam-code svg { width: 100%; height: auto; }
.cam-corners { position: absolute; inset: 22% 4%; border: 3px solid var(--mint); border-radius: 16px;
  -webkit-mask: conic-gradient(#000 0 0) 0 0 / 26px 26px no-repeat, conic-gradient(#000 0 0) 100% 0 / 26px 26px no-repeat, conic-gradient(#000 0 0) 0 100% / 26px 26px no-repeat, conic-gradient(#000 0 0) 100% 100% / 26px 26px no-repeat;
  mask: conic-gradient(#000 0 0) 0 0 / 26px 26px no-repeat, conic-gradient(#000 0 0) 100% 0 / 26px 26px no-repeat, conic-gradient(#000 0 0) 0 100% / 26px 26px no-repeat, conic-gradient(#000 0 0) 100% 100% / 26px 26px no-repeat; }
.cam-found { display: inline-flex; justify-self: center; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(143, 239, 220, 0.14); color: var(--mint); font: 500 11px/1.2 var(--mono); opacity: 0; transform: scale(0.95); }
.cam-found svg { width: 14px; height: 14px; }
.cam-hint { font-size: 12px; line-height: 1.4; color: #c9d6d2; }
.pane.is-active .cam-found { animation: cam-found 280ms cubic-bezier(0.23, 1, 0.32, 1) 1.5s both; }
@keyframes cam-found { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .switcher .pane { transition-duration: 0.001ms; }
  .pane.is-active .cam-found { animation: none; opacity: 1; transform: none; }
  .map-dot { display: none; }
}
