/* ==========================================================================
   Nexa for iOS · shared styles
   1. TOKENS
   ========================================================================== */
:root {
  --font-ui: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-display: var(--font-ui);
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", monospace;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --page-bg: #0B0A10;
  --page-raised: #15141C;
  --page-line: rgba(255, 255, 255, 0.08);
  --page-text: #F3F1F8;
  --page-text-2: #A8A4B8;
  --page-focus: #A79BFF;
  --brand: #A79BFF; /* the Midnight accent, used for the page's own highlights */

  --dev-w: 417px;
  --dev-h: 876px;
}

/* Set by a script in <head> when the installed SF Pro exposes only one weight
   (seen on Windows with per-user font installs): fall back to Inter. */
html.no-sf {
  --font-ui: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

[data-theme="light"] {
  /* Daylight */
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --surface-2: #ECEAE5;
  --text: #1C1B22;
  --text-2: #5E5B68;
  --separator: #E4E1DA;
  --accent: #5B4FE0;
  --on-accent: #FFFFFF;
  --bubble-out: #5B4FE0;
  --bubble-out-text: #FFFFFF;
  --bubble-in: #ECEAF3;
  --agent-tint: #F1EFFD;
  --agent-line: #D3CEF7;
  --agent-label: #4A3FC9;
  --important: #B4441C;
  --chip-bg: #EEECFB;
  --chip-text: #4338B8;

  --unread: #5B4FE0;
  --on-unread: #FFFFFF;
  --success: #2E7D4F;
  --status-ink: #000000;
  --seg-track: #ECEAE5;
  --seg-active: #FFFFFF;
  --seg-shadow: 0 3px 8px rgba(28, 27, 34, 0.12), 0 0 0 0.5px rgba(28, 27, 34, 0.06);
  --glass: rgba(255, 255, 255, 0.8);
  --scrim: rgba(28, 27, 34, 0.34);
  --sheet: #FFFFFF;
  --pop-shadow: 0 16px 40px rgba(28, 27, 34, 0.16), 0 2px 8px rgba(28, 27, 34, 0.08);
  --quote-fill: rgba(28, 27, 34, 0.05);
  --avatar-a: #6E6A7A;
  --avatar-b: #514D5C;
  --avatar-ink: #FFFFFF;
  --hdr-a: #4C40D4;
  --hdr-b: #7B6FF0;
  --hdr-ink: #FFFFFF;
  --topo-ink: rgba(255, 255, 255, 0.2);
  --switch-off: #E4E1DA;
  --file-icon: #C2410C;
  --danger: #B3261E;
  --orb-shadow-ink: rgba(28, 27, 34, 0.3);
  --orb-z-ink: #6E6A7C;
  --toast-bg: rgba(28, 27, 34, 0.94);
  --toast-ink: #F6F5F2;
  --toast-accent: #C4BCFF;
  color-scheme: light;
}

[data-theme="dark"] {
  /* Midnight */
  --bg: #0E0D14;
  --surface: #17161F;
  --surface-2: #211F2B;
  --text: #ECEAF3;
  --text-2: #A19DB2;
  --separator: #2A2835;
  --accent: #A79BFF;
  --on-accent: #14121C;
  --bubble-out: #A79BFF;
  --bubble-out-text: #14121C;
  --bubble-in: #24222F;
  --agent-tint: #1D1A31;
  --agent-line: #3B3470;
  --agent-label: #C2B9FF;
  --important: #FF8A65; /* the highlight, used sparingly */
  --chip-bg: #252140;
  --chip-text: #C9C1FF;

  --unread: #A79BFF;
  --on-unread: #14121C;
  --success: #6FD39B;
  --status-ink: #FFFFFF;
  --seg-track: #211F2B;
  --seg-active: #34313F;
  --seg-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --glass: rgba(23, 22, 31, 0.78);
  --scrim: rgba(0, 0, 0, 0.56);
  --sheet: #17161F;
  --pop-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --quote-fill: rgba(255, 255, 255, 0.05);
  --avatar-a: #4A4658;
  --avatar-b: #363243;
  --avatar-ink: #F3F1F8;
  --hdr-a: #14121C;
  --hdr-b: #2E2766;
  --hdr-ink: #FFFFFF;
  --topo-ink: rgba(167, 155, 255, 0.26);
  --switch-off: #34313F;
  --file-icon: #FF8A65;
  --danger: #FF7A70;
  --orb-shadow-ink: rgba(0, 0, 0, 0.6);
  --orb-z-ink: #A19DB2;
  --toast-bg: rgba(36, 34, 47, 0.96);
  --toast-ink: #ECEAF3;
  --toast-accent: #A79BFF;
  color-scheme: dark;
}

/* ==========================================================================
   2. PAGE CANVAS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--page-focus); outline-offset: 2px; }
.device :focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 48px; }
main { overflow-x: clip; } /* phone tilt can never cause sideways scroll */

/* Hero */
.hero { position: relative; padding: 160px 0 128px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(91, 79, 224, 0.3), transparent 70%),
    radial-gradient(30% 40% at 70% 30%, rgba(255, 138, 101, 0.12), transparent 70%);
  filter: blur(20px);
}
.hero .wrap { position: relative; }
.hero__eyebrow { font: 500 13px/18px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--page-text-2); margin: 0 0 24px; }
.hero h1 { font-family: var(--font-display); margin: 0; font-size: clamp(44px, 7.4vw, 104px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; max-width: 12ch; }
.hero__sub { display: block; color: var(--page-text-2); font-weight: 600; }
.hero__lede { margin: 32px 0 0; max-width: 34ch; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: #DCD9E6; letter-spacing: -0.01em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 48px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--page-text-2); }
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #3A3746; margin-right: 16px; }
.hero__by { color: var(--page-text); }

/* Sticky control bar */
.controls {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
}
.controls .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.controls__brand { font-weight: 700; letter-spacing: -0.02em; font-size: 17px; margin-right: auto; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.controls__brand small { font-weight: 500; font-size: 13px; color: var(--page-text-2); letter-spacing: 0; }
.controls__nav { display: flex; gap: 4px; }
.controls__nav a { color: var(--page-text-2); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .25s var(--spring), background .25s var(--spring); }
.controls__nav a:hover { color: var(--page-text); background: rgba(255,255,255,.06); }
.controls__group { display: flex; align-items: center; gap: 16px; }

.pseg { display: inline-flex; padding: 3px; background: rgba(255,255,255,.07); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.pseg button { border: 0; background: transparent; color: var(--page-text-2); font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: background .3s var(--spring), color .3s var(--spring); }
.pseg button[aria-checked="true"] { background: #F5F5F7; color: #0A0A0B; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pbtn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 0; background: #F5F5F7; color: #0A0A0B; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 99px; transition: transform .25s var(--spring), opacity .25s; }
.pbtn:active { transform: scale(.97); }
.pbtn[disabled] { opacity: .45; cursor: not-allowed; }
.pswitch { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; border: 0; background: none; padding: 4px 0; font-size: 14px; color: var(--page-text-2); }
.pswitch__track { position: relative; width: 36px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.14); transition: background .3s var(--spring); }
.pswitch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .3s var(--spring); }
.pswitch[aria-checked="true"] .pswitch__track { background: #34C759; }
.pswitch[aria-checked="true"] .pswitch__track::after { transform: translateX(14px); }

/* Sections */
.sec { padding: 128px 0 0; }
.sec:last-of-type { padding-bottom: 160px; }
.sec__hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.sec__num { font: 500 13px/18px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--page-text-2); margin: 0 0 16px; }
.sec__hd h2 { font-family: var(--font-display); margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.sec__hd p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--page-text-2); max-width: 52ch; }
.theme-row + .theme-row { margin-top: 96px; }
.theme-row__label { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--page-text-2); }
.theme-row__label::after { content: ""; flex: 1; height: 1px; background: var(--page-line); }
.theme-row__swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }

/* Phone rows. --s is computed in JS so each row fits without horizontal scroll. */
.phone-row { --s: .72; display: flex; flex-wrap: wrap; justify-content: center; gap: 64px 40px; }
.phone-slot { margin: 0; width: calc(var(--dev-w) * var(--s)); }
.phone-box { position: relative; width: calc(var(--dev-w) * var(--s)); height: calc(var(--dev-h) * var(--s)); }
.phone-slot figcaption { margin-top: 24px; text-align: center; }
.phone-slot figcaption b { display: block; font-size: 15px; font-weight: 600; color: var(--page-text); letter-spacing: -0.01em; }
.phone-slot figcaption span { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--page-text-2); }
.phone-reset { margin-top: 8px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--page-text-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); cursor: pointer; transition: color .25s var(--spring), background .25s var(--spring); }
.phone-reset:hover { color: var(--page-text); background: rgba(255, 255, 255, .06); }

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */

