/* Styling for the two marketing pages at teamtalk.click: the landing page (/) and the
 * download page (/download).
 *
 * Kept apart from style.css on purpose: the legal pages and the generated releases.html
 * (mobile/scripts/build-release-notes.js, pinned by releaseNotesMirror.spec.ts) are styled
 * by that file, and a redesign here must not be able to reflow a privacy policy.
 *
 * Same rules as style.css otherwise — same-origin only, no web font, no CDN. The tokens
 * are the app's own (mobile/src/assets/tailwind/palette-light.css and palette-dark.css),
 * so the mockups on the landing page read as screenshots of TeamTalk; when the app's
 * palette moves, move these with it. Light stays the default, as in style.css. */

:root {
  --bg: #f6f7f9;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --surface-3: #e4e8ef;
  --border: #d9dee7;
  --text: #12151c;
  --muted: #5b6373;
  --accent: #985600;
  --accent-end: #743f00;
  --on-accent: #ffffff;
  --sent-text: #3f3007;
  --received: #ffffff;
  --received-text: #12151c;
  --success: #0b7a53;
  --danger: #c62839;
  --inset: rgb(15 19 26 / 0.05);
  --inset-strong: rgb(15 19 26 / 0.1);
  --glow: rgb(152 86 0 / 0.22);
  --glow-soft: rgb(152 86 0 / 0.08);
  --shadow-ink-weak: rgb(15 19 26 / 0.06);
  --canvas-warm: rgb(152 86 0 / 0.08);
  --canvas-cool: rgb(46 92 190 / 0.055);
  --shadow: 0 1px 2px rgb(15 19 26 / 0.06), 0 12px 32px rgb(15 19 26 / 0.08);
  --shadow-lg: 0 2px 4px rgb(15 19 26 / 0.06), 0 30px 60px rgb(15 19 26 / 0.16);
  --nav-bg: rgb(246 247 249 / 0.78);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-soft: #131720;
    --surface: #161a23;
    --surface-2: #1e2330;
    --surface-3: #262c3b;
    --border: #2a3040;
    --text: #e8eaf0;
    --muted: #8b93a5;
    --accent: #f5c518;
    --accent-end: #ff9d0a;
    --on-accent: #181400;
    --sent-text: #f3e9d2;
    --received: #1e2330;
    --received-text: #dde1ea;
    --success: #3ecf8e;
    --danger: #ff5b6e;
    --inset: rgb(255 255 255 / 0.06);
    --inset-strong: rgb(255 255 255 / 0.1);
    --glow: rgb(245 197 24 / 0.3);
    --glow-soft: rgb(245 197 24 / 0.1);
    --shadow-ink-weak: rgb(0 0 0 / 0.18);
    --canvas-warm: rgb(245 197 24 / 0.16);
    --canvas-cool: rgb(104 140 255 / 0.1);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 30px 60px rgb(0 0 0 / 0.55);
    --nav-bg: rgb(15 17 23 / 0.72);
    color-scheme: dark;
  }
}

