/* The app's own typefaces, served with the page so it looks the same on every device: Inter for text, and a Helvetica (TeX Gyre Heros) for headlines. */
@font-face { font-family:"Inter"; src:url("fonts/inter_regular.ttf") format("truetype"); font-weight:400; font-display:swap; }
@font-face { font-family:"Inter"; src:url("fonts/inter_semibold.ttf") format("truetype"); font-weight:600 700; font-display:swap; }
@font-face { font-family:"Heros"; src:url("fonts/heros_bold.otf") format("opentype"); font-weight:400 900; font-display:swap; }
:root { --ink:#111114; --soft:#5d5d66; --line:#e7e7ec; --bg:#ffffff; --tint:#f5f5f8; --accent:#4a4fc4; }
@media (prefers-color-scheme: dark) { :root { --ink:#f1f1f4; --soft:#a4a4b0; --line:#2a2a32; --bg:#0f0f13; --tint:#17171d; --accent:#b9bcff; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { font-family: "Heros", Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight:700; letter-spacing:-0.02em; line-height:1.1; margin:0; }
a { color:inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header { display:flex; align-items:center; justify-content:space-between; padding: 20px 0; }
.mark { display:flex; align-items:center; gap:10px; font-weight:600; text-decoration:none; }
.mark img { width:30px; height:30px; }
nav { display:flex; align-items:center; }
nav a { margin-left:22px; color:var(--soft); text-decoration:none; font-size:15px; }
nav a:hover { color:var(--ink); }
nav a.pill { color:var(--bg); background:var(--ink); padding:8px 16px; border-radius:999px; font-weight:600; }

.hero { padding: 72px 0 40px; text-align:center; }
.hero h1 { font-size: clamp(44px, 8.5vw, 84px); }
.hero p { font-size: 20px; color:var(--soft); max-width: 28em; margin: 20px auto 0; }
.buttons { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.btn { display:inline-block; padding: 13px 24px; border-radius: 999px; border:1px solid var(--ink); text-decoration:none; font-weight:600; font-size:16px; transition: transform .15s ease; }
.btn.primary { background:var(--ink); color:var(--bg); }
.btn:hover { transform: translateY(-2px); }

/* The Desktop / Android switch: one highlight that slides between the two. */
.switch { position:relative; display:inline-grid; grid-template-columns:1fr 1fr; margin: 34px auto 22px; padding:4px; background:var(--tint); border-radius:999px; }
.switch button { position:relative; z-index:1; border:0; background:none; font: inherit; font-weight:600; font-size:15px; color:var(--soft); padding: 9px 26px; border-radius:999px; cursor:pointer; transition: color .25s ease; }
.switch button[aria-selected="true"] { color:var(--bg); }
.switch .thumb { position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); background:var(--ink); border-radius:999px; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
body[data-device="android"] .switch .thumb { transform: translateX(100%); }

.shot { margin:0; display:flex; justify-content:center; }
.shot img { display:block; max-width:100%; height:auto; border:1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(40,40,90,.35); }
.shot img.desktop { border-radius:16px; width:100%; }
.shot img.android { border-radius:34px; width: min(300px, 78vw); }
body[data-device="desktop"] .android, body[data-device="android"] .desktop { display:none; }

/* A feature: its words and its film side by side, each centred in its own half, so every row lines up with the next. */
.feature { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; justify-items:center; padding: 72px 0; border-top:1px solid var(--line); }
.feature .words { max-width: 22em; }
.feature.flip .words { order:2; }
.feature h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 14px; }
.feature p { color:var(--soft); font-size: 18px; margin:0; }
.clip { margin:0; display:flex; justify-content:center; }
.clip video { display:block; width: min(280px, 72vw); height:auto; border-radius:34px; border:1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(40,40,90,.35); background:var(--tint); }
.clip.wide video { width: min(360px, 86vw); border-radius:22px; }
.film { padding: 72px 0; border-top:1px solid var(--line); text-align:center; }
.film h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 14px; }
.film p { color:var(--soft); font-size: 18px; margin: 0 auto 28px; max-width: 30em; }
.film .more { display:inline-block; margin-top: 22px; font-weight:600; color:var(--ink); }

.grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background:var(--line); border:1px solid var(--line); border-radius: 20px; overflow:hidden; margin: 24px 0 72px; }
.grid div { background:var(--bg); padding: 24px; }
.grid h3 { font-size: 18px; margin-bottom: 8px; }
.grid p { margin:0; color:var(--soft); font-size: 15px; }

footer { border-top:1px solid var(--line); padding: 28px 0 44px; color:var(--soft); font-size: 14.5px; }
footer a { margin-right:18px; }
footer p { margin: 12px 0 0; }
article { padding: 48px 0 80px; max-width: 700px; }
article h1 { font-size: 44px; margin-bottom: 26px; }
article h2 { font-size: 23px; margin: 34px 0 8px; }
article p, article li { color:var(--soft); }
article p { margin: 0 0 12px; }

article.wide { max-width: none; }
article.wide > p { max-width: 700px; }
article a { color:var(--accent); }
/* The comparison table: scrolls sideways on a narrow screen instead of squeezing its columns. */
.table { overflow-x:auto; margin: 22px 0 10px; border:1px solid var(--line); border-radius:16px; background:var(--bg); }
.table table { border-collapse:collapse; width:100%; min-width: 880px; font-size: 14.5px; }
.table th, .table td { text-align:left; vertical-align:top; padding: 12px 14px; border-bottom:1px solid var(--line); color:var(--soft); }
.table tr:last-child td { border-bottom:0; }
.table thead th { color:var(--ink); font-weight:600; background:var(--tint); white-space:nowrap; }
.table tbody th { color:var(--ink); font-weight:600; white-space:nowrap; }
.table td.ours { color:var(--ink); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.table thead th.ours { background: color-mix(in srgb, var(--accent) 16%, var(--tint)); }
.sources { font-size: 14.5px; }
.sources li { margin-bottom: 6px; overflow-wrap:anywhere; }

/* The short film of what is new: upright, like a phone. */
.reel { display:flex; justify-content:center; margin:0; }
.reel video { display:block; width: min(300px, 78vw); height:auto; border-radius:34px; border:1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(40,40,90,.35); background:var(--tint); }
article .reel { justify-content:flex-start; margin: 8px 0 28px; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; text-align:center; }
  .feature.flip .words { order:0; }
  .feature p { margin: 0 auto; }
  .film { padding: 48px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  nav a:not(.pill) { display:none; }
  .hero { padding-top: 44px; }
}

/* The same slowly moving colour as the app: three soft patches on a long circuit, tinted by the hour. */
:root { --g1:#7DBBFF; --g2:#8FEBDB; --g3:#C8B4FF; --glow:.42; }
html[data-phase="morning"] { --g1:#FFB98A; --g2:#9CCBFF; --g3:#FFE08A; }
html[data-phase="evening"] { --g1:#FF9E80; --g2:#C98BFF; --g3:#FFC978; }
html[data-phase="night"] { --g1:#5B63D6; --g2:#7A3FB8; --g3:#1E6FA8; }
@media (prefers-color-scheme: dark) { :root { --glow:.30; } }
html::before, body::before, body::after {
  content:""; position:fixed; z-index:-1; pointer-events:none; left:50%; top:34%; width:110vmax; height:110vmax; margin:-55vmax 0 0 -55vmax; border-radius:50%;
  opacity:var(--glow); background: radial-gradient(closest-side, var(--g1), transparent); animation: orbit 26s linear infinite; will-change: transform;
}
body::before { background: radial-gradient(closest-side, var(--g2), transparent); animation-delay:-8.7s; }
body::after { background: radial-gradient(closest-side, var(--g3), transparent); animation-delay:-17.3s; }
@keyframes orbit { from { transform: rotate(0deg) translate(34vw, 6vh) rotate(0deg); } to { transform: rotate(360deg) translate(34vw, 6vh) rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { html::before, body::before, body::after { animation: none; } html::before { transform: translate(-30vw, 0); } body::after { transform: translate(30vw, 10vh); } }
.switch, .grid > div { backdrop-filter: blur(8px); }
button, input, select, textarea { font-family: inherit; }