/* 3.1 Phone frame (iPhone 15 Pro, 393 x 852 viewport) */
.device {
  position: absolute; top: 0; left: 0;
  width: var(--dev-w); height: var(--dev-h);
  transform: scale(var(--s)); transform-origin: 0 0;
  padding: 3px; border-radius: 68px;
  background: linear-gradient(140deg, #9EA1A6 0%, #55585D 18%, #2F3135 40%, #75787D 62%, #3A3C40 82%, #8F9297 100%);
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, .75),
    0 30px 60px -20px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    inset 0 0 2px 1px rgba(0, 0, 0, .6);
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
}
.device .hw { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #4A4C50, #8C8F94 50%, #4A4C50); }
.device .hw--action  { left: -3px; top: 172px; height: 34px; }
.device .hw--volup   { left: -3px; top: 236px; height: 62px; }
.device .hw--voldown { left: -3px; top: 314px; height: 62px; }
.device .hw--power   { right: -3px; top: 262px; height: 100px; }
.bezel { width: 100%; height: 100%; padding: 9px; border-radius: 65px; background: #050506; box-shadow: inset 0 0 0 1px #1C1C1E; }
.screen {
  position: relative; width: 393px; height: 852px; overflow: hidden;
  border-radius: 56px; isolation: isolate;
  clip-path: inset(0 round 56px); /* also clips layers that are animated or filtered */
  background: var(--surface); color: var(--text);
  font-size: 17px; line-height: 22px; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
.island { position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; z-index: 60; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--text); z-index: 60; pointer-events: none; }
.statusbar { position: absolute; inset: 0 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; z-index: 55; color: var(--status-ink); pointer-events: none; }
.statusbar--on-color { color: var(--hdr-ink); }
.statusbar__ear { flex: 1; display: flex; justify-content: center; align-items: center; padding-top: 4px; }
.statusbar__ear:first-child { padding-left: 16px; }
.statusbar__ear:last-child { gap: 6px; padding-right: 12px; }
.statusbar__island-gap { width: 126px; }
.statusbar time { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

/* 3.2 Typography (iOS scale) */
.t-large { font-family: var(--font-display); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.011em; margin: 0; }
.t-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.012em; margin: 0; }
.t-headline { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.022em; }
.t-body { font-size: 17px; line-height: 22px; }
.t-callout { font-size: 16px; line-height: 21px; letter-spacing: -0.02em; }
.t-sub { font-size: 15px; line-height: 20px; letter-spacing: -0.016em; }
.t-foot { font-size: 13px; line-height: 18px; letter-spacing: -0.006em; }
.t-cap { font-size: 12px; line-height: 16px; letter-spacing: 0; }
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.c2 { color: var(--text-2); }
.trunc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }

/* 3.3 Icons */
.ic { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 3.4 Controls inside the phone */
:where(.device) button { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; color: inherit; transition: transform .3s var(--spring), opacity .2s, background-color .3s var(--spring); }
:where(.device) button:active { transform: scale(.97); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--accent); }
.link-btn { color: var(--accent); font-size: 17px; }

.seg { position: relative; display: flex; flex: 1; height: 32px; padding: 2px; border-radius: 9px; background: var(--seg-track); }
.seg button { flex: 1; border-radius: 7px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-checked="true"] { background: var(--seg-active); box-shadow: var(--seg-shadow); font-weight: 600; }
.seg__count { font-size: 12px; font-weight: 600; color: var(--text-2); }

.switch { position: relative; width: 51px; height: 31px; border-radius: 99px; background: var(--switch-off); flex: none; transition: background-color .3s var(--spring); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .35s var(--spring); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch--imp[aria-checked="true"] { background: var(--important); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* 3.5 Avatars (people) */
.avatar {
  --size: 40px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: linear-gradient(180deg, var(--avatar-a), var(--avatar-b));
  color: var(--avatar-ink);
  font-size: calc(var(--size) * .38); font-weight: 600; letter-spacing: 0.01em; line-height: 1;
}
.avatar--me { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); color: var(--on-accent); }
.avatar-stack { position: relative; width: 40px; height: 40px; flex: none; }
.avatar-stack__badge { position: absolute; right: -6px; bottom: -6px; padding: 2px; border-radius: 50%; background: var(--surface); display: grid; }

/* 3.6 Assistant orb
   Layers: .orb (layout, colour tokens, state) > .orb__lift (looping body
   motion per state, CSS) > .orb__react (one-off reactions, Web Animations
   API) > .orb__ball (glossy sphere with an SVG face). The contact shadow and
   the effects layer (.orb__fx) sit outside the moving layers. Every state
   differs in eye shape, body motion and colour. Colours are registered
   custom properties, so preset and state changes blend over 600 ms. */
@property --orb-core   { syntax: '<color>'; inherits: true; initial-value: #0d4d9a; }
@property --orb-mid    { syntax: '<color>'; inherits: true; initial-value: #3d7dd8; }
@property --orb-light  { syntax: '<color>'; inherits: true; initial-value: #6fb3ff; }
@property --orb-rim    { syntax: '<color>'; inherits: true; initial-value: #e0eeff; }
@property --orb-glow   { syntax: '<color>'; inherits: true; initial-value: rgb(20, 102, 216); }
@property --orb-glow-k { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --orb-glow-h { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --id         { syntax: '<color>'; inherits: true; initial-value: transparent; }

.orb {
  --size: 40px;
  position: relative; display: inline-grid; flex: none; vertical-align: middle; isolation: isolate;
  width: var(--size); height: var(--size); border-radius: 50%;
  translate: var(--wx, 0px) var(--wy, 0px);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition:
    --orb-core .6s ease, --orb-mid .6s ease, --orb-light .6s ease, --orb-rim .6s ease, --orb-glow .6s ease,
    --orb-glow-h .3s ease, translate 1.6s var(--spring);
}
.orb__lift, .orb__react { grid-area: 1 / 1; display: grid; width: 100%; height: 100%; transform-origin: 50% 100%; }
.orb__lift { position: relative; z-index: 1; }
.orb__ball {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 45%, var(--orb-core) 0%, var(--orb-mid) 40%, var(--orb-light) 68%, var(--orb-rim) 100%);
  box-shadow:
    var(--orb-ring, 0 0 #0000),
    0 0 4px color-mix(in srgb, var(--orb-glow) clamp(0%, calc(35% * var(--orb-glow-k) * var(--orb-glow-h)), 100%), transparent),
    0 0 16px 6px color-mix(in srgb, var(--orb-glow) clamp(0%, calc(18% * var(--orb-glow-k) * var(--orb-glow-h)), 100%), transparent),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
  outline: 1.5px solid transparent; outline-offset: 2.5px;
  transition: --orb-glow-k .6s ease, outline-color .6s ease, translate .35s var(--spring);
}
.orb__ball::before, .orb__ball::after, .orb__grain { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.orb__ball::before { background: radial-gradient(ellipse at 30% 24%, rgba(255,255,255,.75) 0%, rgba(255,255,255,.1) 50%, transparent 70%); z-index: 1; }
.orb__ball::after { background: radial-gradient(circle at 62% 68%, rgba(0,0,0,.18) 0%, transparent 55%); filter: blur(calc(var(--size) * .06)); z-index: 1; }
.orb__grain {
  opacity: .2; mix-blend-mode: overlay; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 128px 128px;
}
.orb__shimmer {
  position: absolute; inset: -25%; z-index: 1; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0deg 190deg, rgba(255, 255, 255, .9) 250deg, transparent 310deg 360deg);
  mix-blend-mode: soft-light; transition: opacity .6s ease;
}

/* Face: eyes crossfade between shapes; look direction, blinks and lids use transforms only. */
.orb__face { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.face__look { transform: translate(var(--lx, 0px), var(--ly, 0px)); transition: transform .45s var(--spring); }
.orb__face .eye { transform-box: fill-box; transform-origin: 50% 50%; }
.orb__face .e { fill: #fff; stroke: #fff; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .16s ease, transform .45s var(--bounce); }
.orb__face .e-pill { stroke: none; opacity: 1; }
.orb__face :is(.e-arc, .e-sq, .e-line) { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.orb__face .e-sad { stroke-width: 1.4; stroke-linejoin: round; }
.orb__face .m { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; opacity: 0; transition: opacity .2s ease; }

.orb:is([data-face="happy"], [data-face="sad"], [data-face="squeeze"], [data-face="closed"]) .e-pill,
.orb[data-face="peek"] .eye--l .e-pill { opacity: 0; }
.orb[data-face="happy"] .e-arc,
.orb[data-face="sad"] .e-sad,
.orb[data-face="squeeze"] .e-sq,
.orb[data-face="closed"] .e-line,
.orb[data-face="peek"] .eye--l .e-line { opacity: 1; }
.orb[data-face="wide"] .e-pill  { transform: scale(1.3, 1.16); }
.orb[data-face="round"] .e-pill { transform: scale(1.55, 1.04); }
.orb[data-face="tall"] .e-pill  { transform: scale(.88, 1.34); }
.orb[data-face="down"] .e-pill  { transform: scale(1.1, .56); transform-origin: 50% 100%; }
.orb[data-face="peek"] .eye--r .e-pill { transform: scale(1.1, 1.05); }
.orb[data-face="think"] .eye--r .e-pill { transform: scale(1, .52); transform-origin: 50% 100%; }
.orb[data-face="think"] .face__look  { transform: translate(5px, -7px); }
.orb[data-face="down"] .face__look   { transform: translate(0px, 9px); }
.orb[data-face="round"] .face__look  { transform: translate(0px, -5px); }
.orb:is([data-face="closed"], [data-face="sad"]) .face__look { transform: translate(0px, 3px); }
.orb[data-state="hover"]:not([data-follow]) .face__look { transform: translate(5px, -4px); }
.orb[data-face="happy"] .m-smile,
.orb[data-face="tall"] .m-o,
.orb[data-face="sad"] .m-wobble { opacity: 1; }

/* Contact shadow (live orbs only) and the effects layer */
.orb__shadow {
  position: absolute; left: 50%; top: 100%; z-index: 0;
  width: calc(var(--size) * .66); height: calc(var(--size) * .12);
  margin: calc(var(--size) * .05) 0 0 calc(var(--size) * -.33); border-radius: 50%;
  background: radial-gradient(closest-side, var(--orb-shadow-ink, rgba(0, 0, 0, .5)), transparent);
  visibility: hidden; pointer-events: none;
}
.orb[data-motion="live"] .orb__shadow { visibility: visible; }
.orb[data-awaiting] :is(.orb__react, .orb__shadow) { opacity: 0; }
.orb__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fx-orbit { position: absolute; inset: 0; animation: orb-spin 3.6s linear infinite; }
.fx-orbit i {
  position: absolute; left: 50%; top: 50%; width: max(3px, calc(var(--size) * .07)); aspect-ratio: 1;
  margin: calc(max(3px, calc(var(--size) * .07)) / -2); border-radius: 50%;
  background: var(--orb-rim); box-shadow: 0 0 6px 1px var(--orb-glow);
  transform: rotate(var(--a)) translateY(calc(var(--size) * -.74));
  animation: orb-twinkle 1.2s ease-in-out var(--d, 0s) infinite;
}
.fx-ring {
  position: absolute; inset: -12%; border-radius: 50%; opacity: .5;
  border: max(1.5px, calc(var(--size) * .02)) solid var(--orb-light);
  animation: orb-radiate 2s ease-out infinite;
}
.fx-ring + .fx-ring { animation-delay: 1s; }
.fx-alert { position: absolute; inset: -12%; border-radius: 50%; border: max(1.5px, calc(var(--size) * .022)) solid var(--important, #FF8A65); opacity: .8; animation: orb-alert 2.4s ease-out infinite; }
.fx-q {
  position: absolute; left: 66%; bottom: 84%; display: grid; place-items: center;
  width: max(14px, calc(var(--size) * .34)); height: max(14px, calc(var(--size) * .34));
  border-radius: 50% 50% 50% 16%; background: #fff; color: #8a5500;
  font: 700 max(10px, calc(var(--size) * .22)) / 1 var(--font-ui);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transform-origin: 0 100%;
  animation: orb-pop .5s var(--bounce) both, orb-bob 2.5s .5s ease-in-out infinite;
}
.fx-z {
  position: absolute; left: calc(64% + var(--i) * 10%); top: calc(-2% - var(--i) * 14%);
  font: 700 calc(var(--size) * var(--fs, .16)) / 1 var(--font-ui); color: var(--orb-z-ink, #94A3B8);
  animation: orb-z 3s ease-in var(--d, 0s) infinite both;
}
.fx-spark {
  position: absolute; left: 50%; top: 40%; width: max(5px, calc(var(--size) * .1)); aspect-ratio: 1;
  margin: calc(max(5px, calc(var(--size) * .1)) / -2);
  background: var(--orb-rim); opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: orb-sparkle .9s .32s ease-out both;
}
.fx-spark:nth-child(odd) { background: #fff; }

@keyframes orb-float        { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 2px; } }
@keyframes orb-float-shadow { 0%, 100% { scale: .88; opacity: .7; } 50% { scale: 1; opacity: 1; } }
@keyframes orb-breathe { 0%, 100% { --orb-glow-k: 1; } 50% { --orb-glow-k: 1.4; } }
@keyframes orb-pulse   { 0%, 100% { --orb-glow-k: 1; } 50% { --orb-glow-k: 1.8; } }
@keyframes orb-flash   { 0% { --orb-glow-k: 1; } 35% { --orb-glow-k: 2.4; } 100% { --orb-glow-k: 1; } }
@keyframes orb-double  { 0%, 40%, 100% { --orb-glow-k: 1; } 8%, 24% { --orb-glow-k: 1.9; } 16% { --orb-glow-k: 1; } }
@keyframes orb-spin    { to { rotate: 360deg; } }
@keyframes orb-twinkle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes orb-tilt    { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes orb-type    { 0%, 54%, 100% { translate: 0 0; } 9%, 45% { translate: 0 -3px; } 18%, 36% { translate: 0 0; } 27% { translate: 0 -2.5px; } }
@keyframes orb-type-glow   { 0%, 18%, 36%, 54%, 100% { --orb-glow-k: 1; } 9%, 27%, 45% { --orb-glow-k: 1.6; } }
@keyframes orb-type-shadow { 0%, 18%, 36%, 54%, 100% { scale: 1; } 9%, 27%, 45% { scale: .86; } }
@keyframes orb-quickblink  { 0%, 60%, 70%, 100% { transform: scale(1, 1); } 65% { transform: scale(1, .15); } }
@keyframes orb-lean    { to { scale: 1.06; } }
@keyframes orb-knock   { 0%, 60%, 72%, 84%, 100% { translate: 0 0; } 66%, 78% { translate: 0 calc(var(--size) * -.08); } }
@keyframes orb-knock-shadow { 0%, 60%, 72%, 84%, 100% { scale: 1; } 66%, 78% { scale: .8; } }
@keyframes orb-droop   { 0% { translate: 0 0; rotate: 0deg; } 25% { translate: 0 calc(var(--size) * .05); } 100% { translate: 0 calc(var(--size) * .035); rotate: -4deg; } }
@keyframes orb-sink    { to { translate: 0 calc(var(--size) * .04); } }
@keyframes orb-sink-shadow { to { scale: 1.08; } }
@keyframes orb-sleep   { 0%, 100% { scale: 1 1; } 50% { scale: 1.025 .985; } }
@keyframes orb-wobble  { 0%, 30%, 100% { rotate: 0deg; } 6% { rotate: -5deg; } 12% { rotate: 5deg; } 18% { rotate: -3deg; } 24% { rotate: 2deg; } }
@keyframes orb-radiate { from { scale: 1; opacity: .6; } to { scale: 1.6; opacity: 0; } }
@keyframes orb-alert   { 0%, 17% { scale: .94; opacity: .9; } 16%, 34%, 100% { scale: 1.3; opacity: 0; } }
@keyframes orb-pop     { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes orb-bob     { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes orb-z       { 0% { translate: 0 0; opacity: 0; scale: .7; } 25% { opacity: .9; } 100% { translate: calc(var(--size) * .22) calc(var(--size) * -.5); opacity: 0; scale: 1.15; } }
@keyframes orb-sparkle { 0% { translate: 0 0; scale: .2; opacity: 0; } 25% { opacity: 1; scale: 1; } 100% { translate: var(--sx) var(--sy); scale: .3; opacity: 0; } }

/* idle and hover: live orbs float and breathe; list orbs stay still */
.orb[data-motion="live"]:is([data-state="idle"], [data-state="hover"]) .orb__lift   { animation: orb-float 4s ease-in-out infinite; }
.orb[data-motion="live"]:is([data-state="idle"], [data-state="hover"]) .orb__shadow { animation: orb-float-shadow 4s ease-in-out infinite; }
.orb[data-motion="live"]:is([data-state="idle"], [data-state="hover"]) .orb__ball   { animation: orb-breathe 4s ease-in-out infinite; }
.orb:is([data-state="hover"], [data-state="idle"][data-hover]) { --orb-glow-h: 1.7; }
.orb:is([data-state="hover"], [data-state="idle"][data-hover]) .orb__ball { translate: 0 -2px; }
/* thinking: tilt, orbiting dots, shimmer */
.orb[data-state="thinking"] .orb__lift    { animation: orb-tilt 3.2s ease-in-out infinite, orb-float 4s ease-in-out infinite; }
.orb[data-state="thinking"] .orb__ball    { animation: orb-pulse 2.4s ease-in-out infinite; }
.orb[data-state="thinking"] .orb__shimmer { opacity: .55; animation: orb-spin 3.2s linear infinite; }
/* typing: quick bounces in a typing rhythm, glow pulses with each one */
.orb[data-state="typing"] .orb__lift   { animation: orb-type 1.1s ease-in-out infinite; }
.orb[data-state="typing"] .orb__ball   { animation: orb-type-glow 1.1s ease-in-out infinite; }
.orb[data-state="typing"] .orb__shadow { animation: orb-type-shadow 1.1s ease-in-out infinite; }
.orb[data-state="typing"] .eye         { animation: orb-quickblink 1.6s ease-in-out infinite; }
/* listening: soft float, rings radiate */
.orb[data-state="listening"] .orb__lift { animation: orb-float 3s ease-in-out infinite; }
.orb[data-state="listening"] .orb__ball { animation: orb-breathe 2s ease-in-out infinite; }
/* needs approval: lean in, two knocks every 2.5 s */
.orb[data-state="approval"] .orb__lift   { animation: orb-lean .5s var(--bounce) both, orb-knock 2.5s .5s ease-out infinite; }
.orb[data-state="approval"] .orb__ball   { animation: orb-pulse 2.8s ease-in-out infinite; }
.orb[data-state="approval"] .orb__shadow { animation: orb-knock-shadow 2.5s .5s ease-out infinite; }
/* delivered: flash and a spin of the shine (the jump is a reaction) */
.orb[data-state="delivered"] .orb__ball         { animation: orb-flash .6s ease-out; }
.orb[data-state="delivered"] .orb__ball::before { animation: orb-spin .8s .45s ease-in-out; }
/* error: drop, then droop (the shake is a reaction) */
.orb[data-state="error"] .orb__lift { animation: orb-droop 1s ease-out both; }
/* offline: sink, very slow breathing, almost no glow */
.orb[data-state="offline"] .orb__lift   { animation: orb-sink .8s ease-out both, orb-sleep 6s .8s ease-in-out infinite; }
.orb[data-state="offline"] .orb__ball   { --orb-glow-k: .12; }
.orb[data-state="offline"] .orb__shadow { animation: orb-sink-shadow .8s ease-out both; }
/* important: ring double pulse and a small wobble */
.orb[data-state="important"] .orb__lift { animation: orb-wobble 2.4s ease-in-out infinite; }
.orb[data-state="important"] .orb__ball { outline-color: var(--important, #FF8A65); animation: orb-double 2.4s ease-out infinite; }

/* Off-screen orbs pause */
.orb[data-offscreen], .orb[data-offscreen] *, .orb[data-offscreen] *::before { animation-play-state: paused !important; }

/* 3.7 Chips */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 600; background: var(--chip-bg); color: var(--chip-text); }
.chip--important { background: color-mix(in srgb, var(--important) 6%, var(--surface)); color: var(--important); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--important) 35%, transparent); }
.addr-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border-radius: 18px; max-width: 100%;
  background: var(--surface-2); color: var(--text); font-size: 14px;
  border: 1px solid transparent;
}
.addr-chip--agent { background: color-mix(in srgb, var(--id) 12%, var(--surface)); border-color: color-mix(in srgb, var(--id) 40%, transparent); }

/* 3.8 Messages: groups, bubbles, tapbacks */
.grp { display: flex; flex-direction: column; padding: 0 16px; }
.grp__name { margin: 0 0 4px 52px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2); }
.grp__model { font-size: 12px; font-weight: 500; color: var(--agent-label); }
.line { display: flex; align-items: flex-end; gap: 8px; }
.line + .line { margin-top: 2px; }
.line__face { display: grid; width: 30px; flex: none; }
.line__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 75%; }
.grp--out .line { justify-content: flex-end; }
.grp--out .line__body { align-items: flex-end; }
.line__after { display: flex; margin: 6px 0 0 38px; }
.line__after--out { justify-content: flex-end; margin-left: 0; }
.bubble { position: relative; max-width: 100%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: break-word; }
.bubble--in { background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 6px; }
.bubble--out { background: var(--bubble-out); color: var(--bubble-out-text); border-bottom-right-radius: 6px; }
.bubble--agent { background: var(--agent-tint); color: var(--text); border: 1px solid color-mix(in srgb, var(--id) 45%, var(--agent-line)); border-bottom-left-radius: 6px; }
.grp--in .line + .line .bubble { border-top-left-radius: 6px; }
.grp--out .line + .line .bubble { border-top-right-radius: 6px; }
[data-id-agent] { transition: --id .6s ease; }
.grp .line__body, .grp .line__after { transform-origin: 0 100%; }
.grp[data-intro-pending] :is(.line__body, .line__after) { display: none; }
.grp[data-tapback-pending] .tapback { opacity: 0; }
.mention { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.quote { margin: 0 0 6px; padding-left: 8px; border-left: 2px solid var(--accent); font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote b { font-weight: 600; }
.file-card { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--separator); }
.file-card__icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 7px; background: color-mix(in srgb, var(--file-icon) 12%, var(--surface)); color: var(--file-icon); }
.file-card__text { min-width: 0; }
.file-card__text b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.file-card__text span { display: block; font-size: 12px; line-height: 16px; color: var(--text-2); }
.tapback {
  position: absolute; right: -8px; bottom: -14px; display: inline-flex; align-items: center; gap: 3px;
  height: 24px; padding: 0 8px; border-radius: 12px; font-size: 13px; line-height: 1;
  background: var(--surface); border: 1px solid var(--separator);
  box-shadow: 0 0 0 2px var(--surface), 0 2px 6px rgba(15, 23, 42, .12);
}
.tapback b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.delivered { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-2); }
.sys { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 32px; font-size: 12px; line-height: 16px; color: var(--text-2); text-align: center; }
.stamp { text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-2); }

/* ==========================================================================
   4. SCREENS
   ========================================================================== */
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }

/* 4.1 Wave header (Welcome, Sign in) */
.wave-hd { position: relative; flex: none; color: var(--hdr-ink); }
.wave-hd__bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, var(--hdr-a) 0%, var(--hdr-b) 100%); }
.wave-hd__topo { position: absolute; inset: -48px; animation: topo-drift 48s ease-in-out infinite alternate; }
@keyframes topo-drift { from { translate: -20px -12px; } to { translate: 20px 12px; } }
.wave-hd__topo svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--topo-ink); stroke-width: 1.1; stroke-linecap: round; }
@keyframes wave-sway { from { translate: -6px 0; scale: 1 1; } to { translate: 6px 0; scale: 1 1.07; } }
.wave-hd__wave { animation: wave-sway 8s ease-in-out infinite alternate; transform-origin: 50% 100%; position: absolute; left: -3%; bottom: -1px; width: 106%; height: 104px; display: block; fill: var(--surface); }
.wave-hd__brand { font-family: var(--font-display); position: absolute; left: 32px; top: 70px; display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.wave-hd__logo { width: 28px; height: 28px; --logo-bubble: #FFFFFF; --logo-ball: var(--hdr-a); --logo-eye: #FFFFFF; }

/* 4.2 Welcome */
.welcome .wave-hd { height: 468px; }
.welcome__orb { position: absolute; right: 48px; bottom: 6px; z-index: 2; }
.signin__orb { position: absolute; left: 286px; top: 246px; z-index: 3; }
/* On the blue light header the orb needs separating: white ring, deeper drop shadow, brighter rim. */
[data-theme="light"] :is(.welcome__orb, .signin__orb) .orb { --orb-ring: 0 0 0 3px rgba(255, 255, 255, .6), 0 18px 30px -10px rgba(30, 20, 110, .55), inset 0 0 10px 2px rgba(255, 255, 255, .5); }
.welcome__body { padding: 12px 32px 0; }
.welcome__logo { display: block; width: 64px; height: 64px; margin-bottom: 16px; filter: drop-shadow(0 8px 14px rgba(28, 27, 34, .16)); }
.welcome__logo svg { display: block; width: 100%; height: 100%; }
[data-theme="dark"] .welcome__logo { --logo-bubble: #A79BFF; --logo-ball: #14121C; --logo-eye: #A79BFF; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.welcome__body p { margin: 16px 0 0; color: var(--text-2); max-width: 300px; }
.title-rule { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 8px; }
.continue { position: absolute; right: 32px; bottom: 72px; display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; color: var(--text); }
.continue__circle { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }

/* 4.3 Sign in */
.signin .wave-hd { height: 324px; }
.signin__body { position: relative; z-index: 2; margin-top: -40px; padding: 0 32px; flex: 1; display: flex; flex-direction: column; }
.field { margin-top: 32px; }
.field + .field { margin-top: 24px; }
.field__label { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); transition: translate .3s var(--spring), color .3s var(--spring); }
.field:is(:focus-within, .is-focus) .field__label { translate: 0 -2px; color: var(--accent); }
.field.is-focus .field__row::after { transform: scaleX(1); }
.field__row { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; border-bottom: 1px solid var(--separator); }
.field__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--spring); }
.field__row:focus-within::after { transform: scaleX(1); }
.field__row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; color: var(--text); }
.field__row input::placeholder { color: var(--text-2); }
.field__affix { font-family: var(--font-mono); font-size: 16px; color: var(--text-2); flex: none; }
.field__row input.mono { font-size: 16px; }
.field__help { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.field__icon { color: var(--text-2); }
.field__error { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--danger); }
.field.is-invalid .field__row { border-bottom-color: var(--danger); }
.pw-toggle { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; color: var(--text-2); border-radius: 50%; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--text-2); color: transparent; transition: background-color .25s var(--spring), border-color .25s var(--spring); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.text-link { font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
.btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 32px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 50%, transparent); }
.signin__foot { margin-top: auto; padding-bottom: 56px; text-align: center; font-size: 15px; color: var(--text-2); }

/* 4.4 Inbox */
.inbox { padding-top: 54px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 16px; flex: none; }
.acct { width: 32px; height: 32px; }
.acct .avatar { --size: 32px; }
.lt { padding: 4px 16px 0; }
.lt__addr { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 16px 16px 0; padding: 0 8px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--text); }
.search input::placeholder { color: var(--text-2); }
.inbox-tools { position: relative; display: flex; align-items: center; gap: 8px; margin: 12px 16px 8px; }
.filter-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent); flex: none; }
.filter-btn[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }
.menu { position: absolute; top: 40px; right: 0; z-index: 20; width: 232px; padding: 6px 0; border-radius: 14px; background: var(--surface); box-shadow: var(--pop-shadow); transform-origin: 100% 0; animation: pop .35s var(--spring); }
.menu[hidden] { display: none; }
.menu__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 16px; font-size: 17px; color: var(--text); text-align: left; }
.menu__item .ic { margin-left: auto; color: var(--accent); }
.menu__item[aria-checked="false"] .ic { visibility: hidden; }
.menu__sep { height: 1px; margin: 6px 0; background: var(--separator); }
.menu__item--sort span { margin-left: auto; color: var(--text-2); font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.rows { list-style: none; margin: 0; padding: 0 0 96px; }
.row { position: relative; display: grid; grid-template-columns: 16px 40px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px 14px 4px; }
.row::after { content: ""; position: absolute; left: 72px; right: 0; bottom: 0; height: 1px; background: var(--separator); }
.row:last-child::after { display: none; }
.row__dot { display: block; width: 10px; height: 10px; margin: 6px 0 0 6px; border-radius: 50%; background: var(--unread); }
.row__main { min-width: 0; }
.row__top { display: flex; align-items: baseline; gap: 8px; }
.row__topic { flex: 1; font-size: 17px; line-height: 22px; font-weight: 600; }
.row__time { flex: none; font-size: 15px; line-height: 20px; color: var(--text-2); }
.row__mid { display: flex; align-items: center; gap: 6px; margin-top: 2px; min-width: 0; }
.row__parts { flex: 1; font-size: 12px; line-height: 20px; color: var(--text-2); }
.row__mid .chip { flex: none; height: 20px; padding: 0 6px; }
.row__preview { margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--text-2); }
.row__preview b { font-weight: 500; color: var(--text); }
.row--unread .row__time { color: var(--accent); font-weight: 500; }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: 83px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 24px 34px; background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 -1px 0 var(--separator); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-top: 6px; font-size: 10.5px; line-height: 13px; font-weight: 500; letter-spacing: .01em; color: var(--text-2); position: relative; }
.tab[aria-current="page"] { color: var(--accent); }
.tab__badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--unread); color: var(--on-unread); font-size: 12px; line-height: 18px; font-weight: 600; text-align: center; }

