/* Narmo phone app. Light by default, true black in dark mode, motion that respects "reduce motion". */

@font-face {
  font-family: "Inter Tight";
  src: url("inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --raised: #ffffff;
  --ink: #111214;
  --ink-2: #3f4044;
  --muted: #6b6c70; /* 4.8:1 on --bg, 4.5:1 on --surface-2: WCAG AA for small text */
  --faint: #b9b8b3;
  --line: rgba(17, 18, 20, 0.075);
  --line-2: rgba(17, 18, 20, 0.14);
  --on-ink: #ffffff;
  --good: #1c7a4b;
  --bad: #c4352a;
  --shadow: 0 1px 2px rgba(20, 16, 10, 0.04), 0 12px 32px -18px rgba(20, 16, 10, 0.18);
  --shadow-up: 0 -10px 40px -20px rgba(20, 16, 10, 0.3);
  --bar: rgba(246, 246, 243, 0.82);
  --shimmer: rgba(17, 18, 20, 0.85);
  --font: "Inter Tight", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.32, 1.25, 0.5, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: 58px;
}

/* Dark: actually dark. Pure black background, surfaces lifted just enough to read as layers. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121214;
  --surface-2: #1c1c1f;
  --raised: #1a1a1d;
  --ink: #f4f4f2;
  --ink-2: #c8c8cb;
  --muted: #86868c;
  --faint: #4a4a4f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --on-ink: #000000;
  --good: #3fcf82;
  --bad: #ff6a5b;
  --shadow: none;
  --shadow-up: 0 -1px 0 rgba(255, 255, 255, 0.06);
  --bar: rgba(0, 0, 0, 0.78);
  --shimmer: rgba(244, 244, 242, 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #121214;
    --surface-2: #1c1c1f;
    --raised: #1a1a1d;
    --ink: #f4f4f2;
    --ink-2: #c8c8cb;
    --muted: #86868c;
    --faint: #4a4a4f;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.14);
    --on-ink: #000000;
    --good: #3fcf82;
    --bad: #ff6a5b;
    --shadow: none;
    --shadow-up: 0 -1px 0 rgba(255, 255, 255, 0.06);
    --bar: rgba(0, 0, 0, 0.78);
    --shimmer: rgba(244, 244, 242, 0.9);
  }
}

/* Inside the investor demo's phone frame: the frame draws the status bar and home indicator. */
.framed { --top: 50px; --bottom: 26px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overscroll-behavior-y: none;
}
.framed, .framed body { scrollbar-width: none; }
.framed ::-webkit-scrollbar { display: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
.caption { font-size: 0.8125rem; color: var(--muted); }
.fine { margin-top: 28px; }
.center { text-align: center; }
.error { color: var(--bad); min-height: 1.3em; font-size: 0.875rem; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.gap-top { margin-top: 10px; }
.stack { display: grid; gap: 10px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 550; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s var(--ease), background 0.3s, opacity 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn-quiet { background: var(--surface-2); box-shadow: none; }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px var(--line); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-wide { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-provider { width: 100%; min-height: 56px; font-size: 1.0625rem; background: var(--surface); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); transition: transform 0.25s var(--ease), opacity 0.3s;
}
.icon-btn.soft { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.35; }
.icon-btn svg { width: 22px; height: 22px; }
.text-btn, .link-btn { border: 0; background: none; padding: 8px 4px; font-weight: 550; color: var(--ink); }
.link-btn { color: var(--muted); font-size: 0.9rem; }

.field, .big-input {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); outline: none;
  transition: box-shadow 0.25s;
}
.field:focus, .big-input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.big-input { min-height: 64px; font-size: 1.5rem; font-weight: 550; letter-spacing: -0.02em; margin-top: 28px; border-radius: 20px; }

/* ---------- entrance motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.rise { animation: rise 0.7s var(--ease) both; }
.rise:nth-child(2) { animation-delay: 0.06s; }
.rise:nth-child(3) { animation-delay: 0.12s; }
.rise:nth-child(4) { animation-delay: 0.18s; }
.rise:nth-child(5) { animation-delay: 0.24s; }

/* The Narmo mark assembles itself: the outline square settles, the solid one slides in over it. */
.mark-anim { position: relative; width: 56px; height: 56px; margin-bottom: 26px; }
.mark-anim.big { width: 76px; height: 76px; margin-bottom: 34px; }
.mark-anim .sq { position: absolute; border-radius: 30%; }
.mark-anim .sq-a { left: 0; top: 0; width: 62%; height: 62%; border: 3.5px solid var(--ink); animation: sq-a 1s var(--ease) both; }
.mark-anim .sq-b { right: 0; bottom: 0; width: 56%; height: 56%; background: var(--ink); animation: sq-b 1s 0.15s var(--spring) both; }
@keyframes sq-a { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes sq-b { from { opacity: 0; transform: translate(-40%, -40%) scale(0.5); } to { opacity: 1; transform: none; } }

/* ---------- sign-in ---------- */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; align-items: end; padding: calc(var(--top) + 40px) 24px calc(var(--bottom) + 36px); }
.signin-inner { max-width: 420px; width: 100%; margin: 0 auto; }
.signin h1 { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.015em; }
.signin .lead { margin: 12px 0 36px; font-size: 1.125rem; color: var(--ink-2); line-height: 1.45; }
.dev-form { margin-top: 14px; display: grid; gap: 8px; }

/* ---------- onboarding ---------- */
.onboarding { position: fixed; inset: 0; background: var(--bg); padding: calc(var(--top) + 18px) 24px calc(var(--bottom) + 24px); display: flex; flex-direction: column; }
.ob-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.ob-progress span { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width 0.5s var(--ease), background 0.5s; }
.ob-progress span.on { width: 22px; background: var(--ink); }
.ob-step { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.ob-step.leaving { animation: ob-out 0.35s var(--ease) both; }
@keyframes ob-out { to { opacity: 0; transform: translateX(-28px); filter: blur(4px); } }
.ob-body { padding-top: 7vh; overflow-y: auto; }
.ob-kicker { font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ob-title { font-size: 2.15rem; font-weight: 650; line-height: 1.08; letter-spacing: -0.03em; }
.ob-lead { margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.onboarding .group { margin-top: 28px; }
.onboarding .chips { margin-top: 18px; flex-wrap: wrap; }
.done-mark { width: 64px; height: 64px; margin-bottom: 28px; }
.done-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.9s 0.1s var(--ease) forwards; opacity: 0.25; }
.done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s 0.55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- pages ---------- */
.page { padding: calc(var(--top) + 18px) 18px calc(var(--bottom) + var(--tabbar) + 104px); max-width: 640px; margin: 0 auto; animation: page-in 0.45s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.page-head { padding: 6px 4px 18px; }
.page-date { font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.page-title { font-size: 2.125rem; font-weight: 650; line-height: 1.08; letter-spacing: -0.035em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 26px 4px 10px; }
.section-head h2 { font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.025em; }

.tile {
  display: block; width: 100%; text-align: left; border: 0; border-radius: 26px; padding: 20px;
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); color: var(--ink);
  animation: rise 0.6s var(--ease) both;
}
.tile + .tile { margin-top: 12px; }
.tile-label { font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.next-tile .next-title { margin-top: 10px; font-size: 1.5rem; font-weight: 640; line-height: 1.15; letter-spacing: -0.035em; }
.next-tile .next-when { margin-top: 6px; color: var(--ink-2); }
.next-tile .next-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.soon-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 550; padding: 7px 12px; border-radius: 99px; background: var(--surface-2); }
.soon-pill::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--good); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }
.join-btn { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.pending-tile { display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--on-ink); box-shadow: none; }
.pending-tile .count { flex: none; width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; font-weight: 650; background: var(--on-ink); color: var(--ink); }
.pending-tile .what { flex: 1; font-weight: 550; line-height: 1.3; }
.pending-tile .what span { display: block; font-weight: 400; opacity: 0.65; font-size: 0.875rem; }
.briefing-tile { margin-top: 26px; }
.briefing-tile p.body { margin-top: 10px; color: var(--ink-2); line-height: 1.55; }
.briefing-tile .row { margin-top: 14px; }

/* Grouped lists, the iOS settings pattern */
.group { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.group:empty::before, .group[data-empty]:empty::before { content: attr(data-empty); display: block; padding: 16px 18px; color: var(--muted); }
.cell, .row-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px;
  padding: 10px 18px; border: 0; background: none; text-align: left; color: var(--ink);
}
.cell + .cell::before, .row-item + .row-item::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--line); }
.cell-label { flex: 1; font-weight: 500; }
.cell-caption { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.cell-value { color: var(--muted); text-align: right; }
.cell-pair { display: flex; align-items: center; gap: 8px; }
.cell input[type="text"] { flex: 1; text-align: right; border: 0; background: none; outline: none; color: var(--muted); min-width: 0; }
.cell input[type="text"]:focus { color: var(--ink); }
.cell-button:active { background: var(--surface-2); }
.cell.danger .cell-label { color: var(--bad); }
.chev { width: 8px; height: 8px; border-right: 1.8px solid var(--faint); border-top: 1.8px solid var(--faint); transform: rotate(45deg); margin-left: 2px; }
input[type="time"], select {
  border: 0; border-radius: 10px; padding: 7px 10px; background: var(--surface-2); color: var(--ink);
  font-variant-numeric: tabular-nums; appearance: none; -webkit-appearance: none; min-height: 36px;
}
select { padding-right: 12px; }
.row-item .who { flex: 1; min-width: 0; }
.row-item .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .who span { display: block; color: var(--muted); font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .when { flex: none; align-self: flex-start; padding-top: 2px; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.row-item.tap:active { background: var(--surface-2); }
.row-item .text { flex: 1; }
/* A routine's steps get two lines before they're cut, then how often it ran. */
.row-item.routine { align-items: flex-start; }
.row-item.routine .who span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-item.routine .who .routine-runs { display: block; margin-top: 2px; font-size: 0.8125rem; }
.app-dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 650; color: #fff; }
.status-tag { flex: none; font-size: 0.8125rem; font-weight: 550; color: var(--muted); }
.status-tag.connected { color: var(--good); }
.status-tag.reconnect { color: var(--bad); }
.founding { color: var(--good); font-weight: 550; }
.feedback { display: grid; gap: 8px; justify-items: end; }
.feedback textarea { width: 100%; resize: vertical; min-height: 84px; font: inherit; }

/* Switch */
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 99px; background: var(--line-2); position: relative; transition: background 0.3s var(--ease); margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 0.35s var(--spring); }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(20px); }

/* Segmented control */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 14px; background: var(--surface-2); position: relative; }
.segmented button { position: relative; z-index: 1; border: 0; background: none; min-height: 38px; border-radius: 11px; font-weight: 550; color: var(--muted); transition: color 0.3s, background 0.35s var(--ease), box-shadow 0.35s; }
.segmented button[aria-checked="true"] { color: var(--ink); background: var(--raised); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.profile { display: flex; align-items: center; gap: 14px; padding: 4px 4px 4px; }
.avatar { width: 58px; height: 58px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 1.4rem; font-weight: 650; }
.profile-name { font-size: 1.25rem; font-weight: 640; letter-spacing: -0.03em; }

/* Chips */
.chips { display: flex; gap: 8px; }
.chips.scroll-x { overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; border-radius: 999px; padding: 11px 16px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; white-space: nowrap; transition: transform 0.25s var(--ease), background 0.3s;
}
.chip:active { transform: scale(0.96); background: var(--surface-2); }

/* Ask button and tab bar */
.ask-btn {
  position: fixed; left: 50%; bottom: calc(var(--bottom) + var(--tabbar) + 14px); z-index: 30; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 1.0625rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease);
  animation: ask-in 0.8s 0.2s var(--spring) both;
}
.ask-btn svg { width: 22px; height: 22px; }
.ask-btn:active { transform: scale(0.95); }
@keyframes ask-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar) + var(--bottom)); padding-bottom: var(--bottom);
  background: var(--bar); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 0.6875rem; font-weight: 550; transition: color 0.25s; }
