:root {
  --bg: #ededed;
  --ink: #0b0b0c;
  --muted: rgba(0, 0, 0, 0.54);
  --card: #f6f6f6;
  --tile: #141416;
  --red: #ef4444;
  --red-deep: #cc3f02;
  --ring: #e2e2e2;
  --num: #bdbdbd;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --dial-r: 560px;
  --dial-show: 210px;
  --dial-font: 60px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--round);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}

/* ---------- dials ---------- */
.dial {
  position: fixed;
  top: 50%;
  width: calc(var(--dial-r) * 2);
  height: calc(var(--dial-r) * 2);
  margin-top: calc(var(--dial-r) * -1);
  pointer-events: none;
  z-index: 0;
}
.dial-l {
  left: calc(var(--dial-show) - var(--dial-r) * 2);
}
.dial-r {
  right: calc(var(--dial-show) - var(--dial-r) * 2);
}
.dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 38px solid var(--ring);
}
.dial-nums {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
.dial-nums span {
  position: absolute;
  left: 0;
  top: 0;
  font: 900 var(--dial-font) / 1 var(--round);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--num);
  white-space: nowrap;
  will-change: transform, opacity;
}
.dial-nums span.on {
  color: var(--ink);
}

/* ---------- header ---------- */
.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.brand.sm {
  font-size: 17px;
  gap: 7px;
}
.logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #1b1b1f;
  display: grid;
  place-items: center;
  flex: none;
}
.logo i {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 2px #1b1b1f,
    0 0 0 3.5px #f8a5a5;
}
.brand.sm .logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.logo.big {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.logo.big i {
  box-shadow:
    0 0 0 4px #1b1b1f,
    0 0 0 7px #f8a5a5;
}
.top-mid {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s steps(2, jump-none) infinite;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}
.pill-btn:hover {
  transform: translateY(-2px);
}
.pill-btn svg,
.btn-dark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 1;
}
section {
  padding: 0 20px;
}
.hero {
  text-align: center;
  padding-top: 70px;
}
h1 {
  font-weight: 900;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto;
}
h2 {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto 36px;
}
h3 {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  max-width: 560px;
  margin: 20px auto 0;
  font-weight: 500;
  text-align: center;
}
.block {
  padding-top: 150px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 16px 28px;
  font-weight: 800;
  font-size: 18px;
  transition:
    transform 0.2s ease,
    background 0.2s;
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: #26262b;
}
.btn-dark.sm {
  font-size: 15px;
  padding: 11px 18px;
  margin-top: 14px;
}
.btn-soft {
  border: 2px solid #f6d3c9;
  background: #fff6f3;
  color: #b03a2e;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 16px;
}