/* 4.5 Thread */
.thread { padding-top: 0; }
.tnav { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; height: 52px; padding: 0 8px; flex: none; }
.back { display: flex; align-items: center; gap: 2px; height: 44px; color: var(--accent); font-size: 17px; justify-self: start; }
.tnav__title { text-align: center; min-width: 0; }
.tnav__title .t-headline { font-size: 16px; line-height: 21px; }
.tnav__title .mono { font-size: 12px; line-height: 16px; color: var(--text-2); }
.tnav .icon-btn { justify-self: end; }
.tnav { border-bottom: 1px solid var(--separator); }
.thread .tnav { position: relative; z-index: 5; height: 106px; padding-top: 54px; background: var(--surface); }
.msgs > * + * { margin-top: 16px; }
.thread > .scroll { position: relative; padding: 16px 0 20px; } /* offsets for scrolling to a message are measured from here */
.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 38px; box-shadow: 0 -1px 0 var(--separator); background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.composer .icon-btn { width: 36px; height: 36px; background: var(--surface-2); color: var(--text-2); }
.composer__field { flex: 1; display: flex; align-items: center; height: 36px; padding: 0 6px 0 14px; border-radius: 18px; border: 1px solid var(--separator); background: var(--surface); color: var(--text-2); }
.composer__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--text); }
.composer__field input::placeholder { color: var(--text-2); }
.composer__field button { display: grid; place-items: center; width: 28px; height: 28px; color: var(--text-2); }
.send-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex: none; }

