:root {
  --paper: #f6f7f8;
  --paper-2: #eaeef1;
  --card: #ffffff;
  --ink: #121a22;
  --ink-2: #3f4a55;
  --ink-3: #6b7783;
  --line: #dce2e7;
  --accent: #1690ad;
  --accent-ink: #0d6f87;
  --night: #0b1a2c;
  --blue: #3a9ff2;
  --shadow: 0 1px 2px rgba(40, 30, 15, .06), 0 12px 32px rgba(40, 30, 15, .10);
  --radius: 22px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1318;
    --paper-2: #141b22;
    --card: #19212a;
    --ink: #eef3f6;
    --ink-2: #c3cdd5;
    --ink-3: #8c99a5;
    --line: #26313b;
    --accent: #2fb3cf;
    --accent-ink: #5cc8df;
    --night: #08121f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.keep) { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; line-height: 1.25; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }

section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lede { margin: 24px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  border: 1px solid transparent;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { opacity: .9; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn small { display: block; font-weight: 500; font-size: 11px; opacity: .75; letter-spacing: .02em; margin-bottom: 3px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--ink-3); font-size: 14px; padding: 0; list-style: none; }
.hero-badges li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; margin-right: 6px; }

.phones { position: relative; height: clamp(460px, 52vw, 640px); }
.phone {
  position: absolute;
  width: clamp(210px, 22vw, 290px);
  aspect-ratio: 603 / 1311;
  border-radius: 13% / 6%;
  padding: 2.6%;
  background: #111;
  box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 30px 60px rgba(40,25,5,.22);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 11% / 5%; }
.phones .phone:nth-child(1) { left: 4%; top: 6%; transform: rotate(-5deg); }
.phones .phone:nth-child(2) { right: 2%; top: 0; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phones { height: 430px; max-width: 460px; margin: 8px auto 0; width: 100%; }
  .phone { width: 196px; }
}

/* Book section */
.book { background: var(--paper-2); }
.compare {
  position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 1600 / 1200; background: #2b2520;
  user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  pointer-events: none;
}
.compare .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #333;
  display: grid; place-items: center; font: 700 18px/1 var(--sans); letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare .tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px;
  font: 600 13px/1 var(--sans); background: rgba(20,18,15,.72); color: #fff;
}
.compare .tag.l { left: 16px; } .compare .tag.r { right: 16px; }
.compare-note { font-size: 14px; color: var(--ink-3); margin: 14px 4px 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 16px/1 var(--sans); margin-bottom: 18px;
}
.step p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.book-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; align-items: start; }
.book-shots figure { margin: 0; }
.book-shots .phone { position: static; width: 100%; max-width: 280px; margin: 0 auto; transform: none; }
figcaption { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 16px; }
@media (max-width: 760px) {
  .book-shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .book-shots figure { scroll-snap-align: center; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); margin-bottom: 18px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Spotlights (text + phone) */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spot + .spot { margin-top: clamp(64px, 9vw, 110px); }
.spot.flip .spot-media { order: -1; }
.spot-media { display: flex; justify-content: center; gap: 20px; }
.spot-media .phone { position: static; transform: none; width: min(270px, 46%); }
.spot ul { padding: 0; margin: 22px 0 0; list-style: none; }
.spot li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); }
.spot li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.spot p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; }
  .spot.flip .spot-media { order: 0; }
}

/* Gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .phone { position: static; transform: none; width: 100%; }

/* Privacy */
.privacy-band { background: linear-gradient(135deg, var(--night), #0f4d61); color: #f2f6f8; }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band .eyebrow { color: #7fd6e8; }
.privacy-band .section-head p { color: rgba(242,246,248,.8); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.privacy-grid div { border-top: 2px solid #3cc0db; padding-top: 18px; }
.privacy-grid h3 { font-size: 20px; }
.privacy-grid p { margin: 8px 0 0; color: rgba(242,246,248,.74); font-size: 15px; }

@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* Closing CTA + footer */
.closing { text-align: center; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.closing .lede { margin: 18px auto 30px; }
.closing .cta { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Simple content pages */
.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 110px); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 28px 0; }
.contact-card a.btn { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* On-device flow */
.flow { display: grid; grid-template-columns: 1fr auto 1.4fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 52px; }
.flow .node { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: 18px; padding: 20px; }
.flow .node.core { border-color: #3cc0db; background: rgba(60,192,219,.12); }
.flow .node h3 { font-size: 18px; }
.flow .node p { margin: 6px 0 0; font-size: 14px; color: rgba(242,246,248,.74); }
.flow .node ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: rgba(242,246,248,.82); }
.flow .arrow { align-self: center; color: #7fd6e8; font-size: 26px; }
.flow-note { margin-top: 18px; font-size: 14px; color: rgba(242,246,248,.65); }
.flow-note strong { color: #fff; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
}
.hero-band { background: linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); font: 600 13px/1 var(--sans); margin-bottom: 20px; }
.pill svg { width: 15px; height: 15px; }

/* ---------- Hero showcase: app screen recordings ---------- */
.hero-grid { grid-template-columns: 1fr 1fr; }
.device { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; justify-content: center; }
.phone.big { position: relative; transform: none; left: auto; top: auto; width: min(300px, 62vw); aspect-ratio: 590 / 1282; border-radius: 15% / 7%; padding: 3%; }
.phone.big video { width: 100%; height: 100%; object-fit: cover; border-radius: 12% / 5.5%; display: block; background: #000; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tabs button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  color: var(--ink-3); font: 600 16px/1.2 var(--sans); cursor: pointer; min-width: 170px;
}
.tabs button svg { width: 24px; height: 24px; flex: none; }
.tabs button[aria-selected="true"] { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.tabs button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .25s linear; }
.showcase .caption { margin: 18px 0 0; text-align: center; font-size: 16px; color: var(--ink-2); min-height: 1.6em; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device { grid-template-columns: 1fr; justify-items: center; }
  .tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .tabs button { min-width: 0; padding: 10px 14px 12px; font-size: 14px; }
}

/* ---------- Use cases ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 28px; overflow: hidden; }
.case h3 { margin-top: 22px; font-size: 26px; }
.case p { margin: 8px 0 0; color: var(--ink-2); }
.collage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.collage.office { background: linear-gradient(150deg, #e3ecf2, #c8dbe6); }
.collage.study { background: linear-gradient(150deg, #efe7da, #dccdb6); }
@media (prefers-color-scheme: dark) {
  .collage.office { background: linear-gradient(150deg, #1c2f3b, #12384a); }
  .collage.study { background: linear-gradient(150deg, #2f2a22, #3c3226); }
}
.collage > img { position: absolute; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.22); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.collage .phone { position: absolute; width: 27%; padding: 1.6%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.office .i1 { width: 40%; left: 7%; top: 12%; transform: rotate(-5deg); }
.office .i2 { width: 37%; left: 33%; top: 18%; transform: rotate(4deg); }
.office .i3 { right: 6%; top: 7%; transform: rotate(3deg); }
.study .i1 { width: 64%; left: 5%; top: 17%; transform: rotate(-3deg); }
.study .i2 { width: 30%; left: 44%; top: 9%; transform: rotate(5deg); }
.study .i3 { right: 5%; top: 7%; transform: rotate(4deg); }
.case:hover .i1 { transform: rotate(-7deg) translate(-6px, -4px); }
.case:hover .i2 { transform: rotate(7deg) translate(4px, -8px); }
.case:hover .i3 { transform: rotate(0) translateY(-8px); }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
