/* polyth.app — one stylesheet, no build step.
   Palette "Luxe": espresso #322D29, wine #72383D, taupe #AC9C8D,
   greige #D1C7BD, mist #D9D9D9, cream #EFE9E1. Warm white pages, cream and
   espresso tiles, wine for the one thing on screen that matters most.
   Breakpoints follow apple.com: ≤734 small, ≤1068 medium, ≥1441 large. */

@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-var.woff2?v=cb71287437) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --espresso: #322d29;
  --wine: #72383d;
  --taupe: #ac9c8d;
  --greige: #d1c7bd;
  --mist: #d9d9d9;
  --cream: #efe9e1;

  /* Light surfaces */
  --bg: #f8f5f0;
  --tile: var(--cream);
  --tile-deep: #e7dfd5;
  --card: #fcfaf7;
  --ink: var(--espresso);
  --ink-2: #5c534c;
  --ink-3: #7a6d63;
  --hair: rgba(50, 45, 41, 0.12);
  --hair-strong: rgba(50, 45, 41, 0.22);
  --accent: var(--wine);
  --accent-hover: #5c2c31;
  --accent-wash: rgba(114, 56, 61, 0.08);

  /* Dark surfaces */
  --dark: var(--espresso);
  --dark-deep: #282420;
  --dark-raised: #3d3732;
  --on-dark: var(--cream);
  --on-dark-2: var(--greige);
  --on-dark-3: var(--taupe);
  --on-dark-accent: #e0aeab;
  --hair-dark: rgba(239, 233, 225, 0.12);

  /* Signals, muted to sit in the palette */
  --ok: #4c7556;
  --ok-wash: rgba(76, 117, 86, 0.12);
  --wait: #8a5b22;
  --wait-wash: rgba(138, 91, 34, 0.12);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --nav-h: 52px;
  --local-h: 52px;
  --maxw: 1180px;
  --maxw-wide: 1360px;
  --maxw-text: 760px;
  --gutter: clamp(20px, 4.2vw, 48px);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 2px 6px rgba(50, 45, 41, 0.06), 0 30px 70px -28px rgba(50, 45, 41, 0.42);
  --shadow-soft: 0 1px 2px rgba(50, 45, 41, 0.06), 0 12px 32px -18px rgba(50, 45, 41, 0.28);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--local-h) + 12px);
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 17px/1.5 var(--font);
  letter-spacing: -0.011em;
  font-feature-settings: "cv11", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
p, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.88em; }
button { font: inherit; color: inherit; }

::selection { background: rgba(114, 56, 61, 0.2); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--on-dark-accent); }

.icon { width: 1em; height: 1em; flex: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--maxw-wide)); margin-inline: auto; }
.wrap-text { width: min(100% - 2 * var(--gutter), var(--maxw-text)); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- type ------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--wine);
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dark .eyebrow { color: var(--on-dark-accent); }
.eyebrow .icon { width: 20px; height: 20px; }