:root {
  --accent-tint: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-fill: linear-gradient(135deg, var(--accent), var(--accent-end));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, "Noto Sans Khmer";
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

@media (min-width: 48rem) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: 0 6px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */

section {
  padding: 4.5rem 0;
}

@media (min-width: 48rem) {
  section {
    padding: 6rem 0;
  }
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12rem 0 auto;
  margin: 0 auto;
  width: 70rem;
  max-width: 100%;
  height: 40rem;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

@media (min-width: 60rem) {
  .hero {
    padding: 5rem 0 6rem;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.pill b {
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 1.4rem auto 2rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .cta-row {
  justify-content: center;
}

.platform-line {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  max-width: 64rem;
  margin: 3.5rem auto 0;
}

@media (min-width: 60rem) {
  .hero-visual {
    padding-right: 7rem;
  }
}

/* ---------- App mockups ----------
 * Miniatures of the real screens, built from the app's components at about 0.85 scale:
 * DesktopRail, HomeChannelRow, ChatHeader, MessageBubble, VoicePlayer, ChatInput, TabBar,
 * BoardColumn/BoardCard (all under mobile/src/components). Change one of those visibly and
 * the matching rule here is what goes stale. aria-hidden in the markup — they illustrate,
 * the copy beside them informs. */

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent);
}

.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}

.mock-bar span {
  flex: 1;
  margin-right: 46px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* Desktop shell: rail | sidebar | conversation. Below 44rem only the conversation is
 * left, which is what the app itself would show at that width. */
.desk {
  display: grid;
  grid-template-columns: 1fr;
}

.rail,
.side {
  display: none;
}

@media (min-width: 44rem) {
  .desk {
    grid-template-columns: 56px 15rem 1fr;
    height: 30rem;
  }

  .rail,
  .side {
    display: flex;
  }
}

.rail {
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.ws-tile {
  position: relative;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 14px var(--glow);
}

.ws-tile .i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  stroke-width: 3;
}

.rail-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
}

.rail-btn.on {
  background: var(--accent-tint);
  color: var(--accent);
}

.rail .me {
  margin-top: auto;
}

.side {
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.side-head {
  padding: 14px 14px 8px;
}

.side-head b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.side-head b .i {
  color: var(--muted);
  font-size: 14px;
}

.side-head small {
  color: var(--muted);
  font-size: 11px;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--inset);
  color: var(--muted);
  font-size: 12px;
}

.side-label {
  padding: 10px 14px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 7px 14px;
}

.row.on {
  background: var(--accent-tint);
}

.row.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.row-ic {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 16px;
}

.row-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.row-time {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.row-prev {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
}

.row.unread .row-name {
  color: var(--text);
  font-weight: 700;
}

.row.unread .row-time {
  color: var(--accent);
}

.count {
  justify-self: end;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

/* The conversation canvas: the same gradient stack MessageList paints. */
.pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110% 55% at 92% -6%, var(--canvas-warm), transparent 62%),
    radial-gradient(ellipse 80% 60% at -8% 45%, var(--canvas-cool), transparent 60%),
    radial-gradient(ellipse 100% 45% at 78% 106%, var(--canvas-warm), transparent 58%),
    var(--bg);
}

.spot .pane {
  min-height: 19rem;
}

.pane-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 4px;
}

.cap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
}

.cap b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.cap small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  flex: none;
}

.pane-head .round:last-child {
  margin-left: auto;
}