/* 4.6 Sheets (Side thread, Compose) */
.behind { position: absolute; inset: 0; }
.view, .behind { transition: transform .45s var(--spring), border-radius .45s var(--spring); }
.is-behind { transform: scale(.96) translateY(6px); border-radius: 40px; overflow: hidden; }
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .45s var(--spring); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; flex-direction: column; background: var(--sheet); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.18); translate: 0 100%; transition: translate .5s var(--spring); }
.sheet.is-open { translate: 0 0; }
.sheet:not(.is-open) { pointer-events: none; }
.sheet__handle { width: 36px; height: 5px; border-radius: 3px; background: var(--text-2); opacity: .4; margin: 6px auto 0; flex: none; }

.close-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }

/* Side threads: the pill under a message, the long-press menu, the sheet
   (75% of the screen, springs up, swipe down to close) and the Threads list */
.side-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; background: var(--chip-bg); color: var(--chip-text); font-size: 13px; font-weight: 600; }
.side-pill__face { display: grid; }
.side-pill__face .avatar { --size: 20px; font-size: 8px; }
.side-pill__time { font-size: 12px; font-weight: 500; color: var(--text-2); }
.side-pill.is-new { animation: pill-pulse 1.1s var(--spring) 1; }
@keyframes pill-pulse {
  0% { scale: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  30% { scale: 1.07; }
  100% { scale: 1; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.grp[data-msg] { outline-offset: 4px; border-radius: 12px; -webkit-touch-callout: none; user-select: none; }
.grp.is-lifted { position: relative; z-index: 42; }
.grp.is-lifted .line__body { scale: 1.02; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .22)); transition: scale .3s var(--spring); }
.ctx-scrim { position: absolute; inset: 0; z-index: 41; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in .25s ease; }
.ctx { position: absolute; z-index: 43; width: 248px; padding: 4px 0; border-radius: 14px; background: var(--surface); box-shadow: var(--pop-shadow); transform-origin: 0 0; animation: pop .32s var(--spring); }
[data-theme="dark"] .ctx { background: var(--surface-2); }
.ctx button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 46px; padding: 0 16px; font-size: 17px; color: var(--text); text-align: left; }
.ctx button + button { box-shadow: inset 0 1px 0 var(--separator); }
.ctx button:first-child { font-weight: 500; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hint { position: absolute; top: 60px; left: 50%; translate: -50% 0; z-index: 56; padding: 8px 16px; border-radius: 18px; background: var(--toast-bg); color: var(--toast-ink); font-size: 14px; font-weight: 600; pointer-events: none; }
.chat-menu { top: 100px; right: 12px; }
.menu__item--val span { margin-left: auto; color: var(--text-2); font-size: 15px; }

.side-sheet { top: 213px; bottom: -40px; padding-bottom: 40px; transition: translate .62s cubic-bezier(.3, 1.2, .4, 1); }
.side-sheet .sheet__handle, .side__hd { touch-action: none; cursor: grab; }
.side-sheet .sheet__handle { margin-top: 6px; }
.side__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 12px 20px; flex: none; }
.side__hd .t-headline { margin: 0; }
.side__sub { font-size: 12px; line-height: 16px; color: var(--text-2); }
.side__pin { display: flex; gap: 10px; margin: 0 16px; padding: 10px 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--separator); flex: none; }
.side__pin .avatar { --size: 28px; font-size: 11px; }
.side__pin-main { min-width: 0; }
.side__pin-top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 18px; }
.side__pin-top b { font-weight: 600; }
.side__pin-top time { color: var(--text-2); }
.side__pin p { margin: 2px 0 0; font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side__scroll { position: relative; padding: 16px 0 12px; }
.side__empty { display: grid; justify-items: center; gap: 14px; padding: 24px 32px; text-align: center; }
.side__empty p { margin: 0; font-size: 15px; line-height: 20px; color: var(--text-2); }
.ask-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 7px; border-radius: 20px; background: var(--agent-tint); box-shadow: inset 0 0 0 1px var(--agent-line); color: var(--text); font-size: 15px; font-weight: 600; }
.side-sheet .composer { box-shadow: 0 -1px 0 var(--separator); padding-bottom: 34px; }

