:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-ink: #0066cc;
  --night: #000000;
  --night-2: #1d1d1f;
  --terminal: rgb(23, 22, 28);
  --radius-tile: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "palt";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav .wrap { display: flex; align-items: center; height: 52px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--ink); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; border-radius: 980px;
  font-size: 13px; font-weight: 500; padding: 6px 14px; white-space: nowrap;
}
.pill:hover { background: #0077ed; text-decoration: none; }
.pill.big { font-size: 17px; padding: 12px 24px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; text-align: center; overflow: hidden; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.eyebrow img { display: inline-block; width: 26px; height: 26px; border-radius: 6px; vertical-align: -5px; margin-right: 8px; }
h1 {
  font-size: clamp(40px, 7.4vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 auto;
}
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 640px; margin: 22px auto 0; line-height: 1.55; }
.cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.store-badge:hover { text-decoration: none; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 20px 0 16px;
  background: #000; color: #fff; border-radius: 12px;
  border: 1px solid #a6a6a6;
}
.badge svg { width: 22px; height: 26px; }
.badge-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; text-align: left; }
.badge-text small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.textlink { font-size: 17px; }
.textlink::after { content: " ›"; }

/* the mirrored demo: same screen, twice */
.stage {
  container-type: inline-size;
  position: relative;
  width: min(1040px, 100%);
  margin: 56px auto 0;
  aspect-ratio: 1040 / 640;
}
.mac { position: absolute; left: 0; top: 0; width: 82cqw; }
.mac-screen {
  position: relative;
  container-type: inline-size;
  box-sizing: content-box; /* the bezel sits outside, so the screen keeps the image's 16:10 */
  aspect-ratio: 16 / 10;
  background: #000;
  border: 1.5cqw solid #0d0d0f;
  border-bottom-width: 1.9cqw;
  border-radius: 2.2cqw 2.2cqw 0.6cqw 0.6cqw;
  overflow: hidden;
  box-shadow: 0 0 0 0.12cqw #3a3a3e;
}
.mac-screen > img { width: 100%; height: 100%; object-fit: cover; }
.mac-base {
  position: relative; left: -6%; width: 112%; height: 2.6cqw;
  background: linear-gradient(#e3e4e6, #c7c8cb 55%, #a9aaad);
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
  box-shadow: 0 1.6cqw 3cqw rgba(0, 0, 0, 0.18);
}
.mac-base::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 14%; height: 38%; background: #b3b4b7; border-radius: 0 0 1cqw 1cqw;
}
.phone { position: absolute; right: 2cqw; bottom: 0; width: 24cqw; }
.device-phone {
  position: relative;
  container-type: inline-size;
  box-sizing: content-box;
  aspect-ratio: 720 / 1564;
  border: 3.4cqw solid #111113;
  border-radius: 15cqw;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 0.9cqw #2c2c2e, 0 3cqw 6cqw rgba(0, 0, 0, 0.28);
}
.stage .device-phone { border-width: 0.85cqw; border-radius: 3.9cqw; box-shadow: 0 0 0 0.22cqw #2c2c2e, 0 2cqw 4cqw rgba(0, 0, 0, 0.3); }
.device-phone > img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 2.6%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.9%; background: #000; border-radius: 99px; z-index: 3; }

/* typed line, layered over each screen's terminal prompt */
.typed {
  position: absolute; z-index: 2;
  background: var(--terminal);
  color: #f2f2f7;
  font-family: "Hiragino Sans", "Noto Sans JP", var(--font);
  font-weight: 700;
  white-space: nowrap;
  display: flex; align-items: center;
  padding-right: 0.4em;
}
.typed .caret { display: inline-block; width: 0.32em; height: 1em; background: #8e8e9a; margin-left: 0.08em; animation: blink 1.1s steps(1) infinite; }
.mac-screen .typed { left: 6.0%; top: 71.3%; height: 3%; font-size: 1.12cqw; }
.device-phone .typed { left: 8.1%; top: 46.5%; height: 1.9%; font-size: 2.15cqw; }
@keyframes blink { 50% { opacity: 0; } }

.tap {
  position: absolute; z-index: 4; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw;
  border-radius: 50%; border: 0.7cqw solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.25);
  left: 30%; top: 47.4%; opacity: 0; transform: scale(0.4);
}
.tap.on { animation: tap 0.7s ease-out forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.pointer {
  position: absolute; z-index: 4; width: 1.6cqw; left: 60%; top: 40%;
  transition: left 0.6s cubic-bezier(.3,.7,.2,1), top 0.6s cubic-bezier(.3,.7,.2,1);
  filter: drop-shadow(0 0.15cqw 0.25cqw rgba(0,0,0,0.5));
}
.stage-caption { margin: 26px auto 0; font-size: 14px; color: var(--ink-2); }

/* ---------- sections ---------- */
section { padding: 110px 0; }
.mist { background: var(--mist); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.section-head p { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); margin: 18px 0 0; }

/* bento of features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius-tile);
  padding: 40px 36px 0;
  display: flex; flex-direction: column;
  min-height: 0;
}
.tile h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.tile p { color: var(--ink-2); font-size: 17px; margin: 12px 0 0; max-width: 30em; }
.tile .shot { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.pw { container-type: inline-size; width: min(260px, 70%); }
.pw .device-phone { width: auto; border-bottom: 0; border-radius: 15cqw 15cqw 0 0; margin-bottom: -1px; box-shadow: 0 0 0 0.9cqw #2c2c2e; }
.tile .shot .device-phone > img { height: auto; }
.tile .shot .crop { aspect-ratio: 720 / 1100; }
.w6 { grid-column: span 6; }
.w4 { grid-column: span 4; }
.w3 { grid-column: span 3; }
.w2 { grid-column: span 2; }
.tile.split { flex-direction: row; gap: 40px; align-items: stretch; padding: 0 0 0 48px; min-height: 480px; }
.tile.split .text { padding: 48px 0; align-self: center; flex: 1 1 52%; }
.tile.split .shot { margin: 0; padding: 40px 48px 0 0; flex: 1 1 48%; align-items: flex-end; }
.tile.dark { background: var(--night-2); color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
.tile.text-only, .tile.plain { padding-bottom: 8px; }

.gestures { margin: 26px 0 40px; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; font-size: 17px; align-items: center; }
.gestures dt { font-weight: 600; white-space: nowrap; }
.gestures dd { margin: 0; color: var(--ink-2); }

.keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 40px; }
kbd {
  font-family: var(--font); font-size: 17px; font-weight: 500;
  min-width: 46px; height: 46px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

/* changed tiles: what actually gets sent */
.tiles-viz {
  margin: 30px 0 40px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px;
  max-width: 420px;
}
.tiles-viz i { aspect-ratio: 1; border-radius: 3px; background: #e8e8ed; }
.tiles-viz i.hot { background: var(--blue); }
.tiles-legend { font-size: 13px; color: var(--ink-2); margin-top: -26px; margin-bottom: 40px; }

.ipad-shot { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.pw-ipad { container-type: inline-size; width: min(520px, 92%); }
.device-ipad {
  width: 100%;
  aspect-ratio: 1100 / 1466;
  border: 2.4cqw solid #111113; border-bottom: 0;
  border-radius: 6cqw 6cqw 0 0;
  overflow: hidden; background: #000;
  box-shadow: 0 0 0 0.5cqw #2c2c2e;
  max-height: 420px;
}
.device-ipad img { width: 100%; height: auto; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--mist); border-radius: var(--radius-tile); padding: 36px 32px 40px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px;
}
.step h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.3; margin: 18px 0 0; }
.step p { color: var(--ink-2); margin: 10px 0 0; font-size: 17px; }

/* ---------- privacy ---------- */
.night { background: var(--night); color: #f5f5f7; }
.night .section-head p { color: #a1a1a6; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { background: var(--night-2); border-radius: var(--radius-tile); padding: 36px 32px 40px; }
.promise svg { width: 40px; height: 40px; color: #2997ff; }
.promise h3 { font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; margin: 18px 0 0; }
.promise p { color: #a1a1a6; font-size: 16px; margin: 10px 0 0; }
.night a { color: #2997ff; }

/* ---------- download ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl { background: var(--paper); border-radius: var(--radius-tile); padding: 44px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dl .for { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.dl h3 { font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 0; }
.dl p { color: var(--ink-2); margin: 10px 0 24px; font-size: 17px; }
.dl .small { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.dl .action { margin-top: auto; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--ink-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); font-size: 17px; }

/* ---------- footer ---------- */
footer { background: var(--mist); color: var(--ink-2); font-size: 12px; padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-2); }
footer .copy { margin-left: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .w4, .w3, .w2 { grid-column: span 6; }
  .tile.split { flex-direction: column; padding: 40px 32px 0; gap: 0; }
  .tile.split .text { padding: 0; align-self: auto; }
  .tile.split .shot { padding: 28px 0 0; justify-content: center; }
  .steps, .promises, .downloads { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .pill { margin-left: auto; }
  .hero { padding-top: 44px; }
  .stage { aspect-ratio: 1040 / 760; }
  .mac { width: 90cqw; }
  .phone { width: 30cqw; right: 0; }
  .tile { padding: 32px 24px 0; min-height: 0; }
  .tile.split { padding: 32px 24px 0; }
  .tile.text-only { padding-bottom: 32px; }
  .dl { padding: 36px 24px; }
  footer .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .typed .caret { animation: none; }
  .pointer { transition: none; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--paper); border-radius: var(--radius-tile); padding: 36px 32px 38px; display: flex; flex-direction: column; }
.plan .name { font-size: 17px; font-weight: 600; color: var(--ink); }
.plan .price { font-size: clamp(36px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; line-height: 1.1; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.plan .note { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--blue); }
.trial {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  background: var(--paper); border-radius: var(--radius-tile); padding: 28px 32px; margin-bottom: 20px;
}
.trial strong { font-size: 22px; letter-spacing: -0.01em; }
.trial span { color: var(--ink-2); font-size: 15px; }
.fineprint { max-width: 820px; margin: 28px auto 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; text-align: center; }
.fineprint p { margin: 0 0 8px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }

/* language list in the footer */
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; width: 100%; margin-top: 6px; }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
#download .dl { background: var(--mist); }
.lang-tile { text-align: center; align-items: center; padding: 48px 36px; }
.lang-tile p { margin-left: auto; margin-right: auto; }
.lang-names { font-size: 15px; line-height: 2; color: var(--ink); max-width: 820px; }
/* long labels in some languages: let the gesture list wrap, and stack it on phones */
.gestures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gestures dt { white-space: normal; }
@media (max-width: 640px) {
  .gestures { grid-template-columns: 1fr; gap: 2px 0; }
  .gestures dd { margin-bottom: 12px; }
}
h1, h2, h3 { overflow-wrap: break-word; }
footer nav { flex-wrap: wrap; gap: 8px 20px; }

/* =========================================================
   Design A "Night": dark, the Mac screen's violet light glowing behind the devices.
   (Overrides the light Apple-style base above.)
   ========================================================= */
:root {
  --ink: #f5f5f7;
  --ink-2: #a1a1ab;
  --paper: #111118;
  --mist: #08080d;
  --line: #2a2a33;
  --blue: #2997ff;
  --blue-ink: #4aa8ff;
  --violet: #7b6cff;
  --night: #000000;
  --night-2: #111118;
  --tile-line: rgba(255, 255, 255, 0.08);
}
body { background: #05050a; }
.nav { background: rgba(5, 5, 10, 0.72); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav-links a { color: var(--ink); }
.pill { background: #fff; color: #000; }
.pill:hover { background: #e8e8ed; }

/* hero */
.hero { position: relative; padding-top: 72px; }
.hero .glow {
  position: absolute; left: 50%; top: 420px; width: 1200px; height: 720px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 76, 240, 0.62), rgba(42, 31, 138, 0.32) 55%, transparent 76%);
  filter: blur(30px); pointer-events: none;
}
.hero .wrap { position: relative; }
.kicker { font-size: 14px; letter-spacing: 0.24em; color: var(--violet); font-weight: 600; margin: 0; }
.hero h1 {
  font-size: clamp(44px, 7.6vw, 96px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin-top: 18px;
  background: linear-gradient(180deg, #ffffff 40%, #b9b3ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: var(--ink-2); max-width: 640px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 980px; padding: 13px 26px; font-size: 17px; font-weight: 600; }
.btn:hover { text-decoration: none; }
.btn.primary { background: #fff; color: #000; }
.btn.primary:hover { background: #e8e8ed; }
.btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.hero-note { color: var(--ink-2); }
.stage { margin-top: 70px; }
.mac-screen { border-color: #16161c; box-shadow: 0 0 0 0.12cqw #2a2a33, 0 4cqw 12cqw rgba(91, 76, 240, 0.4); }
.mac-base { background: linear-gradient(#5a5a62, #3a3a42 55%, #26262c); box-shadow: 0 1.6cqw 3cqw rgba(0, 0, 0, 0.6); }
.mac-base::before { background: #2e2e35; }
.stage .device-phone { border-color: #16161c; box-shadow: 0 0 0 0.22cqw #2a2a33, 0 2cqw 5cqw rgba(0, 0, 0, 0.7); }
.stage-caption { color: var(--ink-2); }
.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 90px auto 0;
  text-align: center; color: var(--ink-2); font-size: 15px;
}
.strip b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 4px; letter-spacing: -0.01em; }

/* sections */
.mist { background: var(--mist); }
.section-head p { color: var(--ink-2); }
.tile, .step, .promise, .plan, .dl { background: var(--paper); box-shadow: inset 0 0 0 1px var(--tile-line); }
.tile.dark { background: #000; }
.step::before { background: var(--violet); }
kbd { background: #1d1d26; color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--tile-line); }
.tiles-viz i { background: #22222c; }
.tiles-viz i.hot { background: var(--blue); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--violet); }
.night { background: #000; }
.promise svg { color: var(--violet); }
#download .dl { background: var(--paper); }
.faq details { border-bottom-color: var(--line); }
footer { background: #05050a; }
footer .wrap { border-top-color: var(--line); }
.pw .device-phone { border-color: #16161c; box-shadow: 0 0 0 0.9cqw #2a2a33; }
.device-ipad { border-color: #16161c; box-shadow: 0 0 0 0.5cqw #2a2a33; }
.island { background: #000; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 640px) { .hero .glow { top: 520px; width: 700px; } }