/* ---------- hero demo ---------- */
.demo {
  position: relative;
  max-width: 940px;
  margin: 64px auto 0;
}
.bg-dusk {
  background: linear-gradient(135deg, #3b2a6b, #b7477a, #f08c5a);
}
.bg-ocean {
  background: linear-gradient(135deg, #0f2f57, #1c6e8c, #5cc6b5);
}
.bg-mint {
  background: linear-gradient(160deg, #d9f2e6, #a8e0d0, #7cc4c9);
}
.bg-peach {
  background: linear-gradient(135deg, #ffe2c6, #fbb7a4, #f39bb0);
}
.bg-night {
  background: linear-gradient(160deg, #0b0c10, #1b1d29, #2b2f45);
}

/* The player is the exported video: 16:9, same frame rules as the extension. */
.player {
  --ease-frame: cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: #1b1d29;
  box-shadow:
    0 40px 80px -40px rgba(30, 10, 40, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}
.bgs,
.bgs i {
  position: absolute;
  inset: 0;
}
.bgs i {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.bgs i.on {
  opacity: 1;
}
/* Padded: 6% padding, page (9:5) fitted inside. Full bleed: page covers the frame edge to edge. */
.player .cam {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 79.65cqw;
  height: 44.25cqw;
  border-radius: 1.3cqw;
  box-shadow:
    0 2.2cqw 4.4cqw -1.4cqw rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition:
    width 0.75s var(--ease-frame),
    height 0.75s var(--ease-frame),
    border-radius 0.75s var(--ease-frame),
    box-shadow 0.75s ease;
}
.player.bleed .cam {
  width: 101.25cqw;
  height: 56.25cqw;
  border-radius: 0;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

.rec-chip {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.rec-chip b {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #d4d4d8;
}
.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.2s ease-in-out infinite;
  flex: none;
}
.note {
  position: absolute;
  right: -10px;
  top: -64px;
  font: 600 26px var(--hand);
  color: #7a7a7a;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  transform: rotate(-3deg);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.note svg {
  width: 40px;
  height: 30px;
  fill: none;
  stroke: #7a7a7a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1) rotate(70deg) translate(4px, -6px);
}
.note.gone {
  opacity: 0;
  transform: rotate(-3deg) translateY(-8px);
}

/* ---------- editor dock (try it) ---------- */
.dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 12px 30px -16px rgba(0, 0, 0, 0.25);
}
.dk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 14px;
}
.dk + .dk {
  border-left: 1px solid #ececee;
}
.dk-l {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.dock button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dock button:focus-visible {
  outline: 3px solid rgba(239, 68, 68, 0.45);
  outline-offset: 2px;
}
.seg {
  display: flex;
  background: #f1f1f3;
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  background: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.sw {
  display: flex;
  gap: 6px;
}
.sw button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1),
    box-shadow 0.2s;
}
.sw button:hover {
  transform: scale(1.12);
}
.sw button[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--ink);
}
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d4d4d8;
  padding: 0;
  transition: background 0.25s;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.switch[aria-checked="true"] {
  background: #3b82f6;
}
.switch[aria-checked="true"] i {
  transform: translateX(18px);
}
.dk:last-child {
  padding-right: 10px;
}

/* ---------- callouts (match the extension's export) ---------- */
.co-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s;
}
.player.no-callouts .co-layer {
  opacity: 0;
}
.co {
  position: absolute;
  inset: 0;
}
.co-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.co-pin i,
.co-pin::before {
  position: absolute;
  left: -0.75cqw;
  top: -0.75cqw;
  width: 1.5cqw;
  height: 1.5cqw;
  border-radius: 50%;
  content: "";
}
.co-pin i {
  background: #3b82f6;
  box-shadow:
    0 0 0 0.3cqw #fff,
    0 0.1cqw 0.5cqw 0.3cqw rgba(0, 0, 0, 0.3);
}
.co-pin::before {
  background: rgba(59, 130, 246, 0.45);
  animation: co-pulse 1.4s ease-out infinite;
}
.co-bub {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
  text-align: left;
  font:
    500 max(11px, 1.55cqw) / 1.3 "Inter",
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: -0.01em;
  color: #16181d;
  background: #fff;
  border-radius: 0.6em;
  padding: 0.55em 0.95em 0.55em 0.6em;
  box-shadow: 0 0.45em 1.4em rgba(0, 0, 0, 0.28);
  opacity: 0;
  scale: 0.88;
  transform-origin: var(--tx, 50%) calc(100% + 1em);
  transition:
    opacity 0.18s ease,
    scale 0.32s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.co[data-side="bottom"] .co-bub {
  transform-origin: var(--tx, 50%) -1em;
}
.co-bub::after {
  content: "";
  position: absolute;
  left: var(--tx, 50%);
  top: 100%;
  width: 0.8em;
  height: 0.8em;
  background: inherit;
  border-radius: 0.12em;
  transform: translate(-50%, -55%) rotate(45deg);
}
.co[data-side="bottom"] .co-bub::after {
  top: 0;
  transform: translate(-50%, -45%) rotate(45deg);
}
.co-n {
  display: grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  flex: none;
  position: relative;
  z-index: 1;
}
.co-bub > span {
  position: relative;
  z-index: 1;
}
.co.show .co-bub {
  opacity: 1;
  scale: 1;
  transition:
    opacity 0.22s ease,
    scale 0.38s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.co.show .co-pin {
  opacity: 1;
}

/* ---------- fake page: "Billow", a small invoicing app ---------- */
.cam {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
}
.fp {
  --ink: #18181b;
  --mut: #71717a;
  --line: #e7e7ea;
  --soft: #f6f6f7;
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 1.3cqw;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-align: left;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease;
}
.fp.fade {
  opacity: 0;
}
.fp b {
  font-weight: 600;
}
.fp small {
  color: var(--mut);
  font-size: 0.86em;
}
.fp-nav {
  display: flex;
  align-items: center;
  gap: 2.6em;
  height: 3.8em;
  padding: 0 2em;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.fp-logo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: -0.02em;
}
.fp-logo i,
.pp-logo i {
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.4em;
  background: #0f766e;
  position: relative;
}
.fp-logo i::after,
.pp-logo i::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 30%;
  height: 0.18em;
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 0.32em 0 #fff;
}
.fp-links {
  display: flex;
  gap: 0.4em;
  flex: 1;
  color: var(--mut);
  font-weight: 500;
}
.fp-links span {
  padding: 0.4em 0.75em;
  border-radius: 0.5em;
}
.fp-links .on {
  color: var(--ink);
  background: var(--soft);
}
.fp-right {
  display: flex;
  align-items: center;
  gap: 1em;
}
.fp-kbd {
  display: flex;
  align-items: center;
  gap: 2.2em;
  color: #a1a1aa;
  border: 1px solid var(--line);
  border-radius: 0.55em;
  padding: 0.4em 0.5em 0.4em 0.8em;
}
.fp-kbd kbd {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.8em;
  line-height: 1.4;
  color: var(--mut);
  background: var(--soft);
  border-radius: 0.35em;
  padding: 0.15em 0.4em;
}
.fp-me {
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #db2777);
}

.fp-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 1.6em 2em 1.8em;
  background: #fbfbfb;
}
.fp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.fp-crumb {
  color: var(--mut);
  font-size: 0.9em;
  margin-bottom: 0.35em;
}
.fp-crumb s {
  text-decoration: none;
  color: #d4d4d8;
  margin: 0 0.3em;
}
.fp-h {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.65em;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.fp-pill {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  color: #92400e;
  background: #fef3c7;
  border-radius: 1em;
  padding: 0.3em 0.8em;
  transition:
    color 0.3s,
    background 0.3s;
}
.fp.sent .fp-pill {
  color: #166534;
  background: #dcfce7;
}
.fp-pill .s,
.fp.sent .fp-pill .d {
  display: none;
}
.fp.sent .fp-pill .s {
  display: inline;
}
.fp-actions {
  display: flex;
  gap: 0.6em;
}
.fp-ghost,
.fp-send {
  border-radius: 0.6em;
  padding: 0.65em 1.1em;
  font-weight: 600;
}
.fp-ghost {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}
.fp-send {
  position: relative;
  background: var(--ink);
  color: #fff;
  min-width: 8.6em;
  text-align: center;
  transition:
    background 0.3s,
    transform 0.15s;
  overflow: hidden;
}
.fp-send b {
  display: block;
  font-weight: 600;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.fp-send .l1,
.fp-send .l2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  opacity: 0;
  transform: translateY(0.8em);
}
.fp.sending .fp-send {
  transform: scale(0.97);
}
.fp.sending .fp-send .l0,
.fp.sent .fp-send .l0 {
  opacity: 0;
  transform: translateY(-0.8em);
}
.fp.sending .fp-send .l1 {
  opacity: 1;
  transform: none;
}
.fp.sent .fp-send {
  background: #15803d;
}
.fp.sent .fp-send .l2 {
  opacity: 1;
  transform: none;
}
.spin {
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  border: 0.15em solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.fp-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5em;
}
.fp-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9em;
  padding: 1.3em 1.4em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  min-height: 0;
}
.fp-field label {
  display: block;
  font-size: 0.84em;
  font-weight: 500;
  color: var(--mut);
  margin-bottom: 0.4em;
}
.fp-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}
.fp-input,
.fp-select {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.6em;
  padding: 0 0.85em;
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 0.6em;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}
.fp-input small {
  margin-left: auto;
}
.fp-select {
  position: relative;
  color: #a1a1aa;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fp-select.focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 0.25em rgba(15, 118, 110, 0.15);
}
.fp-chev {
  width: 1em;
  height: 1em;
  margin-left: auto;
  fill: none;
  stroke: #a1a1aa;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.fp-typed,
.fp-chosen {
  display: none;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  min-width: 0;
}
.fp-select.typed .fp-ph {
  display: none;
}
.fp-select.typed .fp-typed {
  display: flex;
}
.fp.chosen .fp-ph {
  display: none;
}
.fp.chosen .fp-chosen {
  display: flex;
  animation: pop-in 0.3s ease-out;
}
.fp-chosen small {
  margin-left: 0.3em;
}
.fp-caret {
  width: 1px;
  height: 1.15em;
  background: var(--ink);
  animation: blink 1s steps(2, jump-none) infinite;
  margin-left: -0.35em;
}
.av {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.72em;
  font-weight: 700;
  color: #fff;
  background: var(--c);
}
.fp-menu {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 0.4em);
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7em;
  padding: 0.35em;
  box-shadow: 0 0.8em 2em -0.6em rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-0.4em) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.25s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.fp-select.open .fp-menu {
  opacity: 1;
  transform: none;
}
.fp-opt {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.6em;
  border-radius: 0.45em;
  color: var(--ink);
}
.fp-opt small {
  margin-left: auto;
}
.fp-opt.hi {
  background: var(--soft);
}
.fp-opt.hide {
  display: none;
}

.fp-items {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.fp-tr {
  display: grid;
  grid-template-columns: 1fr 3em 6.5em;
  gap: 1em;
  align-items: center;
  height: 2.5em;
  border-bottom: 1px solid #f0f0f2;
}
.fp-tr > span:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fp-tr.th {
  height: 2em;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--mut);
  border-bottom-color: var(--line);
}
.fp-new {
  display: none;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.06), transparent);
}
.fp.added .fp-new {
  display: grid;
  animation: row-in 0.35s cubic-bezier(0.2, 1, 0.4, 1);
}
.fp-cell {
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.fp-new .fp-caret {
  display: none;
  margin-left: 0;
}
.fp.typing .fp-new .fp-caret {
  display: block;
}
.fp-add {
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 2.6em;
  color: #0f766e;
  font-weight: 600;
  align-self: flex-start;
  padding: 0 0.6em;
  margin-left: -0.6em;
  border-radius: 0.5em;
}
.fp-add b {
  font-size: 1.2em;
  font-weight: 500;
}
.fp-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.9em;
}
.fp-total span {
  color: var(--mut);
  font-weight: 500;
}
.fp-sum {
  font-size: 1.5em;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fp-prev {
  background: #f1f1f3;
  border-radius: 0.9em;
  display: grid;
  place-items: center;
  padding: 1.2em;
  min-height: 0;
  overflow: hidden;
}
.fp-paper {
  width: 100%;
  max-width: 19em;
  aspect-ratio: 8.5 / 10;
  background: #fff;
  border-radius: 0.35em;
  box-shadow:
    0 0.2em 0.6em rgba(0, 0, 0, 0.06),
    0 1.2em 2em -1em rgba(0, 0, 0, 0.18);
  padding: 1.4em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  font-size: 0.78em;
}
.pp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pp-logo {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
}
.pp-no {
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75em;
  color: var(--mut);
  display: flex;
  flex-direction: column;
}
.pp-no b {
  color: var(--ink);
  letter-spacing: 0;
  font-size: 1.3em;
}
.pp-to {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.pp-client {
  position: relative;
  height: 1.3em;
}
.pp-client span {
  opacity: 0;
  transition: opacity 0.4s;
}
.pp-empty {
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 7em;
  height: 0.8em;
  border-radius: 0.3em;
  background: #f0f0f2;
  transition: opacity 0.3s;
}
.fp.chosen .pp-client span {
  opacity: 1;
}
.fp.chosen .pp-empty {
  opacity: 0;
}
.pp-lines {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pp-lines div {
  display: flex;
  justify-content: space-between;
  padding: 0.45em 0;
  border-bottom: 1px solid #f2f2f4;
}
.pp-new {
  display: none !important;
}
.fp.added .pp-new {
  display: flex !important;
  animation: row-in 0.35s ease-out;
}
.pp-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: #f0fdfa;
  border-radius: 0.4em;
  padding: 0.6em 0.8em;
}
.pp-sum b {
  font-size: 1.35em;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
}

.fp-toast {
  position: absolute;
  right: 2em;
  top: 4.6em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--ink);
  color: #fff;
  border-radius: 0.7em;
  padding: 0.7em 1.1em 0.7em 0.8em;
  font-weight: 500;
  box-shadow: 0 0.8em 1.8em -0.6em rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-0.8em) scale(0.97);
  transition:
    opacity 0.3s,
    transform 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
  z-index: 3;
}
.fp-toast i {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.85em;
  background: #22c55e;
}
.fp-toast.show {
  opacity: 1;
  transform: none;
}
.fp-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 2.2em;
  z-index: 4;
  pointer-events: none;
  transform-origin: 0 0;
}
.fp-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.fp-cursor path {
  fill: #111;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.fp-ripple {
  position: absolute;
  width: 5em;
  height: 5em;
  margin: -2.5em 0 0 -2.5em;
  border-radius: 50%;
  border: 0.22em solid rgba(59, 130, 246, 0.85);
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 3;
  animation: ripple 0.55s ease-out forwards;
}
@keyframes co-pulse {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-0.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 660px;
  margin: 0 auto;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--tile);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tile:hover {
  transform: translateY(-4px) rotate(-1deg);
}
.tile > span {
  position: absolute;
  top: 18px;
  left: 20px;
  font-weight: 800;
  font-size: 18px;
  z-index: 2;
}
.ill {
  position: absolute;
  inset: 48px 16px 16px;
}