.tab svg { width: 25px; height: 25px; }
.tab[aria-current="page"] { color: var(--ink); }
.badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 0.6875rem; line-height: 17px; text-align: center; }

/* ---------- talking ---------- */
.talk {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg);
  padding-top: var(--top); transform: translateY(100%); transition: transform 0.55s var(--ease);
}
.talk.open { transform: none; }
.talk-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 0 6px; }
.talk-title { font-weight: 620; letter-spacing: -0.02em; }
.conversation { flex: 1; overflow-y: auto; padding: 18px 22px 24px; scroll-behavior: smooth; }
.empty-talk { padding-top: 12vh; }
.empty-talk h2 { font-size: 1.875rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.empty-talk .chips { flex-wrap: wrap; margin-top: 22px; }
.said { margin: 20px 0 14px auto; width: fit-content; max-width: 84%; padding: 11px 16px; border-radius: 22px 22px 6px 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.0625rem; animation: said-in 0.45s var(--spring) both; }
@keyframes said-in { from { opacity: 0; transform: translateY(10px) scale(0.96); transform-origin: right bottom; } }
.answer { font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.018em; color: var(--ink); }
.answer p + p { margin-top: 0.75em; }
.answer b { font-weight: 650; }
.answer .w { display: inline; opacity: 0; filter: blur(3px); animation: word 0.5s var(--ease) forwards; }
@keyframes word { to { opacity: 1; filter: none; } }
.answer.error-text { color: var(--bad); font-size: 1rem; }
.answer-meta { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); animation: rise 0.6s 0.4s var(--ease) both; }

