/* Graphite, as in the iPhone app (ios/AirMouse/Remote/GraphiteStyle.swift) */
:root {
  color-scheme: dark;
  --ground: #0e1013;
  --deep: #0c0d10;
  --panel: #15171b;
  --raised: #1a1d22;
  --menu: #1f2227;
  --screen: #0b0c0e;
  --stroke: #23262c;
  --stroke-2: #2a2d33;
  --stroke-3: #31353c;
  --text: #e8eaed;
  --control: #c9cdd4;
  --secondary: #9aa0a8;
  --tertiary: #80868f;
  --accent: #f5a524;
  --accent-hover: #ffc261;
  --accent-ring: rgba(245, 165, 36, 0.35);
  --accent-soft: rgba(245, 165, 36, 0.15);
  /* reserved for pairing, as in the app */
  --pair: #3d8bff;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --grid: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px, #121418;
  --dots: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px) 0 0 / 12px 12px, #121418;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
strong { color: var(--text); font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--ground); }
.skip:focus { left: 8px; }

/* header and footer */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--control); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--raised); color: var(--text); }

.site-foot { border-top: 1px solid var(--raised); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px 48px; }
.site-foot .brand { font-size: 15px; gap: 10px; }
.site-foot .brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 14px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }

/* type */
.eyebrow { margin-bottom: 18px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tertiary); }
.display { font-size: clamp(37px, 4.8vw, 68px); line-height: 0.98; letter-spacing: -0.035em; }
.dim { color: var(--tertiary); }
.lede { margin-top: 28px; max-width: 32em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--secondary); }
.title { max-width: 16em; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.intro { margin-top: 20px; max-width: 38em; font-size: 18px; color: var(--secondary); }
.muted { color: var(--secondary); }

/* buttons and status */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px 0 18px; border-radius: 16px; text-decoration: none; transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn-primary { background: var(--accent); color: var(--ground); }
.btn-primary:hover { color: var(--ground); filter: brightness(1.08); }
.btn-ghost { padding: 0 22px; border: 1px solid var(--stroke-2); color: var(--text); font-size: 16px; font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: var(--tertiary); background: var(--raised); }
.btn-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-label small { font-size: 12px; font-weight: 500; }
.btn-label b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 22px 12px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--accent-ring); font-size: 15px; line-height: 1.45; color: var(--control); }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--tertiary); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--stroke); font-size: 14px; color: var(--control); }
.tag { flex: none; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--stroke-2); font: 500 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--control); }
.tag-accent { border-color: var(--accent-ring); color: var(--accent); }
.note { margin-top: 28px; max-width: 32em; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--stroke); font-size: 14px; line-height: 1.55; color: var(--secondary); }
.note code { font: 13px var(--mono); color: var(--text); }
code { font-family: var(--mono); font-size: 0.86em; color: var(--text); }
code[data-apk] { overflow-wrap: anywhere; }