/* auto zoom */
.iz-page {
  position: absolute;
  inset: 14% 10% 8% 10%;
  background: #2a2b31;
  border-radius: 10px;
  padding: 12%;
  display: flex;
  flex-direction: column;
  gap: 10%;
}
.iz-page i {
  height: 12%;
  border-radius: 4px;
  background: #3d3e46;
}
.iz-page i:first-child {
  width: 55%;
}
.iz-focus {
  position: absolute;
  left: 42%;
  top: 48%;
  width: 34%;
  height: 26%;
  border-radius: 8px;
  background: #f2994a;
  box-shadow: 0 6px 18px rgba(242, 153, 74, 0.4);
  transform-origin: 30% 30%;
  animation: zoomy 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.iz-cur {
  position: absolute;
  left: 52%;
  top: 56%;
  width: 18px;
  animation: zoomy-cur 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.iz-cur path,
.ic-cur path {
  fill: #fff;
  stroke: #111;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

/* smooth cursor */
.ic-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ic-path path {
  fill: none;
  stroke: #f5c84c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
}
.ic-cur {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  offset-path: path("M10 66 C 30 10, 70 80, 110 18");
  offset-rotate: 0deg;
  offset-anchor: 0 0;
  animation: travel 3s ease-in-out infinite alternate;
}

/* captions */
.ill-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cap-pill {
  display: flex;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
}
.cap-pill i {
  height: 10px;
  width: 22px;
  border-radius: 5px;
  background: #2c2c33;
  transform-origin: left;
  animation: word 2.4s ease-out infinite;
}
.cap-pill i:nth-child(2) {
  width: 34px;
  animation-delay: 0.2s;
  background: var(--red);
}
.cap-pill i:nth-child(3) {
  width: 16px;
  animation-delay: 0.4s;
}
.cap-pill.small {
  padding: 8px 12px;
}
.cap-pill.small i {
  animation-delay: 0.6s;
}
.cap-pill.small i:nth-child(2) {
  animation-delay: 0.8s;
  background: #2c2c33;
  width: 26px;
}

/* music */
.ill-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ill-wave i {
  width: 9px;
  height: 70%;
  border-radius: 6px;
  background: #4cc38a;
  transform: scaleY(0.3);
  animation: eq 0.9s ease-in-out infinite alternate;
}
.ill-wave i:nth-child(3n) {
  background: #9b7bf4;
  animation-duration: 0.7s;
}
.ill-wave i:nth-child(3n + 1) {
  animation-duration: 1.1s;
}
.ill-wave i:nth-child(2) {
  animation-delay: -0.3s;
}
.ill-wave i:nth-child(4) {
  animation-delay: -0.5s;
}
.ill-wave i:nth-child(5) {
  animation-delay: -0.15s;
}
.ill-wave i:nth-child(7) {
  animation-delay: -0.6s;
}
.ill-wave i:nth-child(8) {
  animation-delay: -0.25s;
}

/* trim */
.ill-trim {
  display: flex;
  align-items: center;
}
.tr-bar {
  position: relative;
  width: 100%;
  height: 34%;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, #3b6cf6 0 18%, #345fdb 18% 20%);
}
.tr-bar::before,
.tr-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(20, 20, 22, 0.72);
  animation: trim-l 3s ease-in-out infinite alternate;
  left: 0;
  width: 22%;
  border-radius: 10px 0 0 10px;
}
.tr-bar::after {
  left: auto;
  right: 0;
  animation-name: trim-r;
  border-radius: 0 10px 10px 0;
}
.tr-h {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 8px;
  border-radius: 4px;
  background: #f5c84c;
  z-index: 2;
}
.tr-h.l {
  left: 22%;
  animation: trim-hl 3s ease-in-out infinite alternate;
}
.tr-h.r {
  right: 22%;
  animation: trim-hr 3s ease-in-out infinite alternate;
}
.tr-head {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 2px;
  background: var(--red);
  left: 30%;
  animation: head 3s linear infinite;
}

/* backgrounds */
.ill-bg {
  display: grid;
  place-items: center;
}
.bg-card {
  width: 82%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b2a6b, #b7477a, #f08c5a);
  padding: 12%;
  animation: hue 6s linear infinite;
}
.bg-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #f3f4f6;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  animation: hue 6s linear infinite reverse;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.card {
  background: var(--card);
  border-radius: 30px;
  padding: 26px 24px 30px;
  text-align: center;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
}
.card-ill {
  position: relative;
  height: 170px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
}

/* one tab */
.ot-win {
  width: 76%;
  height: 120px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.ot-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background: #e9e9ec;
}
.ot-tabs i {
  flex: 1;
  height: 18px;
  border-radius: 7px 7px 0 0;
  background: #dadade;
  display: grid;
  place-items: center;
}
.ot-tabs i.on {
  background: #fff;
}
.ot-tabs .rec-dot {
  width: 7px;
  height: 7px;
}
.ot-body {
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ot-body i {
  height: 10px;
  border-radius: 5px;
  background: #ececef;
}
.ot-body i:nth-child(1) {
  width: 60%;
  background: #ffd9d4;
}
.ot-body i:nth-child(3) {
  width: 80%;
}
.ot-win {
  outline: 3px solid transparent;
  animation: frame 2.4s ease-in-out infinite;
}

/* switch */
.sw-win {
  position: absolute;
  top: 34px;
  width: 40%;
  height: 82px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.2);
}
.sw-win.a {
  left: 6%;
}
.sw-win.b {
  right: 6%;
  background: linear-gradient(#fff 0 26%, #eef2ff 26%);
}
.sw-win.a::before,
.sw-win.b::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 30%;
  top: 10px;
  height: 8px;
  border-radius: 4px;
  background: #ececef;
}
.sw-frame {
  position: absolute;
  top: 28px;
  left: 4%;
  width: calc(40% + 12px);
  height: 94px;
  border: 3px solid var(--red);
  border-radius: 16px;
  animation: swap 3.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.sw-keys {
  position: absolute;
  bottom: 4px;
  display: flex;
  gap: 5px;
  animation: keys 3.2s ease-in-out infinite;
}
kbd {
  font: 800 13px var(--round);
  background: #fff;
  border-radius: 7px;
  padding: 5px 8px;
  box-shadow: 0 3px 0 #d4d4d8;
  color: #3f3f46;
}

/* mic */
.ill-mic {
  place-items: center;
}
.mic {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  padding: 18px;
  border-radius: 50%;
  background: var(--ink);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  top: -23px;
}
.mic rect {
  fill: var(--red);
  stroke: var(--red);
}
.mic-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  border-radius: 50%;
  border: 3px solid #f4a9a0;
  animation: ring 2.4s ease-out infinite;
}
.mic-rings i:nth-child(2) {
  animation-delay: 0.8s;
}
.mic-rings i:nth-child(3) {
  animation-delay: 1.6s;
}

/* ---------- before / after ---------- */
.ba {
  position: relative;
  container-type: inline-size;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}
.ba-layer {
  position: absolute;
  inset: 0;
}
.ba-raw .cam {
  position: absolute;
  inset: 0;
}
.ba-raw .fp {
  filter: saturate(0.9);
}
.ba-edit {
  clip-path: inset(0 0 0 var(--split, 50%));
}
.ba-frame {
  position: absolute;
  left: 50%;
  top: 5cqw;
  translate: -50% 0;
  width: 72cqw;
  height: 40cqw;
  border-radius: 1.2cqw;
  overflow: hidden;
  box-shadow: 0 2cqw 4cqw -1.2cqw rgba(0, 0, 0, 0.5);
}
.ba-frame .cam {
  width: 100%;
  height: 100%;
}
.ba-caption {
  position: absolute;
  bottom: 3.2cqw;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font:
    600 max(11px, 1.7cqw) "Inter",
    system-ui,
    sans-serif;
  letter-spacing: -0.01em;
  backdrop-filter: blur(6px);
}
.ba-tag {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}
.ba-tag.l {
  left: 16px;
}
.ba-tag.r {
  right: 16px;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 44px;
  margin-left: -22px;
  z-index: 4;
  cursor: ew-resize;
  display: grid;
  place-items: center;
  outline: none;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}
.ba-handle i {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.ba-handle i::before,
.ba-handle i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  margin-top: -6px;
}
.ba-handle i::before {
  left: 6px;
  border-right-color: var(--ink);
}
.ba-handle i::after {
  right: 6px;
  border-left-color: var(--ink);
}
.ba-handle:focus-visible i {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5);
}
.ba .cam {
  cursor: default;
}