.date {
  align-self: center;
  margin: 6px 0 2px;
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.feed {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

/* Avatars: Avatar.vue's six-colour palette, picked by name there and by hand here. */
.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.av.sm {
  width: 18px;
  height: 18px;
  font-size: 8px;
}

.c1 { background: #c0392b; }
.c2 { background: #0e8a5f; }
.c3 { background: #d97a2b; }
.c4 { background: #b8556e; }
.c5 { background: #5b8cff; }
.c6 { background: #8b5dff; }

/* A sender's run of bubbles. MessageList draws the avatar once per group, in the amber
 * tint with two initials, resting beside the last bubble. */
.grp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 0 0 40px;
}

.grp > .av {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11px;
}

.who {
  font-size: 13px;
  font-weight: 700;
}

.bub {
  max-width: min(100%, 22rem);
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 15px;
  background: var(--received);
  color: var(--received-text);
  box-shadow: 0 2px 8px var(--shadow-ink-weak);
}

.grp > .bub:first-child,
.who + .bub {
  border-top-left-radius: 4px;
}

.bub.own {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--sent-text);
  font-weight: 500;
  box-shadow: 0 2px 10px var(--glow-soft);
}

/* Own messages carry no name or avatar, and their tail is top-right wherever they sit. */
.bub.own:first-child {
  border-radius: 15px 4px 15px 15px;
}

/* Phone layout: own messages on the right. */
.grp.right {
  align-items: flex-end;
  padding-left: 0;
}

.meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 5px 0 0 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.meta > span {
  opacity: 0.7;
}

.meta .i {
  font-size: 13px;
  opacity: 0.7;
}

.meta .read {
  color: var(--success);
  opacity: 1;
}

.mention {
  padding: 0 2px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 500;
}

/* A bubble carrying a preview is as wide as its card, and the text wraps to it. */
.bub:has(.lp) {
  width: min-content;
}

.lp {
  display: block;
  width: 15rem;
  max-width: 100%;
  margin: 4px 0 2px;
  overflow: hidden;
  border: 1px solid var(--inset-strong);
  border-radius: 10px;
  background: var(--inset);
}

.lp-img {
  display: block;
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(circle at 30% 40%, var(--canvas-warm), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--canvas-cool));
}

.lp-body {
  display: block;
  padding: 6px 9px;
}

.lp-body b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.lp-body small {
  color: var(--muted);
  font-size: 10.5px;
}

.foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.rc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
}

.rc.mine {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.faces {
  display: inline-flex;
}

.faces .av {
  width: 14px;
  height: 14px;
  font-size: 7px;
  box-shadow: 0 0 0 1.5px var(--surface-2);
}

.faces .av + .av {
  margin-left: -4px;
}

.thread {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

.vp {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 11px;
}

.play .i {
  fill: currentColor;
  stroke: none;
}

.bars {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 22px;
}

.bars i {
  width: 2.5px;
  height: var(--h, 50%);
  min-height: 20%;
  border-radius: 1.5px;
  background: var(--muted);
}

.bars i.p {
  background: var(--accent);
}

.vt {
  color: var(--muted);
  font-size: 9.5px;
}

.tr {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--inset-strong);
}

.tr small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
}

.tr span {
  font-size: 12.5px;
  opacity: 0.8;
}

.unread-div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
}

.unread-div::before,
.unread-div::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.unread-div::after {
  flex: 0 0 18px;
}

.composer {
  margin-top: auto;
  padding: 10px 12px 12px;
}

.composer > div {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
}

.composer .ph {
  flex: 1;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.cbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--muted);
  font-size: 17px;
}

.cbtn.send {
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: 0 4px 16px var(--glow);
}

.cbtn.mic {
  background: var(--inset-strong);
}

/* The phone, overlapping the window's corner. The frame is device hardware, so it is
 * near-black in both themes on purpose, like the app's media viewer chrome. */
.phone {
  display: none;
}

@media (min-width: 60rem) {
  .phone {
    position: absolute;
    right: 0;
    bottom: -2.5rem;
    display: block;
    width: 15rem;
    text-align: left;
    height: 29rem;
    padding: 7px;
    border-radius: 38px;
    background: #0b0c10;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.12);
  }
}

/* Home, as the phone shell draws it: header, search, sectioned rooms, FAB, tab bar. The
 * rows reuse the sidebar's, which are drawn after the same HomeChannelRow. */
.phone .home {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding-top: 18px;
  border-radius: 31px;
  background: var(--bg);
  font-size: 12px;
}

.home-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 10px;
}

.home-head .ws-tile {
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 8px;
  font-size: 13px;
}

.home-head b {
  font-size: 15px;
}

.home-head .i {
  color: var(--muted);
  font-size: 13px;
}

.phone .search {
  margin: 0 14px 2px;
}

.phone .row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 1px 9px;
  padding: 6px 14px;
}

.phone .row-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 14px;
}

.phone .row-name {
  font-size: 12.5px;
}

.phone .row-prev {
  font-size: 10.5px;
}

.phone .tabbar {
  margin-top: auto;
}

.fab {
  position: absolute;
  right: 14px;
  bottom: 62px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 18px;
  box-shadow: 0 4px 14px var(--glow);
}

.tabbar {
  position: relative;
  isolation: isolate;
  display: flex;
  margin: 0 8px 10px;
  padding: 4px;
  border-radius: 999px;
}

.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.tab .i {
  font-size: 15px;
}

.tab.on {
  color: var(--accent);
}

.tab.on::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--accent-tint), transparent), var(--accent-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 18px var(--glow-soft);
}

.tab b {
  position: absolute;
  top: 0;
  right: 22%;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--bg);
  font-size: 8px;
  line-height: 13px;
  text-align: center;
}

.offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin: 8px 0 4px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.pending {
  color: var(--muted);
}

