/* SmallWorks site. Ink, paper and glass, like the app: colour comes from the widgets. */
:root {
  color-scheme: light dark;
  --paper: #f6f5f3;
  --ink: #0b0b0f;
  --card: #ffffff;
  --quiet: #6c6c75;
  --line: rgba(11, 11, 15, 0.1);
  --bench: #e9e8e6;
  --dot: rgba(11, 11, 15, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #050506;
    --ink: #f3f2ef;
    --card: #19191c;
    --quiet: #9a9aa3;
    --line: rgba(255, 255, 255, 0.12);
    --bench: #121214;
    --dot: rgba(255, 255, 255, 0.16);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); }
.quiet { color: var(--quiet); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav nav a { white-space: nowrap; text-decoration: none; color: var(--quiet); padding: 8px 0; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; margin-top: 18px; }
h1 {
  margin: 0; font-size: clamp(58px, 10.5vw, 136px); font-weight: 800;
  letter-spacing: -0.05em; line-height: 0.9; text-wrap: balance;
}
.lede { margin: 0 0 10px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; max-width: 30em; text-wrap: pretty; }

.belt {
  margin-top: 56px; border-radius: 36px; overflow: hidden; position: relative;
  background-color: var(--bench);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  padding: 44px 0 34px;
}
.belt-track { display: flex; gap: 44px; width: max-content; animation: belt 70s linear infinite; padding-left: 44px; }
.belt:hover .belt-track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.belt-item { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.belt-item .mono { color: var(--quiet); white-space: nowrap; }
.belt-item .mono::before { content: "“"; }
.belt-item .mono::after { content: "”"; }
.belt-notes { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--quiet); font-size: 13px; }

/* Sections */
section { padding-top: 120px; }
h2 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.body { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--quiet); max-width: 34em; margin: 18px 0 0; text-wrap: pretty; }
.body b { color: var(--ink); font-weight: 600; }

/* Try it */
.try { display: grid; grid-template-columns: 372px 1fr; gap: 72px; align-items: start; }
.try-phone { position: sticky; top: 84px; }
.try-note { margin: 14px 0 0; text-align: center; color: var(--quiet); }
.scenes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.scenes button {
  width: 100%; text-align: left; padding: 18px 30px 18px 0; position: relative;
  border-top: 1px solid var(--line); display: block;
}
.scenes b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.scenes span { display: block; color: var(--quiet); font-size: 15px; line-height: 1.4; margin-top: 3px; }
.scenes svg { position: absolute; right: 2px; top: 22px; width: 16px; height: 16px; color: var(--quiet); transition: transform 0.2s var(--ease-out), color 0.2s; }
.scenes button:hover svg, .scenes button.playing svg { transform: translate(2px, -2px); color: var(--ink); }
.scenes button.playing b::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #30d158;
  margin-left: 8px; vertical-align: middle; animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: var(--card);
}
.try-foot { display: flex; justify-content: flex-end; margin-top: 22px; }

