:root {
  color-scheme: light dark;
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #eef3fc;
  --text: #0c1a30;
  --muted: #56647a;
  --line: #dde5f2;
  --blue: #3478f6;
  --blue-deep: #1d5fd8;
  --sky-top: #dfeafe;
  --sky-bottom: #f7f9fd;
  --wave-1: #c9dcfd;
  --wave-2: #a9c6fb;
  --bezel: #10161f;
  --shadow: 0 18px 40px rgba(20, 50, 110, 0.14);
  --screen: #e4eeff;
  --window: #ffffff;
  --green: #2fbf5b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f18;
    --surface: #131b28;
    --surface-2: #172234;
    --text: #eef3fb;
    --muted: #9aa8bd;
    --line: #233149;
    --blue: #5b95ff;
    --blue-deep: #7aa9ff;
    --sky-top: #10203d;
    --sky-bottom: #0a0f18;
    --wave-1: #15284a;
    --wave-2: #1b3463;
    --bezel: #000000;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --screen: #17294a;
    --window: #2a3f66;
    --green: #3ad26b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
h1, h2, h3, .brand { font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  opacity: 0.7; transition: opacity 0.2s, background 0.2s;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { opacity: 1; background: color-mix(in srgb, var(--text) 6%, transparent); }
.menu summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: 48px; z-index: 10; min-width: 180px;
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.menu-panel a { padding: 8px 10px; border-radius: 10px; font-weight: 600; color: var(--text); }
.menu-panel a:hover { background: var(--surface-2); text-decoration: none; }
.menu-panel a[aria-current] { color: var(--blue); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); position: relative; overflow: hidden; }
.hero-body {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem;
  padding: 2.5rem 0 0;
}
.hero-copy { text-align: left; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.08; margin: 0 0 1rem; max-width: 14ch; }
.hero p.sub { color: var(--muted); font-size: 1.15rem; max-width: 30rem; margin: 0 0 1.6rem; }
@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; text-align: center; gap: 1.4rem; }
  .hero-copy { text-align: center; }
  .hero h1, .hero p.sub { margin-left: auto; margin-right: auto; }
}
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--text); color: var(--bg);
  border-radius: 12px; padding: 0.6rem 1.15rem; font-weight: 600; font-size: 0.98rem;
}
.badge small { display: block; font-weight: 500; font-size: 0.7rem; opacity: 0.75; line-height: 1.1; }
.badge span { text-align: left; line-height: 1.15; }
.badge:hover { text-decoration: none; }
.store { display: inline-block; }
.store img { width: 185px; height: 55px; }
.store:hover { opacity: 0.85; }
.note { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0 0; }
.scene { position: relative; height: 110px; margin-top: 0.5rem; }
.scene svg.waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; }

/* Line drawings: the mark's style, a dark outline with a blue dot. */
.body { stroke: var(--text); stroke-width: 6; }
.steps .body { stroke-width: 5; }
.screen-fill { fill: var(--surface); stroke: none; }
.win { fill: var(--window); stroke: none; }
.soft { stroke: var(--line); stroke-width: 5; }

/* The hero: a device and a Mac connecting. */
.connect { width: 100%; max-width: 30rem; height: auto; justify-self: center; overflow: visible; }
.connect .link { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 2 9; opacity: 0; transition: opacity 0.4s; }
.connect .dev { opacity: 0; transition: opacity 0.6s; }
.connect[data-device="phone"] .dev-phone,
.connect[data-device="tablet"] .dev-tablet,
.connect[data-device="fold"] .dev-fold { opacity: 1; }
.connect .hinge { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 5; }
.connect .mirror > rect:first-child { fill: var(--screen); }
.connect .mirror, .connect .desktop { opacity: 0; transition: opacity 0.6s; }
.connect .mac .screen-fill { transition: fill 0.6s; }
.connect .dot { fill: var(--blue); transform-box: fill-box; transform-origin: center; transition: transform 0.9s cubic-bezier(.5, 0, .2, 1); animation: breathe 2.4s ease-in-out infinite; }
.connect .ripple { fill: none; stroke: var(--blue); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.connect .pointer { fill: var(--text); stroke: var(--surface); stroke-width: 1.2; }
.connect .finger { fill: var(--blue); opacity: 0; }
.connect.linking .link { opacity: 0.6; animation: flow 0.9s linear infinite; }
.connect.linking .dot { animation: none; transform: translateX(-26px); }
.connect.linking.connected .dot { transform: translateX(0); }
.connect.connected .link { opacity: 0; }
.connect.connected .ripple { animation: ripple 0.9s ease-out 1; }
.connect.connected .mac .screen-fill { fill: var(--screen); }
.connect.connected .mirror, .connect.connected .desktop { opacity: 1; }
.connect.using .pointer { animation: glide 3.6s ease-in-out infinite; }
.connect.using .finger { animation: finger 3.6s ease-in-out infinite; }
.connect.ending .mirror, .connect.ending .desktop, .connect.ending .dev { opacity: 0; }
.connect.ending .mac .screen-fill { fill: var(--surface); }
.connect.still .dot { animation: none; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes flow { to { stroke-dashoffset: -11; } }
@keyframes ripple { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(3); } }
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(-34px, -14px); } 70% { transform: translate(18px, 10px); } }
@keyframes finger { 0%, 100% { opacity: 0.9; transform: translate(0, 0); } 35% { transform: translate(-12px, -6px); } 70% { transform: translate(7px, 4px); } }

