/* Relay landing. One theme family (auto light/dark), one accent (Relay violet),
   one radius scale: 10px controls, 16px panels, full pill for buttons and chips. */

:root {
  --bg: #0b0c10;
  --bg-2: #111318;
  --panel: #15171d;
  --panel-2: #1b1e25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef2;
  --text-2: #a3a8b4;
  --text-3: #707684;
  --accent: #8b7dff;
  --accent-strong: #6c5ce7;
  --accent-soft: rgba(139, 125, 255, 0.14);
  --on-accent: #ffffff;
  --ok: #3ccf8e;
  --shadow: 0 30px 80px -20px rgba(4, 3, 20, 0.7);
  --r-sm: 10px;
  --r: 16px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f9;
    --bg-2: #eeeef3;
    --panel: #ffffff;
    --panel-2: #f3f3f7;
    --line: rgba(20, 20, 40, 0.08);
    --line-2: rgba(20, 20, 40, 0.14);
    --text: #14151b;
    --text-2: #4f5463;
    --text-3: #7c8190;
    --accent: #5b4ee0;
    --accent-strong: #5b4ee0;
    --accent-soft: rgba(91, 78, 224, 0.1);
    --ok: #12a46a;
    --shadow: 0 30px 70px -24px rgba(50, 40, 120, 0.28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; max-width: 18ch; }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
kbd {
  font-family: var(--mono); font-size: 0.72em; padding: 1px 6px;
  border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brand logo: the Relay app icon (build/icon.png). The PNG has macOS icon padding, so it is scaled up slightly. */
.logo { width: 30px; height: 30px; transform: scale(1.18); filter: drop-shadow(0 4px 10px rgba(108, 92, 231, .35)); }
.logo--lg { width: 52px; height: 52px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary {
  background: var(--accent-strong); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 24px -10px var(--accent-strong);
}
.btn--primary:hover { background: #5a4bd6; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav__links a:hover { color: var(--text); }
.lang { margin-left: auto; margin-right: -8px; font-size: 13px; font-weight: 500; color: var(--text-2); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang:hover { color: var(--text); border-color: var(--text-3); }

/* Hero */
.hero { position: relative; overflow: clip; }
.aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 72% 30%, rgba(108, 92, 231, .32), transparent 70%),
    radial-gradient(30% 40% at 90% 10%, rgba(79, 107, 255, .2), transparent 70%);
  filter: blur(20px);
}
.hero__inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 72px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center;
  min-height: calc(100dvh - 64px);
}
.hero h1 { font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 .muted { display: block; }
.lede { margin-top: 22px; font-size: 18px; color: var(--text-2); max-width: 40ch; }
.cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* App window preview */
.window {
  border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 13px;
}
.window__bar {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl--r { background: #ff5f57; } .tl--y { background: #febc2e; } .tl--g { background: #28c840; }
.window__search {
  margin-left: 18px; display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px; border-radius: 8px; color: var(--text-3);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; flex: 0 1 260px;
}
.window__search kbd { margin-left: auto; }
.window__body { display: grid; grid-template-columns: 52px 250px 1fr; height: 440px; }

.rail { border-right: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--bg-2); }
.rail__item {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--panel-2); color: #fff; font-size: 16px;
}
.rail__item.is-on { background: var(--accent-strong); }
.rail__item svg { width: 17px; height: 17px; }

.list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.list__tabs { display: flex; gap: 4px; padding: 10px 10px 8px; }
.list__tabs button { font: inherit; border: 0; background: none; cursor: pointer; padding: 4px 10px; border-radius: 999px; color: var(--text-3); font-size: 12px; }
.list__tabs .is-on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.list__items { list-style: none; margin: 0; padding: 0 6px 6px; overflow-y: auto; scrollbar-width: none; flex: 1; min-height: 0; }
.list__items::-webkit-scrollbar { display: none; }
.chat {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center;
  padding: 8px; border-radius: 10px;
}
.chat.is-on { background: var(--accent-soft); }
.chat.is-new { animation: slideIn .7s var(--ease) both; }
.av { position: relative; width: 38px; height: 38px; }
.av img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.av .badge {
  position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--panel);
}
.av .badge svg { width: 9px; height: 9px; }
.chat__main { min-width: 0; }
.chat__main b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__main span { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--text-3); }
.unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 10.5px; display: grid; place-items: center; font-weight: 600; }

.convo { display: flex; flex-direction: column; min-width: 0; min-height: 0; background:
  radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 60%), var(--panel); }
