/* instant.im marketing site. One stylesheet, no framework. The build serves it under a
   content-hashed name with a year-long cache. */

:root {
  color-scheme: light dark;
  --font-sans: "Allo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Goeist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #f7f7fb;
  --bg-2: #efeff6;
  --panel: #ffffff;
  --fg: #111118;
  --muted: #5d5d72;
  --faint: #8a8aa0;
  --line: #e4e4ee;
  --accent: #5b5bf6;
  --accent-2: #8b5cf6;
  --accent-soft: #ececff;
  --accent-fg: #ffffff;
  --ok: #16a34a;
  --shadow: 0 1px 2px rgb(17 17 24 / 6%), 0 12px 40px rgb(17 17 24 / 10%);
  --shadow-sm: 0 1px 2px rgb(17 17 24 / 6%), 0 4px 16px rgb(17 17 24 / 6%);
  --radius: 16px;
  /* The floating header: its gap from the top (clear of the iOS status bar) and its height. */
  --top-gap: calc(env(safe-area-inset-top, 0px) + 10px);
  --top-h: 56px;
  --top-space: calc(var(--top-gap) + var(--top-h));
  --glass: color-mix(in srgb, var(--panel) 74%, transparent);
  --glass-edge: rgb(255 255 255 / 55%);
  --glass-shine: rgb(255 255 255 / 60%);
  /* The lavender the page fades from at the top and into at the bottom. It is also the root
     background, which Safari paints above the page and in the pull-down bounce, so the hero's
     glow carries on past the edge. Keep the theme-color metas in site/layout.mjs the same. */
  --tint: #e9e9fb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --bg-2: #11111a;
    --panel: #15151f;
    --fg: #f2f2f7;
    --muted: #a0a0b8;
    --faint: #6f6f88;
    --line: #262636;
    --accent: #7b6bff;
    --accent-2: #a78bfa;
    --accent-soft: #1f1d3a;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 40px rgb(0 0 0 / 45%);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
    --glass: color-mix(in srgb, var(--panel) 72%, transparent);
    --glass-edge: rgb(255 255 255 / 9%);
    --glass-shine: rgb(255 255 255 / 7%);
    --tint: #141427;
  }
}