.threads-view { z-index: 6; background: var(--bg); } /* above the thread header it covers */
.glist--threads > li + li::before { left: 62px; }
.trow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; color: var(--text); }
.trow .avatar { --size: 36px; font-size: 13px; }
.trow__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trow__top { display: flex; align-items: baseline; gap: 8px; }
.trow__top b { font-size: 16px; line-height: 21px; font-weight: 600; }
.trow__top time { margin-left: auto; font-size: 13px; color: var(--text-2); }
.trow__preview { font-size: 15px; line-height: 20px; }
.trow__meta { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--chip-text); }

.compose-sheet { top: 62px; background: var(--sheet); }
.compose-hd { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: center; padding: 10px 16px 12px; flex: none; }
.compose-hd .link-btn { justify-self: start; }
.compose-hd__title { text-align: center; }
.compose-hd__title .mono { font-size: 12px; line-height: 16px; color: var(--text-2); }
.send-pill { justify-self: end; height: 32px; padding: 0 16px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; }
.cfield { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--separator); }
.cfield__k { flex: none; width: 48px; padding-top: 6px; font-size: 15px; line-height: 20px; color: var(--text-2); }
.cfield__chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cfield__chips .avatar { --size: 24px; font-size: 9px; }
.cfield input.to-input { width: 72px; height: 32px; border: 0; outline: 0; background: transparent; font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.cfield__v { flex: 1; min-width: 0; padding-top: 6px; font-size: 17px; line-height: 20px; font-weight: 500; }
.suggest { position: absolute; left: 64px; right: 16px; top: calc(100% - 6px); z-index: 10; padding: 6px 0; border-radius: 14px; background: var(--surface); box-shadow: var(--pop-shadow); list-style: none; margin: 0; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.suggest li[aria-selected="true"] { background: var(--chip-bg); }
.suggest .avatar { --size: 30px; font-size: 11px; }
.suggest__name { font-size: 15px; line-height: 20px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.suggest__name small { font-weight: 500; font-size: 12px; color: var(--agent-label); }
.suggest__addr { font-size: 13px; line-height: 18px; color: var(--text-2); }
.suggest__addr b { color: var(--text); font-weight: 700; }
.cbody { padding: 12px 16px 0; border-top: 1px solid var(--separator); font-size: 17px; line-height: 24px; flex: 1; min-height: 0; }
.cbody p { margin: 0 0 12px; }
.attach-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 6px 8px 6px 6px; border-radius: 12px; border: 1px solid var(--separator); background: var(--bg); }
.attach-chip__thumb { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #2E2580, #5B4FE0 55%, #FF8A65); position: relative; overflow: hidden; }
.attach-chip__thumb::after { content: ""; position: absolute; left: 7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,.4) 60%, transparent 70%); }
.attach-chip b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.attach-chip span { display: block; font-size: 12px; line-height: 16px; color: var(--text-2); }
.attach-chip button { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.imp-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--separator); font-size: 17px; flex: none; }
.imp-row .ic { color: var(--important); }
.imp-row__label { flex: 1; }
.compose-foot { flex: none; padding: 0 0 34px; background: var(--bg); border-top: 1px solid var(--separator); }
.saved { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.toolbar { display: flex; align-items: center; gap: 2px; padding: 4px 8px 8px; }
.toolbar button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); }
.toolbar button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.toolbar__sep { width: 1px; height: 24px; background: var(--separator); margin: 0 6px; }
.toolbar__end { margin-left: auto; display: flex; gap: 2px; }

