/* Tokens match crates/vykey-desktop/ui/theme.slint (dark). */

@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@property --bg { syntax: "<color>"; inherits: true; initial-value: #0b0b10; }
@property --bg-sidebar { syntax: "<color>"; inherits: true; initial-value: #101017; }
@property --elevated { syntax: "<color>"; inherits: true; initial-value: #17171f; }
@property --hover { syntax: "<color>"; inherits: true; initial-value: #ffffff0a; }
@property --border { syntax: "<color>"; inherits: true; initial-value: #ffffff12; }
@property --border-strong { syntax: "<color>"; inherits: true; initial-value: #ffffff1c; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #f2f2f5; }
@property --text-2 { syntax: "<color>"; inherits: true; initial-value: #9c9ca8; }
@property --text-3 { syntax: "<color>"; inherits: true; initial-value: #63636e; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #8f81ff; }
@property --accent-deep { syntax: "<color>"; inherits: true; initial-value: #6a58f0; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: #8f81ff26; }
@property --success { syntax: "<color>"; inherits: true; initial-value: #3dd68c; }
@property --warning { syntax: "<color>"; inherits: true; initial-value: #ffb224; }
@property --danger { syntax: "<color>"; inherits: true; initial-value: #f2555a; }
@property --header-bg { syntax: "<color>"; inherits: true; initial-value: #0b0b10cc; }
@property --menu-bg { syntax: "<color>"; inherits: true; initial-value: #0b0b10f5; }
@property --glow-1 { syntax: "<color>"; inherits: true; initial-value: #8f81ff6b; }
@property --glow-2 { syntax: "<color>"; inherits: true; initial-value: #6a58f047; }
@property --table-head { syntax: "<color>"; inherits: true; initial-value: #101017; }
@property --col { syntax: "<color>"; inherits: true; initial-value: #8f81ff12; }
@property --ring-track { syntax: "<color>"; inherits: true; initial-value: #ffffff18; }
@property --term { syntax: "<color>"; inherits: true; initial-value: #09090d; }
@property --yours-border { syntax: "<color>"; inherits: true; initial-value: #8f81ff66; }
@property --yours-bg { syntax: "<color>"; inherits: true; initial-value: #8f81ff0e; }
@property --turn { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  --bg: #0b0b10;
  --bg-sidebar: #101017;
  --elevated: #17171f;
  --hover: #ffffff0a;
  --border: #ffffff12;
  --border-strong: #ffffff1c;
  --text: #f2f2f5;
  --text-2: #9c9ca8;
  --text-3: #63636e;
  --accent: #8f81ff;
  --accent-deep: #6a58f0;
  --accent-soft: #8f81ff26;
  --success: #3dd68c;
  --warning: #ffb224;
  --danger: #f2555a;
  --blue: #4cb8ff;
  --pink: #ff7ab8;
  --header-bg: #0b0b10cc;
  --menu-bg: #0b0b10f5;
  --edge: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --glow-1: rgba(143, 129, 255, 0.42);
  --glow-2: rgba(106, 88, 240, 0.28);
  --table-head: #101017;
  --col: #8f81ff12;
  --ring-track: #ffffff18;
  --term: #09090d;
  --yours-border: #8f81ff66;
  --yours-bg: #8f81ff0e;
  --font: Manrope, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header: 64px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --snap: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%,
    1.017 20.5%, 1.044, 1.043, 1.017 31.4%, 0.996 36.2%,
    0.985 41.1%, 0.996 53.3%, 1.001 61.2%, 1
  );
  color-scheme: dark;
  transition:
    --bg 0.55s var(--ease),
    --bg-sidebar 0.55s var(--ease),
    --elevated 0.55s var(--ease),
    --hover 0.55s var(--ease),
    --border 0.55s var(--ease),
    --border-strong 0.55s var(--ease),
    --text 0.55s var(--ease),
    --text-2 0.55s var(--ease),
    --text-3 0.55s var(--ease),
    --accent 0.55s var(--ease),
    --accent-deep 0.55s var(--ease),
    --accent-soft 0.55s var(--ease),
    --success 0.55s var(--ease),
    --warning 0.55s var(--ease),
    --danger 0.55s var(--ease),
    --header-bg 0.55s var(--ease),
    --menu-bg 0.55s var(--ease),
    --glow-1 0.55s var(--ease),
    --glow-2 0.55s var(--ease),
    --table-head 0.55s var(--ease),
    --col 0.55s var(--ease),
    --ring-track 0.55s var(--ease),
    --term 0.55s var(--ease),
    --yours-border 0.55s var(--ease),
    --yours-bg 0.55s var(--ease),
    color-scheme 0.55s var(--ease);
}

:root[data-theme="light"] {
  --bg: #f4f4f7;
  --bg-sidebar: #ececf1;
  --elevated: #ffffff;
  --hover: #00000008;
  --border: #0000000f;
  --border-strong: #0000001c;
  --text: #17171c;
  --text-2: #5c5c66;
  --text-3: #8a8a94;
  --accent: #6a58f0;
  --accent-deep: #6a58f0;
  --accent-soft: #6a58f014;
  --success: #1f9e66;
  --warning: #c77c02;
  --danger: #d93a3f;
  --header-bg: #f4f4f7cc;
  --menu-bg: #f4f4f7f5;
  --edge: linear-gradient(180deg, #ffffff, rgba(23, 23, 28, 0.1));
  --shadow: 0 24px 50px rgba(23, 23, 28, 0.1), 0 1px 2px rgba(23, 23, 28, 0.05);
  --glow-1: rgba(106, 88, 240, 0.2);
  --glow-2: rgba(106, 88, 240, 0.1);
  --table-head: #ececf1;
  --col: #6a58f014;
  --ring-track: #00000012;
  --term: #f4f4f7;
  --yours-border: #6a58f066;
  --yours-bg: #6a58f010;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #8f81ff59;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.marks {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
}

.marks img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.55s var(--ease);
}

.mark-light {
  opacity: 0;
}

:root[data-theme="light"] .mark-dark {
  opacity: 0;
}

:root[data-theme="light"] .mark-light {
  opacity: 1;
}

.side-brand .marks {
  width: 26px;
  height: 26px;
}

.footer-brand .marks {
  width: 18px;
  height: 18px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-2);
}

.theme-toggle:hover {
  background: var(--hover);
  color: var(--text);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-28deg) scale(0.7);
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(28deg) scale(0.7);
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: none;
}

.brand-word {
  height: 18px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: var(--hover);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--accent-deep);
  color: #fff;
}

.btn-primary:hover {
  background: #7b6af3;
}

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

.btn-ghost:hover {
  background: var(--hover);
}

.btn-lg {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
}

/* Hero */

.hero {
  padding: 72px 0 24px;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.lede {
  margin: 24px 0 0;
  max-width: 46ch;
  color: var(--text-2);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.meta li {
  display: flex;
  align-items: center;
}

.meta li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--text-3);
}

.stage {
  position: relative;
  isolation: isolate;
  margin-top: 64px;
}

.stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 6%;
  right: 6%;
  top: -90px;
  bottom: -70px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 18%, var(--glow-1), transparent 68%),
    radial-gradient(ellipse 50% 45% at 78% 88%, var(--glow-2), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  animation: glow-in 1.15s var(--snap) 0.22s both;
}

/* First paint. Headline snaps up, then the window springs in and the
   vault fills row by row — the same two-beat entrance as Raycast. */

.header-inner,
.hero .eyebrow,
.hero .lede,
.hero .actions,
.hero .meta {
  animation: rise 0.78s var(--snap) both;
}

.hero .eyebrow { animation-delay: 0.06s; }

.hero h1 {
  animation: rise-lg 0.9s var(--snap) 0.12s both;
}

.hero .lede { animation-delay: 0.22s; }
.hero .actions { animation-delay: 0.3s; }
.hero .meta { animation-delay: 0.38s; }

.window {
  animation: window-in 0.85s var(--snap) 0.26s both;
  animation:
    window-fade 0.42s var(--snap) 0.26s both,
    window-settle 0.9s var(--spring) 0.26s both;
}

.window .side > *,
.window .list > *,
.window .detail-head,
.window .field {
  animation: row-in 0.42s var(--snap) both;
}

.window .side > :nth-child(1) { animation-delay: 0.3s; }
.window .side > :nth-child(2) { animation-delay: 0.33s; }
.window .side > :nth-child(3) { animation-delay: 0.36s; }
.window .side > :nth-child(4) { animation-delay: 0.39s; }
.window .side > :nth-child(5) { animation-delay: 0.42s; }
.window .side > :nth-child(6) { animation-delay: 0.45s; }
.window .side > :nth-child(7) { animation-delay: 0.48s; }
.window .side > :nth-child(8) { animation-delay: 0.51s; }
.window .side > :nth-child(9) { animation-delay: 0.54s; }
.window .side > :nth-child(10) { animation-delay: 0.57s; }
.window .side > :nth-child(11) { animation-delay: 0.6s; }

.window .list > :nth-child(1) { animation-delay: 0.34s; }
.window .list > :nth-child(2) { animation-delay: 0.38s; }
.window .list > :nth-child(3) { animation-delay: 0.42s; }
.window .list > :nth-child(4) { animation-delay: 0.46s; }
.window .list > :nth-child(5) { animation-delay: 0.5s; }
.window .list > :nth-child(6) { animation-delay: 0.54s; }
.window .list > :nth-child(7) { animation-delay: 0.58s; }

.window .detail-head { animation-delay: 0.4s; }
.window .field:nth-child(1) { animation-delay: 0.45s; }
.window .field:nth-child(2) { animation-delay: 0.5s; }
.window .field:nth-child(3) { animation-delay: 0.55s; }
.window .field:nth-child(4) { animation-delay: 0.6s; }

.window,
.term {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--edge) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.55s var(--ease);
  user-select: none;
}

.chrome,
.term-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dots i:nth-child(1) { background: var(--danger); }
.dots i:nth-child(2) { background: var(--warning); }
.dots i:nth-child(3) { background: var(--success); }

.chrome-title,
.term-title {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.term-title {
  font-family: var(--mono);
  font-weight: 400;
}

.panes {
  display: flex;
  height: 608px;
}

.side {
  width: 220px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px 10px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 12px;
}

.side-word {
  height: 15px;
  width: auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0 2px 8px;
  padding: 0 8px 0 10px;
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}

.search svg,
.nav-row svg,
.entry-kind svg,
.icon-btn svg,
.detail-eye svg,
.cap-icon svg,
.note-icon svg {
  flex: none;
  display: block;
}

.search kbd {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--hover);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

.nav-row,
.folder {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: 13.5px;
}

.nav-row svg {
  color: var(--text-3);
}

.nav-row.is-active,
.folder.is-active {
  background: var(--elevated);
  border-color: var(--border);
  color: var(--text);
  font-weight: 650;
}

.nav-row.is-active svg {
  color: var(--accent);
}

.nav-row em,
.folder em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.nav-row .warn {
  color: var(--warning);
}

.side-label {
  display: flex;
  align-items: center;
  margin: 14px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.side-plus {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}

.vault-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.vault-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.vault-name small {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}

.vault-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}

.initials {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3dd68c, #2e9e8f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.vault {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vault-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 8px 18px;
}

.vault-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vault-count {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 12px;
}

.add-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.columns {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}

.list {
  flex: 1.15;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
}

.sort {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px 6px;
  color: var(--text-3);
  font-size: 12px;
}

.sort svg {
  margin-left: auto;
}

.list-rows {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.list-head {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.icon-btn {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-3);
}

.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.entry-marks {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}

.entry-marks .is-star,
.tool.is-star {
  color: var(--warning);
}

.entry:hover {
  background: var(--hover);
}

.entry.is-selected,
.entry.is-selected:hover {
  background: var(--elevated);
  border-color: var(--border);
}

.avatar {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--tone) 15%, transparent);
  color: var(--tone);
  font-size: 15px;
  font-weight: 700;
}

.entry-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entry-title {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-sub {
  margin-top: 1px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-kind {
  margin-left: auto;
  color: var(--text-3);
}

.detail {
  width: 340px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 6px 16px 12px;
  border-left: 1px solid var(--border);
}

.detail-domain {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
}

.detail-tools {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.tool {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.field-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px 12px;
}

.field-card .field:first-child {
  border-top: 0;
}

.site-link {
  color: var(--accent);
}

.folder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.detail-foot {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  color: var(--text-3);
  font-size: 12px;
}

.edit-btn {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 18px;
}

.detail-head strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
}

.detail-head .detail-kind {
  color: var(--text-3);
  font-size: 12px;
}

.field {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.field dt {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 14px;
}

.secret {
  letter-spacing: 0.12em;
}

.secret.is-shown {
  letter-spacing: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.card-face {
  margin-bottom: 4px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, #ffffff22, transparent 42%),
    linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 35%, #120e22));
}

.card-face-top,
.card-face-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.card-face-top {
  font-size: 13px;
  font-weight: 700;
}

.card-face-top em {
  font-style: italic;
  font-weight: 800;
}

.card-chip {
  width: 28px;
  height: 20px;
  margin: 16px 0 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f5de96, #c9a24b);
}

.card-pan {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-face-foot {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 650;
}

.card-face-foot span {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.note-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
}

dd.note-body {
  display: block;
}

.nav-row.is-hot,
.entry.is-hot,
.unlock-go.is-down {
  filter: brightness(1.08);
}

.unlock-go.is-down {
  transform: translateY(1px);
}

.unlock {
  position: absolute;
  z-index: 4;
  inset: 44px 0 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.45s var(--snap);
}

.unlock::before,
.unlock::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.unlock::before {
  top: -80px;
  right: -40px;
  background: var(--glow-1);
}

.unlock::after {
  bottom: -100px;
  left: -60px;
  background: color-mix(in srgb, var(--success) 45%, transparent);
}

.unlock-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, calc(100% - 48px));
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.unlock-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.unlock-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.unlock-lead {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
}

.unlock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--hover);
  font-size: 13px;
  font-weight: 600;
}

.unlock-pill .initials {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.unlock-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-3);
}

.unlock-field.has-text {
  color: var(--text);
}

.unlock-field {
  position: relative;
}

.unlock-ph,
.unlock-dots {
  font-size: 14px;
}

.unlock-ph {
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.unlock-dots {
  display: none;
  font-family: var(--mono);
  letter-spacing: 0.2em;
}

.unlock-field.has-text .unlock-ph {
  display: none;
}

.unlock-field.has-text .unlock-dots {
  display: block;
}

.unlock-field .caret {
  margin-left: 0;
}

.unlock-eye {
  margin-left: auto;
}

.unlock-go {
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.unlock-create {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.window.is-open .unlock {
  opacity: 0;
  visibility: hidden;
}

.window.is-open .detail-head,
.window.is-open .field,
.window.is-open .list > * {
  animation: none;
}

.demo-cursor {
  position: absolute;
  z-index: 6;
  left: 46%;
  top: 46%;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  transition: left 0.55s var(--snap), top 0.55s var(--snap), transform 0.12s ease, opacity 0.2s ease;
}

.window.is-playing .demo-cursor {
  opacity: 1;
}

.demo-cursor.is-down {
  transform: scale(0.86);
}

.detail-eye {
  color: var(--text-3);
}

.field dd > .detail-eye:first-of-type {
  margin-left: auto;
}

.totp-code {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.totp-code.is-rolling {
  animation: roll 0.35s var(--ease);
}

.totp-left {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.totp-ring {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--turn), var(--ring-track) 0);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%);
  mask: radial-gradient(circle, transparent 55%, #000 57%);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}

.term {
  animation: lift 0.85s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

.cap {
  transition: background-color 0.25s ease;
}

.cap:hover {
  background: var(--hover);
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes rise-lg {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes window-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(32px) scale(0.96);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes window-fade {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

@keyframes window-settle {
  from { transform: translateY(36px) scale(0.94); }
  to { transform: none; }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes roll {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Sections */

.section {
  padding: 96px 0;
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.intro {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 28px;
}

.fact {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.fact-index {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.fact h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  max-width: none;
}

.fact p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.path,
.build,
.mono {
  font-family: var(--mono);
  font-weight: 400;
}

.path {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
}

/* Terminal */

.term {
  margin-top: 40px;
  background:
    linear-gradient(var(--term), var(--term)) padding-box,
    var(--edge) border-box;
}

.term-body {
  margin: 0;
  padding: 22px 24px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
}

.dim {
  color: var(--text-3);
}

.badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pick {
  color: var(--accent);
  font-weight: 600;
}

.term-gap {
  height: 0.7em;
}

/* Capabilities */

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cap {
  padding: 26px 26px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cap:nth-child(3n) {
  border-right: 0;
}

.cap:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.cap-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.cap h3 {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cap p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

/* Security */

.security-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.specs {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.specs li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.specs span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  align-self: center;
}

.note {
  padding: 28px;
  border-radius: 16px;
  background: var(--elevated);
  border: 1px solid var(--border);
}

.note-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.note h3 {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.note p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.note p + p {
  margin-top: 12px;
}

/* Sync */

.intro a,
.sync-host a {
  color: var(--accent);
  text-decoration: none;
}

.intro a:hover,
.sync-host a:hover {
  text-decoration: underline;
}

.sync-host {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: 18px;
  background: var(--elevated);
  border: 1px solid var(--border);
}

.sync-host h2 {
  font-size: clamp(26px, 3vw, 32px);
  max-width: 16ch;
}

.sync-host p {
  margin: 14px 0 0;
  max-width: 54ch;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.sync-host .specs {
  margin: 0;
  border-top: 0;
}

.sync-host .specs li:first-child {
  padding-top: 0;
}

/* Compare */

.table-scroll {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 550;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare th {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 650;
  background: var(--table-head);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--text-2);
  font-weight: 500;
}

.compare th:nth-child(2),
.compare td:nth-child(2) {
  background: var(--col);
}

.compare th:nth-child(2) {
  color: var(--accent);
}

.yes {
  color: var(--success);
}

.no {
  color: var(--text-3);
  font-weight: 500;
}

.mid {
  color: var(--text-2);
  font-weight: 500;
}

.footnote {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 13px;
  max-width: 70ch;
}

/* Download */

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.os {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: transparent;
  min-height: 148px;
  transition: border-color 150ms ease, background 150ms ease;
}

.os:hover {
  background: var(--hover);
  border-color: var(--border-strong);
}

.os.is-yours {
  border-color: var(--yours-border);
  background: var(--yours-bg);
}

.os-flag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.os-flag:empty {
  display: none;
}

.os strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.os span:last-child {
  margin-top: auto;
  color: var(--text-2);
  font-size: 13px;
}

.build {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.build .prompt {
  color: var(--text-3);
}

.build .bin {
  color: var(--text);
}

.fine {
  margin: 16px 0 0;
  color: var(--text-3);
  font-size: 13px;
  max-width: 68ch;
}

.fine a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  color: var(--text-3);
  font-size: 13px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.footer-brand img {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  .detail {
    display: none;
  }

  .facts,
  .caps,
  .security-grid,
  .os-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sync-host {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cap:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .cap:nth-child(2n) {
    border-right: 0;
  }

  .cap:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

  .cap:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .nav-toggle {
    display: flex;
  }

  .header-download {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
  }

  .hero {
    padding-top: 40px;
  }

  .stage {
    margin-top: 40px;
  }

  .panes {
    height: auto;
  }

  .list-rows {
    height: 324px;
    flex: none;
  }

  .side {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .facts,
  .caps,
  .security-grid,
  .os-grid {
    grid-template-columns: 1fr;
  }

  .cap {
    border-right: 0;
  }

  .cap:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .cap:last-child {
    border-bottom: 0;
  }

  .specs li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sync-host {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }
}

html:not(.theme-ready),
html:not(.theme-ready) *,
html:not(.theme-ready) *::before,
html:not(.theme-ready) *::after {
  transition: none !important;
}

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

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

  .unlock,
  .demo-cursor {
    display: none !important;
  }
}
