/* ============ Tokens ============ */

:root {
  --bg: #100e0c;
  --surface: #181613;
  --surface-2: #211e1a;
  --border: #2b2722;
  --border-strong: #3c362f;
  --text: #f5f0e8;
  --muted: #a79e90;
  --faint: #8a8174;
  --accent: #ffad33;
  --accent-hover: #ffbd5c;
  --accent-ink: #1c1204;
  --accent-soft: rgba(255, 173, 51, 0.14);
  --accent-text: #ffb84d;
  --ok: #3ddc8f;
  --busy: #6aa8ff;
  --off: #6f675c;
  --art-bg: rgba(12, 10, 8, 0.45);
  --art-dot: rgba(255, 255, 255, 0.055);
  --art-line: #3a342d;
  --glow: rgba(255, 158, 40, 0.16);
  --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --backdrop: rgba(8, 6, 4, 0.42);
  --glass-fill: rgba(30, 26, 22, 0.5);
  --glass-fill-strong: rgba(24, 21, 18, 0.74);
  --glass-card: rgba(26, 23, 19, 0.56);
  --glass-chip: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.11);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-rim-hi: rgba(255, 255, 255, 0.36);
  --glass-rim-lo: rgba(255, 255, 255, 0.05);
  --glass-rim-end: rgba(255, 255, 255, 0.15);
  --glass-inner: rgba(255, 255, 255, 0.09);
  --glass-ring: 0 0 0 1px rgba(0, 0, 0, 0.28);
  --glass-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.65);
  --glass-blur: blur(18px) saturate(180%);
  --thumb-fill: rgba(255, 255, 255, 0.14);
  --sheen: rgba(255, 255, 255, 0.075);
  --art-panel: rgba(32, 28, 24, 0.92);
  --blob-a: rgba(255, 150, 30, 0.26);
  --blob-b: rgba(255, 84, 112, 0.17);
  --blob-c: rgba(120, 90, 255, 0.17);
  --blob-d: rgba(255, 196, 80, 0.12);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf6ef;
    --surface: #ffffff;
    --surface-2: #f4eee4;
    --border: #e8dfd1;
    --border-strong: #d6cab8;
    --text: #1c1814;
    --muted: #62594e;
    --faint: #7a7064;
    --accent: #f5a524;
    --accent-hover: #e8961a;
    --accent-soft: rgba(245, 165, 36, 0.16);
    --accent-text: #9a5a00;
    --ok: #139a5b;
    --busy: #2f6fdb;
    --off: #a39a8d;
    --art-bg: rgba(250, 245, 237, 0.55);
    --art-dot: rgba(60, 40, 10, 0.07);
    --art-line: #e0d6c6;
    --glow: rgba(255, 166, 43, 0.25);
    --shadow-lg: 0 24px 60px -30px rgba(60, 40, 10, 0.3);
    --backdrop: rgba(40, 30, 15, 0.2);
    --glass-fill: rgba(255, 255, 255, 0.55);
    --glass-fill-strong: rgba(255, 253, 250, 0.8);
    --glass-card: rgba(255, 255, 255, 0.58);
    --glass-chip: rgba(255, 255, 255, 0.62);
    --glass-hover: rgba(255, 255, 255, 0.88);
    --glass-edge: rgba(60, 40, 10, 0.08);
    --glass-rim-hi: rgba(255, 255, 255, 1);
    --glass-rim-lo: rgba(255, 255, 255, 0.45);
    --glass-rim-end: rgba(255, 255, 255, 0.85);
    --glass-inner: rgba(255, 255, 255, 0.95);
    --glass-ring: 0 0 0 1px rgba(60, 40, 10, 0.07);
    --glass-shadow: 0 14px 40px -18px rgba(80, 50, 10, 0.3);
    --thumb-fill: rgba(255, 255, 255, 0.96);
    --sheen: rgba(255, 255, 255, 0.85);
    --art-panel: rgba(255, 255, 255, 0.92);
    --blob-a: rgba(255, 170, 60, 0.34);
    --blob-b: rgba(255, 120, 150, 0.2);
    --blob-c: rgba(140, 120, 255, 0.18);
    --blob-d: rgba(255, 210, 120, 0.3);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #faf6ef;
  --surface: #ffffff;
  --surface-2: #f4eee4;
  --border: #e8dfd1;
  --border-strong: #d6cab8;
  --text: #1c1814;
  --muted: #62594e;
  --faint: #7a7064;
  --accent: #f5a524;
  --accent-hover: #e8961a;
  --accent-soft: rgba(245, 165, 36, 0.16);
  --accent-text: #9a5a00;
  --ok: #139a5b;
  --busy: #2f6fdb;
  --off: #a39a8d;
  --art-bg: rgba(250, 245, 237, 0.55);
  --art-dot: rgba(60, 40, 10, 0.07);
  --art-line: #e0d6c6;
  --glow: rgba(255, 166, 43, 0.25);
  --shadow-lg: 0 24px 60px -30px rgba(60, 40, 10, 0.3);
  --backdrop: rgba(40, 30, 15, 0.2);
  --glass-fill: rgba(255, 255, 255, 0.55);
  --glass-fill-strong: rgba(255, 253, 250, 0.8);
  --glass-card: rgba(255, 255, 255, 0.58);
  --glass-chip: rgba(255, 255, 255, 0.62);
  --glass-hover: rgba(255, 255, 255, 0.88);
  --glass-edge: rgba(60, 40, 10, 0.08);
  --glass-rim-hi: rgba(255, 255, 255, 1);
  --glass-rim-lo: rgba(255, 255, 255, 0.45);
  --glass-rim-end: rgba(255, 255, 255, 0.85);
  --glass-inner: rgba(255, 255, 255, 0.95);
  --glass-ring: 0 0 0 1px rgba(60, 40, 10, 0.07);
  --glass-shadow: 0 14px 40px -18px rgba(80, 50, 10, 0.3);
  --thumb-fill: rgba(255, 255, 255, 0.96);
  --sheen: rgba(255, 255, 255, 0.85);
  --art-panel: rgba(255, 255, 255, 0.92);
  --blob-a: rgba(255, 170, 60, 0.34);
  --blob-b: rgba(255, 120, 150, 0.2);
  --blob-c: rgba(140, 120, 255, 0.18);
  --blob-d: rgba(255, 210, 120, 0.3);
  color-scheme: light;
}