/* 4.7 Assistants tab */
.agents { padding-top: 54px; background: var(--bg); }
.lt__sub { margin-top: 4px; font-size: 15px; line-height: 20px; color: var(--text-2); }
.agroup__k { margin: 24px 32px 8px; font-size: 13px; line-height: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
.alist { list-style: none; margin: 0 16px; padding: 0; border-radius: 14px; background: var(--surface); }
.alist:last-child { margin-bottom: 104px; }
.arow { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px; }
.arow + .arow::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--separator); }
.arow__main { min-width: 0; }
.arow__top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.arow__name { font-size: 17px; line-height: 22px; font-weight: 600; }
.arow__model { font-size: 13px; line-height: 18px; color: var(--agent-label); white-space: nowrap; }
.arow__status { margin-left: auto; font-size: 13px; color: var(--text-2); }
.arow__does { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatch { width: 20px; height: 20px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--c1) 0%, var(--c2) 40%, var(--c3) 68%, var(--c4) 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }

/* ==========================================================================
   5. ASSISTANT ORB SHOWCASE (page canvas)
   ========================================================================== */
.orb-lab { padding: 16px; border-radius: 32px; background: var(--page-raised); border: 1px solid var(--page-line); }
.orb-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.orb-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; min-height: 400px; padding: 64px 24px 40px; border-radius: 24px; background: var(--bg); color: var(--text); }
.orb-panel__theme { position: absolute; top: 20px; left: 24px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.orb-readout { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.orb-readout b { font-size: 17px; line-height: 22px; font-weight: 600; }
.orb-readout .mono { font-size: 13px; line-height: 18px; color: var(--text-2); }
.orb-readout__meta { font-size: 13px; line-height: 18px; color: var(--agent-label); }
.orb-controls { display: grid; gap: 16px; padding: 24px 16px 8px; }
.orb-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.orb-ctl__k { width: 56px; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--page-text-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--page-line); background: rgba(255, 255, 255, .04); color: var(--page-text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .3s var(--spring), color .3s var(--spring), transform .25s var(--spring); }
.opt:hover { background: rgba(255, 255, 255, .09); }
.opt:active { transform: scale(.97); }
.opt[aria-checked="true"] { background: #F5F5F7; color: #0A0A0B; border-color: transparent; }
.opt__dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--orb-core) 0%, var(--orb-mid) 40%, var(--orb-light) 68%, var(--orb-rim) 100%); transition: --orb-core .6s, --orb-mid .6s, --orb-light .6s, --orb-rim .6s; }
.orb-note { margin: 0; padding-left: 80px; min-height: 24px; font-size: 15px; line-height: 24px; color: var(--page-text-2); }
.expr-sets { display: grid; gap: 48px; }
.expr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.expr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 12px 20px; border-radius: 20px; background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); text-align: center; }
.expr__stage { position: relative; display: grid; place-items: center; width: 100%; height: 104px; }
.expr__cursor { position: absolute; left: calc(50% + 40px); top: 4px; width: 18px; height: 18px; fill: var(--text); stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
.expr figcaption b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.expr figcaption span { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.sub-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin: 96px 0 32px; }
.sub-hd h3 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.sub-hd p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--page-text-2); max-width: 52ch; }
.preset-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.preset { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 40px 16px 24px; border-radius: 20px; background: var(--page-raised); border: 1px solid var(--page-line); text-align: center; }
.preset figcaption b { display: block; font-size: 15px; font-weight: 600; text-transform: capitalize; }
.preset figcaption span { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--page-text-2); }

/* ==========================================================================
   6. MOTION: press states, toast, demo touches, the live demo section and
   scroll reveals
   ========================================================================== */
:where(.device) button.is-pressed { transform: scale(.97); }
.row { transition: background-color .25s var(--spring); }
.row[data-open-thread] { cursor: pointer; }
.row:is(:active, .is-pressed) { background: var(--surface-2); }
.btn-primary { position: relative; overflow: hidden; transition: transform .3s var(--spring), box-shadow .3s var(--spring); }
.btn-primary:is(:active, .is-pressed) { box-shadow: 0 3px 10px -6px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-primary.is-loading { pointer-events: none; }
.btn-primary.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .42) 50%, transparent 75%); animation: btn-shimmer .8s linear infinite; }
@keyframes btn-shimmer { from { translate: -100% 0; } to { translate: 100% 0; } }
.continue__circle { transition: transform .3s var(--spring), box-shadow .3s var(--spring); }
.continue:is(:active, .is-pressed) .continue__circle { transform: scale(.92); box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 30%, transparent); }
.suggest li { cursor: pointer; transition: background-color .2s var(--spring); }
.suggest li.is-pressed { background: var(--chip-bg); }
.suggest[hidden] { display: none; }
.cfield__v:empty::before { content: attr(data-placeholder); color: var(--text-2); font-weight: 400; }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 1px; vertical-align: -4px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.bubble__sub { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.approve { display: flex; gap: 8px; margin-top: 10px; }
.approve button { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 15px; font-weight: 600; }
.approve__yes { background: var(--accent); color: var(--on-accent); }
.approve__no { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--separator); }
.approved { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2); }
.approved .ic { color: var(--success); }

