:root {
  color-scheme: light dark;
  --bg: #fafbfa;
  --bg-alt: #f1f4f2;
  --surface: #ffffff;
  --text: #121a17;
  --muted: #56635e;
  --line: #dde3e0;
  --line-strong: #c6cfcb;
  --accent: #0e7c66;
  --accent-hover: #0b6857;
  --accent-ink: #ffffff;
  --accent-soft: #e0f1ec;
  --warm: #c2410c;
  --shadow: 0 1px 2px rgb(16 24 20 / 0.05), 0 8px 24px -12px rgb(16 24 20 / 0.18);
  --radius: 14px;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1210;
    --bg-alt: #121916;
    --surface: #161e1b;
    --text: #e7eeeb;
    --muted: #93a19b;
    --line: #25302c;
    --line-strong: #34413c;
    --accent: #3fbf9f;
    --accent-hover: #5ccfb2;
    --accent-ink: #07130f;
    --accent-soft: #15302a;
    --warm: #fb923c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1, h2 { font-family: var(--display); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; max-width: 18ch; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.02em; }
.lede { font-size: 18px; color: var(--muted); max-width: 52ch; }
.fine { font-size: 13px; color: var(--muted); }
.center { text-align: center; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color 150ms, border-color 150ms, transform 150ms;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn.is-missing { opacity: 0.5; pointer-events: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 100%;
  background-color: var(--bg); position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 30% 40%, transparent, var(--bg) 75%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; max-width: 14ch; }
.hero h1 span { color: var(--muted); font-weight: 600; }
.hero .lede { margin-top: 20px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .fine { margin-top: 14px; }

/* App mock */
.mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; }
.mock-device { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mock-device div { display: grid; flex: 1; }
.mock-device small, .mock-transfer small { color: var(--muted); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dot.on { background: #22a35a; box-shadow: 0 0 0 3px color-mix(in srgb, #22a35a 20%, transparent); }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); white-space: nowrap; }
.chip-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.mock-drop { border: 1.5px dashed var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 16px; text-align: center; font-size: 13px; color: var(--text); }
.mock-transfer { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 7px; }
.row { display: flex; align-items: center; gap: 10px; }
.row strong, .row span:not(.arrow):not(.chip) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.arrow { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; flex: none; }
.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.fill-a { width: 72%; animation: progress 6s ease-in-out infinite; }
.fill-done { width: 100%; }
@keyframes progress { 0% { width: 18%; } 80%, 100% { width: 100%; } }

/* Numbers */
.numbers { border-bottom: 1px solid var(--line); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers-grid > div { padding: 28px 24px; border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.numbers-grid > div:first-child { border-left: 0; padding-left: 0; }
.numbers strong { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.numbers em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.numbers span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 40px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; }
.steps p { color: var(--muted); font-size: 15px; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step-art { margin-top: 10px; height: 92px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--mono); font-size: 13px; }
.art-devices span { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 8px 12px; }
.art-devices i { width: 48px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); animation: dash 1s linear infinite; background-size: 10px 2px; }
@keyframes dash { to { background-position: 10px 0; } }
.art-code span { font-size: 20px; font-weight: 500; letter-spacing: 0.08em; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; }
.art-drop { position: relative; }
.art-drop .target { border: 1.5px dashed var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 14px 22px; font-family: var(--font); }
.art-drop .file { width: 26px; height: 32px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 0%, 20% { transform: translate(-6px, -10px) rotate(-8deg); } 60%, 100% { transform: translate(18px, 6px) rotate(0); opacity: 0.2; } }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.compare-win { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.track { display: flex; align-items: stretch; min-height: 34px; border-radius: 8px; background: var(--bg-alt); overflow: hidden; font-size: 12px; font-family: var(--mono); }
.seg { width: var(--w); display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.seg-up { background: color-mix(in srgb, var(--warm) 22%, transparent); color: var(--text); }
.seg-down { background: color-mix(in srgb, var(--warm) 40%, transparent); color: var(--text); }
.seg-pairly { background: var(--accent); min-width: 12px; padding: 0; }
.seg-label { padding: 6px 10px; color: var(--muted); align-self: center; }
.total { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.compare ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.compare + .fine { margin-top: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.features article { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.features article:nth-child(3n) { border-right: 0; }
.features article:nth-last-child(-n + 3) { border-bottom: 0; }
.features p { color: var(--muted); font-size: 15px; }

/* Browser */
.browser { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; }
.browser h2 { margin-bottom: 16px; }
.mini-steps { margin: 24px 0; padding-left: 20px; display: grid; gap: 8px; }
.mini-steps li::marker { font-family: var(--mono); color: var(--accent); }
.phone { margin: 0; justify-self: center; width: 300px; border: 1px solid var(--line-strong); border-radius: 36px; padding: 12px; background: var(--surface); box-shadow: var(--shadow); }
.phone-url { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; background: var(--bg-alt); border-radius: 999px; padding: 6px; margin: 4px 8px 12px; }
.phone-body { background: var(--bg); border-radius: 24px; padding: 14px; display: grid; gap: 10px; min-height: 380px; align-content: start; border: 1px solid var(--line); }
.phone-head { display: flex; gap: 10px; align-items: center; }
.phone-head div { display: grid; }
.phone-head small { color: var(--muted); font-size: 12px; }
.mini-logo { width: 26px; height: 26px; border-radius: 7px; background: url("assets/icon.png") center / cover; }
.phone-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.phone-card .mock-label { margin: 0; }
.phone-card small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.phone-drop { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 18px 10px; text-align: center; font-size: 13px; color: var(--muted); }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; grid-row: span 5; grid-template-rows: subgrid; }
.dl .btn { margin-top: 8px; align-self: end; width: 100%; text-align: center; }
.dl.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-req { color: var(--muted); font-size: 14px; }
.dl-file { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dl-file code { font-size: 12px; }
.dl-browser { background: transparent; border-style: dashed; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line-strong); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 500; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 22px var(--mono); color: var(--muted); transition: transform 150ms; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 36px 20px 0; color: var(--muted); }

/* Footer */
.footer { padding: 32px 0 48px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer nav { margin-left: auto; display: flex; gap: 18px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer .brand { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .browser, .faq { grid-template-columns: 1fr; gap: 40px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid > div { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .numbers-grid > div:nth-child(-n + 2) { border-top: 0; }
  .numbers-grid > div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .steps, .compare { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .features article:nth-child(3n) { border-right: 1px solid var(--line); }
  .features article:nth-child(2n) { border-right: 0; }
  .features article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .features article:nth-last-child(-n + 2) { border-bottom: 0; }
  .downloads { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 64px 0; }
  .section h2 { margin-bottom: 28px; }
  .features, .downloads { grid-template-columns: 1fr; }
  .features article { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .features article:last-child { border-bottom: 0 !important; }
  .numbers strong { font-size: 24px; }
  .phone { width: 100%; max-width: 300px; }
  .footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