/* ============ Base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  left: 16px;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hl {
  display: inline-block;
  padding: 0 0.16em 0.04em;
  border-radius: 0.16em;
  background: var(--accent);
  color: var(--accent-ink);
  rotate: -2deg;
}

.muted-2 {
  color: var(--faint);
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, translate 0.15s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active {
  translate: 0 1px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-sm svg {
  width: 15px;
  height: 15px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.icon-btn .ic {
  width: 18px;
  height: 18px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ============ Header ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none;
}

.topbar-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), var(--glass-shadow);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding-bottom: 3px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 21px/1 var(--font-display);
  rotate: -6deg;
}
.brand-name {
  font: 700 19px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.brand-name span {
  color: var(--faint);
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 76% 42%, var(--glow), transparent 70%),
    radial-gradient(30% 30% at 12% 10%, color-mix(in srgb, var(--glow) 50%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  margin: 20px 0 22px;
  font: 800 clamp(2.75rem, 1.1rem + 5.4vw, 5.6rem) / 0.98 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.facts dt {
  font: 700 22px/1.1 var(--font-display);
  letter-spacing: -0.01em;
}
.facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Phone mockup */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
}

.phone {
  position: relative;
  width: min(292px, 74vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid #3a322a;
  border-radius: 40px;
  background: #120c08;
  box-shadow:
    0 0 0 9px #1a1612,
    0 0 0 10px #2e2720,
    0 50px 90px -30px rgba(0, 0, 0, 0.65),
    0 0 140px -30px var(--glow);
  rotate: 2deg;
}

.phone-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-top {
  position: absolute;
  inset: 0 0 auto;
  padding: 16px 16px 0;
}
.bars {
  display: flex;
  gap: 4px;
}
.bars i {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.bars i.run::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: run 7s linear infinite;
}
.phone-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font: 500 11px/1 var(--font-mono);
}
.phone-score {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffad33;
  color: #1c1204;
  font-weight: 600;
}