/* sections */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 72px); padding-block: clamp(28px, 6vw, 72px) clamp(48px, 7vw, 96px); }
.hero-copy { flex: 1 1 600px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.band { border-top: 1px solid var(--raised); background: var(--deep); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.split > * { flex: 1 1 440px; min-width: 0; }

/* cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.card { flex: 1 1 300px; min-width: 0; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--stroke); }
.card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.015em; }
.card p { font-size: 16px; color: var(--secondary); }
.card .eyebrow { margin: 0; font-size: 12px; color: var(--tertiary); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; color: var(--control); }
.num { font: 500 14px var(--mono); color: var(--accent); }
.card-small { flex-basis: 240px; padding: 26px; border-radius: 20px; }
.card-small .card-top { margin-bottom: 22px; }
.card-small h3 { font-size: 18px; }
.card-small p { font-size: 15px; }
.card-out { background: transparent; border-style: dashed; border-color: var(--stroke-2); }
.card-out h3 { color: var(--control); }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; padding: 22px 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--stroke); color: var(--control); }
.callout p { flex: 1 1 420px; font-size: 15px; color: var(--secondary); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; margin-top: 48px; }
.features svg { color: var(--accent); }
.features h3 { margin: 14px 0 6px; font-size: 18px; }
.features p { font-size: 15px; color: var(--secondary); }

.steps { display: flex; flex-direction: column; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 18px; align-items: baseline; font-size: 17px; color: var(--control); }
.steps .num { flex: none; }

/* before / after */
.timeline { display: flex; flex-direction: column; margin: 28px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; font-size: 16px; line-height: 1.5; color: var(--control); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; border: 2px solid #4a4f57; }
.timeline li:last-child::before { background: #4a4f57; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 2px; background: var(--stroke-2); }
.card-fixed { border-color: var(--accent-ring); }
.card-fixed .eyebrow { color: var(--accent); }
.card-fixed .timeline li { color: var(--text); }
.card-fixed .timeline li::before { border-color: var(--accent); }
.card-fixed .timeline li:last-child::before { background: var(--accent); }
.card-fixed .timeline li::after { background: var(--accent-ring); }

/* platform cards with a picture on top */
.platforms { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; }
.platforms-stack { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.platforms-stack .card { flex: 1 1 auto; }
.platforms-stack .card-top { margin-bottom: 28px; }
.companion { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--panel); border: 1px solid var(--stroke); color: var(--text); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.companion:hover { color: var(--text); border-color: #3a3e46; transform: translateY(-2px); }
.companion-art { position: relative; height: 220px; background: var(--dots); border-bottom: 1px solid var(--stroke); }
.companion-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.companion-body .card-top { margin: 0; }
.companion-body h3 { font-size: 22px; }
.companion-body p { font-size: 15px; color: var(--secondary); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* pictures */
.stage { flex: 1 1 420px; min-width: 0; position: relative; height: clamp(520px, 50vw, 640px); overflow: hidden; border-radius: 32px; border: 1px solid var(--stroke); background: var(--grid); }
.phone { padding: 9px; border-radius: 46px; background: var(--raised); border: 1px solid var(--stroke-3); box-shadow: -18px 30px 60px rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; height: auto; border-radius: 38px; }
.arcs { position: absolute; left: 50%; top: -58px; width: 80px; height: 44px; margin-left: -40px; color: var(--accent); }
.cursor { position: absolute; width: 26px; height: 26px; }
.screen { position: absolute; overflow: hidden; border-radius: 14px; background: var(--screen); border: 1px solid var(--stroke-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-bottom: 1px solid var(--raised); }
.screen-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--stroke-2); }
.block { position: absolute; border-radius: 8px; background: var(--panel); border: 1px solid #1e2126; }

.home-screen { top: 40px; right: 6%; width: 66%; aspect-ratio: 16 / 10; }
.home-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-ring { position: absolute; left: 70%; top: 64%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0.7; }
.home-screen .cursor { left: 70%; top: 64%; margin: -2px 0 0 -4px; }
.home-phone { position: absolute; left: 7%; bottom: -150px; width: clamp(220px, 21vw, 270px); transform: rotate(-9deg); transform-origin: 50% 0; }

.devices-art { flex: 0 1 360px; display: flex; justify-content: center; padding: 48px 0; border-radius: 32px; border: 1px solid var(--stroke); background: var(--dots); }
.devices-art .phone { width: min(260px, 70%); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }

.tray { position: absolute; padding: 14px; border-radius: 12px; background: var(--menu); border: 1px solid var(--stroke-3); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.tray-head { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.tray-head img { border-radius: 25%; }
.tray-head b { display: block; font-weight: 600; }
.tray-head span { display: flex; align-items: center; gap: 8px; color: var(--secondary); }
.tray-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tray hr { height: 1px; margin: 8px 4px; border: 0; background: var(--stroke-2); }
.tray ul { margin: 0; padding: 0; list-style: none; }
.tray li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--control); }
.tray li.on { background: var(--stroke-2); color: var(--text); }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--screen); border-top: 1px solid var(--stroke); }
.taskbar div { display: flex; align-items: center; gap: 14px; }
.taskbar i { width: 14px; height: 14px; border-radius: 3px; background: var(--stroke-2); }
.taskbar time { font: 11px var(--mono); color: var(--secondary); }

.card-tray { right: 28px; bottom: 56px; width: 220px; font-size: 12px; }
.card-tray .tray-head { font-size: 13px; }
.card-tray .tray-head img { width: 28px; height: 28px; }
.card-tray li { padding: 4px 0; }
.card-taskbar { height: 40px; justify-content: flex-end; }
.card-taskbar img { width: 18px; height: 18px; border-radius: 4px; box-shadow: 0 0 0 2px var(--accent-ring); }

.tv { position: absolute; left: 50%; top: 50%; width: 250px; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); border-radius: 8px; background: var(--screen); border: 6px solid var(--menu); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.tile { position: absolute; border-radius: 4px; background: var(--raised); }
.tile.focus { box-shadow: 0 0 0 2px var(--accent); }

.win-stage { height: clamp(500px, 42vw, 560px); background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 14px 14px, #121418; }
.win-tray { right: clamp(16px, 4%, 32px); bottom: 76px; width: min(340px, 86%); padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); font-size: 14px; }
.win-tray .tray-head { padding: 20px; gap: 14px; border-bottom: 1px solid var(--stroke-2); font-size: 16px; }
.win-tray .tray-head img { width: 44px; height: 44px; }
.win-tray .tray-head span { font-size: 13px; }
.win-tray ul { padding: 8px; }
.win-tray li { padding: 9px 12px; }
.win-taskbar { height: 52px; padding: 0 20px; }
.win-taskbar div:first-child i { width: 22px; height: 22px; border-radius: 5px; background: var(--menu); }
.win-taskbar .tray-icon { padding: 4px; border-radius: 6px; background: var(--menu); }
.win-taskbar .tray-icon img { width: 20px; height: 20px; border-radius: 5px; }
.win-taskbar time { font-size: 12px; }

.pair-art { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; padding: 48px 24px; border-radius: 32px; border: 1px solid var(--stroke); background: var(--grid); }
.pair-card { padding: 22px; border-radius: 14px; background: var(--menu); border: 1px solid var(--stroke-3); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.pair-card.pc { flex: 0 1 240px; }
.pair-card.iphone { flex: 0 1 200px; padding: 22px 20px; border-radius: 30px; background: #14161a; }
.pair-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary); }
.code { margin-top: 18px; font: 500 34px var(--mono); letter-spacing: 0.08em; }
.iphone .code { font-size: 28px; }
.pair-buttons { display: flex; gap: 8px; margin-top: 18px; }
.pair-buttons span { flex: 1; padding: 9px 0; border-radius: 8px; text-align: center; font-size: 14px; background: var(--stroke-2); color: var(--control); }
.pair-buttons .go { background: var(--pair); color: var(--ground); font-weight: 600; }
.iphone .pair-buttons .go { border-radius: 999px; }
.pair-dots { display: flex; gap: 6px; color: var(--pair); }
.pair-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pair-dots i:nth-child(1) { opacity: 0.4; }
.pair-dots i:nth-child(2) { opacity: 0.7; }

.tv-stage { height: clamp(400px, 42vw, 560px); }
.tv-big { position: absolute; top: 44px; left: 6%; right: 6%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--screen); border: 8px solid var(--raised); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.tv-row { position: absolute; left: 6%; right: 6%; display: flex; gap: 3%; }
.tv-row i { flex: 1; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--raised); }
.tv-row.second i { background: var(--panel); }
.tv-dialog { position: absolute; left: 50%; top: 50%; width: min(260px, 58%); padding: 18px 20px; transform: translate(-50%, -50%); border-radius: 14px; background: var(--menu); border: 1px solid var(--stroke-3); box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.35), 0 24px 50px rgba(0, 0, 0, 0.6); text-align: center; }
.tv-dialog p { font-size: 13px; color: var(--secondary); }
.tv-dialog .code { margin-top: 8px; font-size: clamp(22px, 2.4vw, 30px); }
.tv-dialog .pair-buttons span { padding: 8px 0; font-size: 13px; }
.tv-phone { position: absolute; right: 8%; bottom: -230px; width: clamp(170px, 15vw, 200px); transform: rotate(10deg); transform-origin: 50% 0; }
.tv-phone .phone { padding: 7px; border-radius: 36px; }
.tv-phone .phone img { border-radius: 30px; }
.tv-phone .arcs { top: -46px; width: 64px; height: 36px; margin-left: -32px; }

.finale { display: flex; flex-direction: column; align-items: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--stroke); background: var(--grid); text-align: center; }
.finale img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.finale .title { margin-top: 32px; max-width: none; }
.finale p { margin-top: 16px; font-size: 18px; color: var(--secondary); }
.finale .actions { justify-content: center; margin-top: 32px; }

.privacy { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(40px, 6vw, 96px); }
.privacy > div { flex: 1 1 380px; min-width: 0; }
.privacy-body { display: flex; gap: 20px; padding-top: 8px; }
.privacy-body svg { flex: none; color: var(--accent); }
.privacy-body p { font-size: 18px; line-height: 1.65; color: var(--secondary); }

@media (max-width: 560px) {
  .brand { font-size: 17px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .nav a { padding: 0 10px; font-size: 14px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .btn { width: 100%; }
  .status { width: 100%; }
}