/* Spec */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bench {
  border-radius: 36px; padding: 44px 28px;
  background-color: var(--bench);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.spec {
  font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.55;
  border: 1.5px dashed color-mix(in srgb, var(--quiet) 60%, transparent); border-radius: 22px;
  padding: 14px 18px; background: var(--paper);
}
.spec .label { display: block; margin-bottom: 6px; }
.spec div { display: flex; }
.spec dt, .spec .k { width: 84px; color: var(--quiet); flex: none; }
.arrow-down { width: 2px; height: 26px; background: repeating-linear-gradient(var(--quiet) 0 5px, transparent 5px 9px); }
.chip-brain {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.chip-brain::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.brains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* Promises */
.promises { list-style: none; padding: 0; margin: 28px 0 0; }
.promises li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.promises li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background-color: #0b0b0f; transform: translateY(5px);
  box-shadow: 0 0 0 1px var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  background-size: 100%;
}
.wire { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 380px; }
.wire-box { width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 9%, transparent); display: grid; place-items: center; color: var(--quiet); flex: none; }
.wire-box svg { width: 22px; height: 22px; }
.wire-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--quiet) 0 5px, transparent 5px 9px); min-width: 16px; }
.wire-host { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; background: #0b0b0f; color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; flex: none; }
.wire-host svg { width: 14px; height: 14px; }
.wire-x { width: 24px; height: 24px; border-radius: 50%; background: #ff3b30; color: #fff; display: grid; place-items: center; flex: none; }
.wire-x svg { width: 12px; height: 12px; }
.wire-cap { color: var(--quiet); margin: -8px 0 6px; text-align: center; }

/* Everywhere cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { border-radius: 32px; background: var(--bench); padding: 28px 24px 24px; display: flex; flex-direction: column; min-height: 330px; }
.card-art { flex: 1; display: grid; place-items: center; padding-bottom: 22px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.card p { margin: 4px 0 0; color: var(--quiet); font-size: 15px; line-height: 1.4; }
.lock-mini { width: 210px; border-radius: 30px; padding: 22px 16px 18px; color: #fff; text-align: center; background: linear-gradient(160deg, #31456e, #7a5a86 60%, #d48a6a); font-family: var(--round); }
.lock-mini .d { font-size: 13px; font-weight: 600; opacity: 0.9; }
.lock-mini .t { font-size: 62px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.acc { margin-top: 12px; display: flex; gap: 8px; text-align: left; }
.acc > div { flex: 1; border-radius: 14px; background: rgba(255, 255, 255, 0.2); padding: 8px 10px; font-size: 11px; font-weight: 700; line-height: 1.25; }
.acc b { display: block; font-size: 19px; font-weight: 700; }
.island { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 99px; height: 44px; padding: 0 16px 0 14px; font-family: var(--round); font-weight: 700; font-size: 15px; min-width: 220px; }
.island svg { width: 16px; height: 16px; color: #0a84ff; }
.island span:last-child { margin-left: auto; color: #0a84ff; font-variant-numeric: tabular-nums; }
.controls { display: flex; gap: 14px; }
.control { width: 78px; height: 78px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); display: grid; place-items: center; }
.control svg { width: 30px; height: 30px; }
.control.on { background: #0a84ff; color: #fff; }

/* CTA + footer */
.cta { text-align: center; padding-bottom: 20px; }
.cta img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); margin: 0 auto 28px; display: block; }
.cta .body { margin-left: auto; margin-right: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; margin-top: 28px; }
.btn.soon { background: transparent; color: var(--ink); border: 1.5px dashed color-mix(in srgb, var(--quiet) 70%, transparent); }
footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--quiet); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .grow { margin-right: auto; }
.fine { max-width: 1200px; margin: 14px auto 0; padding: 0 24px; font-size: 13px; }

/* Text pages */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 24px 0; }
.doc h1 { font-size: clamp(42px, 7vw, 68px); line-height: 0.95; }
.doc h2 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; margin: 48px 0 10px; }
.doc p, .doc li { line-height: 1.6; }
.doc li { margin: 6px 0; }
.doc ul { padding-left: 22px; }
.doc a { text-underline-offset: 3px; }
.doc .updated { display: block; margin-top: 18px; }
.doc .short { border: 1.5px dashed color-mix(in srgb, var(--quiet) 60%, transparent); border-radius: 22px; padding: 6px 20px 10px; margin-top: 36px; }
.doc .short h2 { margin-top: 14px; }
.faq { border-top: 1px solid var(--line); padding: 18px 0; }
.faq b { display: block; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 4px; }
.faq p { margin: 0; color: var(--quiet); }

