:root {
  --bg: #0b1210;
  --bg-2: #111c19;
  --card: #15221f;
  --line: #22332f;
  --text: #e8f1ee;
  --muted: #9db1ab;
  --teal: #1ed6c3;
  --amber: #ffc53d;
  --on-accent: #062320;
  --radius: 20px;
  color-scheme: dark;
}

/* Dark is the default, as in the apps; the header button switches to light. */
:root[data-theme="light"] {
  --bg: #f4f8f7;
  --bg-2: #e9f1ef;
  --card: #ffffff;
  --line: #d7e3e0;
  --text: #0f1f1c;
  --muted: #4c615c;
  --teal: #0d9e90;
  --amber: #b7860c;
  --on-accent: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 15% -10%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--teal); }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; white-space: nowrap; font-size: 15px; }
.top nav a:hover { color: var(--text); background: var(--bg-2); }

.langs { position: relative; }
.theme-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--bg-2); }
.theme-toggle svg { width: 20px; height: 20px; }
/* The icon shows the look a click switches to. */
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
.langs summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 700; }
.langs summary::-webkit-details-marker { display: none; }
.langs div { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: grid; min-width: 160px; box-shadow: 0 12px 40px rgb(0 0 0 / .35); }
.langs a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.langs a:hover, .langs a[aria-current] { background: var(--bg-2); }
.langs a[aria-current] { font-weight: 700; }

/* Sections */
section { margin: 56px 0; }
.hero { text-align: center; margin-top: 56px; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto 24px; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }

.button {
  display: inline-block; background: var(--teal); color: var(--on-accent);
  font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; margin: 8px 0;
}
.amber .button { background: var(--amber); }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.card.teal { box-shadow: inset 0 3px 0 var(--teal); }
.card.amber { box-shadow: inset 0 3px 0 var(--amber); }
.icon { border-radius: 22%; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.icon.big { width: 112px; height: 112px; }
.card h2 { margin-top: 16px; }
.tagline { font-weight: 700; margin: 0 0 8px; }
.teal .tagline { color: var(--teal); }
.amber .tagline { color: var(--amber); }
.card p:not(.tagline) { color: var(--muted); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 8px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.15; text-align: left;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.store.soon { opacity: .6; cursor: default; }

/* Points */
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.points li, .feature, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.points strong { display: block; margin-bottom: 4px; }
.points span, .feature p { color: var(--muted); }
.feature p { margin: 0; }

/* Screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; }
.shots figure { margin: 0; flex: 0 0 min(62vw, 230px); scroll-snap-align: center; text-align: center; }
.phone { border-radius: 28px; overflow: hidden; border: 6px solid #000; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgb(0 0 0 / .4); background: #000; aspect-ratio: 9 / 16; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Device stage: tablet, Mac, foldable and phone side by side */
.stage { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin: 40px auto 0; max-width: 1080px; }
.device { margin: 0; text-align: center; position: relative; }
.device .screen { background: #000; border: 1px solid #2b3a37; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
.device img { display: block; width: 100%; height: auto; }
.device figcaption { margin-top: 12px; }
.device.tablet { width: 30%; margin-right: -1.5%; z-index: 1; }
.device.tablet .screen { border: 9px solid #0a0d0d; border-radius: 22px; }
.device.mac { width: 44%; z-index: 2; }
.device.mac .screen { border: 10px solid #0a0d0d; border-bottom-width: 14px; border-radius: 16px 16px 4px 4px; }
.device.mac::before { content: ""; display: block; position: absolute; left: -6%; right: -6%; top: calc(100% - 40px); height: 12px; border-radius: 0 0 14px 14px; background: linear-gradient(#c9d2d0, #8a9693); }
.device.mac figcaption { margin-top: 26px; }
.device.fold { width: 19%; margin-left: -3%; z-index: 3; }
.device.fold .screen { border: 7px solid #0a0d0d; border-radius: 18px; position: relative; }
.device.fold .screen::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(rgb(255 255 255 / .05), rgb(255 255 255 / .16), rgb(255 255 255 / .05)); }
.device.phone { width: 12%; margin-left: -2%; z-index: 4; border: 0; box-shadow: none; aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.device.phone .screen { border: 5px solid #0a0d0d; border-radius: 22px; }
:root[data-theme="light"] .device .screen { border-color: #1b2321; }

/* App card preview: two phone screens */
.preview { display: flex; justify-content: center; gap: 14px; margin: 18px 0 8px; }
.preview .phone { width: 38%; max-width: 170px; border-width: 4px; border-radius: 22px; }

/* Platform list */
.platforms li { text-align: left; }
.glyph { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); margin-bottom: 10px; }
.glyph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.plan ul { padding-left: 20px; margin: 8px 0 0; }
.plan li { margin: 4px 0; }
.plan.pro { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); }
.amber ~ section .plan.pro { border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* Text pages */
.text { max-width: 760px; margin-left: auto; margin-right: auto; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 32px; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.langs[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.langs { background: none; border: 0; padding: 0; margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 72px; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .stage { flex-wrap: wrap; align-items: flex-end; gap: 20px 4%; }
  .device.tablet, .device.mac { width: 100%; margin: 0; }
  .device.mac { order: -1; }
  .device.mac::before { left: -4%; right: -4%; }
  .device.tablet { width: 62%; }
  .device.fold { width: 34%; margin: 0; }
  .device.phone { width: 34%; margin: 0 auto; }
  .top .wrap { flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; padding-bottom: 6px; }
  .top nav { order: 3; width: 100%; margin-left: -10px; }
  .theme-toggle { margin-left: auto; }
  section { margin: 40px 0; }
  .card { padding: 22px; }
}

/* Refresh 01.11.2026: comparison tables and a livelier hero. */
.hero h1 {
  background: linear-gradient(100deg, var(--text) 20%, var(--teal) 60%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.app h1 { background: none; color: var(--text); }
.card, .points li, .feature, .plan {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover, .feature:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.amber .card:hover, .card.amber:hover { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
@media (prefers-reduced-motion: reduce) { .card, .feature { transition: none; } .card:hover, .feature:hover { transform: none; } }

.compare .table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 700; }
.compare tbody th { font-weight: 700; width: 24%; }
.compare td { color: var(--muted); }
.compare .us { color: var(--text); font-weight: 700; background: color-mix(in srgb, var(--teal) 10%, transparent); }
.compare thead .us { color: var(--teal); }
.compare.amber .us { background: color-mix(in srgb, var(--amber) 12%, transparent); }
.compare.amber thead .us { color: var(--amber); }