.convo__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.convo__head img { border-radius: 50%; }
.convo__head b { display: block; font-size: 13px; font-weight: 500; }
.convo__head small { display: block; font-size: 11px; color: var(--text-3); }
.convo__msgs { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.convo__msgs > :first-child { margin-top: auto; }
.convo__msgs::-webkit-scrollbar { display: none; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; }
.msg--in { background: var(--panel-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--code { font-family: var(--mono); font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.msg--out { background: var(--accent-strong); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.ticks { color: #b9e6ff; font-size: 13px; display: inline-flex; }
.smart {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; min-width: 230px;
  background: var(--panel); border: 1px solid var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.smart__icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.smart b { display: block; font-size: 12.5px; font-weight: 600; }
.smart small { display: block; font-size: 11px; color: var(--text-3); }
.smart__act { margin-left: auto; font-size: 11.5px; color: var(--accent); font-weight: 500; }
.convo__composer {
  margin: 0 12px 12px; height: 36px; border-radius: 999px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-3); font-size: 12.5px;
}

/* Networks */
.networks { max-width: 1200px; margin: 0 auto; padding: 8px 24px 96px; text-align: center; }
.networks__label { color: var(--text-3); font-size: 14px; }
.networks__row {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.networks__row li {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.networks__row li:hover { transform: translateY(-3px); border-color: var(--line-2); }
.networks__row svg { width: 22px; height: 22px; }

/* Sections */
section { scroll-margin-top: 80px; }
.section-lede { margin-top: 18px; color: var(--text-2); font-size: 17px; max-width: 58ch; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }

/* How it works */
.how { max-width: 1200px; margin: 0 auto; padding: 56px 24px 120px; }
.flow {
  position: relative; margin-top: 56px; padding: 48px 32px 32px;
  border-radius: var(--r); border: 1px dashed var(--line-2);
  display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 0;
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.flow__boundary { position: absolute; top: -13px; left: 24px; }
.flow__boundary span {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2);
}
.flow__nets { display: grid; grid-template-columns: repeat(3, 34px); gap: 8px; }
.flow__nets span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.flow__nets svg { width: 17px; height: 17px; }
.flow__node {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 20px; min-width: 150px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line-2);
}
.flow__node > i { font-size: 26px; color: var(--text-2); }
.flow__node b { font-weight: 600; font-size: 15px; }
.flow__node small { color: var(--text-3); font-size: 12.5px; }
.flow__node--app { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); }
.flow__wire { position: relative; height: 2px; margin: 0 12px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.pkt {
  position: absolute; top: -1px; left: 0; width: 22px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: pkt 2.4s linear infinite;
}
.pkt:nth-child(2) { animation-delay: .8s; }
.pkt:nth-child(3) { animation-delay: 1.6s; }

.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts i { font-size: 22px; color: var(--accent); margin-top: 2px; }
.facts b { display: block; font-weight: 500; }
.facts span { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* Bento */
.features { max-width: 1200px; margin: 0 auto; padding: 40px 24px 120px; }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 28px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.cell p { color: var(--text-2); font-size: 15px; max-width: 46ch; }
.cell--bills {
  grid-column: span 4; grid-row: span 2; justify-content: space-between;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(108, 92, 231, .28), transparent 60%),
    var(--panel);
}
.cell--smart { grid-column: span 2; }
.cell--accounts {
  grid-column: span 2;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 14px 14px;
  background-color: var(--panel);
}
.cell--cmd { grid-column: span 3; }
.cell--lock {
  grid-column: span 3;
  background: linear-gradient(160deg, #1d1838, #0f1020 70%);
  border-color: rgba(139, 125, 255, .22); color: #eceef2;
}
.cell--lock p { color: #b3b0d6; }
.lock__glyph { position: absolute; right: -18px; top: -18px; font-size: 200px; color: rgba(139, 125, 255, .35); }

.bills { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; max-width: 560px; width: 100%; align-self: flex-end; }
.bills__head { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 4px 4px 14px; color: var(--text-3); font-size: 13px; }
.bills__head b { grid-row: span 2; align-self: center; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.bills__head small { font-size: 13px; }
.bill {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--panel-2) 85%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.bill:nth-child(2) { margin-left: 28px; }
.bill:nth-child(3) { margin-left: 56px; }
.bill__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.bill b { display: block; font-weight: 500; font-size: 14px; }
.bill small { display: block; color: var(--text-3); font-size: 12.5px; }
.bill__amt { text-align: right; font-family: var(--mono); font-size: 14px; }
.bill__amt em { display: block; font-style: normal; font-family: var(--font); font-size: 12px; color: var(--text-3); }
.bill__amt em.ok { color: var(--ok); }

.otp {
  margin-bottom: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-3);
}
.otp b { font-size: 26px; color: var(--text); letter-spacing: .06em; font-weight: 500; }
.otp__btn { align-self: flex-start; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.stack { margin-bottom: auto; display: flex; flex-direction: column; gap: 8px; }
.acct {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-2); font-size: 13px; width: fit-content;
}
.acct:nth-child(2) { margin-left: 22px; }
.acct:nth-child(3) { margin-left: 44px; }
.acct span.t { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.acct svg { width: 13px; height: 13px; }
.acct small { color: var(--text-3); }

.palette { margin-bottom: auto; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); overflow: hidden; font-size: 13px; max-width: 380px; }
.palette__q { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.palette__q i { color: var(--text-3); }
.caret { width: 1.5px; height: 15px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.palette__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text-2); }
.palette__row kbd { margin-left: auto; }
.palette__row.is-on { background: var(--accent-soft); color: var(--text); }

/* AI */
.ai {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 120px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.seg { margin-top: 28px; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); }
.seg button {
  font: inherit; font-size: 14px; font-weight: 500; border: 0; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--text-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg button[aria-selected="true"] { background: var(--accent-strong); color: #fff; }
.prov-note { margin-top: 14px; color: var(--text-3); font-size: 14px; max-width: 46ch; min-height: 2.8em; }

.summary {
  border-radius: var(--r); padding: 22px; background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.summary__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary__title { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.summary__title i { color: var(--accent); }
.summary__src { font-size: 12.5px; color: var(--text-3); }
.summary__block { padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.summary__block b { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.summary__block p { margin-top: 4px; font-size: 15px; }
.summary__foot { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-3); transition: opacity .3s var(--ease); }

.ai__chips { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ai__chips li {
  display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--text-2);
}
.ai__chips i { color: var(--accent); font-size: 17px; }

/* Closer */
.closer { max-width: 1200px; margin: 0 auto; padding: 80px 24px 140px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.closer h2 { max-width: none; font-size: clamp(2.25rem, 5vw, 4rem); }
.closer__meta { color: var(--text-3); font-size: 14px; margin-top: -12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot__inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-3); font-size: 14px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot nav a:hover { color: var(--text); }

/* Motion */
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pkt { from { transform: translateX(-30px); } to { transform: translateX(400px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .06s; }
.bento .reveal:nth-child(3) { transition-delay: .12s; }
.bento .reveal:nth-child(4) { transition-delay: .06s; }
.bento .reveal:nth-child(5) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .chat.is-new, .pkt, .caret { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pkt { display: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .window__body { grid-template-columns: 52px 220px 1fr; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .hero__copy { max-width: 640px; }
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; justify-items: center; padding: 40px 20px 24px; }
  .flow__wire { width: 2px; height: 36px; margin: 12px 0; }
  .pkt { width: 4px; height: 18px; left: -1px; top: 0; background: linear-gradient(180deg, transparent, var(--accent)); animation-name: pktV; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .bento { grid-template-columns: 1fr; }
  .cell--bills, .cell--smart, .cell--accounts, .cell--cmd, .cell--lock { grid-column: auto; grid-row: auto; }
  .ai { grid-template-columns: 1fr; gap: 36px; }
}
@keyframes pktV { from { transform: translateY(-20px); } to { transform: translateY(60px); } }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner, .hero__inner, .networks, .how, .features, .ai, .closer, .foot__inner { padding-left: 16px; padding-right: 16px; }
  .window__body { grid-template-columns: 1fr; height: auto; }
  .rail, .convo { display: none; }
  .list__items { max-height: 360px; }
  .bill:nth-child(2), .bill:nth-child(3) { margin-left: 0; }
  .cell { padding: 22px; }
  .hero__inner { padding-bottom: 48px; }
  .btn--sm .ph-apple-logo { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Interactive inbox */
.window button { font: inherit; color: inherit; }
.rail__item { border: 0; cursor: pointer; transition: transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease); opacity: .55; }
.rail__item:hover { opacity: .9; }
.rail__item.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px color-mix(in srgb, var(--text) 35%, transparent); }
.rail__item:active { transform: scale(.94); }
.list__tabs button:hover { color: var(--text-2); }
.list__tabs button.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.chat { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; transition: background .2s var(--ease); }
.chat:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.chat.is-on, .chat.is-on:hover { background: var(--accent-soft); }
.logo-av { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.convo__head .logo-av { font-size: 10px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 18px; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.empty i { font-size: 26px; color: var(--text-3); }
.msg.is-new, .smart.is-new { animation: msgIn .45s var(--ease) both; }
.msg--out.is-new { transform-origin: bottom right; }
.typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.smart__act { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.smart__act:hover { background: var(--accent-soft); }
.smart__act.is-done { color: var(--ok); }
.convo__composer { padding: 0 6px 0 14px; transition: border-color .2s var(--ease); }
.convo__composer:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.convo__composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 12.5px; }
.convo__composer input::placeholder { color: var(--text-3); }
.convo__composer button { width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--accent-strong); color: #fff; font-size: 13px; }
.convo__composer button:active { transform: scale(.92); }
.convo__back { display: none; border: 0; background: none; cursor: pointer; font-size: 18px; padding: 2px; margin-left: -4px; color: var(--text-2); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .msg.is-new, .smart.is-new, .typing i { animation: none !important; }
}
@media (max-width: 760px) {
  .window__body { height: 460px; }
  .list { border-right: 0; }
  .window.is-open .list { display: none; }
  .window.is-open .convo { display: flex; }
  .convo__back { display: grid; }
}