/* Live status: one quiet line with light moving through it. It changes in place, then fades out. */
.status-line {
  margin-top: 4px; font-size: 1.0625rem; font-weight: 500; width: fit-content;
  background: linear-gradient(100deg, var(--muted) 0%, var(--muted) 40%, var(--shimmer) 50%, var(--muted) 60%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 1.8s linear infinite, rise 0.5s var(--ease) both;
}
.status-line.swap { animation: shimmer 1.8s linear infinite, swap 0.45s var(--ease) both; }
.status-line.gone { animation: fade-out 0.35s var(--ease) forwards; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes swap { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
@keyframes fade-out { to { opacity: 0; transform: translateY(-4px); } }

/* A finished approval, kept in the conversation */
.done-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: rise 0.5s var(--ease) both; }
.done-row .what { flex: 1; min-width: 0; }
.done-row .what b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-row .what span { font-size: 0.875rem; color: var(--muted); }
.done-row .tick { flex: none; width: 26px; height: 26px; }
.tick { fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.55s 0.1s var(--ease) forwards; }
.open-card { margin-top: 14px; }

.composer { padding: 8px 18px calc(var(--bottom) + 16px); }
.hint { min-height: 1.4em; text-align: center; font-size: 0.875rem; color: var(--muted); margin-bottom: 8px; transition: opacity 0.3s; }
.text-form { display: flex; gap: 8px; margin-bottom: 14px; animation: rise 0.4s var(--ease) both; }
.send-btn { flex: none; width: 48px; height: 48px; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.send-btn svg { width: 20px; height: 20px; }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.mic {
  --level: 0;
  position: relative; width: 76px; height: 76px; border: 0; border-radius: 99px; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); transition: transform 0.3s var(--ease), background 0.3s;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.mic svg { width: 28px; height: 28px; position: relative; }
.mic:active { transform: scale(0.94); }
.mic-ring { position: absolute; inset: -8px; border-radius: 99px; border: 2px solid var(--ink); opacity: 0; transform: scale(calc(0.9 + var(--level) * 0.35)); transition: transform 0.12s linear, opacity 0.3s; }
.mic.listening .mic-ring { opacity: 0.35; }
.mic.listening { animation: mic-breathe 1.6s ease-in-out infinite; }
@keyframes mic-breathe { 50% { transform: scale(1.04); } }
.mic.busy { opacity: 0.55; }

/* ---------- sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 0.4s var(--ease); }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: calc(100% - var(--top) - 20px); overflow-y: auto;
  padding: 10px 22px calc(var(--bottom) + 20px); border-radius: 30px 30px 0 0; background: var(--raised);
  box-shadow: var(--shadow-up); transform: translateY(105%); transition: transform 0.55s var(--ease);
  max-width: 640px; margin: 0 auto;
}
.sheet.open { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 0 auto 16px; }
.sheet-title { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.03em; }
.sheet .voice-grid { margin: 18px 0 20px; }

.card-kind { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-title { margin-top: 6px; font-size: 1.375rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.card-rows { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 0.9375rem; }
.card-rows dt { color: var(--muted); }
.card-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card-rows dd.old { text-decoration: line-through; color: var(--muted); }
.card-body { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--surface-2); white-space: pre-wrap; line-height: 1.5; max-height: 38vh; overflow-y: auto; font-size: 0.98rem; }
.card-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 20px; }
.card-note { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.card-status { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 0 8px; }
.card-status .tick { width: 64px; height: 64px; }
.card-status .tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; opacity: 0.25; animation: draw 0.7s var(--ease) forwards; }
.card-status .tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.35s var(--ease) forwards; }
.card-status h3 { margin-top: 14px; font-size: 1.25rem; font-weight: 640; letter-spacing: -0.025em; }
.card-status p { margin-top: 4px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 99px; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.stack-cards { display: grid; gap: 10px; }
.stack-cards:empty::before { content: "Nothing waiting for your OK."; display: block; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.mini-card { width: 100%; text-align: left; border: 0; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.mini-card b { display: block; font-weight: 600; margin-top: 2px; }
.mini-card span { color: var(--muted); font-size: 0.9rem; }

/* Voices */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.voice {
  position: relative; text-align: left; border: 0; padding: 14px 14px 13px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, transform 0.25s var(--ease);
}
.voice:active { transform: scale(0.97); }
.voice[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.voice b { display: block; font-weight: 620; font-size: 1.0625rem; }
.voice span { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.voice .eq { position: absolute; top: 14px; right: 14px; display: flex; gap: 2px; align-items: flex-end; height: 14px; opacity: 0; transition: opacity 0.3s; }
.voice .eq i { width: 3px; border-radius: 2px; background: var(--ink); height: 30%; }
.voice.playing .eq { opacity: 1; }
.voice.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.voice.playing .eq i:nth-child(2) { animation-delay: 0.15s; }
.voice.playing .eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes eq { 50% { height: 100%; } }

/* ---------- toast and dialog ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--top) + 10px); z-index: 80; translate: -50% 0; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 18px; background: var(--ink); color: var(--on-ink); font-size: 0.9375rem; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); animation: toast-in 0.5s var(--spring) both;
}
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.96); } }
dialog { border: 0; border-radius: 24px; padding: 22px; max-width: 340px; background: var(--raised); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
dialog p { line-height: 1.5; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

@media (min-width: 700px) {
  .talk, .onboarding { max-width: 640px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .answer .w { opacity: 1; filter: none; }
  .status-line { color: var(--muted); background: none; }
}

/* ================= Demo entrance ================= */
.demo-form { display: grid; gap: 8px; }
.demo-form .row { display: flex; gap: 8px; }

/* ================= Watch mode: the phone becomes the watch ================= */
.watchmode {
  position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: calc(var(--top) + 64px) 18px calc(var(--bottom) + 22px); background: var(--bg);
  animation: page-in 0.5s var(--ease) both;
}
.wm-stage { position: relative; flex: none; width: min(64vw, 42vh, 320px); aspect-ratio: 396 / 484; }
.wm-display {
  position: relative; width: 100%; height: 100%; border-radius: 25% / 21%;
  background: #000; color: #fff; overflow: hidden; container-type: size;
  box-shadow: 0 0 0 9px #1c1c1e, 0 0 0 10px rgba(255, 255, 255, 0.07), 0 0 0 11px rgba(0, 0, 0, 0.5), 0 36px 70px -24px rgba(20, 16, 10, 0.5);
}
.wm-display::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, transparent 32%); }
.wm-clock { position: absolute; top: 6cqh; right: 10cqw; z-index: 2; font-size: 5.6cqw; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity 0.4s; }
.wm-display.idle .wm-clock { opacity: 0; }
.wm-view {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14cqh 9cqw 9cqh;
  opacity: 0; pointer-events: none; transform: scale(0.96); filter: blur(6px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), filter 0.45s var(--ease);
}
.wm-view.on { opacity: 1; pointer-events: auto; transform: none; filter: none; }
.wm-center { align-items: center; justify-content: center; text-align: center; font-size: 7.4cqw; font-weight: 650; }

/* Idle face */
.wm-view[data-view="idle"] { padding-top: 12cqh; }
.wm-date { font-size: 5.6cqw; font-weight: 600; color: #ff9f0a; }
.wm-time { font-size: 27cqw; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wm-comp { margin-top: auto; display: flex; align-items: center; gap: 3.6cqw; padding: 4cqw 4.6cqw; border-radius: 7cqw; background: #1c1c1e; }
.wm-comp-icon { width: 9cqw; height: 9cqw; padding: 1.4cqw; border-radius: 2.4cqw; background: #fff; }
.wm-comp b { display: block; font-size: 5cqw; }
.wm-comp span span { display: block; font-size: 4.4cqw; color: rgba(255, 255, 255, 0.6); }

/* App icon tiles: official logos on white, like app icons */
.app-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 7.4cqw; height: 7.4cqw; border-radius: 2cqw; background: #fff; }
.app-tile img { width: 5.2cqw; height: 5.2cqw; object-fit: contain; }
.wm-sources .app-tile img { width: 4.2cqw; height: 4.2cqw; }
.wm-notif-app .app-tile img { width: 5.2cqw; height: 5.2cqw; }

/* Notification */
.wm-notif-app { display: flex; align-items: center; gap: 2.6cqw; font-size: 4.6cqw; color: rgba(255, 255, 255, 0.6); }
.wm-notif-app b { color: #fff; font-weight: 600; }
.wm-notif-app span:last-child { margin-left: auto; }
.wm-notif-title { margin-top: 4.5cqw; font-size: 7cqw; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.wm-notif-body { margin-top: 2cqw; font-size: 5.6cqw; line-height: 1.32; color: rgba(255, 255, 255, 0.78); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wm-view[data-view="notif"].on { animation: wm-drop 0.7s var(--spring) both; }
@keyframes wm-drop { from { opacity: 0; transform: translateY(-14%) scale(0.92); } }

/* Talking */
/* The Narmo mark: its two squares trade places, calmly at rest, quicker while thinking */
@property --s { syntax: "<length>"; inherits: true; initial-value: 0px; }
.wm-mark { --s: 9cqw; --d: 4.8s; position: relative; flex: none; width: var(--s); height: var(--s); }
.wm-mark i { position: absolute; border-radius: 30%; animation-duration: var(--d); animation-iteration-count: infinite; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
.wm-mark i:first-child { left: 0; top: 0; width: 62%; height: 62%; border: calc(var(--s) * 0.085) solid #fff; animation-name: mk-a; }
.wm-mark i:last-child { right: 0; bottom: 0; width: 56%; height: 56%; background: #fff; animation-name: mk-b; }
@keyframes mk-a { 0%, 32% { translate: 0 0; } 50%, 82% { translate: 61% 61%; } 100% { translate: 0 0; } }
@keyframes mk-b { 0%, 32% { translate: 0 0; scale: 1; } 41% { scale: 1.12; } 50%, 82% { translate: -79% -79%; scale: 1; } 91% { scale: 1.12; } 100% { translate: 0 0; scale: 1; } }
.wm-orb { --s: 17cqw; --d: 2.2s; margin: 1cqw auto 0; transition: --s 0.6s var(--ease), margin 0.6s var(--ease); }
.wm-display.listening .wm-orb { --d: 1.1s; animation: wm-breathe 1.1s ease-in-out infinite; }
@keyframes wm-breathe { 50% { transform: scale(1.1); } }
.wm-display.answering .wm-orb { --s: 6cqw; --d: 6s; margin: 0; }
.wm-comp .wm-mark { --s: 8cqw; margin: 0.6cqw; }
@media (prefers-reduced-motion: reduce) { .wm-mark i { animation: none; } }
.wm-heard { margin-top: 5cqw; text-align: center; font-size: 6cqw; line-height: 1.3; color: rgba(255, 255, 255, 0.92); transition: all 0.5s var(--ease); }
.wm-display.answering .wm-heard { margin-top: 2.6cqw; text-align: left; font-size: 4.8cqw; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-status { display: flex; align-items: center; justify-content: center; gap: 2.4cqw; margin-top: 4cqw; min-height: 7.4cqw; font-size: 5.2cqw; font-weight: 500; }
.wm-status.off { display: none; }
.wm-shimmer {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.45) 40%, #fff 50%, rgba(255, 255, 255, 0.45) 60%, rgba(255, 255, 255, 0.45) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite;
}
.wm-status.swap { animation: swap 0.45s var(--ease) both; }
.wm-answer { position: relative; margin-top: 3cqw; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; font-size: 6.4cqw; line-height: 1.3; letter-spacing: -0.015em; }
.wm-answer::-webkit-scrollbar { display: none; }
.wm-answer:empty { display: none; }
.wm-answer p + p { margin-top: 2.4cqw; }
.wm-answer b { font-weight: 650; }
.wm-answer .w { opacity: 0; filter: blur(3px); animation: word 0.45s var(--ease) forwards; }
.wm-head { font-size: 7.6cqw; font-weight: 650; line-height: 1.17; letter-spacing: -0.022em; }
.wm-body { margin-top: 1.8cqw; font-size: 5.4cqw; line-height: 1.3; color: rgba(255, 255, 255, 0.66); }
.wm-rows { display: grid; gap: 1.8cqw; margin-top: 3.2cqw; }
.wm-row {
  display: flex; align-items: center; gap: 2.8cqw; padding: 2.4cqw 3cqw 2.4cqw 2.4cqw; border-radius: 4.8cqw; background: #1c1c1e;
  opacity: 0; animation: wm-row 0.6s var(--spring) forwards;
}
@keyframes wm-row { from { opacity: 0; transform: translateY(5cqw) scale(0.96); } to { opacity: 1; transform: none; } }
.wm-av { flex: none; display: grid; place-items: center; width: 9.6cqw; height: 9.6cqw; border-radius: 50%; font-size: 3.8cqw; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.wm-av.app-tile { border-radius: 2.2cqw; }
.wm-row-text { min-width: 0; font-size: 5.1cqw; line-height: 1.26; color: rgba(255, 255, 255, 0.72); }
.wm-row-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-row-text b { display: block; font-size: 5.4cqw; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-foot { margin-top: 2.6cqw; font-size: 4.6cqw; color: rgba(255, 255, 255, 0.48); opacity: 0; animation: word 0.5s var(--ease) forwards; }
.wm-sources { display: flex; gap: 1.6cqw; margin-top: 2.6cqw; }
.wm-sources:empty { display: none; }
.wm-sources .app-tile { width: 6cqw; height: 6cqw; border-radius: 1.6cqw; animation: rise 0.5s var(--ease) both; }

/* Approval card */
.wm-card-kind { font-size: 4.4cqw; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.wm-card-title { margin-top: 2cqw; font-size: 6.8cqw; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.wm-card-body { margin-top: 2.4cqw; font-size: 5cqw; line-height: 1.35; color: rgba(255, 255, 255, 0.72); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wm-send { margin-top: auto; height: 15cqw; border: 0; border-radius: 8cqw; background: #30d158; color: #002a0d; font-size: 6cqw; font-weight: 650; transition: transform 0.25s var(--ease); }
.wm-send:active, .wm-send.pressed { transform: scale(0.94); }
.wm-cancel { margin-top: 1.4cqw; height: 10cqw; border: 0; background: none; color: rgba(255, 255, 255, 0.55); font-size: 5cqw; }
.wm-view[data-view="card"].on { animation: card-up 0.7s var(--spring) both; }
@keyframes card-up { from { opacity: 0; transform: translateY(12%); } }
.wm-tick { width: 26cqw; height: 26cqw; margin-bottom: 4cqw; fill: none; stroke: #30d158; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wm-tick circle { stroke-dasharray: 145; stroke-dashoffset: 145; opacity: 0.35; }
.wm-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.wm-view[data-view="done"].on .wm-tick circle { animation: draw 0.7s var(--ease) forwards; }
.wm-view[data-view="done"].on .wm-tick path { animation: draw 0.5s 0.3s var(--ease) forwards; }
.wm-done-sub { margin-top: 1.4cqw; font-size: 4.8cqw; font-weight: 400; color: rgba(255, 255, 255, 0.6); }
.wm-spin { width: 14cqw; height: 14cqw; margin-bottom: 4.6cqw; border-radius: 50%; border: 0.8cqw solid rgba(255, 255, 255, 0.18); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.wm-speaking {
  position: absolute; left: 50%; bottom: 5cqh; translate: -50% 0; z-index: 3; display: inline-flex; align-items: center; gap: 2.2cqw;
  height: 10cqw; padding: 0 4cqw; border: 0; border-radius: 5cqw; background: #1c1c1e; color: rgba(255, 255, 255, 0.85); font-size: 4.2cqw; font-weight: 550;
  animation: rise 0.4s var(--ease) both;
}
.wm-eq { display: inline-flex; align-items: flex-end; gap: 0.6cqw; height: 3.6cqw; }
.wm-eq i { width: 0.8cqw; height: 30%; border-radius: 1px; background: #30d158; animation: wm-eqa 0.9s ease-in-out infinite; }
.wm-eq i:nth-child(2) { animation-delay: 0.15s; }
.wm-eq i:nth-child(3) { animation-delay: 0.3s; }
.wm-eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes wm-eqa { 50% { height: 100%; } }

/* Under the watch */
.wm-ideas { display: flex; gap: 8px; max-width: calc(100% + 36px); overflow-x: auto; padding: 4px 18px; margin: 0 -18px; scrollbar-width: none; }
.wm-ideas::-webkit-scrollbar { display: none; }
.wm-ideas .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; font-size: 0.875rem; }
.wm-ideas .chip img { width: 18px; height: 18px; }
.wm-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; width: min(100%, 360px); }
.wm-talk {
  position: relative; width: 84px; height: 84px; border: 0; border-radius: 50%; display: grid; place-items: center; touch-action: none;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55); transition: transform 0.3s var(--ease);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.wm-talk svg { width: 30px; height: 30px; position: relative; }
.wm-talk-ring { position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; transform: scale(calc(0.9 + var(--level, 0) * 0.35)); transition: transform 0.12s linear, opacity 0.3s; }
.wm-talk.held { transform: scale(1.06); }
.wm-talk.held .wm-talk-ring { opacity: 0.35; }
.wm-talk:disabled { opacity: 0.5; }
.wm-side { width: 50px; height: 50px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.25s var(--ease); }
.wm-side:active { transform: scale(0.92); }
.wm-side svg { width: 22px; height: 22px; }
.wm-hint { font-size: 0.8125rem; color: var(--muted); min-height: 1.2em; margin-top: -6px; }
.wm-typer { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom) + 12px); z-index: 2; display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: var(--raised); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--line); animation: rise 0.35s var(--ease) both; }

/* The Watch | Phone switch */
.mode-switch {
  position: fixed; top: calc(var(--top) + 12px); left: 50%; translate: -50% 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--line);
}
.mode-switch button { position: relative; z-index: 1; width: 86px; height: 34px; border: 0; border-radius: 999px; background: none; font-size: 0.875rem; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.mode-switch button[aria-selected="true"] { color: var(--ink); }
.mode-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 86px; border-radius: 999px; background: var(--raised); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); transition: transform 0.45s var(--spring); }
.mode-switch.phone .mode-thumb { transform: translateX(86px); }
.demo-mode .page { padding-top: calc(var(--top) + 64px); }
.demo-mode .talk { padding-top: calc(var(--top) + 52px); }

/* Things on the watch arrive one after another */
.wm-view.on .wm-notif-app, .wm-view.on .wm-notif-title, .wm-view.on .wm-notif-body,
.wm-view.on .wm-card-kind, .wm-view.on .wm-card-title, .wm-view.on .wm-card-body, .wm-view.on .wm-send, .wm-view.on .wm-cancel,
.wm-view[data-view="idle"].on .wm-date, .wm-view[data-view="idle"].on .wm-time, .wm-view[data-view="idle"].on .wm-comp { animation: wm-in 0.6s var(--ease) backwards; }
@keyframes wm-in { from { opacity: 0; translate: 0 3cqw; filter: blur(3px); } }
.wm-view.on .wm-notif-title, .wm-view.on .wm-card-title, .wm-view[data-view="idle"].on .wm-time { animation-delay: 0.08s; }
.wm-view.on .wm-notif-body, .wm-view.on .wm-card-body { animation-delay: 0.16s; }
.wm-view.on .wm-send, .wm-view[data-view="idle"].on .wm-comp { animation-delay: 0.26s; }
.wm-view.on .wm-cancel { animation-delay: 0.32s; }

/* The 3D watch: the model is drawn behind, the live screen sits in it, everything else stays on top */
.watchmode.w3d > :not(.wm-gl) { position: relative; z-index: 2; }
.watchmode.w3d .wm-typer { position: fixed; }
.wm-gl { position: absolute !important; inset: 0; z-index: 0; pointer-events: none; }
.wm-gl { opacity: 0; transition: opacity 0.8s var(--ease); }
.w3d-ready .wm-gl { opacity: 1; }
.watchmode.w3d .wm-stage { pointer-events: none; margin: 7vh 0 5vh; }
.watchmode.w3d .wm-display { will-change: transform; box-shadow: none; border-radius: 23.8% / 19.5%; pointer-events: auto; }
.watchmode.w3d .wm-display::after { background: linear-gradient(140deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%); }
.watchmode.turning, .watchmode.turning * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.wm-after { margin-top: 2.6cqw; opacity: 0; animation: word 0.5s var(--ease) forwards; }
html:has(.watchmode:not([hidden])) { overflow: hidden; }
.app-dot.logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.app-dot.logo img { width: 58%; height: 58%; object-fit: contain; }

/* ================= First run: Narmo before an account ================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ob-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: -6px -10px 4px; transition: opacity 0.4s var(--ease); }
.ob-top .ob-progress { margin: 0; }
.intro.at-hello .ob-top { opacity: 0; pointer-events: none; }
.ob-back svg { width: 24px; height: 24px; }
.intro .ob-body { padding-top: 3.5vh; padding-bottom: 20px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scrollbar-width: none; }
.intro .ob-body::-webkit-scrollbar { display: none; }
.ob-title:focus { outline: none; }
.ob-step.leaving-back { animation: ob-out-back 0.35s var(--ease) both; }
@keyframes ob-out-back { to { opacity: 0; transform: translateX(28px); filter: blur(4px); } }

/* Welcome: the mark and one line, low on the screen like the sign-in */
.ob-hello { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 36px; }
.ob-hello .ob-title { font-size: 2.6rem; line-height: 1.04; max-width: 9.5em; }
.ob-actions { display: grid; gap: 6px; }
.ob-have { justify-self: center; min-height: 44px; }

/* What do you do: large tiles, one choice */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 96px;
  padding: 15px 14px 14px; border: 0; border-radius: 20px; background: var(--surface); text-align: left; font-weight: 560; line-height: 1.25;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, transform 0.25s var(--ease), background 0.3s;
}
.choice svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--spring); }
.choice:active { transform: scale(0.97); }
.choice[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.choice[aria-checked="true"] svg { transform: scale(1.12); }
.ob-other { display: grid; gap: 8px; margin-top: 16px; animation: rise 0.45s var(--ease) both; }

/* Where does your work happen: app tiles, many choices */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.app-choice {
  position: relative; display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 10px 40px 10px 11px; border: 0; border-radius: 18px;
  background: var(--surface); text-align: left; font-weight: 550; font-size: 0.9375rem; line-height: 1.2;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, transform 0.25s var(--ease);
}
.app-choice:active { transform: scale(0.97); }
.app-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.app-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 18, 20, 0.08); }
.app-icon img { width: 24px; height: 24px; object-fit: contain; }
.ob-check { position: absolute; right: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background 0.3s, box-shadow 0.3s; }
.ob-check::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid var(--on-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.4); opacity: 0; transition: transform 0.4s var(--spring), opacity 0.2s; }
[aria-pressed="true"] > .ob-check { background: var(--ink); box-shadow: none; }
[aria-pressed="true"] > .ob-check::after { opacity: 1; transform: rotate(45deg); }

/* Here's your day: the watch plays three moments */
.ob-watch { width: min(56vw, 34vh, 236px); aspect-ratio: 396 / 484; margin: 30px auto 0; }
.ob-wm { box-shadow: 0 0 0 7px #1c1c1e, 0 0 0 8px rgba(255, 255, 255, 0.07); }
.ob-wm .wm-send { display: flex; align-items: center; justify-content: center; flex: none; height: 13cqw; }
.ob-wm .wm-answer { overflow: hidden; }
.ob-wm .wm-heard { transition: all 0.5s var(--ease); }
.ob-segs { display: flex; gap: 6px; width: min(100%, 200px); margin: 26px auto 0; }
.ob-seg { flex: 1; height: 3px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.ob-seg i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.ob-seg.done i { transform: none; }
.ob-seg.run i { animation: ob-seg var(--dur, 6s) linear forwards; }
@keyframes ob-seg { to { transform: none; } }
.ob-try-label { margin-top: 20px; }
.intro .chips.ob-try { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; margin: 10px -24px 0; padding: 2px 24px 4px; scrollbar-width: none; }
.ob-try::-webkit-scrollbar { display: none; }
.ob-try .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; font-size: 0.875rem; transition: transform 0.25s var(--ease), box-shadow 0.3s; }
.ob-try .chip img { width: 18px; height: 18px; }
.ob-try .chip[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Your routines */
.ob-routines .cell { align-items: center; padding-top: 14px; padding-bottom: 14px; }
.ob-routines .cell-label { font-weight: 600; }
.ob-say { display: block; margin-top: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.ob-say::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 1px; border-radius: 99px; background: var(--good); }

/* Briefing time */
.ob-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.ob-times .chip { min-height: 52px; font-size: 1.0625rem; font-weight: 560; font-variant-numeric: tabular-nums; transition: transform 0.25s var(--ease), background 0.3s, color 0.3s; }
.ob-times .chip[aria-checked="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
#intro-call-chips .chip { transition: background 0.3s, color 0.3s; }
#intro-call-chips .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.ob-siri { margin-top: 22px; }

/* The account, last */
.ob-signin { margin-top: 30px; }
.ob-error { margin-top: 12px; }
.ob-fine { text-align: center; line-height: 1.5; padding: 0 8px; }

@media (min-width: 700px) {
  .ob-watch { width: min(34vh, 250px); }
}
@media (prefers-reduced-motion: reduce) {
  .ob-wm .wm-heard { transition: none; }
}