.status-line {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

/* Boards: BoardColumn and BoardCard. */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--bg);
  overflow: hidden;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 6px 6px;
  border-radius: 14px;
  background: var(--inset);
}

.col-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 2px;
}

.col-h b {
  font-size: 12.5px;
  font-weight: 600;
}

.col-h small {
  color: var(--muted);
  font-size: 11px;
}

.col-h .i {
  margin-left: auto;
  color: var(--muted);
}

.bcard {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.bcard.lifted {
  transform: rotate(-2deg);
  border-color: var(--accent);
  box-shadow: 0 10px 24px var(--glow);
}

.bcard > b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.mock .bcard > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.bmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.bmeta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bmeta .faces {
  margin-left: auto;
}

.bmeta .faces .av {
  width: 18px;
  height: 18px;
  font-size: 8px;
  box-shadow: 0 0 0 1.5px var(--surface-2);
}

.from {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.from b {
  display: block;
  color: var(--accent);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.add {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 1rem;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Spotlights ---------- */

.spot {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.spot + .spot {
  margin-top: 5rem;
}

@media (min-width: 56rem) {
  .spot {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .spot.flip > :first-child {
    order: 2;
  }
}

.spot h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.spot p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.ticks li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 5px var(--accent-tint), inset 0 0 0 20px var(--accent);
  transform: scale(0.6);
}

/* ---------- Security ---------- */

.sec-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.sec-grid .card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sec-grid .icon {
  flex: none;
  margin: 0;
}

/* ---------- Platform tiles ---------- */

.tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tile svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.tile small {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.tile.soon {
  color: var(--muted);
}

.tile.soon svg {
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

/* ---------- Closing CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 100%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-band p {
  color: var(--muted);
  margin: 1rem auto 2rem;
  max-width: 32rem;
}

.cta-band .cta-row {
  justify-content: center;
}

/* ---------- Download page ---------- */

.page-head {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -50% 0 auto 0;
  height: 30rem;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.035em;
}

.page-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1rem auto 0;
  max-width: 34rem;
}

.dl-section {
  padding: 3rem 0 0;
}

.dl-section h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dl-section > .wrap > p {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
  max-width: 44rem;
}

.version {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8em;
  letter-spacing: 0;
}

/* Hidden until the inline script picks an installer — with no script, the full grid
 * below is the whole page and nothing is missing. */
.recommend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  margin: 2.5rem auto 0;
  max-width: 44rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recommend[hidden] {
  display: none;
}

.recommend-os {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.recommend-os svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex: none;
}

.recommend-os b {
  display: block;
  font-size: 1.15rem;
}

.recommend-os small {
  color: var(--muted);
}

.recommend-alt {
  width: 100%;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: left;
}

.recommend-alt a {
  margin-left: 0.4rem;
}

.dl-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.dl-grid a {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.dl-grid svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--accent);
}

.dl-grid .dl-text {
  flex: 1;
  min-width: 0;
}

.dl-grid b {
  display: block;
}

.dl-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.dl-grid .fmt {
  flex: none;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.callout {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.95rem;
}

.callout svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 0.1rem;
}

.versions {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.versions summary {
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.versions summary span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.versions[open] summary {
  border-bottom: 1px solid var(--border);
}

.versions ul {
  list-style: none;
  padding: 0.5rem 1.2rem 0.75rem;
  margin: 0;
}

.versions li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.versions li:last-child {
  border-bottom: 0;
}

.versions li span {
  display: inline-block;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.versions time {
  color: var(--muted);
  font-size: 0.88rem;
}

.install-steps {
  padding: 0.75rem 1.2rem 1.1rem;
  font-size: 0.95rem;
}

.install-steps ol {
  margin: 0 0 0.75rem;
  padding-left: 1.3rem;
}

.install-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

/* Scrolls inside its own box so the command never widens the page on a phone. */
.install-steps pre {
  margin: 0.6rem 0 0;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  background: var(--surface-2);
  border-radius: 8px;
}

.dl-section .dl-note {
  max-width: none;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer .brand {
  margin: 0;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