/* Undo toast: the Send button morphs into it, the ring drains over 5 s */
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 44px; z-index: 50; display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 8px 0 12px; border-radius: 18px; transform-origin: 0 0;
  background: var(--toast-bg); color: var(--toast-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.toast__ring { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; }
.toast__ring svg { position: absolute; inset: 0; rotate: -90deg; }
.toast__ring circle { fill: none; stroke-width: 3; }
.toast__track { stroke: rgba(255, 255, 255, .18); }
.toast__drain { stroke: var(--toast-accent); stroke-dasharray: 94.25; stroke-linecap: round; }
.toast__ring b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.toast__text { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.toast__text .mono { font-size: 14px; }
.toast__undo { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--toast-accent); }
.toast__orb { display: grid; place-items: center; width: 36px; flex: none; }
.toast__check { display: grid; place-items: center; width: 40px; color: var(--toast-accent); }

/* A visible touch so viewers can follow what the demo presses */
.touch { position: absolute; z-index: 70; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; background: rgba(100, 116, 139, .3); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8), 0 2px 10px rgba(0, 0, 0, .25); }
.device[data-paused] *, .device[data-paused] *::before { animation-play-state: paused !important; }

/* Live demo controls (demo.html) */
.demo .phone-slot figcaption, .demo-card .phone-slot figcaption { display: none; }
.demo__play {
  position: absolute; left: 50%; top: 50%; z-index: 5; translate: -50% -50%;
  display: grid; place-items: center; width: 88px; height: 88px; border: 0; border-radius: 50%;
  background: rgba(245, 245, 247, .94); color: #0A0A0B; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  transition: opacity .35s var(--spring), scale .35s var(--spring);
}
.demo__play:hover { scale: 1.05; }
.demo__play .ic { margin-left: 4px; }
.demo[data-state="playing"] .demo__play { opacity: 0; scale: .9; pointer-events: none; }
.demo__step { margin: 8px 0 0; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--page-text-2); }
.demo__caption { margin: 0; min-height: 52px; font-size: 18px; line-height: 26px; letter-spacing: -0.01em; color: var(--page-text); }
.pbtn--ghost { background: rgba(255, 255, 255, .08); color: var(--page-text); box-shadow: inset 0 0 0 1px var(--page-line); }

/* Scroll reveals, phone tilt and theme cross-fade */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--spring), translate .8s var(--spring); transition-delay: calc(var(--ri, 0) * 70ms); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.phone-box { transition: transform .6s var(--spring); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Reduced motion (the page toggle, preset from the system setting): states and
   colours still change, instantly, and movement becomes short cross-fades. */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion :is(.wave-hd__topo, .wave-hd__wave, .btn-primary::after, .caret) { animation: none !important; }
html.reduce-motion .is-behind { transform: none; }
html.reduce-motion .sheet { translate: 0 0; opacity: 0; transition: opacity .25s ease !important; }
html.reduce-motion .sheet.is-open { opacity: 1; }
html.reduce-motion .scrim { transition: opacity .25s ease !important; }
html.reduce-motion .reveal { translate: none; transition: opacity .4s ease !important; }
html.reduce-motion :is(.orb, .orb *, .orb *::before) { animation: none !important; transition: none !important; }
html.reduce-motion :is(.orb, .orb__ball) { translate: none !important; }

/* Responsive page chrome */
@media (max-width: 1100px) {
  .controls__nav { display: none; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .sec__hd, .sub-hd { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .orb-note { padding-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 96px 0 80px; }
  .controls .wrap { flex-wrap: wrap; gap: 8px 16px; }
  .controls__brand small { display: none; }
  .controls__group { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; }
  .pseg button { padding: 6px 10px; }
  .sec { padding-top: 96px; }
  .sec__hd { margin-bottom: 40px; }
  .orb-panel { min-height: 300px; gap: 28px; padding: 48px 16px 32px; }
  .orb-lab { padding: 8px; border-radius: 24px; }
}

/* ==========================================================================
   7. INDEX: compact live demo card
   ========================================================================== */
.sec--card { padding-top: 96px; }
.demo-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px 72px;
  padding: 40px 64px; border-radius: 32px; overflow: hidden;
  background: var(--page-raised); border: 1px solid var(--page-line);
}
.demo-card::before {
  content: ""; position: absolute; inset: -40% auto auto -10%; width: 60%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(167, 155, 255, .12), transparent);
}
.demo-card__phone { position: relative; width: 210px; }
.demo-card__text { position: relative; display: grid; justify-items: start; gap: 16px; max-width: 46ch; }
.demo-card__text h2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.demo-card__text p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--page-text-2); }
.demo-card__text .pbtn { margin-top: 8px; text-decoration: none; padding: 12px 20px; font-size: 15px; }
a.pbtn { text-decoration: none; }