/* ---------- install walkthrough ---------- */
#install .sub {
  margin-top: -20px;
  margin-bottom: 40px;
}
.walk {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}
.walk-steps {
  list-style: none;
  margin: 0;
  padding: 2.5% 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ws {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  transition:
    background 0.35s,
    box-shadow 0.35s;
}
.ws.on {
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.3);
}
.ws-head {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font: 800 17px var(--round);
  letter-spacing: -0.015em;
  color: var(--muted);
  transition: color 0.3s;
}
.ws-head:focus-visible {
  outline: 3px solid rgba(239, 68, 68, 0.45);
  outline-offset: -3px;
  border-radius: 22px;
}
.ws.on .ws-head,
.ws-head:hover {
  color: var(--ink);
}
.ws-head b {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dcdcdc;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  transition:
    background 0.3s,
    transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.ws.on .ws-head b {
  background: var(--red);
  transform: scale(1.08);
}
.ws.past .ws-head b {
  background: var(--ink);
}
.ws-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.ws-body > * {
  overflow: hidden;
}
.ws.on .ws-body {
  grid-template-rows: 1fr;
}
.ws-body p {
  margin: 0;
  padding: 0 20px 0 60px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.ws-body .btn-dark {
  margin: 12px 0 0 60px;
}
.ws-body {
  padding-bottom: 0;
}
.ws.on .ws-body {
  padding-bottom: 18px;
}
.ws em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}
.ws-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.ws.on .ws-bar {
  opacity: 1;
  animation: fill var(--dur, 5s) linear forwards;
}
.walk-note {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.walk-note em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}
.kbd-mini {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 0 #d4d4d8;
  color: var(--ink);
  font-size: 12px;
}

/* the stage behind the browser */
.br-wrap {
  container-type: inline-size;
  position: relative;
  padding: 5%;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 15%, #ffd9cf, transparent 55%),
    radial-gradient(circle at 85% 90%, #dcd6ff, transparent 55%), #f3eeee;
}

/* fake browser: all sizes in em, so it scales with its box like a picture */
.br {
  position: relative;
  font-size: 1.62cqw;
  aspect-ratio: 16 / 11;
  background: #fff;
  border-radius: 1em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2em 3.5em -1.6em rgba(40, 20, 30, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #202124;
}
.br.instant,
.br.instant * {
  transition: none !important;
}
.br-tabs {
  height: 2.7em;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
  padding: 0 1em;
  background: #dee1e6;
}
.br-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: 15em;
  height: 2.2em;
  padding: 0 0.9em;
  background: #fff;
  border-radius: 0.7em 0.7em 0 0;
  font-size: 0.95em;
}
.br-tab em {
  margin-left: auto;
  font-style: normal;
  color: #5f6368;
}
.br-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.br-fav {
  width: 1.1em;
  height: 1.1em;
  border-radius: 0.3em;
  background: #18181b;
  position: relative;
  flex: none;
}
.br-fav::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--red);
}
.br.s-new .br-fav,
.br.s-ext .br-fav {
  background: #c4c7cc;
}
.br.s-new .br-fav::after,
.br.s-ext .br-fav::after {
  display: none;
}
.br-plus {
  color: #5f6368;
  padding-bottom: 0.5em;
}
.br-bar {
  height: 3.1em;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0 1em;
  border-bottom: 1px solid #e8eaed;
}
.br-nav {
  display: flex;
  gap: 1em;
  color: #5f6368;
  font-style: normal;
}
.br-nav i {
  font-style: normal;
  font-size: 1.15em;
  width: 1em;
  text-align: center;
}
.br-omni {
  flex: 1;
  height: 2.1em;
  display: flex;
  align-items: center;
  padding: 0 1.1em;
  border-radius: 2em;
  background: #f1f3f4;
  font-size: 0.95em;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.br.typing .br-omni {
  background: #fff;
  box-shadow: 0 0 0 0.15em #1a73e8;
}
.br-url {
  white-space: nowrap;
}
.br-caret {
  width: 1px;
  height: 1.1em;
  background: #202124;
  margin-left: 1px;
  display: none;
  animation: blink 1s steps(2, jump-none) infinite;
}
.br.typing .br-caret {
  display: block;
}
.br-bar svg {
  width: 1.5em;
  height: 1.5em;
}
.br-pinned {
  display: flex;
  width: 0;
  overflow: visible;
  transition: width 0.4s;
}
.br.pinned .br-pinned {
  width: 1.6em;
}
.br-pin-icon {
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.4em;
  background: #1b1b1f;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.br-pin-icon i {
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 1px #1b1b1f,
    0 0 0 2px #f8a5a5;
}
.br.pinned .br-pin-icon {
  transform: scale(1);
}
.br-dl {
  position: relative;
  width: 0;
  overflow: hidden;
  transition: width 0.35s;
}
.br.dl .br-dl,
.br.dl-done .br-dl {
  width: 1.5em;
}
.br-dl path {
  fill: none;
  stroke: #1a73e8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.br-dl .dl-ring {
  fill: none;
  stroke: #1a73e8;
  stroke-width: 2;
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  transform: rotate(-90deg);
  transform-origin: center;
}
.br.dl .dl-ring {
  animation: dl 1.1s ease-in-out forwards;
}
.br.dl-done .dl-ring {
  stroke-dashoffset: 0;
}
.br-puzzle svg path {
  fill: none;
  stroke: #5f6368;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.br.menu-open .br-puzzle {
  background: #e8eaed;
  border-radius: 50%;
}
.br-puzzle {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  transition: background 0.2s;
}
.br-me {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ab4f8, #c58af9);
}

.br-page {
  position: relative;
  flex: 1;
  min-height: 0;
}
.pg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.6em);
  transition:
    opacity 0.35s,
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}
.br.s-site .pg-site,
.br.s-new .pg-new,
.br.s-ext .pg-ext {
  opacity: 1;
  transform: none;
}