/* ---------- Widgets (sizes in --u so one widget draws at any scale) ---------- */
.w {
  --u: 1.4px; --a: #0a84ff; --bg: #fff; --fg: #0b0b0f; --mut: #8a8a93; --h: var(--a); --m: var(--a);
  position: relative; flex: none; overflow: hidden; display: flex; flex-direction: column; text-align: left;
  width: calc(var(--u) * 100); height: calc(var(--u) * 100);
  border-radius: calc(var(--u) * 17); padding: calc(var(--u) * 11);
  background: var(--bg); color: var(--fg); font-family: var(--round);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 calc(var(--u) * 8) calc(var(--u) * 20) calc(var(--u) * -10) rgba(0, 0, 0, 0.28);
  transition: background 0.35s, width 0.4s var(--ease-out), height 0.4s var(--ease-out);
}
.w.sz-medium, .w.sz-large { width: calc(var(--u) * 200 + var(--gap, 12px)); }
.w.sz-large { height: calc(var(--u) * 200 + var(--gap, 12px)); }
.w { --cut: #fff; }
.w.s-tinted { --bg: color-mix(in srgb, var(--a) 13%, #fff); --cut: color-mix(in srgb, var(--a) 13%, #fff); }
.w.s-graphite { --cut: #232326; } .w.s-night { --cut: #1b1118; } .w.s-sky { --cut: var(--a); } .w.s-paper { --cut: #faf6ee; }
.belt .w { --u: 1.55px; } .bench .w { --u: 1.5px; }
@media (max-width: 620px) { .belt .w { --u: 1.3px; } .bench .w { --u: 1.2px; } }
.w.s-paper { --bg: #faf6ee; }
.w.s-graphite { --bg: linear-gradient(#2d2d31, #151517); --fg: #fff; --mut: rgba(255, 255, 255, 0.55); }
.w.s-night { --bg: linear-gradient(color-mix(in srgb, var(--a) 26%, #120c12), color-mix(in srgb, var(--a) 14%, #0c080c)); --fg: #fff; --mut: rgba(255, 255, 255, 0.55); --h: color-mix(in srgb, var(--a) 72%, #fff); --m: color-mix(in srgb, var(--a) 72%, #fff); }
.w.s-sky { --bg: linear-gradient(color-mix(in srgb, var(--a) 78%, #fff), var(--a)); --fg: #fff; --mut: rgba(255, 255, 255, 0.82); --h: #fff; --m: #fff; }
.w-head { display: flex; align-items: center; gap: calc(var(--u) * 4.5); color: var(--h); font-weight: 700; font-size: calc(var(--u) * 11.5); position: relative; white-space: nowrap; }
.w-head svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); flex: none; }
.w-date { margin-left: auto; color: var(--mut); font-weight: 600; font-size: calc(var(--u) * 10); display: none; }
.w-body { margin-top: auto; display: flex; align-items: baseline; gap: calc(var(--u) * 4); position: relative; }
.w-num { font-size: calc(var(--u) * 31); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-num.long { font-size: calc(var(--u) * 21); }
.w-unit { font-size: calc(var(--u) * 12.5); color: var(--mut); font-weight: 500; }
.w-cap { font-size: calc(var(--u) * 10); font-weight: 600; color: var(--mut); margin-top: calc(var(--u) * 3); position: relative; }
.w-bar { height: calc(var(--u) * 4); border-radius: 99px; background: color-mix(in srgb, var(--m) 20%, transparent); margin-top: calc(var(--u) * 8); position: relative; }
.w-bar i { display: block; height: 100%; width: var(--p, 50%); background: var(--m); border-radius: inherit; transition: width 0.5s var(--ease-out); }
.w-dots { display: flex; gap: calc(var(--u) * 2.5); margin-top: calc(var(--u) * 8); }
.w-dots i { flex: 1; max-width: calc(var(--u) * 12); aspect-ratio: 1; border-radius: 50%; background: var(--m); }
.w-dots i.off { opacity: 0.22; }
.w-row { display: none; justify-content: space-between; margin-top: calc(var(--u) * 5); color: var(--mut); font-size: calc(var(--u) * 10); font-weight: 600; }
.w.sz-medium .w-date, .w.sz-large .w-date { display: block; }
.w.sz-medium .w-row, .w.sz-large .w-row { display: flex; }
.w.sz-large .w-num { font-size: calc(var(--u) * 58); }
.w.sz-large .w-unit { font-size: calc(var(--u) * 18); }
.w-plus {
  position: absolute; top: calc(var(--u) * 8); right: calc(var(--u) * 8); width: calc(var(--u) * 21); height: calc(var(--u) * 21);
  border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; z-index: 2;
  transition: transform 0.15s var(--ease-out);
}
.w.s-sky .w-plus { background: #fff; color: var(--a); }
.w-plus svg { width: 55%; height: 55%; }
.w-plus:active { transform: scale(0.88); }
.w-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p, 50%); background: var(--a); transition: height 0.6s var(--ease-out); }
.w.has-fill .w-body, .w.has-fill .w-cap { color: #fff; }
.w.has-fill .w-unit { color: rgba(255, 255, 255, 0.85); }
.w-note { margin-top: auto; font-family: var(--serif); font-size: calc(var(--u) * 13); line-height: 1.22; font-weight: 500; }
.w.bump .w-num { animation: bump 0.32s var(--ease-out); }
@keyframes bump { 40% { transform: translateY(calc(var(--u) * -3)) scale(1.08); } }

/* ---------- Phone ---------- */
.phone {
  --paper: #f6f5f3; --ink: #0b0b0f; --card: #fff; --quiet: #85858e; --line: rgba(11, 11, 15, 0.09); --bench: #e6e5e3; --dot: rgba(11, 11, 15, 0.16);
  width: 350px; height: 734px; margin: 0 auto; padding: 10px; border-radius: 56px; background: #0b0b0f;
  box-shadow: 0 0 0 1.5px #2c2c31 inset, 0 40px 70px -30px rgba(0, 0, 0, 0.5), 0 12px 24px -12px rgba(0, 0, 0, 0.3);
  position: relative; color: var(--ink); font: 14px/1.3 var(--sans); user-select: none; -webkit-user-select: none;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--paper); isolation: isolate; }
.island-hw { position: absolute; top: 11px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 99px; background: #000; z-index: 40; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 39; display: flex; align-items: center; justify-content: space-between; padding: 4px 28px 0 34px; font-weight: 700; font-size: 15px; pointer-events: none; transition: color 0.3s; }
.status svg { height: 12px; width: auto; }
.screen.light-status .status { color: #fff; }

.scr { position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.scr.push { transform: translateX(102%); z-index: 10; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.2); }
.scr.push.on { transform: none; }
.scr.fade { opacity: 0; pointer-events: none; z-index: 20; }
.scr.fade.on { opacity: 1; pointer-events: auto; }
#s-home { background: linear-gradient(#cfe0f3 0, var(--paper) 230px); transition: transform 0.45s var(--ease-out), filter 0.45s, border-radius 0.45s; transform-origin: 50% 0; }
.screen.sheet-open #s-home { transform: scale(0.94) translateY(12px); border-radius: 30px; filter: brightness(0.78); }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 54px 16px 0; }
.scroll::-webkit-scrollbar { display: none; }

.round-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.72); box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.06), 0 6px 14px -8px rgba(0, 0, 0, 0.3); flex: none; transition: transform 0.15s var(--ease-out); }
.round-btn svg { width: 17px; height: 17px; }
.round-btn.inked { background: var(--ink); color: #fff; }
.round-btn:active, .ph-chip:active, .ink-btn:active, .composer:active { transform: scale(0.96); }
.ph-title { margin: 6px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.ph-sub { margin: 7px 0 12px; font-size: 12.5px; color: var(--quiet); }
.home-top { display: flex; justify-content: flex-end; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 150px; }
.grid .w { --u: 1.43px; cursor: pointer; }
.grid .w.sz-medium, .grid .w.sz-large { grid-column: span 2; }
.grid .w.new { animation: pop 0.55s var(--ease-out); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

.bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 0 22px; background: linear-gradient(transparent, var(--paper) 38%); z-index: 5; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.ph-chip { flex: none; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.07), 0 4px 10px -6px rgba(0, 0, 0, 0.25); display: inline-flex; align-items: center; gap: 6px; transition: transform 0.15s var(--ease-out); white-space: nowrap; }
.ph-chip svg { width: 13px; height: 13px; }
.composer { display: flex; align-items: center; gap: 9px; margin: 0 14px; height: 48px; padding: 0 7px 0 15px; border-radius: 99px; background: rgba(255, 255, 255, 0.82); box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.07), 0 10px 24px -12px rgba(0, 0, 0, 0.35); width: calc(100% - 28px); text-align: left; transition: transform 0.15s var(--ease-out); }
.composer > svg { width: 16px; height: 16px; flex: none; }
.composer span, .composer input { flex: 1; min-width: 0; color: var(--quiet); font-size: 14px; }
.composer input { border: 0; background: none; outline: 0; font: inherit; color: var(--ink); font-size: 16px; transform: scale(0.875); transform-origin: 0 50%; }
.composer input::placeholder { color: var(--quiet); }
.composer i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.composer i svg { width: 16px; height: 16px; }
.composer .send { background: var(--ink); color: #fff; }

/* Sheet */
.sheet { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; z-index: 30; background: var(--paper); border-radius: 34px 34px 0 0; transform: translateY(105%); transition: transform 0.5s var(--ease-out); display: flex; flex-direction: column; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.3); }
.sheet.on { transform: none; }
.sheet-bar { display: flex; justify-content: space-between; padding: 14px 16px 0; }
.sheet-body { flex: 1; overflow-y: auto; padding: 22px 16px 24px; scrollbar-width: none; display: flex; flex-direction: column; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-body > * { animation: rise 0.4s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ask-box { margin-top: 14px; min-height: 92px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.07), 0 10px 24px -14px rgba(0, 0, 0, 0.3); padding: 14px 16px; }
.ask-box textarea { width: 100%; height: 64px; border: 0; outline: 0; resize: none; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 0; }
.row-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.brain { font-family: var(--mono); font-size: 10.5px; font-weight: 700; }
.brain::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.lockline { display: flex; gap: 6px; color: var(--quiet); font-size: 11px; margin: 12px 0 0; line-height: 1.35; }
.lockline svg { width: 11px; height: 11px; flex: none; margin-top: 1px; }
.ph-label { font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--quiet); margin: 18px 0 0; }
.stage { border-radius: 26px; background-color: var(--bench); background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 14px 14px; display: grid; place-items: center; min-height: 196px; padding: 20px 10px; position: relative; --gap: 0px; }
.stage .w { --u: 1.5px; }
.stage .w.sz-medium { --u: 1.25px; }
.stage .w.sz-large { --u: 0.78px; }
.ghost { width: 150px; height: 150px; border-radius: 26px; border: 1.5px dashed rgba(11, 11, 15, 0.35); display: grid; place-items: center; color: var(--quiet); }
.ghost svg { width: 26px; height: 26px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph-spec { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; line-height: 1.6; border: 1.5px dashed rgba(11, 11, 15, 0.3); border-radius: 20px; padding: 12px 16px; min-height: 132px; }
.ph-spec b { display: block; font-size: 9.5px; letter-spacing: 0.12em; color: var(--quiet); margin-bottom: 3px; }
.ph-spec div { display: flex; animation: rise 0.3s var(--ease-out) both; }
.ph-spec span { width: 70px; color: var(--quiet); flex: none; }
.sheet-h { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.sheet-p { margin: 8px 0 14px; color: var(--quiet); font-size: 13.5px; line-height: 1.4; }
.ink-btn { height: 50px; border-radius: 99px; background: linear-gradient(#26262c, #0b0b0f); color: #fff; font-weight: 700; font-size: 15px; width: 100%; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.18) inset; transition: transform 0.15s var(--ease-out); margin-top: auto; flex: none; }
.text-btn { height: 40px; font-weight: 600; font-size: 14px; color: var(--quiet); width: 100%; flex: none; }
.spacer { flex: 1; min-height: 14px; animation: none; }
.ticks { list-style: none; margin: 14px 0; padding: 0; background: #fff; border-radius: 22px; }
.ticks li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; font-size: 13.5px; }
.ticks li + li { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: #0b0b0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/100%; }
.phone .wire { margin: 18px auto 4px; }
.phone .wire-box { background: rgba(11, 11, 15, 0.08); }
.found { text-align: center; font-family: var(--round); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 0; }
.found small { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--quiet); letter-spacing: 0; margin-top: 2px; }

/* Detail */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 52px 16px 10px; font-weight: 700; font-size: 15px; flex: none; }
.detail-scroll { flex: 1; overflow-y: auto; padding: 0 16px 130px; scrollbar-width: none; }
.detail-scroll::-webkit-scrollbar { display: none; }
.seg { display: flex; background: rgba(11, 11, 15, 0.07); border-radius: 99px; padding: 2px; margin-top: 12px; }
.seg button { flex: 1; height: 28px; border-radius: 99px; font-size: 12px; font-weight: 600; transition: background 0.2s, box-shadow 0.2s; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.25); }
.layouts { display: flex; gap: 12px; margin-top: 8px; }
.layouts button { font-size: 10.5px; font-weight: 600; color: var(--quiet); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.layouts .w { --u: 0.7px; pointer-events: none; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.2s; }
.layouts button[aria-pressed="true"] { color: var(--ink); font-weight: 800; }
.layouts button[aria-pressed="true"] .w { outline-color: var(--ink); }
.swatches { display: flex; gap: 9px; margin-top: 8px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.2s, transform 0.15s var(--ease-out); }
.swatches button[aria-pressed="true"] { outline-color: var(--ink); }
.swatches button:active { transform: scale(0.9); }
.rows { background: #fff; border-radius: 22px; margin-top: 18px; }
.rows button, .rows > div { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; font-size: 14.5px; text-align: left; }
.rows > * + * { border-top: 1px solid var(--line); }
.rows i { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.rows i svg { width: 14px; height: 14px; }
.rows em { margin-left: auto; font-style: normal; color: var(--quiet); font-size: 13.5px; }
.rows .chev { width: 12px; height: 12px; color: #c3c3c8; flex: none; }
.rows.plain button, .rows.plain > div { padding: 13px 16px; }
.rows .danger { color: #ff3b30; }
.compare { position: absolute; inset: 0; z-index: 12; background: var(--paper); display: flex; flex-direction: column; padding: 60px 16px 22px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.compare.on { opacity: 1; pointer-events: auto; }
.compare .stage { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding: 22px 8px 14px; }
.compare .stage .w { --u: 1.22px; }
.compare figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.compare figcaption { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); }
.working { display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--quiet); height: 30px; margin-bottom: 8px; }
.working svg { width: 14px; height: 14px; animation: spin 1.6s linear infinite; }

/* Settings */
.phone-card { background: #0b0b0f; color: #fff; border-radius: 22px; padding: 14px 16px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; margin-top: 12px; }
.phone-card b { display: block; font-size: 9.5px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.55); margin-bottom: 6px; }
.phone-card .bars { display: flex; gap: 4px; margin-top: 10px; }
.phone-card .bars i { flex: 1; height: 4px; border-radius: 9px; background: var(--c); }
.set-label { font-size: 13px; font-weight: 700; color: var(--quiet); margin: 20px 16px -8px; }

/* Springboard and Lock Screen */
#s-spring { background: linear-gradient(165deg, #25365c, #6d5584 55%, #d98b6b); color: #fff; }
.sb, .ls { position: absolute; inset: 0; padding: 62px 22px 0; transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.sb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11.5px 0; justify-items: center; --gap: 11.5px; }
.sb-grid .w { --u: 1.315px; grid-column: span 2; grid-row: span 2; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); animation: pop 0.6s var(--ease-out) 0.25s both; }
.sb-grid .w.sz-medium { grid-column: span 4; grid-row: span 2; }
.sb-grid .w.sz-large { grid-column: span 4; grid-row: span 4; }
.app { width: 60px; height: 60px; border-radius: 15px; background: rgba(255, 255, 255, 0.22); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset; }
.sb-dock { position: absolute; left: 12px; right: 12px; bottom: 74px; height: 84px; border-radius: 30px; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.ls { text-align: center; font-family: var(--round); padding-top: 78px; }
.ls .d { font-size: 16px; font-weight: 600; opacity: 0.92; }
.ls .t { font-size: 96px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ls .acc { margin: 14px 4px 0; }
.ls .acc > div { font-size: 12px; padding: 10px 12px; border-radius: 16px; }
.ls .acc b { font-size: 22px; }
.ls .acc svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
#s-spring[data-mode="home"] .ls, #s-spring[data-mode="lock"] .sb { opacity: 0; pointer-events: none; transform: scale(0.96); }
.sb-foot { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.sb-foot button { height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 700; color: #fff; }
.sb-foot button[aria-pressed="true"] { background: #fff; color: #0b0b0f; }

/* Scripted tap marker */
.tapdot { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(11, 11, 15, 0.22); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.75) inset; z-index: 60; pointer-events: none; opacity: 0; transform: scale(1.5); transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.tapdot.on { opacity: 1; transform: scale(1); }
.home-ind { position: absolute; bottom: 7px; left: 50%; width: 118px; height: 4.5px; margin-left: -59px; border-radius: 9px; background: #0b0b0f; opacity: 0.85; z-index: 41; pointer-events: none; transition: background 0.3s; }
.screen.light-status .home-ind { background: #fff; }

#d-stage { position: sticky; top: 0; z-index: 3; box-shadow: 0 0 0 12px var(--paper); }

/* Responsive */
@media (min-width: 981px) and (max-height: 880px) { .phone { transform: scale(0.88); transform-origin: 50% 0; margin-bottom: -88px; } }
@media (min-width: 981px) and (max-height: 780px) { .phone { transform: scale(0.76); margin-bottom: -176px; } }
@media (min-width: 981px) and (max-height: 680px) { .phone { transform: scale(0.64); margin-bottom: -264px; } }
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 24px; }
  .try { grid-template-columns: 1fr; gap: 40px; }
  .try-phone { position: static; order: 2; }
  .try-copy { display: contents; }
  .try-copy .intro { order: 1; }
  .try-copy .list { order: 3; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  section { padding-top: 88px; }
  .split .bench { order: 2; }
}
@media (max-width: 620px) {
  .scenes { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .belt { border-radius: 28px; margin-top: 36px; }
  .belt-notes span:last-child { display: none; }
  .nav nav { gap: 16px; }
}
@media (max-width: 390px) {
  .phone { transform: scale(0.9); transform-origin: 50% 0; margin-bottom: -73px; }
  .try-phone { margin: 0 -24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt { overflow-x: auto; }
  .belt-track { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