.display {
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.headline {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.034em;
}
.headline-sm {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.subhead {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(19px, 1.75vw, 24px);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -0.016em;
}
.dark .subhead { color: var(--on-dark-2); }
.muted { color: var(--ink-3); }
.dark .muted { color: var(--on-dark-3); }
.accent { color: var(--wine); }
.dark .accent { color: var(--on-dark-accent); }
.soft { color: var(--taupe); }

/* ---- global nav ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 245, 240, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 24px; height: 24px; }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(50, 45, 41, 0.06); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.lang-switch {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-switch:hover { color: var(--ink); background: rgba(50, 45, 41, 0.06); }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--ink-2); }
.icon-link:hover { color: var(--ink); background: rgba(50, 45, 41, 0.06); }

.menu { display: none; position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary .close { display: none; }
.menu[open] summary .open { display: none; }
.menu[open] summary .close { display: block; }
.menu-panel {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) 28px;
  background: rgba(248, 245, 240, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 30px 60px -30px rgba(50, 45, 41, 0.35);
}
.menu-panel a {
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu-panel a:last-child { border-bottom: 0; color: var(--ink-3); font-size: 17px; font-weight: 500; }

@media (max-width: 900px) {
  .nav, .lang-switch { display: none; }
  .menu { display: block; }
}

/* ---- local nav (sub-pages) ---------------------------------------------- */

.localnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(248, 245, 240, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.localnav-inner { display: flex; align-items: center; gap: 24px; height: var(--local-h); }
.localnav-title { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.localnav-links {
  display: flex;
  min-width: 0;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
  padding-right: 24px;
}
.localnav-links::-webkit-scrollbar { display: none; }
.localnav-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.localnav-links a:hover { color: var(--ink); background: rgba(50, 45, 41, 0.06); }
@media (min-width: 1069px) {
  .localnav-links { -webkit-mask-image: none; mask-image: none; padding-right: 0; }
}
@media (max-width: 734px) {
  .localnav-title { font-size: 17px; }
  .localnav-inner { gap: 12px; }
}

/* ---- buttons and links -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--wine); color: #fbf6f2; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--hair-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(50, 45, 41, 0.05); border-color: rgba(50, 45, 41, 0.35); }
.dark .btn-primary { background: var(--cream); color: var(--espresso); }
.dark .btn-primary:hover { background: #fff; }
.dark .btn-ghost { border-color: var(--hair-dark); color: var(--on-dark); }
.dark .btn-ghost:hover { background: rgba(239, 233, 225, 0.08); border-color: rgba(239, 233, 225, 0.3); }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] {
  border-color: var(--hair);
  background: transparent;
  color: var(--ink-3);
  cursor: not-allowed;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--wine);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.more .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:hover .icon { transform: translateX(2px); }
.dark .more { color: var(--on-dark-accent); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.center .actions, .actions.center { justify-content: center; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(50, 45, 41, 0.07);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 0.15em;
}
.dark .tag { background: rgba(239, 233, 225, 0.1); color: var(--on-dark-3); }

/* ---- sections ------------------------------------------------------------ */

.section { padding: clamp(80px, 11vw, 160px) 0; }
.section:not(.dark):not(.tint) + .section:not(.dark):not(.tint) { padding-top: 0; }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section.tint { background: var(--tile); }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head.center .subhead { margin-inline: auto; max-width: 720px; }
.page-hero + .section:not(.dark):not(.tint) { padding-top: clamp(16px, 3vw, 40px); }
.wrap-text > .headline-sm { margin-bottom: clamp(24px, 3vw, 36px); }
.section.tint .note { background: var(--card); }

/* ---- hero ------------------------------------------------------------------ */

/* clip, not hidden: a hidden overflow makes .hero the scroll container that
   view() binds to, which freezes the hero's lift mid-tilt and resamples it. */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; text-align: center; overflow: hidden; overflow: clip; }
.hero .display { max-width: 19ch; margin-inline: auto; }
.hero .display span { display: block; color: var(--wine); }
.hero .subhead { max-width: 740px; margin-inline: auto; }
.hero .actions { justify-content: center; margin-top: 36px; }
.hero-note { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.hero-visual { position: relative; margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 22% -8vw 0;
  z-index: -1;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: radial-gradient(60% 70% at 50% 100%, var(--tile-deep), transparent 70%);
}

/* ---- product frames --------------------------------------------------------- */

.window {
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  outline: 1px solid var(--hair);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(var(--card), var(--tile));
  border-bottom: 1px solid var(--hair);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--greige); }
.window-bar i:first-child { background: #c98b84; }
.window-bar i:nth-child(2) { background: #d8b98a; }
.window-bar i:nth-child(3) { background: #9fb59a; }
.window-bar span { flex: 1; margin-right: 52px; color: var(--ink-3); font-size: 12px; font-weight: 500; text-align: center; }
.window img { width: 100%; }
/* A tall pane (Settings · Appearance) stays near its captured width instead of
   spreading across the whole column. */
.window.narrow { max-width: 920px; margin-inline: auto; }
.dark .window { outline-color: var(--hair-dark); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); }

.shot { border-radius: var(--r); box-shadow: var(--shadow); }

/* ---- agents strip --------------------------------------------------------- */

.strip { padding: clamp(28px, 4vw, 48px) 0 0; text-align: center; }
.strip p { color: var(--ink-3); font-size: 15px; }
.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(22px, 3.6vw, 52px);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ---- stats -------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li { padding: 8px clamp(12px, 2.4vw, 32px); text-align: center; }
.stats li + li { border-left: 1px solid var(--hair); }
.stats strong {
  display: block;
  color: var(--wine);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
  font-feature-settings: "tnum";
}
.stats span { display: block; margin-top: 12px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 17px); }
.dark .stats strong { color: var(--on-dark); }
.dark .stats span { color: var(--on-dark-3); }
.dark .stats li + li { border-color: var(--hair-dark); }
@media (max-width: 734px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stats li:nth-child(3) { border-left: 0; }
}

/* ---- bento --------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: clamp(28px, 3vw, 40px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--tile);
  text-decoration: none;
  isolation: isolate;
}
.tile.compact { min-height: 0; }
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.tile.dark { background: var(--dark); color: var(--on-dark); }
.tile.wine { background: var(--wine); color: #f6ece8; }
.tile.wine .eyebrow, .tile.wine .more { color: #f2cfc9; }
.tile.wine .tile-text { color: #ecd5cf; }
.tile.greige { background: var(--greige); }
.tile.card { background: var(--card); outline: 1px solid var(--hair); }
.tile .eyebrow { margin-bottom: 10px; font-size: 15px; }
.tile h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; line-height: 1.1; letter-spacing: -0.03em; }
.tile-text { margin-top: 12px; max-width: 34ch; color: var(--ink-2); font-size: 17px; }
.tile.dark .tile-text { color: var(--on-dark-2); }
.tile .more { margin-top: 16px; font-size: 16px; }
.tile-visual { margin-top: auto; padding-top: 28px; }
.tile-visual.bleed { margin-inline: calc(-1 * clamp(28px, 3vw, 40px)); margin-bottom: calc(-1 * clamp(28px, 3vw, 40px)); }
a.tile { transition: transform 0.35s var(--ease); }
a.tile:hover { transform: scale(1.008); }

@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span-2, .tile.span-3 { grid-column: span 1; }
  .tile.span-4, .tile.span-6, .tile.md-wide { grid-column: span 2; }
}
@media (max-width: 734px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile.span-2, .tile.span-3, .tile.span-4, .tile.span-6, .tile.md-wide { grid-column: auto; }
  .tile { min-height: 0; border-radius: 22px; }
}

/* ---- UI mocks (product-shaped HTML, decorative; each has role="img") ------ */

.mock { font-size: 14.5px; letter-spacing: -0.01em; }

/* chat */
.chat-mock { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; }
.msg.me { justify-self: end; border-bottom-right-radius: 6px; background: var(--wine); color: #fbf3ef; }
.msg.ai { justify-self: start; border-bottom-left-radius: 6px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }
.tile.dark .msg.ai, .dark .msg.ai { background: var(--dark-raised); color: var(--on-dark); box-shadow: none; }
.msg-by {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.dark .msg-by, .tile.dark .msg-by { color: var(--on-dark-3); }
.msg-by i { width: 8px; height: 8px; border-radius: 50%; background: var(--taupe); }
.msg-by i.c2 { background: var(--wine); }
.msg-by i.c3 { background: #6f8a76; }
.switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.switch-line::before, .switch-line::after { content: ""; flex: 1; height: 1px; background: var(--hair-strong); }
.dark .switch-line, .tile.dark .switch-line { color: var(--on-dark-3); }
.dark .switch-line::before, .dark .switch-line::after { background: var(--hair-dark); }
.mention { padding: 0 3px; border-radius: 5px; background: var(--accent-wash); color: var(--wine); font-weight: 600; }
.msg.me .mention { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* people */
.avatars { display: flex; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--tile);
  border-radius: 50%;
  color: #fbf6f2;
  font-size: 15px;
  font-weight: 650;
}
.avatar + .avatar { margin-left: -12px; }
.avatar.a1 { background: var(--wine); }
.avatar.a2 { background: var(--espresso); }
.avatar.a3 { background: #8c7a6b; }
.avatar.a4 { background: #6f8a76; }
.avatar.plus { background: var(--greige); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 550;
  box-shadow: var(--shadow-soft);
}
.chip .icon { width: 15px; height: 15px; }
.chip.on { background: var(--espresso); color: var(--cream); box-shadow: none; }
.chip.wine { background: var(--accent-wash); color: var(--wine); box-shadow: none; }
.dark .chip { background: var(--dark-raised); color: var(--on-dark-2); box-shadow: none; }

/* package list */
.pkg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pkg {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.pkg-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tile); color: var(--wine); }
.pkg-icon .icon { width: 20px; height: 20px; }
.pkg strong { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.pkg small { display: block; overflow: hidden; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.toggle {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--mist);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(50, 45, 41, 0.3);
  transition: transform 0.25s var(--ease);
}
.toggle.on { background: var(--wine); }
.toggle.on::after { transform: translateX(16px); }
.update-pill { padding: 4px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--wine); font-size: 12px; font-weight: 600; white-space: nowrap; }

.url-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--ink-2);
  font-size: 13.5px;
}
.url-field .icon { width: 17px; height: 17px; color: var(--ink-3); }
.url-field code { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.url-field b { padding: 7px 14px; border-radius: 10px; background: var(--wine); color: #fbf3ef; font-size: 13px; font-weight: 600; }

/* schedule */
.sched { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sched li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--dark-raised);
}
.sched time { grid-row: span 2; color: var(--on-dark-accent); font: 600 13px/1.4 var(--mono); }
.sched strong { color: var(--on-dark); font-size: 14px; font-weight: 600; }
.sched span { color: var(--on-dark-3); font-size: 12.5px; }

/* permission rows */
.perm { display: grid; gap: 8px; }
.perm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.dark .perm-row, .tile.dark .perm-row { background: var(--dark-raised); box-shadow: none; }
.perm-row code { overflow: hidden; color: var(--ink); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.dark .perm-row code, .tile.dark .perm-row code { color: var(--on-dark); }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.state .icon { width: 14px; height: 14px; }
.state.ok { background: var(--ok-wash); color: var(--ok); }
.state.wait { background: var(--wait-wash); color: var(--wait); }
.dark .state.ok, .tile.dark .state.ok { background: rgba(140, 186, 150, 0.14); color: #a9cdb1; }
.dark .state.wait, .tile.dark .state.wait { background: rgba(224, 174, 120, 0.14); color: #e6bd8c; }
.risk { color: var(--ink-3); font-size: 12px; }
.dark .risk { color: var(--on-dark-3); }

/* Permission demo: data-level on .perm-demo picks which state each row shows. */
.perm-demo [data-for] { display: none; }
.perm-demo[data-level="ask"] [data-for~="ask"],
.perm-demo[data-level="auto"] [data-for~="auto"],
.perm-demo[data-level="full"] [data-for~="full"] { display: inline-flex; }
.perm-demo p[data-for] { margin-top: 18px; color: var(--on-dark-2); font-size: 15px; }
.perm-demo[data-level="ask"] p[data-for~="ask"],
.perm-demo[data-level="auto"] p[data-for~="auto"],
.perm-demo[data-level="full"] p[data-for~="full"] { display: block; }

/* segmented control */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(50, 45, 41, 0.07);
}
.seg button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(50, 45, 41, 0.18); }
.dark .seg { background: rgba(239, 233, 225, 0.08); }
.dark .seg button { color: var(--on-dark-2); }
.dark .seg button[aria-pressed="true"] { background: var(--cream); color: var(--espresso); }
@media (max-width: 420px) {
  .perm-stage .seg { display: flex; width: 100%; }
  .perm-stage .seg button { flex: 1 1 auto; padding: 0 8px; font-size: 12.5px; }
}

/* mocks placed inside frames and tiles */
.window > .mock { padding: clamp(16px, 2.4vw, 28px); }
.tile .chat-mock .msg { max-width: 82%; }
.tile-visual .chips { margin-top: 18px; }
.team-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 6px; }
.team-head .avatar { width: 34px; height: 34px; border-color: var(--card); font-size: 13px; }
.packages-mock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; background: var(--tile); }
.url-field b { flex: none; }
.chat-mock, .share-mock, .perm { grid-template-columns: minmax(0, 1fr); }
.perm-stage { max-width: 760px; margin-inline: auto; text-align: center; }
.perm-stage .perm { margin-top: 28px; text-align: left; }
.perm-row > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.features.security-features, .features.everywhere-features { margin-top: clamp(56px, 8vw, 96px); }
figure.wide { margin-top: clamp(48px, 6vw, 80px); }

.url-field.big { max-width: 760px; margin-bottom: 36px; padding: 10px 10px 10px 20px; border-radius: 18px; font-size: 16px; }
.url-field.big .icon { width: 20px; height: 20px; }
.url-field.big b { padding: 10px 20px; border-radius: 12px; font-size: 15px; }
.features.install-more { margin-top: clamp(48px, 6vw, 72px); }
.window > .chat-mock .chips { margin-top: 6px; }
.hero-avatars { justify-content: center; margin-top: 40px; }
.hero-avatars .avatar { width: 56px; height: 56px; border-color: var(--bg); font-size: 18px; }
.hero-avatars .avatar + .avatar { margin-left: -14px; }
.share-mock { display: grid; gap: 18px; }
.share-mock .seg { justify-self: start; }
.people { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.people li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.people li:last-child { border-bottom: 0; }
.people .avatar { width: 36px; height: 36px; border: 0; font-size: 13px; }
.people strong { display: block; font-size: 15px; font-weight: 600; }
.people small { color: var(--ink-3); font-size: 13px; }
.limits-mock { color: var(--ink); }
.limits-mock header .avatar { width: 40px; height: 40px; border: 0; }
.vault-split { margin-top: clamp(40px, 5vw, 64px); }
.code.vault-code pre { padding: 24px; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.c-dim { color: var(--taupe); }
.c-key { color: var(--on-dark-accent); }
.c-ok { color: #a9cdb1; }
.steps.pair-steps { margin-top: 20px; }
.dl-section .headline-sm + .dl-grid { margin-top: 32px; }
.dl-section .subhead + .dl-grid, .dl-section .subhead + .server-grid, .dl-section .subhead + .note { margin-top: 32px; }

/* ---- split ---------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.top { align-items: start; }
.split.reverse > :last-child { order: -1; }
@media (max-width: 1068px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :last-child { order: 0; }
}

/* ---- feature lists ---------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features .icon { width: 30px; height: 30px; color: var(--wine); }
.dark .features .icon { color: var(--on-dark-accent); }
.features h3 { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.features p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.dark .features p { color: var(--on-dark-2); }
@media (max-width: 1068px) { .features, .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px) { .features, .features.two, .features.four { grid-template-columns: minmax(0, 1fr); } }

.points { margin: 28px 0 0; padding: 0; list-style: none; }
.points li { padding: 16px 0; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 16.5px; }
.points li:last-child { border-bottom: 1px solid var(--hair); }
.points strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 17px; font-weight: 600; }
.dark .points li { border-color: var(--hair-dark); color: var(--on-dark-2); }
.dark .points strong { color: var(--on-dark); }

/* ---- carousel ---------------------------------------------------------------- */

.gallery { position: relative; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 30vw, 380px);
  gap: 20px;
  padding: 8px max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--card);
  outline: 1px solid var(--hair);
  scroll-snap-align: start;
}
.card.dark { background: var(--dark); color: var(--on-dark); outline: 0; }
.card.cream { background: var(--tile); outline: 0; }
.card.wine { background: var(--wine); color: #f6ece8; outline: 0; }
.card > .icon { width: 32px; height: 32px; color: var(--wine); }
.card.dark > .icon { color: var(--on-dark-accent); }
.card.wine > .icon { color: #f2cfc9; }
.card code { color: var(--on-dark-accent); }
.card h3 { margin-top: 18px; font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -0.028em; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.card.dark p { color: var(--on-dark-2); }
.card.wine p { color: #ecd5cf; }
.card .card-visual { margin: auto -28px -28px; padding-top: 24px; }
.card .card-visual img { width: 100%; height: 230px; object-fit: cover; border-top: 1px solid var(--hair); }
.card .card-visual.pad { margin: auto 0 0; }
.pos-left { object-position: 0 0; }
/* A card screenshot keeps its whole frame when the card is narrower than it. */
.card .card-visual img.pos-left { height: auto; aspect-ratio: 1140 / 690; }
.pos-right { object-position: 100% 0; }
.pos-center { object-position: 50% 10%; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.gallery-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(50, 45, 41, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.gallery-controls button:hover { background: rgba(50, 45, 41, 0.14); }
.gallery-controls button:disabled { opacity: 0.35; cursor: default; }
.gallery-controls .icon { width: 20px; height: 20px; }
.gallery-controls[hidden] { display: none; }
@media (max-width: 734px) {
  .gallery-track { grid-auto-columns: 82vw; gap: 14px; }
  .card { min-height: 420px; }
}

/* ---- big picture --------------------------------------------------------------- */

.picture {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--tile);
}
.picture.pad { padding: clamp(20px, 4vw, 56px); }
.picture.greige { background: var(--greige); }
.picture img { width: 100%; }
.caption { margin-top: 18px; color: var(--ink-3); font-size: 14px; text-align: center; }

/* ---- FAQ ------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--hair-strong); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 17px; }
.faq details > div p + p { margin-top: 10px; }

/* ---- CTA tile ------------------------------------------------------------------ */

.cta {
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 80px);
  border-radius: var(--r-lg);
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}
.cta .headline { max-width: 16ch; margin-inline: auto; }
.cta .subhead { max-width: 600px; margin-inline: auto; }
.cta .actions { justify-content: center; }
.cta-mark { width: 64px; height: 64px; margin: 0 auto 28px; }

/* ---- sub-pages ------------------------------------------------------------------- */

.page-hero { padding: clamp(64px, 10vw, 136px) 0 clamp(48px, 7vw, 96px); text-align: center; }
.page-hero .display { max-width: 16ch; margin-inline: auto; font-size: clamp(42px, 6.6vw, 88px); }
.page-hero .display span { color: var(--wine); }
.page-hero .subhead { max-width: 760px; margin-inline: auto; }
.page-hero .actions { justify-content: center; }
.page-hero.dark { background: var(--dark); color: var(--on-dark); }
.page-hero.dark .display span { color: var(--on-dark-accent); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { padding: 28px; border-radius: var(--r); background: var(--card); outline: 1px solid var(--hair); }
.section.tint .steps li { outline: 0; }
.dark .steps li { background: var(--dark-raised); outline: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--wine);
  color: #fbf3ef;
  font-size: 14px;
  font-weight: 650;
}
.dark .steps li::before { background: var(--cream); color: var(--espresso); }
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.dark .steps p { color: var(--on-dark-2); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.level {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--card);
  outline: 1px solid var(--hair);
}
.level .icon { width: 30px; height: 30px; color: var(--wine); }
.level h3 { margin-top: 16px; font-size: 24px; font-weight: 650; letter-spacing: -0.026em; }
.level p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.level .meter { display: flex; gap: 4px; margin-top: auto; padding-top: 24px; }
.level .meter i { flex: 1; height: 6px; border-radius: 99px; background: var(--mist); }
.level .meter i.on { background: var(--wine); }
.level.full { background: var(--dark); color: var(--on-dark); outline: 0; }
.level.full p { color: var(--on-dark-2); }
.level.full .icon { color: var(--on-dark-accent); }
.level.full .meter i { background: rgba(239, 233, 225, 0.15); }
.level.full .meter i.on { background: var(--on-dark-accent); }
@media (max-width: 900px) { .levels { grid-template-columns: minmax(0, 1fr); } }

.never { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.never li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--dark-raised);
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 500;
}
.never li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e6bd8c; }

.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.roles li { padding: 24px; border-radius: var(--r); background: var(--card); outline: 1px solid var(--hair); }
.roles strong { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.roles strong i { width: 10px; height: 10px; border-radius: 50%; background: var(--wine); }
.roles li:nth-child(2) strong i { background: #8c7a6b; }
.roles li:nth-child(3) strong i { background: #6f8a76; }
.roles li:nth-child(4) strong i { background: var(--greige); }
.roles p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1068px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* account limits mock */
.limits-mock { padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.limits-mock header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.limits-mock header strong { display: block; font-size: 16px; font-weight: 650; }
.limits-mock header small { color: var(--ink-3); font-size: 13px; }
.limits-mock .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.limits-mock .row:last-child { border-bottom: 0; padding-bottom: 0; }
.limits-mock .row span { color: var(--ink-2); }
.bar { position: relative; width: 140px; height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 64%; border-radius: inherit; background: var(--wine); }

/* handle chip */
.handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--dark-raised);
  color: var(--on-dark);
  font: 500 14px var(--mono);
}
.handle .icon { width: 16px; height: 16px; color: var(--on-dark-accent); }

.note {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--r);
  background: var(--tile);
  color: var(--ink-2);
  font-size: 16px;
}
.note strong { color: var(--ink); }
.dark .note { background: var(--dark-raised); color: var(--on-dark-2); }
.dark .note strong { color: var(--on-dark); }

/* ---- playground (Make it yours) ---------------------------------------------- */

.playground {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 1068px) { .playground { grid-template-columns: minmax(0, 1fr); } }
.controls { display: grid; gap: 22px; }
.control-label { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.swatch-row { display: flex; gap: 10px; }
.swatch {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw); }
.swatch:hover { transform: scale(1.06); }
.sw-wine { --sw: #72383d; }
.sw-espresso { --sw: #322d29; }
.sw-taupe { --sw: #8c7a6b; }
.sw-sage { --sw: #5f7a66; }

/* The mini interface. Its look is driven by data-* attributes set from the controls. */
.ui {
  --u-bg: #fcfaf7;
  --u-side: #f1ece5;
  --u-ink: #322d29;
  --u-ink-2: #7a6d63;
  --u-line: rgba(50, 45, 41, 0.1);
  --u-bubble: #efe9e1;
  --u-accent: #72383d;
  --u-r: 14px;
  --u-pad: 14px;
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 360px;
  overflow: hidden;
  border-radius: calc(var(--u-r) + 4px);
  background: var(--u-bg);
  color: var(--u-ink);
  box-shadow: var(--shadow);
  outline: 1px solid var(--hair);
  font-size: 13.5px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.ui[data-mode="dark"] {
  --u-bg: #2a2623;
  --u-side: #322d29;
  --u-ink: #efe9e1;
  --u-ink-2: #ac9c8d;
  --u-line: rgba(239, 233, 225, 0.1);
  --u-bubble: #3d3732;
}
.ui[data-accent="espresso"] { --u-accent: #322d29; }
.ui[data-mode="dark"][data-accent="espresso"] { --u-accent: #d1c7bd; }
.ui[data-accent="taupe"] { --u-accent: #8c7a6b; }
.ui[data-accent="sage"] { --u-accent: #5f7a66; }
.ui[data-corners="square"] { --u-r: 3px; }
.ui[data-density="compact"] { --u-pad: 8px; font-size: 12.5px; }
.ui-side { display: grid; align-content: start; gap: 4px; padding: var(--u-pad); background: var(--u-side); border-right: 1px solid var(--u-line); transition: background-color 0.3s var(--ease); }
.ui-side b { margin: 4px 6px 8px; font-size: 12px; font-weight: 650; color: var(--u-ink-2); }
.ui-row { padding: calc(var(--u-pad) * 0.55) 10px; border-radius: var(--u-r); color: var(--u-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-radius 0.3s var(--ease); }
.ui-row.on { background: color-mix(in srgb, var(--u-accent) 14%, transparent); color: var(--u-ink); font-weight: 600; }
.ui-main { display: flex; flex-direction: column; gap: calc(var(--u-pad) * 0.8); padding: var(--u-pad); min-width: 0; }
.ui-title { padding-bottom: calc(var(--u-pad) * 0.6); border-bottom: 1px solid var(--u-line); font-weight: 650; }
.ui-msg { align-self: flex-end; max-width: 80%; padding: calc(var(--u-pad) * 0.6) 12px; border-radius: var(--u-r); background: var(--u-accent); color: #fbf6f2; transition: border-radius 0.3s var(--ease), background-color 0.3s var(--ease); }
.ui[data-mode="dark"][data-accent="espresso"] .ui-msg { color: #2a2623; }
.ui-reply { max-width: 90%; padding: calc(var(--u-pad) * 0.6) 12px; border-radius: var(--u-r); background: var(--u-bubble); line-height: 1.5; transition: border-radius 0.3s var(--ease); }
.ui-reply code { color: var(--u-accent); }
.ui[data-mode="dark"] .ui-reply code { color: color-mix(in srgb, var(--u-accent) 50%, #efe9e1); }
.ui-composer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 8px 8px 12px; border-radius: calc(var(--u-r) + 2px); border: 1px solid var(--u-line); color: var(--u-ink-2); transition: border-radius 0.3s var(--ease); }
.ui-composer > span:first-child { flex: 1; }
.ui-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: calc(var(--u-r) * 0.8 + 2px); background: var(--u-accent); color: #fbf6f2; }
.ui[data-mode="dark"][data-accent="espresso"] .ui-send { color: #2a2623; }
.ui-send .icon { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .ui { grid-template-columns: minmax(0, 1fr); }
  .ui-side { display: none; }
}

/* ---- downloads ------------------------------------------------------------------- */

.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dl-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--card);
  outline: 1px solid var(--hair);
}
.dl > .icon { width: 34px; height: 34px; margin-bottom: 10px; color: var(--ink-2); }
.dl h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.026em; }
.dl > p { color: var(--ink-2); font-size: 16px; }
.dl .meta { color: var(--ink-3); font-size: 14px; }
.dl .dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.dl.is-recommended { order: -1; outline: 2px solid var(--wine); }
.dl.is-recommended > .icon { color: var(--wine); }
.rec { display: none; color: var(--wine); font-size: 13px; font-weight: 600; }
.is-recommended .rec { display: block; }
@media (max-width: 1068px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 734px) { .dl-grid.two { grid-template-columns: minmax(0, 1fr); } }

.code {
  position: relative;
  margin-top: 16px;
  border-radius: var(--r-sm);
  background: var(--dark);
}
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: var(--cream); font: 13.5px/1.75 var(--mono); }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--dark-raised);
  color: var(--on-dark-2);
  font: 600 12.5px var(--font);
  cursor: pointer;
}
.copy-btn:hover { color: var(--on-dark); }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.server-grid > div { padding: 32px; border-radius: var(--r-lg); background: var(--card); outline: 1px solid var(--hair); }
.server-grid h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.024em; }
.server-grid p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 1068px) { .server-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- 404 --------------------------------------------------------------------------- */

.not-found { padding: clamp(96px, 14vw, 200px) 0; text-align: center; }
.not-found .subhead { margin-bottom: 36px; }

/* ---- footer -------------------------------------------------------------------------- */

.site-footer { padding: 40px 0 32px; background: var(--tile); color: var(--ink-3); font-size: 13px; }
.footer-top { padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.footer-top p { max-width: 720px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 28px 0; }
.footer-brand p { max-width: 280px; margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.footer-grid h2 { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.footer-grid nav a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.footer-grid nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
@media (max-width: 734px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- large screens ------------------------------------------------------------------- */

@media (min-width: 1441px) {
  :root { --maxw: 1260px; --maxw-wide: 1480px; }
  body { font-size: 18px; }
}
@media (min-width: 2000px) {
  :root { --maxw: 1400px; --maxw-wide: 1640px; }
}

/* ---- motion ------------------------------------------------------------------------ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .hero-visual .window {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: none; }
    }
    @keyframes lift {
      from { transform: perspective(1600px) rotateX(10deg) scale(0.94); }
      to { transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