/* scene: site */
.pg-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4em;
  background: #ededed;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font: 900 1.6em var(--round);
  letter-spacing: -0.03em;
}
.site-mark {
  width: 1.1em;
  height: 1.1em;
  border-radius: 0.3em;
  background: #18181b;
  position: relative;
}
.site-mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--red);
}
.site-h {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}
.site-h i {
  height: 1.3em;
  width: 22em;
  border-radius: 0.7em;
  background: #d6d6d6;
}
.site-h i:last-child {
  width: 15em;
}
.site-btn {
  background: #0b0b0c;
  color: #fff;
  border-radius: 2em;
  padding: 0.8em 1.6em;
  font: 800 1.05em var(--round);
  transition: transform 0.15s;
}
.br.press-site .site-btn {
  transform: scale(0.94);
}

/* scene: new tab */
.pg-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
}
.new-search {
  width: 26em;
  height: 2.8em;
  border-radius: 2em;
  border: 1px solid #dfe1e5;
  box-shadow: 0 0.1em 0.4em rgba(0, 0, 0, 0.06);
}
.new-tiles {
  display: flex;
  gap: 1.6em;
}
.new-tiles i {
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: #f1f3f4;
}

/* scene: extensions page */
.pg-ext {
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}
.ext-head {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 1em 1.6em;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
}
.ext-head b {
  font-size: 1.3em;
  font-weight: 500;
}
.ext-search {
  flex: 1;
  max-width: 18em;
  height: 2em;
  border-radius: 0.5em;
  background: #f1f3f4;
}
.ext-dev {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.95em;
  color: #3c4043;
}
.tgl {
  position: relative;
  width: 2.3em;
  height: 1.2em;
  border-radius: 1em;
  background: #bdc1c6;
  flex: none;
  transition: background 0.25s;
}
.tgl::after {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0.1em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.05em 0.2em rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.tgl.on,
.br.dev .ext-dev .tgl {
  background: #1a73e8;
}
.tgl.on::after,
.br.dev .ext-dev .tgl::after {
  transform: translateX(1.1em);
}
.ext-tools {
  display: flex;
  gap: 0.8em;
  padding: 0 1.6em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: #fff;
  transition:
    max-height 0.45s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.3s,
    padding 0.45s;
}
.br.dev .ext-tools {
  max-height: 4em;
  opacity: 1;
  padding: 0.8em 1.6em;
  border-bottom: 1px solid #e8eaed;
}
.ext-tools span {
  border: 1px solid #dadce0;
  border-radius: 0.4em;
  padding: 0.45em 0.9em;
  color: #1a73e8;
  font-weight: 600;
  font-size: 0.9em;
  transition:
    background 0.15s,
    transform 0.15s;
}
.br.press-load .ext-load {
  background: #e8f0fe;
  transform: scale(0.95);
}
.ext-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  padding: 1.4em 1.6em;
}
.ext-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  background: #fff;
  border-radius: 0.7em;
  padding: 1em;
  box-shadow: 0 0.05em 0.25em rgba(0, 0, 0, 0.12);
  min-height: 6.4em;
}
.ext-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  min-width: 0;
}
.ext-card > div i {
  height: 0.8em;
  border-radius: 0.4em;
  background: #e8eaed;
}
.ext-card > div i:first-child {
  width: 70%;
  background: #dadce0;
}
.ext-card b {
  font-size: 0.95em;
  font-weight: 600;
}
.ext-card b small {
  color: #5f6368;
  font-weight: 400;
  margin-left: 0.3em;
}
.ext-card p {
  margin: 0;
  font-size: 0.8em;
  color: #5f6368;
  line-height: 1.35;
}
.ext-card .tgl {
  align-self: flex-end;
}
.ext-ic {
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.5em;
  background: #c6dafc;
  flex: none;
  display: grid;
  place-items: center;
}
.ext-ic.g {
  background: #ceead6;
}
.ext-ic.sm {
  width: 1.6em;
  height: 1.6em;
}
.ext-card.tc {
  display: none;
  position: relative;
  box-shadow:
    0 0 0 0.15em var(--red),
    0 0.6em 1.4em -0.4em rgba(239, 68, 68, 0.45);
}
.ext-card.tc .ext-ic,
.menu .ext-ic {
  background: #1b1b1f;
}
.ext-card.tc .ext-ic i,
.menu .ext-ic i {
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 1px #1b1b1f,
    0 0 0 2px #f8a5a5;
}
.br.loaded .ext-card.tc {
  display: flex;
  animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* downloads folder */
.os {
  position: absolute;
  right: 2.4em;
  bottom: 2em;
  width: 21em;
  background: rgba(250, 250, 252, 0.97);
  border-radius: 0.9em;
  box-shadow:
    0 1.4em 3em -0.8em rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.07);
  opacity: 0;
  transform: translateY(2em) scale(0.96);
  transition:
    opacity 0.35s,
    transform 0.5s cubic-bezier(0.2, 1.2, 0.3, 1);
  z-index: 4;
}
.br.os-open .os {
  opacity: 1;
  transform: none;
}
.os-bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid #ececf0;
  font-weight: 600;
  font-size: 0.9em;
}
.os-bar i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #ff5f57;
}
.os-bar i:nth-child(2) {
  background: #febc2e;
}
.os-bar i:nth-child(3) {
  background: #28c840;
}
.os-bar span {
  margin-left: 0.8em;
}
.os-files {
  display: flex;
  gap: 2em;
  padding: 1.4em 1.6em 1.6em;
}
.file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85em;
}
.file.dir {
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.3, 1.7, 0.5, 1),
    opacity 0.2s;
}
.br.unzipped .file.dir {
  transform: none;
  opacity: 1;
}
.zip-ic {
  position: relative;
  display: block;
  width: 2.8em;
  height: 3.4em;
  border-radius: 0.3em;
  background: #fff;
  box-shadow:
    0 0 0 1px #d6d6dc,
    0 0.2em 0.4em rgba(0, 0, 0, 0.1);
}
.zip-ic b {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 30%;
  width: 0.4em;
  margin-left: -0.2em;
  background: repeating-linear-gradient(#9a9aa3 0 0.25em, #fff 0.25em 0.5em);
}
.zip-ic b::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: -0.6em;
  height: 0.6em;
  border-radius: 0.15em;
  background: #9a9aa3;
}
.pick-row .zip-ic,
.pick-row .dir-ic,
.pick-row .doc-ic {
  width: 1.1em;
  height: 1.2em;
}
.pick-row .zip-ic b {
  width: 0.2em;
  margin-left: -0.1em;
}
.pick-row .zip-ic b::after {
  display: none;
}
.dir-ic {
  position: relative;
  display: block;
  width: 3.6em;
  height: 2.8em;
  border-radius: 0.3em;
  background: linear-gradient(#7cc0fb, #4aa3f5);
}
.dir-ic::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.35em;
  width: 40%;
  height: 0.6em;
  border-radius: 0.3em 0.3em 0 0;
  background: #6bb6f9;
}
.doc-ic {
  display: block;
  background: #fff;
  border-radius: 0.15em;
  box-shadow: 0 0 0 1px #d6d6dc;
}
.br.press-zip .file.zip .zip-ic {
  transform: scale(0.9);
}
.file.zip .zip-ic {
  transition: transform 0.12s;
}