.phone-side {
  position: absolute;
  right: 10px;
  bottom: 34%;
  display: grid;
  gap: 12px;
}
.pbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 16px -4px rgba(0, 0, 0, 0.45);
}
.phone-side svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.phone-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 19%;
  margin: 0;
  color: #fff;
  font: 800 22px/1.3 var(--font-display);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s;
}
.phone-cap.fade {
  opacity: 0;
}
.phone-cap .w {
  display: inline-block;
  padding: 0 0.14em;
  border-radius: 0.2em;
  opacity: 0.45;
  transition: opacity 0.12s, background-color 0.12s, scale 0.12s;
}
.phone-cap .w.said {
  opacity: 1;
}
.phone-cap .w.key.said {
  color: #ffad33;
}
.phone-cap .w.on {
  opacity: 1;
  background: #ffad33;
  color: #1c1204;
  text-shadow: none;
  scale: 1.1;
  rotate: -2deg;
}

/* Floating chips around the phone */

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.float svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.float-a {
  top: 21%;
  left: 0;
  rotate: -4deg;
}
.float-b {
  top: 45%;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  rotate: 3deg;
  animation-delay: -2s;
}
.float-b b {
  color: var(--accent-text);
  font: 800 26px/1 var(--font-display);
}
.float-b span {
  color: var(--muted);
  font-size: 12px;
}
.float-c {
  bottom: 10%;
  left: 4%;
  rotate: -2deg;
  animation-delay: -4s;
}

