/* Dark by default; the theme switch sets data-theme="light" on <html> (assets/theme.js). */
:root {
  --bg: #121211; --card: #232220; --text: #F2F0EC; --text2: #A6A29B; --accent: #90BAF1;
  --accentA: #90BAF133; --ok: #82CB9B; --bad: #ED8C80; --line: #34322F;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F4F1; --card: #FFFFFF; --text: #1D1C1A; --text2: #6B675F; --accent: #4371B7;
  --accentA: #4371B729; --ok: #3D865A; --bad: #BC4A3F; --line: #E4E1DA;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 Onest, system-ui, 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: 20px 0; }
.brand { font-weight: 700; font-size: 22px; color: var(--accent); text-decoration: none; }
nav a { margin-left: 18px; color: var(--text2); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--text2); margin: 0 0 28px; max-width: 32em; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; }
.badge.soon { background: var(--accentA); color: var(--accent); }
/* The screen at the screenshots' own 1:2, the frame outside it: nothing of the picture is cut. */
.phone { justify-self: center; box-sizing: content-box; width: min(280px, 72vw); aspect-ratio: 1 / 2; border-radius: 40px;
  background: var(--card); border: 10px solid var(--text); overflow: hidden; box-shadow: 0 30px 60px #0002; }
.phone img { width: 100%; height: 100%; object-fit: contain; display: block; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.01em; }
section p.sub { color: var(--text2); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 20px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text2); font-size: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accentA); color: var(--accent);
  font-weight: 700; margin-bottom: 12px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { height: 480px; border-radius: 24px; scroll-snap-align: start; flex: none; background: var(--card); }
footer { padding: 32px 0 48px; color: var(--text2); font-size: 15px; border-top: 1px solid var(--line); }
footer a { color: var(--text2); margin-right: 16px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  nav a:not(:last-of-type) { display: none; }
  .shots img { height: 380px; }
}
.theme-toggle { margin-left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: 500 15px/1 Onest, system-ui, sans-serif; cursor: pointer; transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--theme-icon) center / contain no-repeat; mask: var(--theme-icon) center / contain no-repeat; }
/* The icon of the theme it switches to: the sun in dark, the moon in light. */
:root { --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 1v3M12 20v3M1 12h3M20 12h3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] { --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E"); }
.demo { display: flex; justify-content: center; }
.demo video { display: block; height: 480px; width: auto; aspect-ratio: 1 / 2; border-radius: 24px;
  background: var(--card); object-fit: cover; }
@media (max-width: 820px) { .demo video { height: 380px; } }