/* folder picker */
.pick {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(32, 33, 36, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.br.picking .pick {
  opacity: 1;
}
.pick-card {
  width: 30em;
  background: #fff;
  border-radius: 0.9em;
  box-shadow: 0 1.6em 3em -0.8em rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateY(1.5em) scale(0.95);
  transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.br.picking .pick-card {
  transform: none;
}
.pick-title {
  padding: 0.9em 1.2em;
  font-weight: 600;
  border-bottom: 1px solid #ececf0;
}
.pick-main {
  display: flex;
  min-height: 10em;
}
.pick-side {
  width: 9em;
  padding: 0.8em;
  background: #f6f6f8;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: 0.85em;
  color: #5f6368;
}
.pick-side span {
  padding: 0.35em 0.6em;
  border-radius: 0.4em;
}
.pick-side .on {
  background: #e3e3e8;
  color: #202124;
}
.pick-list {
  flex: 1;
  padding: 0.6em;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 0.7em;
  border-radius: 0.4em;
  font-size: 0.9em;
  transition:
    background 0.2s,
    color 0.2s;
}
.br.picked .tcrow {
  background: #1a73e8;
  color: #fff;
}
.pick-btns {
  display: flex;
  justify-content: flex-end;
  gap: 0.6em;
  padding: 0.8em 1.2em;
  border-top: 1px solid #ececf0;
  font-size: 0.9em;
}
.pick-btns span {
  padding: 0.45em 1em;
  border-radius: 0.4em;
  border: 1px solid #dadce0;
}
.pick-btns .pick-ok {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
  transition: transform 0.15s;
}
.br.press-ok .pick-ok {
  transform: scale(0.94);
}

/* puzzle menu */
.menu {
  position: absolute;
  top: 5.6em;
  right: 2.4em;
  width: 17em;
  z-index: 5;
  background: #fff;
  border-radius: 0.8em;
  box-shadow:
    0 1em 2.4em -0.6em rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 0.6em;
  opacity: 0;
  transform: translateY(-0.6em) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.br.menu-open .menu {
  opacity: 1;
  transform: none;
}
.menu-h {
  font-size: 0.85em;
  color: #5f6368;
  padding: 0.3em 0.5em 0.6em;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em;
  border-radius: 0.5em;
  background: #f1f3f4;
  font-size: 0.95em;
}
.menu-pin {
  margin-left: auto;
  width: 1.2em;
  height: 1.2em;
}
.menu-pin path {
  fill: none;
  stroke: #5f6368;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.br.pinned .menu-pin path {
  fill: #1a73e8;
  stroke: #1a73e8;
}

/* done */
.done-chip {
  position: absolute;
  left: 50%;
  bottom: 2em;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.3em;
  border-radius: 2em;
  background: #0b0b0c;
  color: #fff;
  font: 800 1.05em var(--round);
  opacity: 0;
  transform: translate(-50%, 1em) scale(0.9);
  transition:
    opacity 0.3s,
    transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.done-chip .rec-dot {
  width: 0.7em;
  height: 0.7em;
}
.br.done .done-chip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* cursor + clicks */
.br-cursor {
  position: absolute;
  left: 70%;
  top: 80%;
  z-index: 10;
  width: 1.25em;
  height: 1.85em;
  pointer-events: none;
  transition:
    left 0.8s cubic-bezier(0.45, 0, 0.2, 1),
    top 0.8s cubic-bezier(0.45, 0, 0.2, 1),
    transform 0.12s;
  transform-origin: 0 0;
}
.br-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0.08em 0.1em rgba(0, 0, 0, 0.35));
}
.br-cursor path {
  fill: #111;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.br-cursor.press {
  transform: scale(0.82);
}
.br-ripple {
  position: absolute;
  z-index: 9;
  width: 3.4em;
  height: 3.4em;
  margin: -1.7em 0 0 -1.7em;
  border-radius: 50%;
  border: 0.18em solid rgba(239, 68, 68, 0.9);
  background: rgba(239, 68, 68, 0.12);
  pointer-events: none;
  animation: ripple 0.55s ease-out forwards;
}
.br-key {
  position: absolute;
  z-index: 9;
  transform: translate(-50%, 0);
  font:
    700 0.9em system-ui,
    sans-serif;
  background: #fff;
  color: #202124;
  border-radius: 0.4em;
  padding: 0.3em 0.6em;
  box-shadow:
    0 0.2em 0 #c9cbd0,
    0 0.4em 1em rgba(0, 0, 0, 0.15);
  animation: keypop 0.9s ease-out forwards;
}

@keyframes fill {
  to {
    transform: scaleX(1);
  }
}
@keyframes dl {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes keypop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.5em);
  }
  20%,
  70% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -0.6em);
  }
}