/* ============ Sections ============ */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 14px 0 0;
  font: 800 clamp(2rem, 1.3rem + 2.6vw, 3.3rem) / 1.04 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-note {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

/* ============ Filters ============ */

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips-filter {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.fchip {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.fchip:hover {
  color: var(--text);
}
.fchip[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  height: 44px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.search:focus-within {
  border-color: var(--accent);
}
.search svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search input::placeholder {
  color: var(--faint);
}
.search kbd {
  padding: 3px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font: 500 11px/1 var(--font-mono);
}
.search:focus-within kbd {
  display: none;
}

/* ============ App grid ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card:has(.card-title:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-art,
.dlg-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--art-bg);
  background-image: radial-gradient(var(--art-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--border);
}
.card-art {
  aspect-ratio: 16 / 9;
}
.card-art .art,
.dlg-art .art {
  display: block;
  width: 100%;
  height: 100%;
  transition: scale 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-art .art {
  scale: 1.04;
}

.card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font: 700 19px/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.card-title {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.card-title:focus-visible {
  outline: none;
}
.card-title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-tag {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li,
.tag-stage {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.02em;
}
.tags .tag-stage,
.dlg-meta .tag-stage {
  border-style: dashed;
  background: transparent;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.card-foot .btn {
  position: relative;
  z-index: 1;
}

.domain {
  overflow: hidden;
  color: var(--faint);
  font: 500 12px/1.3 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.app-icon .ic {
  width: 19px;
  height: 19px;
}
.app-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.app-icon-sm .ic {
  width: 15px;
  height: 15px;
}
.app-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.app-icon-lg .ic {
  width: 27px;
  height: 27px;
}

/* Status */

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 9px 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 12px/1 var(--font-body);
  white-space: nowrap;
}
.status i,
.sdot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--off);
}
.status[data-status="online"] {
  color: var(--text);
}
.status[data-status="online"] i,
.sdot[data-status="online"] {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}
.status[data-status="busy"] {
  color: var(--text);
}
.status[data-status="busy"] i,
.sdot[data-status="busy"] {
  background: var(--busy);
  animation: pulse 1.6s ease-in-out infinite;
}
.status[data-status="soon"] i,
.sdot[data-status="soon"] {
  background: transparent;
  border: 1.5px solid var(--faint);
}

/* Featured card */

.card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.card--featured .card-art {
  flex: 1.15;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--border);
}
.card--featured .card-main {
  flex: 1;
  gap: 14px;
  padding: 28px;
}
.card--featured .card-head h3 {
  font-size: 26px;
}
.card--featured .card-tag {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

/* "More coming" tile */

.card--more {
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-style: dashed;
  background: transparent;
  text-align: center;
}
.card--more:hover {
  border-color: var(--border-strong);
  box-shadow: none;
  transform: none;
}
.more-in {
  max-width: 250px;
  padding: 32px;
}
.more-plus {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
}
.more-in h3 {
  margin: 16px 0 6px;
  font: 700 19px/1.2 var(--font-display);
}
.more-in p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.empty {
  margin: 0;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Reveal on scroll */

.js .will-reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.6s ease calc(var(--i, 0) * 70ms),
    translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 70ms),
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .will-reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ============ Workflow ============ */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -15px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  rotate: 45deg;
}
.step-num {
  color: var(--accent-text);
  font: 500 12px/1 var(--font-mono);
}
.step h3 {
  margin: 10px 0 0;
  font: 800 32px/1.05 var(--font-display);
  letter-spacing: -0.025em;
}
.step p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}
.step-apps {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.app-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: 600 14px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.app-chip:hover {
  border-color: var(--accent);
}
.app-chip > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.rail .app-chip {
  width: auto;
}
.rail p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: var(--muted);
}
.rail-label {
  color: var(--faint);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ About ============ */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.principle {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.p-num {
  color: var(--accent-text);
  font: 500 12px/1 var(--font-mono);
}
.principle h3 {
  margin: 16px 0 8px;
  font: 700 20px/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ============ Footer ============ */

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--border);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-text {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--text);
}

/* ============ Dialog ============ */

.dialog {
  width: min(680px, 100% - 32px);
  max-width: none;
  max-height: min(88vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6);
}
.dialog[open] {
  animation: pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dialog[open]::backdrop {
  animation: fade 0.28s ease;
}

.dlg {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 920px);
}
.dlg-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dlg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(8px);
}
.dlg-art {
  aspect-ratio: 16 / 7;
}
.dlg-body {
  padding: 26px 28px 24px;
}
.dlg-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dlg-head h2 {
  margin: 0 0 8px;
  font: 800 30px/1.1 var(--font-display);
  letter-spacing: -0.02em;
}
.dlg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dlg-tag {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
.dlg-desc {
  margin: 0;
  color: var(--muted);
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 14.5px;
}
.note .ic {
  margin-top: 1px;
  color: var(--accent-text);
}
.dlg-h {
  margin: 28px 0 12px;
  color: var(--faint);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-text);
  font: 600 12px/1 var(--font-mono);
}
.io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.io p {
  margin: 0;
  font-size: 15px;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack li {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 12.5px/1 var(--font-mono);
}
.dlg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.dlg-foot-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dlg-hint {
  color: var(--muted);
  font-size: 13px;
}

/* ============ Toast ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  translate: -50% 16px;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s;
}
.toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* ============ Illustrations ============ */

.art text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.art .p {
  fill: var(--art-panel);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.art .l {
  fill: var(--art-line);
}
.art .head {
  stroke: var(--art-panel);
  stroke-width: 2.5;
}
.art .a {
  fill: var(--accent);
}
.art .a.dim {
  opacity: 0.5;
}
.art .a.soft {
  opacity: 0.16;
}
.art .sa {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.art .p.sa {
  fill: var(--art-panel);
}
.art .sm {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
}
.art .dash {
  stroke-dasharray: 3 3;
}
.art .round {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .on {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.2;
}
.art .scrim {
  fill: var(--bg);
  opacity: 0.85;
}
.art .t {
  fill: var(--text);
}
.art .tm {
  fill: var(--muted);
}
.art .ta {
  fill: var(--accent-text);
}
.art .ti {
  fill: var(--accent-ink);
}
.art .big {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}
.art .small {
  font-size: 10px;
  letter-spacing: 0.04em;
}
.art .tiny {
  font-size: 8.5px;
  letter-spacing: 0.08em;
}
.art .strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.art .cap {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}
.art .cap.ink {
  fill: var(--accent-ink);
}

/* ============ Motion ============ */

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@keyframes run {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes bob {
  50% {
    translate: 0 -8px;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    translate: 0 14px;
    scale: 0.98;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Glass ============ */
/* Apple-style glass. Each glass surface gets a translucent fill, a specular rim lit
   from the top-left (a ::before masked down to a 1px ring) and a soft inner highlight.
   Backdrop blur is only used where real detail passes behind (header, dialog, toast,
   floating chips, controls). Cards sit over the smooth ambient light, where a blur
   would change nothing, so they skip it and stay cheap to scroll. */

.lens-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient i {
  position: absolute;
  width: 72vmax;
  height: 72vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  animation: drift 42s ease-in-out infinite alternate;
  will-change: translate;
}
.ambient i:nth-child(1) {
  --c: var(--blob-a);
  top: -34vmax;
  right: -18vmax;
}
.ambient i:nth-child(2) {
  --c: var(--blob-b);
  top: 18vmax;
  left: -36vmax;
  animation-duration: 54s;
  animation-delay: -14s;
}
.ambient i:nth-child(3) {
  --c: var(--blob-c);
  bottom: -40vmax;
  right: -10vmax;
  animation-duration: 48s;
  animation-delay: -22s;
}
.ambient i:nth-child(4) {
  --c: var(--blob-d);
  bottom: -30vmax;
  left: -20vmax;
  animation-duration: 60s;
  animation-delay: -8s;
}
@keyframes drift {
  to {
    translate: 10vmax 7vmax;
    scale: 1.15;
  }
}

/* Specular rim */
.topbar-in::before,
.card:not(.card--more)::before,
.step::before,
.principle::before,
.float::before,
.dialog::before,
.toast::before,
.chips-filter::before,
.search::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, var(--glass-rim-hi), var(--glass-rim-lo) 30%, var(--glass-rim-lo) 70%, var(--glass-rim-end));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Small controls: blurred glass */
.chips-filter,
.search,
.btn-ghost,
.dlg-close {
  border-color: transparent;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), 0 6px 18px -10px rgba(0, 0, 0, 0.45);
}
.chips-filter,
.search {
  position: relative;
  border: 0;
}
.btn-ghost:hover:not(:disabled),
.dlg-close:hover {
  background: var(--glass-hover);
}
.dlg-close {
  border: 0;
}

/* Controls inside the header already sit on glass, so they only need a tint */
.topbar .live-pill,
.topbar .icon-btn {
  border-color: var(--glass-edge);
  background: var(--glass-chip);
  box-shadow: inset 0 1px 0 var(--glass-inner);
}
.topbar .icon-btn:hover {
  background: var(--glass-hover);
}
.nav a:hover {
  background: var(--glass-chip);
}

/* Glossy primary button (tinted glass) */
.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 55%), var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px -2px rgba(120, 60, 0, 0.35),
    0 8px 22px -10px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 55%), var(--accent-hover);
}

/* Segmented filter with a sliding glass thumb */
.chips-filter {
  isolation: isolate;
}
.fthumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: -1;
  width: 0;
  border-radius: 999px;
  background: var(--thumb-fill);
  box-shadow:
    inset 0 1px 0 var(--glass-inner),
    inset 0 0 0 1px var(--glass-edge),
    0 3px 10px -3px rgba(0, 0, 0, 0.4);
  transition:
    translate 0.5s cubic-bezier(0.3, 1.35, 0.45, 1),
    width 0.5s cubic-bezier(0.3, 1.35, 0.45, 1),
    scale 0.22s ease;
}
.fthumb.squish {
  scale: 1.08 0.88;
}
.fchip {
  position: relative;
}
.fchip[aria-pressed="true"] {
  background: transparent;
  color: var(--text);
}

/* Big surfaces: translucent glass without blur */
.card:not(.card--more),
.step,
.principle {
  border: 0;
  background:
    radial-gradient(560px circle at 25% -35%, var(--sheen), transparent 60%),
    var(--glass-card);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), 0 1px 2px rgba(0, 0, 0, 0.12);
}
.principle {
  position: relative;
}
.card:not(.card--more):hover {
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--sheen), transparent 62%),
    var(--glass-card);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), var(--shadow-lg);
}
.card-art {
  border-bottom-color: var(--glass-edge);
}
.card--featured .card-art {
  border-right-color: var(--glass-edge);
}
.card-foot {
  border-top-color: var(--glass-edge);
}
.tags li,
.tag-stage,
.status,
.stack li,
.steps li::before {
  border-color: var(--glass-edge);
  background: var(--glass-chip);
}
.app-chip {
  border-color: var(--glass-edge);
  background: var(--glass-chip);
  box-shadow: inset 0 1px 0 var(--glass-inner);
}