/* Footer on both pages */
.site-foot { border-top: 1px solid var(--page-line); }
.site-foot .wrap { padding-top: 40px; padding-bottom: 48px; }
.site-foot p { margin: 0; font-size: 14px; line-height: 20px; color: var(--page-text-2); }
.site-foot p + p { margin-top: 6px; font-size: 13px; }
.site-foot a { color: var(--page-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.demo-page .site-foot .wrap { padding-top: 6px; padding-bottom: 8px; }
.demo-page .site-foot p { font-size: 12px; line-height: 16px; text-align: center; }
.demo-page .site-foot p + p { margin-top: 2px; font-size: 11px; }

/* ==========================================================================
   8. DEMO PAGE: one large phone that always fits the viewport height
   ========================================================================== */
.demo-page { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.dp-bar { position: relative; z-index: 10; background: rgba(8, 9, 12, .72); border-bottom: 1px solid var(--page-line); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.dp-bar .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.dp-brand { margin: 0 auto 0 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.dp-brand span { font-weight: 500; color: var(--page-text-2); }
.dp-back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 8px; border-radius: 8px; color: var(--page-text-2); font-size: 14px; text-decoration: none; transition: color .25s var(--spring), background .25s var(--spring); }
.dp-back:hover { color: var(--page-text); background: rgba(255, 255, 255, .06); }
.dp-main.demo { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 16px 16px 18px; }
.dp-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.dp-stage .phone-row { gap: 0; }
.dp-panel { justify-self: center; display: grid; justify-items: center; gap: 10px; width: min(100%, 880px); text-align: center; }
.demo__bar { width: 100%; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.demo__bar i { display: block; height: 100%; background: #F5F5F7; transform-origin: 0 50%; transform: scaleX(0); }
.dp-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 14px; margin: 0; min-height: 24px; }
.dp-caption .demo__step { margin: 0; }
.dp-caption .demo__caption { min-height: 0; font-size: 16px; line-height: 24px; }
.dp-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.dp-buttons { display: flex; gap: 8px; }
.demo__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.demo__dot {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06);
  color: var(--page-text-2); font: 600 12px/1 var(--font-mono); box-shadow: inset 0 0 0 1px var(--page-line);
  transition: background-color .3s var(--spring), color .3s var(--spring), transform .25s var(--spring);
}
.demo__dot:hover { background: rgba(255, 255, 255, .14); color: var(--page-text); }
.demo__dot:active { transform: scale(.94); }
.demo__dot.is-done { color: var(--page-text); }
.demo__dot[aria-current="step"] { background: #F5F5F7; color: #0A0A0B; box-shadow: none; }
.dp-keys { margin: 0; font-size: 12px; line-height: 16px; color: var(--page-text-2); }
.dp-keys kbd { font: 500 11px/1 var(--font-mono); padding: 2px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--page-line); color: var(--page-text); }
/* Clean mode: only the phone, for screen recording */
.is-clean .dp-bar, .is-clean .dp-panel, .is-clean .demo__play, .is-clean .site-foot { display: none; }
.is-clean.demo-page { grid-template-rows: minmax(0, 1fr); }
.is-clean .dp-main.demo { grid-template-rows: minmax(0, 1fr); padding: 16px; }
.dp-exit { position: fixed; top: 16px; right: 16px; z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s var(--spring); }
.dp-exit[hidden] { display: none; }
.is-clean .dp-exit { display: inline-flex; }
.is-clean.show-exit .dp-exit { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .demo-card { grid-template-columns: 1fr; justify-items: center; padding: 32px 24px; text-align: center; }
  .demo-card__text { justify-items: center; }
}
@media (max-width: 640px) {
  .dp-brand { font-size: 15px; }
  .dp-keys { display: none; }
  .dp-main.demo { gap: 12px; padding: 12px 12px 16px; }
}

/* ==========================================================================
   9. CARDS, SETTINGS AND BRAND
   ========================================================================== */
/* Long message cards */
.line__body--card { flex: 1; max-width: none; }
.card { --card-bg: var(--bubble-in); position: relative; width: 100%; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--card-bg); color: var(--text); font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; }
.card--agent { --card-bg: var(--agent-tint); border: 1px solid color-mix(in srgb, var(--id) 45%, var(--agent-line)); }
.card__hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 12px; line-height: 16px; color: var(--text-2); }
.card__route { flex: 1; }
.card__route b { font-weight: 600; color: var(--text); }
.card__hd time { flex: none; font-variant-numeric: tabular-nums; }
.card__badge { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; padding: 2px 8px; border-radius: 6px; background: var(--chip-bg); color: var(--chip-text); font-size: 12px; line-height: 16px; font-weight: 600; }
.card__body { position: relative; overflow: hidden; }
.card__body p { margin: 0 0 8px; }
.card__body p:last-child, .card__body ul:last-child { margin-bottom: 0; }
.card__body ul { margin: 0 0 8px; padding-left: 18px; }
.card__body li + li { margin-top: 3px; }
.card__body b { font-weight: 600; }
.card[data-clamp]:not([data-expanded]) .card__body { max-height: 128px; }
.card[data-clamp]:not([data-expanded]) .card__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, var(--card-bg)); }
.card__more { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--chip-text); }
.card__files { display: flex; gap: 8px; margin-top: 10px; }
.thumb { position: relative; display: grid; place-items: center; width: 72px; height: 54px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
.thumb--file { align-content: center; gap: 2px; background: var(--surface); color: var(--file-icon); }
.thumb--file b { font-size: 9px; line-height: 10px; letter-spacing: .06em; color: var(--text-2); }
.thumb--photo-a { background: linear-gradient(180deg, #BFD7EA 0 42%, #E9DCC8 42% 72%, #A8805C 72%); }
.thumb--photo-b { background: linear-gradient(160deg, #F3E2C7 0%, #D2A273 55%, #87593A 100%); }

/* Settings: iOS grouped lists */
.settings { padding-top: 54px; background: var(--bg); }
.snav { flex: none; display: flex; align-items: center; height: 44px; padding: 0 8px; }
.acct-card { display: flex; align-items: center; gap: 14px; margin: 16px 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.acct-card__text { flex: 1; min-width: 0; display: grid; }
.acct-card__text b { font-size: 17px; line-height: 22px; font-weight: 600; }
.acct-card__text .mono { font-size: 13px; line-height: 18px; color: var(--text-2); }
.plan-chip { padding: 4px 10px; border-radius: 99px; background: var(--chip-bg); color: var(--chip-text); font-size: 12px; font-weight: 600; }
.glist { list-style: none; margin: 24px 16px 0; padding: 0; border-radius: 14px; background: var(--surface); overflow: hidden; }
.settings .scroll > :last-child { margin-bottom: 104px; }
.glist > li { position: relative; }
.glist > li + li::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; background: var(--separator); }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; text-align: left; color: var(--text); font-size: 17px; }
.srow__ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--chip-bg); color: var(--chip-text); }
.srow__label { flex: 1; }
.srow__value { font-size: 15px; color: var(--text-2); }
.srow__chev { display: grid; flex: none; color: var(--text-2); }
.srow--danger { justify-content: center; color: var(--danger); font-weight: 500; }
.nav__end { display: flex; align-items: center; gap: 2px; }
.nav__link { height: 44px; padding: 0 6px; color: var(--accent); font-size: 17px; }
/* Action sheet (sign out): floats above the home indicator, no scaled background */
.action-sheet { left: 8px; right: 8px; bottom: 34px; gap: 8px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.action-sheet__group, .action-sheet__cancel { border-radius: 14px; background: var(--sheet); overflow: hidden; }
.action-sheet__title { margin: 0; padding: 14px 16px; text-align: center; font-size: 13px; line-height: 18px; color: var(--text-2); box-shadow: inset 0 -1px 0 var(--separator); }
.action-sheet__title .mono { color: var(--text); }
.action-sheet__btn { display: block; width: 100%; height: 56px; font-size: 20px; color: var(--accent); }
.action-sheet__btn--danger { color: var(--danger); }
.action-sheet__cancel { font-weight: 600; }
.action-sheet:not(.is-open) { translate: 0 calc(100% + 40px); }
.add-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.s-intro { margin: 8px 20px 0; font-size: 15px; line-height: 21px; color: var(--text-2); }
.s-intro .mono { font-size: 14px; color: var(--text); }
/* Settings > Assistants: orb, handle, model as plain text, what it does, switch */
.glist--subs > li + li::before { left: 68px; }
.asrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.asrow__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.asrow__top { display: flex; align-items: baseline; gap: 8px; }
.asrow__top b { font-size: 16px; line-height: 21px; font-weight: 600; }
.asrow__model { font-size: 13px; line-height: 18px; color: var(--text-2); }
.asrow__does { font-size: 13px; line-height: 18px; color: var(--text-2); }

/* Add assistant: numbered steps, model chips, a handle field and colours */
.add-hd { display: grid; justify-items: center; gap: 14px; padding: 16px 16px 4px; text-align: center; }
.cstep { display: flex; gap: 12px; margin: 16px 16px 0; padding: 14px; border-radius: 14px; background: var(--surface); }
.cstep__n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--chip-bg); color: var(--chip-text); font-size: 13px; font-weight: 700; }
.cstep__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cstep__main > b, .cstep__main > label > b { font-size: 16px; line-height: 21px; font-weight: 600; }
.cstep__main > span { font-size: 13px; line-height: 18px; color: var(--text-2); }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mchip { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 500; }
.mchip[aria-checked="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.hfield { display: flex; align-items: center; gap: 2px; height: 40px; margin-top: 6px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); font-size: 16px; }
.hfield:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.hfield input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.swatches--lg { flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.swatches--lg .swatch { width: 30px; height: 30px; }
.settings .btn-primary { width: calc(100% - 32px); margin: 24px 16px 0; }
.add-done { display: grid; justify-items: center; gap: 10px; padding: 40px 24px 0; text-align: center; }
.add-done .orb { margin-bottom: 18px; }
.add-done p { margin: 0; font-size: 15px; color: var(--text); }
.add-done .s-intro { margin: 0; color: var(--text-2); }
.add-done .btn-primary { width: 100%; margin: 20px 0 0; }

/* Permissions: one group per assistant */
.perm__hd { display: flex; align-items: center; gap: 10px; margin: 24px 32px 8px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
.glist--perm { margin-top: 0; }
.glist--perm > li + li::before { left: 14px; }
.prow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; }
.prow__main { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 16px; line-height: 21px; }
.prow__main small { font-size: 12px; line-height: 16px; color: var(--text-2); }

/* Brand: logo in the hero, app icon tile and home screen row */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px 64px; }
.hero__title { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px); }
.hero__logo { flex: none; width: clamp(56px, 7vw, 100px); height: auto; aspect-ratio: 1; margin-top: .1em; filter: drop-shadow(0 16px 32px rgba(91, 79, 224, .35)); }
.hero__note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 15px; line-height: 1.5; color: var(--page-text-2); }
.hero__swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(167, 155, 255, .22); }
.brand-tile { display: grid; gap: 24px; padding: 28px; border-radius: 28px; background: var(--page-raised); border: 1px solid var(--page-line); }
.brand-tile__k { margin: 0; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--page-text-2); }
.brand-tile__icons { display: flex; justify-content: center; gap: 20px; }
.brand-tile figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.brand-tile figcaption { font-size: 13px; color: var(--page-text-2); }
.appicon { position: relative; display: grid; place-items: center; width: 84px; aspect-ratio: 1; overflow: hidden; border-radius: 22.37%; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.appicon .nexa-logo { width: 82%; height: 82%; }
/* The same logo in three iOS icon styles: only the colours change */
.appicon--light { background: linear-gradient(180deg, #FFFFFF, #ECEAE5); --logo-bubble: #5B4FE0; --logo-ball: #FFFFFF; --logo-eye: #2E2580; }
.appicon--dark { background: linear-gradient(160deg, #211F2B, #0E0D14); --logo-bubble: #A79BFF; --logo-ball: #14121C; --logo-eye: #A79BFF; }
.appicon--tinted { background: linear-gradient(160deg, #2C2C2E, #0E0E10); --logo-bubble: #CFC8FF; --logo-ball: #1A1A1D; --logo-eye: #CFC8FF; }
.homerow { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-radius: 22px; background: linear-gradient(160deg, #2E2766 0%, #5B4FE0 55%, #FF8A65 100%); }
.homerow__app { display: grid; justify-items: center; gap: 6px; }
.homerow .appicon { width: 56px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.homerow__app b { font-size: 11px; line-height: 13px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.appicon--ph { background: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.homerow__bar { width: 32px; height: 6px; margin: 3px 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .brand-tile { justify-self: start; }
}
@media (max-width: 640px) {
  .brand-tile { justify-self: stretch; padding: 20px; }
  .brand-tile__icons { gap: 12px; }
  .appicon { width: 72px; }
  .homerow { padding: 18px 16px 14px; gap: 8px; }
}