code,
.copy {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink);
}
.copy {
  border: 0;
  cursor: copy;
  font-weight: 600;
  transition: background 0.2s;
}
.copy:hover {
  background: #ffe4df;
}

/* ---------- privacy + footer ---------- */
.privacy {
  text-align: center;
  padding-bottom: 120px;
}
.privacy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  margin: 18px auto 0;
  max-width: 460px;
}
.privacy p b {
  color: var(--ink);
  font-weight: 800;
}
.p-icon {
  display: grid;
  place-items: center;
}
.p-icon .logo {
  animation: wobble 3s ease-in-out infinite;
}
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 40px 34px;
  font-size: 14px;
}
.foot > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot small {
  color: var(--muted);
  font-weight: 500;
}
.foot nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}
.foot nav a:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.tiles .reveal:nth-child(3n + 2),
.cards .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.tiles .reveal:nth-child(3n),
.cards .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* ---------- changelog ---------- */
.changelog {
  padding-bottom: 20px;
}
.cl {
  list-style: none;
  margin: 44px auto 0;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 20px;
}
.cl-item {
  background: var(--card);
  border-radius: 28px;
  padding: 28px 30px 30px;
  text-align: left;
}
.cl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cl-ver {
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
}
.cl-tag {
  color: var(--red-deep);
  background: #ffe4df;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}
.cl-date {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.cl-lede {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.cl-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cl-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}
.cl-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.cl-list b {
  color: var(--ink);
  font-weight: 800;
}
.cl-note {
  display: block;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: var(--red-deep);
  margin-top: 2px;
  transform: rotate(-1deg);
  transform-origin: left center;
}
@media (max-width: 520px) {
  .cl-item {
    padding: 22px 20px 24px;
    border-radius: 22px;
  }
  .cl-date {
    margin-left: 0;
    flex-basis: 100%;
  }
  .cl-lede {
    font-size: 19px;
  }
}

/* ---------- views: home + changelog live in one file ---------- */
.on-log #viewHome,
html:not(.on-log) #viewLog {
  display: none;
}
.top-r {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.2s;
}
.top-link:hover,
.on-log .top-link {
  color: var(--ink);
}
.top-link span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
}
.on-log .top-link span {
  background: var(--ink);
  color: #fff;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  transition:
    color 0.2s,
    transform 0.2s;
}
.back:hover {
  color: var(--ink);
  transform: translateX(-3px);
}
.back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#viewLog {
  min-height: 80vh;
}
#viewLog .changelog {
  padding-top: 50px;
  padding-bottom: 120px;
  text-align: center;
}
#viewLog .back {
  display: flex;
  width: max-content;
  margin: 0 auto 36px;
}
.view {
  transition: opacity 0.15s ease;
}
.view.out {
  opacity: 0;
}
.view-in {
  animation: view-in 0.3s ease both;
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (max-width: 820px) {
  .top-r {
    gap: 12px;
  }
  .top-link {
    font-size: 15px;
  }
  .top-link span {
    display: none;
  }
}

/* ---------- keyframes ---------- */
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes pulse {
  50% {
    transform: scale(0.75);
    opacity: 0.6;
  }
}
@keyframes ripple {
  from {
    transform: scale(0.2);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes grow {
  from {
    transform: scaleY(0.82);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes zoomy {
  0%,
  15% {
    transform: scale(1);
  }
  45%,
  75% {
    transform: scale(1.55);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes zoomy-cur {
  0% {
    transform: translate(18px, 22px);
  }
  15% {
    transform: translate(0, 0) scale(0.85);
  }
  22% {
    transform: translate(0, 0) scale(1);
  }
  45%,
  75% {
    transform: translate(-6px, -4px) scale(1.4);
  }
  100% {
    transform: translate(18px, 22px);
  }
}
@keyframes travel {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}
@keyframes word {
  0% {
    transform: scaleX(0);
  }
  25%,
  85% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}
@keyframes eq {
  to {
    transform: scaleY(1);
  }
}
@keyframes trim-l {
  to {
    width: 34%;
  }
}
@keyframes trim-r {
  to {
    width: 12%;
  }
}
@keyframes trim-hl {
  to {
    left: 34%;
  }
}
@keyframes trim-hr {
  to {
    right: 12%;
  }
}
@keyframes head {
  0% {
    left: 24%;
  }
  100% {
    left: 86%;
  }
}
@keyframes hue {
  to {
    filter: hue-rotate(360deg);
  }
}
@keyframes frame {
  0%,
  100% {
    outline-color: transparent;
    outline-offset: 10px;
  }
  40%,
  70% {
    outline-color: var(--red);
    outline-offset: 4px;
  }
}
@keyframes swap {
  0%,
  30% {
    transform: translateX(0);
  }
  50%,
  80% {
    transform: translateX(calc(100% + 40px));
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes keys {
  0%,
  25%,
  100% {
    transform: translateY(6px);
    opacity: 0;
  }
  35%,
  60% {
    transform: none;
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
}
@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(2.3);
    opacity: 0;
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-8deg);
  }
  20% {
    transform: rotate(6deg);
  }
  30% {
    transform: rotate(-3deg);
  }
  40% {
    transform: rotate(0);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root {
    --dial-r: 460px;
    --dial-show: 130px;
    --dial-font: 48px;
  }
}
@media (max-width: 820px) {
  :root {
    --dial-r: 340px;
    --dial-show: 64px;
    --dial-font: 36px;
  }
  .dial {
    opacity: 0.55;
  }
  .dial-ring {
    border-width: 26px;
  }
  .top {
    padding: 16px;
  }
  .top-mid {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  .hero {
    padding-top: 40px;
  }
  .block {
    padding-top: 110px;
  }
  .note {
    top: -48px;
    right: 0;
    font-size: 22px;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .walk {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 18px;
  }
  .walk-steps {
    padding: 0;
  }
  .br-wrap {
    order: -1;
    padding: 4%;
    border-radius: 22px;
  }
  .player {
    border-radius: 16px;
  }
  .dock {
    border-radius: 22px;
  }
  .ba {
    border-radius: 16px;
  }
  .ba-tag {
    bottom: auto;
    top: 10px;
  }
  .foot {
    flex-direction: column;
    text-align: center;
    padding: 26px 16px 34px;
  }
  .foot > div {
    align-items: center;
  }
}
@media (max-width: 600px) {
  .dial {
    display: none;
  }
  .dock {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    gap: 4px 0;
    padding: 10px 6px;
  }
  .dk {
    padding: 2px 8px;
    justify-content: space-between;
  }
  .dk:first-child {
    grid-column: 1 / -1;
  }
  .dk + .dk {
    border-left: 0;
  }
  .dk:last-child {
    border-left: 1px solid #ececee;
  }
  .seg button {
    padding: 7px 12px;
    font-size: 13px;
  }
  .sw {
    gap: 5px;
  }
  .sw button {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 420px) {
  .tile > span {
    font-size: 15px;
    top: 14px;
    left: 16px;
  }
  .ill {
    inset: 40px 12px 12px;
  }
  .btn-dark {
    font-size: 16px;
    padding: 14px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