/* Get started: three steps, each a small loop. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: left; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.4rem 1.5rem; position: relative; }
.step svg { width: 100%; height: auto; display: block; margin-bottom: 0.6rem; background: var(--surface-2); border-radius: 14px; }
.step .num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: 0.5rem 0.5rem 0 0; vertical-align: -0.15rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.85rem; }
.step h3 { display: inline; font-size: 1.15rem; }
.step p { margin-top: 0.35rem !important; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step .toggle-track { fill: var(--line); animation: track 4s ease-in-out infinite; }
.step .toggle-knob { fill: #fff; stroke: var(--line); stroke-width: 1; animation: knob 4s ease-in-out infinite; }
.step .row { fill: var(--surface-2); }
.step .row-icon { fill: var(--screen); }
.step .online { fill: var(--green); }
.step .found { animation: appear 4s ease-out infinite; }
.step .found-2 { animation-delay: 0.35s; }
.step .desk { fill: var(--screen); }
.step .pad { fill: var(--surface-2); }
.step .opened { animation: open 4s ease-in-out infinite; }
.step .tap { fill: var(--blue); transform-box: fill-box; transform-origin: center; animation: tap 4s ease-out infinite; }
@keyframes track { 0%, 30% { fill: var(--line); } 42%, 85% { fill: var(--green); } 100% { fill: var(--line); } }
@keyframes knob { 0%, 30% { transform: translateX(0); } 42%, 85% { transform: translateX(11px); } 100% { transform: translateX(0); } }
@keyframes appear { 0%, 20% { opacity: 0; transform: translateY(6px); } 35%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes open { 0%, 35% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tap { 0%, 15% { opacity: 0; transform: scale(0.6); } 25% { opacity: 0.9; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) {
  .step .toggle-track, .step .toggle-knob, .step .found, .step .opened, .step .tap, .connect .dot { animation: none; }
  .step .toggle-track { fill: var(--green); }
  .step .toggle-knob { transform: translateX(11px); }
  .step .tap { opacity: 0; }
}

/* Sections */
main section.wrap { margin-top: 5rem; }
main section.wrap:first-child { margin-top: 2rem; }
section h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 0.4rem; }
section .lede { color: var(--muted); margin: 0 0 2rem; max-width: 36rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.plan.pro { border-color: var(--blue); box-shadow: var(--shadow); }
.plan .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--surface-2); color: var(--blue-deep); }
.plan h3 { font-size: 1.35rem; margin: 0.2rem 0 0; }
.plan .price { font-size: 1.05rem; font-weight: 600; }
.plan .price em { font-style: normal; color: var(--muted); font-weight: 500; }
.plan p { margin: 0; color: var(--muted); }
.plan ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.beta { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; }
.beta h2 { margin-top: 0; }
.beta p { color: var(--muted); }
.button { display: inline-block; background: var(--blue); color: #fff; font-weight: 600; padding: 0.65rem 1.2rem; border-radius: 99px; text-decoration: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.8rem; }
.feature .icon { width: 52px; height: 52px; border-radius: 15px; background: var(--surface-2); color: var(--blue); display: grid; place-items: center; margin-bottom: 0.8rem; }
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* Private */
.private { display: flex; align-items: center; gap: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem; }
.private .shield { flex: none; width: 76px; height: 76px; border-radius: 22px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.private .shield svg { width: 40px; height: 40px; }
.private h2 { margin: 0 0 0.3rem; }
.private p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .private { flex-direction: column; align-items: flex-start; } }

/* Footer */
footer { margin-top: 4.5rem; border-top: 1px solid var(--line); padding: 1.4rem 0 2.2rem; font-size: 0.88rem; color: var(--muted); }
footer .wrap, footer .narrow { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; align-items: center; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--text); }

/* Text pages (Support, Privacy, Terms) */
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 1.5rem 0 0.2rem; }
.doc .lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.doc h2 { font-size: 1.3rem; margin: 2.2rem 0 0.5rem; }
.doc li { margin-bottom: 0.4rem; }
footer .legal { flex-basis: 100%; margin: 0.9rem 0 0; font-size: 0.8rem; max-width: 46rem; }