/* Floating chips around the phone */
.float {
  border: 0;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), var(--glass-shadow);
}

/* Dialog + toast */
.dialog {
  border: 0;
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), 0 40px 120px -20px rgba(0, 0, 0, 0.6);
}
.dialog::before {
  z-index: 3;
}
.dialog::backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dlg-art {
  border-bottom-color: var(--glass-edge);
}
.dlg-foot {
  border-top-color: var(--glass-edge);
  background: transparent;
}

.toast {
  background: var(--glass-fill-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-ring), inset 0 1px 0 var(--glass-inner), var(--glass-shadow);
}

/* Liquid Glass edges (Chromium only): main.js builds an SVG displacement map per
   element that bends whatever passes under its rim, and exposes it as --lens. */
.lens [data-lens] {
  -webkit-backdrop-filter: var(--lens,) blur(5px) saturate(175%) brightness(1.04);
  backdrop-filter: var(--lens,) blur(5px) saturate(175%) brightness(1.04);
}
.lens .topbar-in {
  background: color-mix(in srgb, var(--glass-fill) 85%, transparent);
}

/* ============ Responsive ============ */

@media (max-width: 1020px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* 2 columns: featured (2) + 6 cards fills the grid exactly, so skip the filler tile */
  .grid.is-showcase .card--more {
    display: none;
  }
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 0;
    padding: 24px 0 8px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .tools {
    width: 100%;
  }
  .search {
    flex: 1;
    width: auto;
    min-width: 180px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card--featured {
    grid-column: auto;
    flex-direction: column;
  }
  .card--featured .card-art {
    flex: none;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .card--featured .card-main {
    padding: 20px;
  }
  .card--featured .card-head h3 {
    font-size: 22px;
  }
  .card--featured .card-desc {
    display: none;
  }
  .card--more {
    min-height: 0;
  }
  .grid.is-showcase .card--more {
    display: flex;
  }
}

@media (max-width: 560px) {
  .flow,
  .principles {
    grid-template-columns: 1fr;
  }
  .step:not(:last-child)::after,
  .step:nth-child(2)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -14px;
    left: 32px;
    rotate: 135deg;
  }
  .float {
    display: none;
  }
  .phone {
    rotate: 0deg;
  }
  .live-pill span {
    display: none;
  }
  .live-pill {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .cta-row .btn {
    width: 100%;
  }
  .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
  }
  .facts dt {
    font-size: 19px;
  }
  .facts dd {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .phone {
    width: min(250px, 66vw);
  }
  .chips-filter {
    width: 100%;
  }
  .fchip {
    flex: 1;
    padding: 0 8px;
  }
  .search {
    min-width: 0;
  }

  .dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }
  .dialog[open] {
    animation-name: sheet;
  }
  .dlg {
    max-height: 92vh;
  }
  .dlg-art {
    aspect-ratio: 16 / 8;
  }
  .dlg-body {
    padding: 22px 20px 20px;
  }
  .dlg-head h2 {
    font-size: 26px;
  }
  .io {
    grid-template-columns: 1fr;
  }
  .dlg-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
  }
  .dlg-foot .btn {
    width: 100%;
  }
}

@keyframes sheet {
  from {
    translate: 0 40px;
    opacity: 0;
  }
}

/* People who turn on "Reduce transparency" get solid surfaces, like on Apple devices. */
@media (prefers-reduced-transparency: reduce) {
  .ambient {
    display: none;
  }
  .topbar-in,
  .card:not(.card--more),
  .step,
  .principle,
  .float,
  .dialog,
  .toast,
  .chips-filter,
  .search,
  .btn-ghost,
  .dlg-close {
    background: var(--surface) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar-in,
  .float,
  .toast,
  .dialog {
    background: var(--glass-fill-strong);
  }
}