/* Allo (OFL) with Goeist Mono for code, self-hosted from brand/fonts/web; site/build.mjs copies the files to /fonts. */
@font-face { font-family: "Allo"; src: url("/fonts/AlloVariableFriendly.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Allo"; src: url("/fonts/Allo-Oblique.woff2") format("woff2"); font-weight: 100 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Allo"; src: url("/fonts/Allo-MediumOblique.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Allo"; src: url("/fonts/Allo-SemiBoldOblique.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Allo"; src: url("/fonts/Allo-BoldOblique.woff2") format("woff2"); font-weight: 700 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Goeist Mono"; src: url("/fonts/GoeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-space) + 20px); -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { background: var(--tint); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(var(--tint), var(--bg)) top / 100% 480px no-repeat,
    linear-gradient(var(--bg), var(--tint)) bottom / 100% 360px no-repeat,
    var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* Touch: no grey tap flash or long-press callout on controls (iOS), no double-tap zoom delay, and
   controls don't select as text. Each control shows its own pressed state instead. */
a, button, summary, label, img, .btn { -webkit-touch-callout: none; }
a, button, summary, label, .btn { touch-action: manipulation; }
button, summary, .btn, .nav a, .menu-panel a, .logo { -webkit-user-select: none; user-select: none; }

.wrap { width: min(1120px, 100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center-text { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 20; background: var(--panel); padding: 0.5rem 1rem; border-radius: 10px; }
.skip:focus { top: 0.75rem; }

/* ------------------------------------------------------------------ Header */
/* A floating glass bar. It sits clear of the top edge (below the status bar on iPhone), so the page
   scrolls underneath it and under Safari's own bar instead of meeting a solid strip. */
.top { position: fixed; z-index: 10; top: var(--top-gap); left: 0; right: 0; pointer-events: none; }
.top .wrap { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 1.25rem; height: var(--top-h); width: min(1120px, 100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); padding: 0 0.5rem 0 1.1rem; border-radius: 999px; }
/* The glass is drawn behind the bar, not on it: a backdrop-filter on the bar itself would become the
   frame for position: fixed inside it, trapping the phone menu and its scrim inside the bar. */
.top .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 2px rgb(17 17 24 / 6%), 0 12px 32px rgb(17 17 24 / 12%); }
main { padding-top: var(--top-space); }
.logo { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.12rem; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; gap: 0.15rem; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; padding: 0.4rem 0.75rem; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav a:hover, .nav a:active { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav a[aria-current] { color: var(--fg); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.signin { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.signin:hover, .signin:active { color: var(--fg); }
.top .btn.small { border-radius: 999px; padding: 0.5rem 1rem; }

/* Phone menu. Opens with a dimmed, blurred page behind it, the panel springing out of the button
   and the links cascading in; closes the same way in reverse (js/site.js holds it open for that). */
.menu { display: none; position: relative; --spring: cubic-bezier(0.2, 1.25, 0.35, 1); }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: 999px; transition: background 0.2s; }
.menu summary:active, .menu[open]:not(.closing) summary { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.menu summary::-webkit-details-marker { display: none; }
.menu-line { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.38s var(--spring); }
.menu[open]:not(.closing) .top-line { transform: translateY(3.5px) rotate(45deg); }
.menu[open]:not(.closing) .bottom-line { transform: translateY(-3.5px) rotate(-45deg); }
.menu-scrim { position: fixed; inset: 0; z-index: -2; pointer-events: auto; background: rgb(17 17 30 / 18%); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); }
.menu-panel { position: fixed; top: calc(var(--top-space) + 8px); left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); max-height: calc(100dvh - var(--top-space) - 24px); overflow-y: auto; overscroll-behavior: contain; display: grid; padding: 0.4rem; border-radius: 24px; background: color-mix(in srgb, var(--panel) 94%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-shine), var(--shadow); transform-origin: calc(100% - 36px) -12px; }
.menu-panel a { color: var(--fg); text-decoration: none; font-size: 1.1rem; font-weight: 600; padding: 0.75rem 0.9rem; border-radius: 16px; }
.menu-panel a:active, .menu-panel a[aria-current] { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.menu[open] .menu-scrim { animation: menu-fade-in 0.3s ease-out both; }
.menu[open] .menu-panel { animation: menu-in 0.5s var(--spring) both; }
.menu[open] .menu-panel a { animation: menu-item-in 0.45s var(--spring) both; animation-delay: calc(70ms + var(--i) * 32ms); }
.menu.closing .menu-scrim { animation: menu-fade-out 0.24s ease-in both; }
.menu.closing .menu-panel { animation: menu-out 0.24s cubic-bezier(0.4, 0, 1, 1) both; }
.menu.closing .menu-panel a { animation: menu-item-out 0.16s ease-in both; animation-delay: calc((7 - var(--i)) * 10ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-14px) scale(0.9); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-10px) scale(0.94); } }
@keyframes menu-item-in { from { opacity: 0; transform: translateY(-10px); filter: blur(4px); } }
@keyframes menu-item-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes menu-fade-in { from { opacity: 0; } }
@keyframes menu-fade-out { to { opacity: 0; } }
html:has(.menu[open]) { overflow: hidden; }
@media (prefers-color-scheme: dark) { .menu-scrim { background: rgb(0 0 0 / 45%); } }
@media (prefers-reduced-motion: reduce) {
  .menu-scrim, .menu-panel, .menu-panel a { animation: none !important; }
  .menu-line { transition: none; }
}
@media (max-width: 900px) {
  .nav, .signin { display: none; }
  .menu { display: block; }
  .actions { gap: 0.4rem; }
}

/* ------------------------------------------------------------------ Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.72rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-fg); box-shadow: 0 1px 0 rgb(255 255 255 / 20%) inset, 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 0.45rem 0.85rem; font-size: 0.88rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.links { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after, .more::after { content: " →"; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: clamp(3rem, 9vw, 6rem) 0 0; text-align: center; }
.hero::before, .page-hero::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--top-space)); left: calc(50% - 50vw); right: calc(50% - 50vw); height: 640px; background: radial-gradient(50% 55% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(30% 40% at 78% 10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%); pointer-events: none;
  /* Fade the glow in from the top edge, so the page's top meets Safari's area above it (--tint) without a seam. */
  -webkit-mask-image: linear-gradient(transparent, #000 240px); mask-image: linear-gradient(transparent, #000 240px); }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); max-width: 14ch; margin: 0 auto 1.25rem; letter-spacing: -0.01em; }
.hero .lede, .page-hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }
.pill { display: inline-flex; gap: 0.35rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.shot { margin: clamp(2.5rem, 6vw, 4rem) auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); }
.shot.small { margin: 0; border-radius: var(--radius); }
.shot.tall { max-width: 320px; justify-self: center; max-height: 560px; }
.shot.tall img { object-fit: cover; object-position: top; }

/* The iPhone app in an iPhone Air-style frame (phoneFrame() in site/parts.mjs), drawn in CSS so it
   stays sharp at any size. Set only the `.iphone` width: everything inside is in cqw of it,
   a titanium rim (0.9cqw), an even black bezel (2.3cqw), concentric corners (13.5cqw outside) and
   the Dynamic Island where iOS puts it (in cqw of the screen, which is 1320 px wide in the
   captures). The rim is silver in light mode and Space Black in dark. */
.iphone {
  --rim: linear-gradient(145deg, #f4f5f8 0%, #c6c9d0 16%, #eceef2 36%, #a9adb6 60%, #e7e9ed 80%, #bfc2ca 100%);
  --rim-edge: rgb(17 17 24 / 22%);
  --rim-shine: rgb(255 255 255 / 85%);
  --phone-shadow: 0 1px 2px rgb(17 17 24 / 10%), 0 18px 36px -14px rgb(17 17 24 / 30%), 0 50px 90px -30px color-mix(in srgb, var(--accent) 40%, rgb(17 17 24 / 40%));
  container-type: inline-size;
  position: relative;
  width: 300px;
}
.iphone-frame {
  position: relative;
  isolation: isolate;
  padding: 0.9cqw;
  border-radius: 13.5cqw;
  background: var(--rim);
  box-shadow: inset 0 0 0 0.5px var(--rim-edge), inset 0 0.35cqw 0.2cqw -0.2cqw var(--rim-shine), var(--phone-shadow);
}
@media (prefers-color-scheme: dark) {
  .iphone {
    --rim: linear-gradient(145deg, #55565e 0%, #26272c 16%, #45464d 36%, #1b1c20 60%, #3d3e45 80%, #232428 100%);
    --rim-edge: rgb(255 255 255 / 14%);
    --rim-shine: rgb(255 255 255 / 22%);
    --phone-shadow: 0 1px 2px rgb(0 0 0 / 50%), 0 18px 36px -14px rgb(0 0 0 / 70%), 0 50px 90px -30px color-mix(in srgb, var(--accent) 35%, rgb(0 0 0 / 60%));
  }
}
/* Side buttons: volume on the left, the side button on the right, tucked just behind the rim. */
.iphone-frame::before, .iphone-frame::after { content: ""; position: absolute; z-index: -1; width: 0.85cqw; border-radius: 0.5cqw; background: var(--rim); box-shadow: inset 0 0 0 0.5px var(--rim-edge); }
.iphone-frame::before { left: -0.7cqw; top: 24%; height: 22%; -webkit-mask-image: linear-gradient(#000 0 44%, transparent 44% 56%, #000 56%); mask-image: linear-gradient(#000 0 44%, transparent 44% 56%, #000 56%); }
.iphone-frame::after { right: -0.7cqw; top: 29%; height: 14%; }
.iphone-screen { container-type: inline-size; position: relative; overflow: hidden; border: 2.3cqw solid #000; border-radius: 12.6cqw; background: #000; }
.iphone-screen picture, .iphone-screen img { display: block; width: 100%; }
.iphone-island { position: absolute; top: 3.2cqw; left: 50%; width: 28.5cqw; height: 8.35cqw; translate: -50% 0; border-radius: 999px; background: radial-gradient(circle at calc(100% - 4.2cqw) 50%, #1d2333 0, #0a0c12 1.3cqw, #000 1.9cqw); }

/* The home hero: the office on iPhone, with chat and people just behind it on wide screens. */
.hero-phones { --phone-w: clamp(260px, 78vw, 340px); position: relative; display: grid; justify-items: center; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.hero-phones .iphone { z-index: 1; width: var(--phone-w); }
.hero-phones .side { display: none; }
@media (min-width: 960px) {
  .hero-phones .side { display: block; position: absolute; z-index: 0; top: 7%; left: 50%; width: calc(var(--phone-w) * 0.84); }
  .hero-phones .left { translate: calc(-50% - var(--phone-w) * 0.86) 0; }
  .hero-phones .right { translate: calc(-50% + var(--phone-w) * 0.86) 0; }
}

.page-hero { position: relative; padding: clamp(3rem, 8vw, 5.5rem) 0 0; }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); max-width: 16ch; margin-bottom: 1.1rem; letter-spacing: -0.02em; }
.page-hero .lede { margin: 0; }
.page-hero.center-text h1, .page-hero.center-text .lede { margin-inline: auto; }
.page-hero .links { margin-top: 1.75rem; }
.page-visual { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.page-visual > .mock { max-width: 760px; margin-inline: auto; }
.page-visual.narrow { max-width: 760px; margin-inline: auto; text-align: left; }

/* ------------------------------------------------------------------ Sections */
section { padding: clamp(4rem, 10vw, 7rem) 0 0; }
section.tight { padding-top: clamp(3rem, 7vw, 4.5rem); }
.kicker { color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 0.75rem; }
.kicker a { color: inherit; text-decoration: none; }
.head { max-width: 42rem; margin-bottom: 2.5rem; }
.head h2, .split h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

.ticks { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ticks li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > div > .muted { font-size: 1.1rem; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Replace strip */
.replace { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.replace div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.replace s { color: var(--faint); font-weight: 600; }
.replace strong { display: block; margin-top: 0.35rem; font-size: 1.05rem; }
.replace p { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
@media (max-width: 760px) { .replace { grid-template-columns: 1fr; } }

/* Bento of product cards */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { position: relative; display: flex; flex-direction: column; gap: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.card-text p:not(.kicker) { color: var(--muted); }
.card .more { display: inline-block; margin-top: 0.9rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card > img { border-radius: 12px; border: 1px solid var(--line); margin-top: auto; max-height: 260px; width: 100%; object-fit: cover; object-position: top left; }
.card > .mock { margin-top: auto; }
.card.span-2 { grid-column: span 2; display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; }
.card.span-2 > img, .card.span-2 > .mock { margin: 0; }
.card.span-2 > img { max-height: none; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .card.span-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card.span-2 { grid-column: auto; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); font-size: 1.3rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.45rem; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: 0.97rem; }
.soon { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0.12rem 0.45rem; margin-left: 0.3rem; vertical-align: 0.15em; }

/* Next product links */
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.next a { display: grid; gap: 0.25rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; color: var(--fg); transition: border-color 0.2s; }
.next a:hover { border-color: var(--accent); }
.next b { font-size: 1.15rem; }
.next b::after { content: " →"; color: var(--accent); }
.next span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }

/* Scale */
.scale { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.scale > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.scale h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.scale .size { color: var(--accent); font-weight: 700; display: block; }
@media (max-width: 760px) { .scale { grid-template-columns: 1fr; } }

/* Trust band and security grid */
.trust-band, .sec-grid, .savings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-band { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; gap: 2rem; }
.trust-band h3, .sec-grid h3, .savings h3 { font-size: 1.1rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.trust-band p, .sec-grid p, .savings p { color: var(--muted); font-size: 0.97rem; }
.sec-grid > div, .savings > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.savings { grid-template-columns: 1fr 1fr; }
.savings > div:last-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 860px) { .trust-band, .sec-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .savings { grid-template-columns: 1fr; } }

.status-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status-table th, .status-table td { text-align: left; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.status-table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status-table tbody th { font-weight: 500; }
.status-table td { white-space: nowrap; text-align: right; }
.ok, .later { font-size: 0.85rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; }
.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.later { color: var(--muted); background: var(--bg-2); }

/* ------------------------------------------------------------------ Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plans.duo { grid-template-columns: 1.35fr 1fr; max-width: 880px; align-items: start; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan.best:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow), 0 18px 50px color-mix(in srgb, var(--accent) 16%, transparent); }
.plan .badge { position: absolute; top: -0.7rem; left: 1.4rem; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.plan .blurb { color: var(--muted); font-size: 0.93rem; }
.price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.unit { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 0.15rem; }
.per { color: var(--muted); font-size: 0.88rem; }
.plan .extra { font-size: 0.93rem; padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--accent-soft); color: var(--fg); }
.plan .extra strong { color: var(--accent); }
.plan .btn { width: 100%; margin-top: 0.3rem; }
.plan .ticks { margin: 0.3rem 0 0; gap: 0.45rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.plan .ticks li { font-size: 0.93rem; }
.plan .more { color: var(--accent); font-weight: 600; font-size: 0.93rem; text-decoration: none; margin-top: auto; padding-top: 0.4rem; }
.plan .more:hover { text-decoration: underline; }
.plan.custom .price { font-size: 2rem; }
#pricing .fine, .pricing > .fine { margin-top: 1.5rem; }
@media (max-width: 720px) { .plans, .plans.duo { grid-template-columns: 1fr; } }

/* /pricing: the plan beside the estimator, the custom plan as a band below. */
.pricing { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 980px; margin-inline: auto; align-items: stretch; }
.pricing-grid .plans { display: contents; }
.pricing-grid .plan.custom { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(12rem, 1fr) auto auto; grid-template-areas: "h ticks btn" "b ticks btn"; align-items: center; align-content: center; column-gap: 2rem; row-gap: 0.25rem; padding: 1.25rem 1.6rem; }
.pricing-grid .plan.custom h3 { grid-area: h; align-self: end; }
.pricing-grid .plan.custom .blurb { grid-area: b; align-self: start; }
.pricing-grid .plan.custom .price, .pricing-grid .plan.custom .per { display: none; }
.pricing-grid .plan.custom .ticks { grid-area: ticks; border: 0; padding: 0; margin: 0; }
.pricing-grid .plan.custom .btn { grid-area: btn; width: auto; margin: 0; }
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .plan.custom { grid-row: auto; order: 1; grid-template-columns: 1fr; grid-template-areas: "h" "b" "ticks" "btn"; row-gap: 0.7rem; }
  .pricing-grid .plan.custom .btn { width: 100%; }
}

.estimator { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.est-head h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.est-head p { font-size: 0.93rem; margin-top: 0.2rem; }
.est-size { font-size: 1.05rem; color: var(--muted); }
.est-size output { font-size: 1.6rem; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.est-track { position: relative; height: 28px; display: flex; align-items: center; }
.est-track::before { content: ""; position: absolute; inset: 11px 0; border-radius: 999px; background: linear-gradient(to right, var(--accent) 0 var(--pct), var(--bg-2) var(--pct) 100%); box-shadow: inset 0 0 0 1px var(--line); }
.est-track::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: var(--inc); width: 2px; border-radius: 2px; background: var(--faint); opacity: 0.7; pointer-events: none; }
.est-track input { position: relative; z-index: 1; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; height: 28px; cursor: pointer; }
.est-track input::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.est-track input::-moz-range-track { height: 6px; background: transparent; }
.est-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgb(17 17 24 / 25%), 0 0 0 4px color-mix(in srgb, var(--accent) 0%, transparent); transition: box-shadow 0.15s, transform 0.15s; }
.est-track input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgb(17 17 24 / 25%); transition: box-shadow 0.15s, transform 0.15s; }
.est-track input:hover::-webkit-slider-thumb { box-shadow: 0 1px 3px rgb(17 17 24 / 25%), 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.est-track input:hover::-moz-range-thumb { box-shadow: 0 1px 3px rgb(17 17 24 / 25%), 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.est-track input:active::-webkit-slider-thumb { transform: scale(1.08); }
.est-track input:focus-visible { outline: none; }
.est-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.est-track input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.est-scale { position: relative; display: flex; justify-content: flex-end; min-height: 1.2em; font-size: 0.78rem; color: var(--faint); margin-top: -0.55rem; font-variant-numeric: tabular-nums; }
.est-scale .inc { position: absolute; left: var(--inc, 4.8%); transform: translateX(-12px); }
.est-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.est-total .price { margin: 0; transition: color 0.2s; }
.est-pp { font-size: 0.93rem; color: var(--muted); }
.est-pp strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.est-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.93rem; color: var(--muted); }
.est-lines li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.est-lines li[hidden] { display: none; }
.est-lines li > span:last-child { color: var(--fg); }
.est-lines .year { padding-top: 0.35rem; border-top: 1px dashed var(--line); }
.est-save { margin-top: auto; font-size: 0.9rem; color: var(--muted); padding: 0.75rem 0.9rem; border-radius: 12px; background: color-mix(in srgb, var(--ok) 9%, transparent); }
.est-save strong { color: var(--ok); font-variant-numeric: tabular-nums; }
.est-big { font-size: 0.9rem; color: var(--muted); }
.est-big[hidden] { display: none; }

.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.inc-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: border-color 0.2s, transform 0.2s; }
.inc-group:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.inc-group h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.inc-group .ico { color: var(--accent); flex: none; padding: 7px; box-sizing: content-box; border-radius: 10px; background: var(--accent-soft); width: 20px; height: 20px; }
.inc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.inc-group li { display: grid; gap: 0.1rem; }
.inc-group li strong { font-size: 0.95rem; font-weight: 600; }
.inc-group li span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 1000px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .included { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .plan, .inc-group { transition: none; } .plan:hover, .inc-group:hover { transform: none; } }


/* ------------------------------------------------------------------ Download (pages/download.mjs) */
/* The Mac window with the iPhone leaning on its corner, then a card per platform. */
.dl-hero .links { justify-content: center; }
.dl-stage { position: relative; width: min(900px, 100%); margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding-bottom: clamp(1rem, 5vw, 3rem); }
.dl-mac img { display: block; width: 100%; height: auto; }
.dl-stage .dl-phone { position: absolute; right: -2%; bottom: 0; width: clamp(108px, 27%, 250px); }
.plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.plat:hover { box-shadow: var(--shadow-sm); }
.plat-head { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; width: 100%; }
.plat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.plat h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.plat .soon { margin: 0 0 0 auto; }
.plat-yours { margin-left: auto; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-fg); background: var(--accent); border-radius: 6px; padding: 0.12rem 0.45rem; }
.plat-line { color: var(--muted); }
.plat .ticks { margin: 0.2rem 0 0.6rem; font-size: 0.95rem; }
.plat .btn { margin-top: auto; }
.plat.is-soon { background: color-mix(in srgb, var(--panel) 55%, transparent); border-style: dashed; }
.plat.is-soon .plat-icon { background: var(--bg-2); color: var(--muted); }
/* The card for the device you're on (js/site.js adds .yours). */
.plat .soon + .plat-yours { margin-left: 0; }
.plat.yours { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
@media (max-width: 960px) { .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plats { grid-template-columns: minmax(0, 1fr); }
  .dl-stage .dl-phone { right: 0; }
}

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 0.6rem; }

/* ------------------------------------------------------------------ Closing CTA */
.cta { position: relative; overflow: hidden; margin-top: clamp(4rem, 10vw, 7rem); padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: 24px; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgb(255 255 255 / 18%), transparent 70%); pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.cta p { position: relative; opacity: 0.9; margin: 0 auto 1.75rem; max-width: 34rem; }
.cta .links { position: relative; justify-content: center; margin-top: 0; }
.cta .btn.primary { background: #111118; box-shadow: none; }
.cta .btn.ghost { background: rgb(255 255 255 / 16%); border-color: rgb(255 255 255 / 35%); color: #fff; }

/* ------------------------------------------------------------------ Footer */
.foot { margin-top: clamp(4rem, 9vw, 6rem); padding: 3.5rem 0 calc(3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem; }
.foot-brand p { margin-top: 0.75rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot-cols h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg); margin-bottom: 0.9rem; }
.foot-cols a { display: block; padding: 0.22rem 0; }
.foot-cols a[hidden] { display: none; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover, .foot a:active { color: var(--fg); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Prose: privacy, about, blog */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 1.07rem; line-height: 1.7; }
.prose p + p { margin-top: 0.9rem; }
.prose .lede { color: var(--fg); font-size: 1.25rem; line-height: 1.55; margin-bottom: 1.5rem; }
.page { padding: clamp(3rem, 8vw, 5rem) 0 0; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 1rem; }
.message { min-height: 60vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1rem; padding: 3rem 0; }
.message h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.message .links { margin-top: 0.5rem; justify-content: center; }

.posts { display: grid; gap: 1rem; max-width: 46rem; }
.post-card { display: block; padding: 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--accent); }
.post-card time { color: var(--faint); font-size: 0.87rem; }
.post-card h2 { font-size: 1.45rem; margin: 0.35rem 0 0.5rem; }
.post-card p { color: var(--muted); }
.post-card .more { display: inline-block; margin-top: 0.75rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.article { padding-top: clamp(3rem, 8vw, 5rem); }
.article header { max-width: 44rem; margin-bottom: 2.5rem; }
.article h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.02em; }
.byline { color: var(--faint); margin-top: 1rem; font-size: 0.95rem; }

/* ------------------------------------------------------------------ Mockups (site/mockups.mjs) */
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; font-size: 0.85rem; line-height: 1.45; text-align: left; color: var(--fg); }
.av { --h: 250; flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: hsl(var(--h) 60% 30%); background: hsl(var(--h) 80% 88%); }
@media (prefers-color-scheme: dark) { .av { color: hsl(var(--h) 80% 85%); background: hsl(var(--h) 35% 28%); } }
.mock-bar { display: flex; align-items: center; gap: 6px; margin: -0.25rem 0 0.75rem; color: var(--muted); font-size: 0.78rem; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; }
.tile .av { width: 38px; height: 38px; font-size: 0.8rem; margin-bottom: 14px; }
.tile > span:last-child { position: absolute; left: 6px; bottom: 5px; font-size: 0.68rem; background: rgb(0 0 0 / 55%); color: #fff; padding: 0.05rem 0.4rem; border-radius: 5px; white-space: nowrap; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
.tile.speaking { box-shadow: 0 0 0 2px var(--ok) inset; }
.tile.screen { grid-row: span 1; background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.screen-doc { width: 70%; display: grid; gap: 5px; }
.screen-doc b { height: 8px; width: 60%; border-radius: 4px; background: var(--accent); opacity: 0.7; }
.screen-doc i { height: 6px; border-radius: 3px; background: var(--faint); opacity: 0.35; }
.callbar { display: flex; gap: 0.4rem; align-items: center; justify-content: center; margin-top: 0.75rem; flex-wrap: wrap; }
.callbar .ctl { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--bg-2); font-size: 0.85rem; }
.callbar .leave { width: auto; padding: 0 0.7rem; background: #e5484d; color: #fff; font-weight: 600; font-size: 0.78rem; }
.pill-live { color: #e5484d; font-weight: 600; font-size: 0.75rem; margin-right: auto; }
.ai-head { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.75rem; }
.ai-head small { display: block; color: var(--muted); font-size: 0.75rem; }
.spark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 0.8rem; }
.mock-ai h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0.8rem 0 0.3rem; }
.mock-ai p, .mock-ai li { color: var(--fg); }
.mock-ai ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.15rem; }
.mock-ai ul.todo { list-style: none; padding: 0; }
.todo li { display: flex; gap: 0.5rem; align-items: center; }
.todo .box { width: 13px; height: 13px; border: 1.5px solid var(--faint); border-radius: 4px; }
.todo em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 0.75rem; }
.mock-ask { padding: 0; overflow: hidden; }
.ask-q { display: flex; gap: 0.6rem; align-items: center; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.ask-a { padding: 1rem; }
.ask-a p { font-size: 0.95rem; }
.ask-a sup { color: var(--accent); font-weight: 700; }
.sources { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.sources span { font-size: 0.75rem; color: var(--muted); background: var(--bg-2); border-radius: 6px; padding: 0.2rem 0.5rem; }
.sources b { color: var(--accent); margin-right: 0.2rem; }
.catch-row { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.tag { flex: none; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.1rem 0.45rem; border-radius: 5px; background: var(--accent); color: #fff; }
.tag.soft { background: var(--accent-soft); color: var(--accent); }
.mock-stage { text-align: center; }
.stage-top { display: flex; justify-content: center; gap: 0.75rem; padding: 1rem 0 0.5rem; }
.stage-top .av { width: 52px; height: 52px; font-size: 0.95rem; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px color-mix(in srgb, var(--accent) 50%, transparent); }
.stage-label { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 0.9rem; }
.crowd { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; padding: 0.9rem; background: var(--bg-2); border-radius: 10px; }
.crowd i { --h: 250; aspect-ratio: 1; border-radius: 50%; background: hsl(var(--h) 60% 78%); opacity: 0.85; }
@media (prefers-color-scheme: dark) { .crowd i { background: hsl(var(--h) 35% 38%); } }
.stage-foot { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; color: var(--muted); font-size: 0.78rem; }
.mock-thread { display: grid; gap: 0.85rem; }
.thread-head { display: flex; gap: 0.5rem; align-items: baseline; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.thread-head small, .msg small { color: var(--muted); font-size: 0.75rem; }
.msg { display: flex; gap: 0.6rem; }
.msg p { margin-top: 0.1rem; }
.reacts { display: flex; gap: 0.3rem; margin-top: 0.35rem; }
.reacts span { font-size: 0.75rem; padding: 0.05rem 0.45rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.file { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.4rem; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.8rem; }
.mock-link { display: grid; gap: 0.75rem; }
.link-card, .lobby { display: flex; gap: 0.7rem; align-items: center; padding: 0.8rem; border: 1px solid var(--line); border-radius: 12px; }
.link-card small { display: block; color: var(--muted); font-size: 0.75rem; }
.lobby { background: var(--bg-2); }
.lobby div { flex: 1; }
.lobby .btn { pointer-events: none; }

.mock-devices { position: relative; padding: 0 0 2rem; }
.mac { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); width: 88%; }
.mac-bar { display: flex; gap: 5px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mac-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.phone { position: absolute; right: 0; bottom: 0; width: 34%; min-width: 150px; aspect-ratio: 9 / 19; border-radius: 28px; border: 6px solid #1c1c24; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.notch { width: 36%; height: 14px; margin: 6px auto 0; border-radius: 10px; background: #1c1c24; }
.phone-screen { padding: 0.6rem 0.65rem; display: grid; gap: 0.4rem; font-size: 0.72rem; }
.ph-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.2rem; }
.ph-room { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.45rem; border-radius: 8px; background: var(--bg-2); }
.ph-room .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.ph-av { margin-left: auto; display: flex; }
.ph-av .av { width: 18px; height: 18px; font-size: 0.45rem; margin-left: -5px; box-shadow: 0 0 0 1.5px var(--bg-2); }
.ph-wave { margin-top: 0.3rem; padding: 0.45rem; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; text-align: center; }

/* ------------------------------------------------------------------ Phone tweaks */
@media (max-width: 640px) {
  .phone { display: none; }
  .mac { width: 100%; }
  .mock-devices { padding-bottom: 0; }
}

/* Tap haptics (js/site.js): a disabled control's invisible haptic label lets taps through to it. */
:disabled > [data-haptic-trigger], [aria-disabled="true"] > [data-haptic-trigger] { pointer-events: none; }

/* ------------------------------------------------------------------ Changelog (site/changelog.mjs) */
/* A timeline like Linear's: the date sits in a left column with a line and a dot; on phones it sits
   above the title. Entries are full width so screenshots and video read well. */
.cl-head h1 { max-width: 18ch; }
.cl { padding-top: clamp(2.5rem, 6vw, 4rem); }
.cl-list { display: grid; }
.cl-entry { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 2.5rem; padding-bottom: clamp(3.5rem, 8vw, 5.5rem); position: relative; }
.cl-entry::before { content: ""; position: absolute; left: 0.3rem; top: 0.9rem; bottom: 0; width: 1px; background: var(--line); }
.cl-entry:last-child::before { bottom: 3rem; background: linear-gradient(var(--line), transparent); }
.cl-when { position: relative; padding-left: 1.6rem; }
.cl-when::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.cl-when a { position: sticky; top: calc(var(--top-space) + 1.25rem); display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; line-height: 1.6; }
.cl-when a:hover { color: var(--fg); }
.cl-main { min-width: 0; }
.cl-title { font-size: clamp(1.7rem, 3.6vw, 2.35rem); letter-spacing: -0.025em; margin-bottom: 1.4rem; text-wrap: balance; }
.cl-title a { color: inherit; text-decoration: none; }
.cl-title a:hover { color: var(--accent); }
.cl-hero { margin: 0 0 1.75rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-sm); }
.cl-hero img, .cl-hero video { display: block; width: 100%; height: auto; }
.cl-prose { max-width: 44rem; color: var(--muted); font-size: 1.04rem; }
.cl-prose > * + * { margin-top: 1rem; }
.cl-prose p, .cl-prose li { color: var(--muted); }
.cl-prose strong { color: var(--fg); font-weight: 600; }
.cl-prose a { color: var(--fg); text-decoration-color: color-mix(in srgb, var(--fg) 30%, transparent); text-underline-offset: 3px; }
.cl-prose a:hover { color: var(--accent); }
.cl-prose h3 { color: var(--fg); font-size: 1.3rem; margin-top: 2.6rem; letter-spacing: -0.015em; scroll-margin-top: calc(var(--top-space) + 1.5rem); }
.cl-prose h4 { color: var(--fg); font-size: 1.05rem; margin-top: 1.8rem; }
.cl-prose ul, .cl-prose ol { padding-left: 1.2rem; }
.cl-prose li + li { margin-top: 0.35rem; }
.cl-prose img, .cl-prose video, .cl-prose picture { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin-top: 1.25rem; }
.cl-prose picture img { border: 0; margin: 0; border-radius: inherit; }
.cl-prose code { background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 6px; color: var(--fg); }
.cl-prose kbd { display: inline-block; min-width: 1.6em; padding: 0.05em 0.4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); color: var(--fg); font-size: 0.85em; text-align: center; }
.cl-prose blockquote { margin: 1.5rem 0 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--accent); color: var(--fg); }

/* Improvements, Fixes and friends: closed groups that open on tap, each line led by its area. */
.cl-group { margin-top: 0.6rem; border-top: 1px solid var(--line); }
.cl-prose > .cl-group:first-of-type, .cl-prose > :not(.cl-group) + .cl-group { margin-top: 2.4rem; }
.cl-group:last-child { border-bottom: 1px solid var(--line); }
.cl-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0.15rem; color: var(--fg); font-weight: 600; }
.cl-group > summary::-webkit-details-marker { display: none; }
.cl-group > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.3s cubic-bezier(0.2, 1.25, 0.35, 1); }
.cl-group[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.cl-group > summary:hover { color: var(--accent); }
.cl-group-body { padding: 0 0.15rem 1.1rem; }
.cl-group[open] .cl-group-body { animation: cl-open 0.35s cubic-bezier(0.2, 1, 0.35, 1) both; }
@keyframes cl-open { from { opacity: 0; transform: translateY(-6px); } }
.cl-group ul { list-style: none; padding: 0; margin: 0; }
.cl-group li { position: relative; font-size: 0.97rem; line-height: 1.55; }
.cl-group li + li { margin-top: 0.6rem; }
.cl-tag { display: inline-block; margin-right: 0.45rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); font-size: 0.78rem; font-weight: 600; vertical-align: 0.08em; }

.cl-pager { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; padding-top: 1rem; }
.cl-pager[data-loading] { opacity: 0.6; }
.cl-single .kicker a { color: inherit; text-decoration: none; }
.cl-single .cl-pager { justify-content: flex-start; margin-top: 1rem; }
@media (max-width: 760px) {
  .cl-entry { grid-template-columns: minmax(0, 1fr); }
  .cl-entry::before { display: none; }
  .cl-when { padding-left: 1.2rem; margin-bottom: 0.6rem; }
  .cl-when::before { top: 0.5rem; width: 8px; height: 8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, var(--bg)); }
  /* top: auto too: on iPhone the haptic label makes links position: relative, and a leftover top would push the date down. */
  .cl-when a { position: static; top: auto; }
  .cl-hero { border-radius: 14px; margin-inline: -4px; }
}
@media (prefers-reduced-motion: reduce) { .cl-group[open] .cl-group-body { animation: none; } .cl-group > summary::after { transition: none; } }

