:root {
  --background: #000;
  --foreground: #f5f5f4;
  --card: #080706;
  --card-foreground: #f5f5f4;
  --popover: #080706;
  --popover-foreground: #f5f5f4;
  --primary: #f2f2f0;
  --primary-foreground: #0a0907;
  --secondary: #1c1a16;
  --secondary-foreground: #f2f2f0;
  --muted: #211f1b;
  --muted-foreground: #998d83;
  --accent: #26241f;
  --accent-foreground: #f2f2f0;
  --destructive: #e40014;
  --border: #2b2923;
  --input: #26241f;
  --ring: #b3aea0;
  --radius: 0.25rem;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--background); }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

.font-mono { font-family: var(--font-mono); }

/* soft radial glow at top */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 420px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b7a, #c62f3f);
  display: inline-block;
  box-shadow: 0 0 16px rgba(230, 60, 80, 0.5);
}
.brand-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-block;
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--foreground); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--foreground);
  color: var(--background);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

/* layout helpers */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

section.block { padding: 72px 0; }
section.block-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: rgba(255,255,255,0.3); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before, .eyebrow.center::after { content: ""; width: 32px; height: 1px; background: rgba(255,255,255,0.3); }
.eyebrow.center::after { margin-left: 12px; }
.eyebrow.center::before { margin-right: 12px; }

/* hero */
.hero { padding: 140px 0 100px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(30px, 4.2vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.22;
  font-weight: 600;
  max-width: 1400px;
  margin: 0 auto 24px;
  padding: 6px 0 14px;
}

/* magic word glow + sparkles */
.plain-suffix { white-space: nowrap; }
.magic-word {
  position: relative;
  display: inline-block;
  margin-left: 0.22em;
  min-width: 0.6em;
  line-height: 1.2;
  vertical-align: baseline;
  animation: magic-glow 4s ease-in-out infinite;
}
@keyframes magic-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,107,122,0.55)); }
  50% { filter: drop-shadow(0 0 26px rgba(255,120,140,0.9)); }
}
.magic-text { display: inline-block; white-space: nowrap; width: 100%; text-align: left; }
.magic-char {
  display: inline-block;
  opacity: 0;
  background: linear-gradient(120deg, #ff6b7a, #ffb199, #ff6b7a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: translateY(0.45em);
  animation: magic-char-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes magic-char-in {
  0% { opacity: 0; transform: translateY(0.45em); }
  100% { opacity: 1; transform: translateY(0); }
}
.magic-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  pointer-events: none;
  border-radius: 50%;
  background: #ffd0d6;
  box-shadow: 0 0 8px 2px rgba(255, 160, 175, 0.85);
  opacity: 0;
  animation: spark-fly var(--d, 2.4s) ease-out var(--delay, 0s) infinite;
}
@keyframes spark-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 0.9; }
  100% { transform: translate(var(--dx, 90px), var(--dy, -80px)) scale(0.2); opacity: 0; }
}
.hero h1 .accent {
  color: #ff6b7a;
}
.hero .sub {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--foreground);
  color: var(--background);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.9; }
.btn.ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: rgba(255,255,255,0.35); }
.btn.sm { padding: 10px 20px; font-size: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.02);
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
}

/* section header */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.sec-head h2 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; margin-bottom: 18px; }
.sec-head p { color: var(--muted-foreground); font-size: 17px; }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.feature-card:hover { border-color: rgba(255,255,255,0.2); background: #0d0b09; }
.feature-card .icon { margin-bottom: 20px; font-size: 26px; }
.feature-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.feature-card p { color: var(--muted-foreground); font-size: 15px; line-height: 1.6; }
.feature-card .stat {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ff8b97;
  display: block;
}

/* rules list */
.rules-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.rule-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.rule-row:last-child { border-bottom: none; }
.rule-row .rule-body { flex: 1; min-width: 0; }
.rule-row .rule-body h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rule-row .rule-trigger { color: #ff8b97; font-size: 13px; font-family: var(--font-mono); margin-bottom: 10px; }
.rule-row .rule-trigger::before { content: "\2192  "; }
.rule-row .rule-desc { color: var(--muted-foreground); font-size: 14px; line-height: 1.7; max-width: 900px; }
.rule-card { display: flex; flex-direction: column; }
.rule-card .rule-top { margin-bottom: 16px; }
.rule-card h3 { margin-bottom: 8px; }
.rule-card .rule-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff8b97;
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,107,122,0.25);
  background: rgba(255,107,122,0.06);
  white-space: normal;
}
.rule-card .rule-trigger::before { content: "\2192  "; }
.rule-card .stat { margin-top: auto; padding-top: 16px; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-pill.on { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.status-pill.on::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.status-pill.off { background: rgba(255,255,255,0.04); color: var(--muted-foreground); border: 1px solid var(--border); }
.status-pill.off::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-foreground); }
.status-pill .st { font-weight: 600; }

/* numbered steps */
.steps { }
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.step-row:last-child { border-bottom: none; }
.step-row .numeral {
  font-size: 40px;
  font-weight: 600;
  color: rgba(255,255,255,0.22);
  letter-spacing: -0.02em;
  min-width: 70px;
}
.step-row h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.step-row p { color: var(--muted-foreground); font-size: 17px; line-height: 1.6; }

/* install demo card */
.demo-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  margin: 40px 0;
}
.bookmarklet-drag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-weight: 500;
  cursor: grab;
  user-select: none;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.2s;
}
.bookmarklet-drag:active { cursor: grabbing; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .note { color: var(--muted-foreground); font-size: 14px; }
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #4ade80;
}
.status-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* layout for install split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  gap: 4px;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 0 rgba(255,255,255,0.08);
}

.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.install-step:last-child { border-bottom: none; }
.install-step .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  min-width: 90px;
  padding-top: 2px;
}
.install-step h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.install-step p { color: var(--muted-foreground); font-size: 15px; }

/* text link */
.tlink { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }

/* install layout */
.install-hero { position: relative; padding: 32px 0 40px; }
.install-hero .wrap { max-width: 1720px; }
.install-head { margin-bottom: 20px; }
.install-head .eyebrow { margin-bottom: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 2.75px; color: var(--muted-foreground); }
.install-title { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
.install-sub { color: var(--muted-foreground); font-size: 15px; max-width: 448px; line-height: 22px; margin-top: 12px; }
.install-grid {
  display: grid;
  grid-template-columns: 860px 640px;
  gap: 48px;
  align-items: start;
  justify-content: center;
  width: 1548px;
  margin: 0 auto;
}
@media (max-width: 1600px) { .install-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); width: 100%; } }
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; gap: 48px; } }
.install-left { min-width: 0; }
.install-right { min-width: 0; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.install-visual { border-radius: 12px; overflow: hidden; }
.install-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 560px) { .install-minis { grid-template-columns: 1fr; } }
.mini-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  min-height: 100px;
  transition: border-color .2s, background .2s;
}
.mini-card:hover { border-color: rgba(255,255,255,0.2); }
.mini-active { border-color: rgba(255,107,122,0.4); background: rgba(255,107,122,0.04); }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mini-num { font-family: var(--font-mono); font-size: 11px; color: #ff8b97; }
.mini-state {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff8b97;
  border: 1px solid rgba(255,107,122,0.3);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255,107,122,0.08);
}
.mini-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mini-card p { color: var(--muted-foreground); font-size: 12px; line-height: 1.5; }

.install-right { display: flex; flex-direction: column; gap: 20px; }
.panel-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
}
.panel-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: #ff8b97;
}
.ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
  background: rgba(74,222,128,0.06);
  border-radius: 999px;
  padding: 4px 12px;
}
.ready-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.panel-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.panel-card p { color: var(--muted-foreground); font-size: 14px; line-height: 1.65; }
.step-card h4 { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; margin-bottom: 16px; line-height: 1.3; }
.step-1-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.step-1-head h4 { margin: 0; flex: 0 1 auto; }
.console-card h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.9px; margin-bottom: 6px; line-height: 1.12; }
.key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kbd-plus { color: var(--muted-foreground); font-size: 14px; }
.step-note { margin-bottom: 18px; }
.step-note strong { color: var(--foreground); }
.drag-area { background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.drag-area p { font-size: 13px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.bookmarklet-drag img { width: 18px; height: 18px; border-radius: 4px; }

/* step 2 drag card */
.step-label { color: #ff8b97; letter-spacing: 2.4px; }
.step-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 18px; }
.nf-bookmark {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(255,107,122,0.35);
  background: radial-gradient(130% 120% at 0% 0%, rgba(255,107,122,0.16) 0%, transparent 55%), var(--card);
  padding: 24px;
  cursor: grab;
  user-select: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
}
@media (min-width: 640px) { .nf-bookmark { padding: 32px; } }
.nf-bookmark:active { cursor: grabbing; }
.nf-bookmark.dragging { transform: scale(1.01); border-color: rgba(255,107,122,0.6); box-shadow: 0 0 32px rgba(255,107,122,0.2); }
.nf-bookmark.success { border-color: rgba(74,222,128,0.5); }
.nf-bookmark.missed { border-color: rgba(255,60,60,0.5); }
.nf-bookmark-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nf-bookmark-name { font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--foreground); }
@media (max-width: 380px) { .nf-bookmark-name { font-size: 18px; } }
.nf-bookmark-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,107,122,0.15);
  color: #ff8b97;
  transition: transform .2s;
}
.nf-bookmark-icon svg { width: 20px; height: 20px; }
.nf-bookmark:hover .nf-bookmark-icon { transform: translateX(2px); }
.nf-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-top: 16px;
  transition: border-color .2s, background .2s, color .2s;
}
.nf-status.dragging { border-color: rgba(255,107,122,0.4); background: rgba(255,107,122,0.08); color: #ff8b97; }
.nf-status.success { border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); color: #4ade80; }
.nf-status.missed { border-color: rgba(255,60,60,0.4); background: rgba(255,60,60,0.08); color: #ff7a7a; }
.nf-status-ic { flex: 0 0 auto; display: inline-flex; margin-top: 1px; }
.nf-status-ic svg { display: none; }
.nf-status-ic svg.show { display: block; }

/* accordion auto-sell rules */
.rules-acc { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.rule-acc-item {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.rule-acc-item:hover { border-color: rgba(255,255,255,0.18); }
.rule-acc-item.open { border-color: rgba(255,107,122,0.35); background: #0d0b09; }
.rule-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  text-align: left;
  font-family: inherit;
}
.rule-acc-titles { display: flex; flex-direction: column; gap: 6px; }
.rule-acc-titles h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.rule-acc-trigger { color: #ff8b97; font-size: 12px; font-family: var(--font-mono); }
.rule-acc-trigger::before { content: "\2192  "; }
.rule-acc-chev {
  flex: 0 0 auto;
  color: var(--muted-foreground);
  transition: transform .25s;
}
.rule-acc-item.open .rule-acc-chev { transform: rotate(180deg); color: #ff8b97; }
.rule-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.rule-acc-inner { padding: 0 26px 24px; }
.rule-acc-desc { color: var(--muted-foreground); font-size: 14px; line-height: 1.7; max-width: 720px; }
.rule-acc-inner .stat { margin-top: 14px; display: inline-block; }

/* mobile nav */
.menu-btn { display: none; background: none; border: none; color: var(--foreground); font-size: 24px; cursor: pointer; }
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #000; flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 18px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav-cta-wrap { display: none; }
}

/* page sections */
.h-sec { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; margin-bottom: 24px; }
.h-muted { color: var(--muted-foreground); }
.block-tint { background: rgba(255,255,255,0.015); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.lead { color: var(--muted-foreground); font-size: 20px; line-height: 1.6; margin-bottom: 44px; max-width: 620px; }

/* capabilities rows */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.sec-head-left { text-align: left; max-width: 760px; margin: 0 0 40px; }
.sec-head-left .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.sec-head p { color: var(--muted-foreground); font-size: 16px; line-height: 1.7; margin-top: 16px; }

/* capabilities rows */
.cap-list { border-top: 1px solid rgba(255,255,255,0.08); }
.cap-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 48px;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: opacity .2s;
}
@media (max-width: 720px) { .cap-row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px 20px; } }
.cap-num, .proc-num { font-family: var(--font-mono); font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: normal; padding-top: 10px; }
.cap-num { color: #ff8b97; }
.proc-num { font-size: 48px; line-height: 1; padding-top: 0; color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.18), 0 0 36px rgba(255,255,255,.07); }
.cap-body h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.15; transition: transform .3s; }
.cap-row:hover .cap-body h3 { transform: translateX(6px); }
.cap-body p { color: var(--muted-foreground); font-size: 16px; line-height: 1.7; max-width: 640px; }
.cap-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: color .2s, border-color .2s, transform .2s;
}
.cap-arrow:hover { color: #ff8b97; border-color: rgba(255,107,122,0.5); transform: translateX(3px); }
@media (max-width: 720px) { .cap-arrow { grid-column: 2; margin-top: 0; } }

/* process two column with terminal */
.proc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
@media (max-width: 900px) { .proc-grid { grid-template-columns: 1fr; gap: 40px; } }
.proc-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: opacity .3s;
}
.proc-step:first-child { padding-top: 8px; }


.proc-step h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.proc-step p { color: var(--muted-foreground); font-size: 16px; line-height: 1.7; max-width: 480px; }

/* terminal window */
.term { border: 1px solid rgba(255,255,255,0.1); background: var(--card); border-radius: 14px; overflow: hidden; position: sticky; top: 100px; }
.term-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.term-body { padding: 24px; font-family: var(--font-mono); font-size: 14px; color: rgba(245,245,244,0.75); line-height: 1.9; min-height: 250px; }
.term-line { display: flex; gap: 16px; }
.tl-n { color: rgba(255,255,255,0.22); width: 16px; flex: 0 0 auto; text-align: right; user-select: none; }
.term-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: rp-blink 2s infinite; }
@keyframes rp-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* two column layouts */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 48px; } }
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
@media (max-width: 560px) { .trade-grid { grid-template-columns: 1fr; } }
.trade-grid h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.trade-grid p { color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
.term-tabs { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
.term-tab {
  background: none; border: none; color: var(--muted-foreground);
  font-family: var(--font-mono); font-size: 13px; padding: 14px 20px; cursor: pointer;
  position: relative; transition: color .2s;
}
.term-tab:hover { color: var(--foreground); }
.term-tab.active { color: var(--foreground); }
.term-tab.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--foreground); }
.term-copy {
  margin-left: auto; background: none; border: none; color: var(--muted-foreground);
  font-family: var(--font-mono); font-size: 12px; padding: 14px 18px; cursor: pointer; transition: color .2s;
}
.term-copy:hover { color: var(--foreground); }
.term-body-tab { min-height: 180px; }
.trade-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.trade-status { color: var(--muted-foreground); font-size: 14px; font-family: var(--font-mono); }

/* security list */
.sec-list { display: flex; flex-direction: column; gap: 14px; }
.sec-item {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color .2s, background .2s;
}
.sec-item:hover { border-color: rgba(255,255,255,0.2); background: #0d0b09; }
.sec-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.sec-item p { color: var(--muted-foreground); font-size: 15px; line-height: 1.6; }

/* docs page */
.docs-page { padding: 40px 0 120px; }
.docs-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
section[id], article[id] { scroll-margin-top: 96px; }
.docs-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--muted-foreground); text-decoration: none; font-size: 15px; transition: color .2s; }
.back-link:hover { color: var(--foreground); }
.docs-page h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.03em; line-height: 0.98; font-weight: 600; margin-bottom: 24px; }
.docs-sub { color: var(--muted-foreground); font-size: 19px; line-height: 1.6; max-width: 640px; margin-bottom: 48px; }
.docs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 72px; }
.docs-chips a {
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; color: var(--muted-foreground);
  text-decoration: none; transition: color .2s, border-color .2s;
}
.docs-chips a:hover { color: var(--foreground); border-color: rgba(255,255,255,0.35); }
.docs-page article { padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.docs-page article:first-of-type { border-top: 0; padding-top: 0; }
.docs-page article h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; margin-bottom: 20px; }
.docs-page article p { color: var(--muted-foreground); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.doc-block {
  border: 1px solid var(--border); background: var(--card); border-radius: 14px;
  padding: 22px 24px; margin: 16px 0;
}
.doc-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.doc-block p { font-size: 15px; margin-bottom: 10px; }
.doc-arrow { display: block; color: #ff8b97; font-size: 13px; font-family: var(--font-mono); font-weight: 400; margin-top: 6px; }
.doc-stat { font-family: var(--font-mono); font-size: 13px; color: #ff8b97; }
.doc-ol, .doc-ul { margin: 8px 0 0 20px; color: var(--muted-foreground); font-size: 16px; line-height: 1.8; }
.faq { margin-bottom: 28px; }
.faq h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.docs-cta { margin-top: 72px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.1); }
.docs-cta h2 { font-size: 34px; letter-spacing: -0.02em; margin-bottom: 12px; }
.docs-cta p { color: var(--muted-foreground); font-size: 16px; margin-bottom: 28px; }

/* nav burger */
.nav-burger { display: none; background: none; border: none; color: var(--foreground); font-size: 22px; cursor: pointer; }
@media (max-width: 1020px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #000; flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 18px; align-items: flex-start; z-index: 60; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
}

/* Brand and subscription comparison */
.brand-logo { width: 184px; height: 57px; object-fit: contain; display: block; transition: transform .2s ease; }
.brand:hover .brand-logo, .brand:focus-visible .brand-logo { transform: scale(.97); }
.nav-inner { gap: 18px; }
.nav-links { gap: 20px; }
.brand-img { object-fit: contain; }
button { font-family: inherit; }
#pricing { scroll-margin-top: 85px; }
.pricing-wrap { max-width: 960px; }
#pricing .sec-head { margin-bottom: 32px; }
.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; }
.billing-switch { position: relative; display: flex; width: 280px; margin: 0 auto 40px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.billing-slider { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--foreground); border-radius: 999px; transition: transform .22s ease; }
.billing-switch.yearly .billing-slider { transform: translateX(100%); }
.billing-switch button { position: relative; width: 50%; padding: 10px 3px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); font-size: 14px; cursor: pointer; }
.billing-switch button[aria-pressed="true"] { color: var(--background); }
.billing-switch button span { font-size: 11px; margin-left: 4px; color: #ff8b97; }
.billing-switch button[aria-pressed="true"] span { color: #a3192a; }
.pricing-card { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(130deg, rgba(255,107,122,.035), transparent 50%), var(--card); }
.pricing-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pricing-table th { font-weight: 500; }
.pricing-table thead th { padding: 8px 12px 28px; vertical-align: bottom; text-align: center; }
.pricing-table thead .pricing-label { text-align: left; color: var(--muted-foreground); font-size: 16px; }
.plan-name { display: block; font-size: 18px; }
.plan-price { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1.3; margin: 8px 0; }
.plan-price span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted-foreground); }
.plan-note { display: block; font-size: 12px; color: var(--muted-foreground); }
.plan-recommended { display: inline-block; border: 1px solid rgba(255,107,122,.25); border-radius: 999px; color: #ff8b97; background: rgba(255,107,122,.08); padding: 3px 10px; font-size: 11px; margin-bottom: 12px; }
.pricing-table tbody th, .pricing-table td { padding: 17px 12px; border-top: 1px solid var(--border); font-size: 14px; }
.pricing-table tbody th { position: relative; text-align: left; }
.pricing-table td { text-align: center; color: var(--muted-foreground); }
.pricing-table td:last-child { color: var(--foreground); font-weight: 500; }
.pricing-table tbody tr:hover { background: rgba(255,255,255,.025); }
.pricing-feature { text-align: left; color: var(--foreground); background: none; border: 0; font-size: inherit; cursor: help; text-decoration: underline; text-decoration-color: var(--muted-foreground); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pricing-feature:hover { color: #ff8b97; }
.pricing-tip { position: absolute; left: 0; bottom: calc(100% - 2px); width: min(330px, 75vw); padding: 16px; border: 1px solid #51433d; border-radius: 10px; background: #191512; color: var(--foreground); font-size: 13px; line-height: 1.6; font-weight: 400; box-shadow: 0 12px 40px #000a; z-index: 20; }
.pricing-action { text-align: center; margin-top: 32px; }
button:focus-visible, a:focus-visible { outline: 2px solid #ff8b97; outline-offset: 5px; }
@media (max-width: 1100px) {
 .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #000; flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 18px; align-items: flex-start; z-index: 60; }
 .nav-links.open { display: flex; }
 .nav-burger { display: block; }
}
@media (max-width: 600px) {
 .nav-inner { gap: 10px; padding: 0 16px; }
 .brand-logo { width: 148px; height: 52px; }
 .nav-cta { display: none; }
 .pricing-card { padding: 16px 6px; border-radius: 12px; }
 .pricing-table thead th { padding: 8px 5px 20px; }
 .pricing-table thead .pricing-label { font-size: 12px; }
 .pricing-table tbody th, .pricing-table td { padding: 16px 7px; font-size: 12px; }
 .plan-price { font-size: 28px; }
 .plan-price span { display: block; font-size: 11px; }
 .plan-recommended { padding: 3px 5px; font-size: 9px; }
 .plan-note { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .billing-slider, .brand-logo { transition: none; } }

/* Footer layout based on the supplied reference */
.site-footer { padding: 72px 0 56px; background: radial-gradient(ellipse at top left, rgba(255,107,122,.035), transparent 55%), var(--card); }
.footer-layout { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(260px, 1.8fr) minmax(180px, 1fr) minmax(110px, .65fr) minmax(150px, .85fr); gap: 40px; align-items: start; }
.footer-brand { display: inline-flex; }
.footer-brand .brand-logo { width: 220px; height: auto; }
.footer-tagline { color: var(--muted-foreground); font-size: 20px; letter-spacing: -.02em; margin-top: 10px; }
.footer-copyright { margin-top: 28px; font-size: 13px; color: var(--muted-foreground); }
.footer-column h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-column ul { list-style: none; display: grid; gap: 10px; }
.footer-column a { color: var(--foreground); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-column a:hover { color: #ff8b97; }
.footer-column a span { color: var(--muted-foreground); margin-left: 4px; font-size: 12px; }
.footer-pending { display: block; color: var(--muted-foreground); font-size: 14px; }
.footer-pending small { display: block; font-size: 10px; margin-top: 2px; }
@media (max-width: 900px) {
 .footer-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
 .footer-brand-block { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
 .site-footer { padding: 48px 0; }
 .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }

 .footer-column a { font-size: 13px; }
}

/* Expandable FAQ */
#faq { scroll-margin-top: 88px; }
.faq-item { border-bottom: 1px solid var(--border); transition: background .25s ease; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item:hover, .faq-item.open { background: rgba(255,107,122,.025); }
.faq-item h3 { margin: 0; }
.faq-toggle { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 24px 18px; border: 0; background: transparent; color: var(--foreground); font-size: 17px; font-weight: 500; line-height: 1.5; text-align: left; cursor: pointer; transition: color .2s ease; }
.faq-toggle:hover, .faq-item.open .faq-toggle { color: #ff8b97; }
.faq-chevron { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; font-size: 22px; transition: transform .3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .3s ease, opacity .25s ease, visibility .3s; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.docs-page .faq-answer p { margin: 0; padding: 0 18px 24px; font-size: 15px; line-height: 1.75; }
@media (max-width: 600px) { .faq-toggle { padding: 20px 12px; gap: 16px; font-size: 16px; } .docs-page .faq-answer p { padding: 0 12px 20px; } }
@media (prefers-reduced-motion: reduce) { .faq-item, .faq-toggle, .faq-chevron, .faq-answer { transition: none; } }

@media (max-width: 900px) {
  .install-grid { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .install-left, .install-right { width: 100%; max-width: 100%; }
  .install-visual { width: 100%; }
}
@media (max-width: 600px) {
  .install-hero { padding-top: 24px; }
  .install-title { font-size: clamp(26px, 8vw, 34px); white-space: normal; }
  .panel-card { padding: 18px; }
  .step-1-head { align-items: flex-start; flex-direction: column; }
  .step-card h4, .step-title { font-size: 21px; }
  .nf-bookmark-name { font-size: clamp(18px, 6vw, 26px); }
  .nf-bookmark-icon { width: 48px; height: 42px; }
}

/* More spacious process composition, following the Linear reference */
#how-it-works { padding: 112px 0; }
#how-it-works .sec-head { margin-bottom: 72px; }
.proc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.proc-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 32px; padding: 36px 0; }
.proc-step:first-child { padding-top: 0; }
.proc-step:last-child { border-bottom: 0; padding-bottom: 0; }

.proc-step h3 { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.proc-step p { font-size: 15px; line-height: 1.75; max-width: 350px; }
@media (max-width: 900px) { .proc-grid { grid-template-columns: 1fr; gap: 64px; } .proc-step p { max-width: 480px; } }
@media (max-width: 600px) { #how-it-works { padding: 80px 0; } #how-it-works .sec-head { margin-bottom: 48px; } .proc-step { grid-template-columns: 40px minmax(0, 1fr); gap: 24px; padding: 30px 0; }  .proc-step h3 { font-size: 21px; } }

/* account pill in header */
.nav-account { display: flex; align-items: center; }
.nav-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--foreground);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.nav-account-pill:hover { border-color: rgba(255,107,122,0.4); }
.nav-account-pill-ghost { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.nav-account-pill-ghost:hover { opacity: 0.9; border-color: var(--foreground); }
.nav-account-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; flex-shrink: 0; }

/* auth modal */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.auth-overlay.open { opacity: 1; visibility: visible; }
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
.auth-overlay.open .auth-modal { transform: translateY(0) scale(1); }
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.auth-close:hover { color: var(--foreground); border-color: rgba(255,255,255,0.3); }
.auth-view h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-sub { color: var(--muted-foreground); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.auth-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.auth-option:hover { border-color: rgba(255,107,122,0.4); background: rgba(255,107,122,0.04); }
.auth-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: #ff8b97;
  flex-shrink: 0;
}
.auth-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.auth-option-text strong { font-size: 15px; font-weight: 600; }
.auth-option-text small { font-size: 12.5px; color: var(--muted-foreground); }
.auth-option-arrow { color: var(--muted-foreground); flex-shrink: 0; }
.auth-fine { font-size: 12px; color: var(--muted-foreground); text-align: center; margin-top: 16px; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
  font-family: inherit;
}
.auth-back:hover { color: var(--foreground); }
.auth-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--foreground);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}
.auth-input:focus { outline: none; border-color: rgba(255,107,122,0.5); }
.auth-error { color: #ff8b97; font-size: 13px; margin: -8px 0 16px; }
.auth-submit { width: 100%; justify-content: center; border: none; }
@media (max-width: 480px) { .auth-modal { padding: 28px 20px 24px; } }

/* dashboard */
.dash-hero { padding: 64px 0 0; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.dash-greeting { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.dash-sub { color: var(--muted-foreground); font-size: 15px; }
.dash-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,107,122,0.25);
  background: rgba(255,107,122,0.06);
  font-size: 13px;
  color: #ff8b97;
  white-space: nowrap;
}
.dash-plan-badge a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 20px; }
.stat-card .mono-label { display: block; margin-bottom: 10px; color: var(--muted-foreground); }
.stat-card .stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .stat-note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted-foreground); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.dash-panel { border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 26px; }
.dash-panel h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.dash-panel .dash-panel-sub { color: var(--muted-foreground); font-size: 13.5px; margin-bottom: 20px; }
.dash-panel-cta {
  border-color: rgba(255,107,122,0.3);
  background: linear-gradient(135deg, rgba(255,107,122,0.07), transparent 55%), var(--card);
}
.dash-panel-cta h3 { font-size: 22px; margin-top: 6px; }
.dash-install-btn { width: 100%; justify-content: center; margin-bottom: 24px; box-shadow: 0 8px 28px rgba(255,107,122,0.18); }
.dash-empty { border: 1px dashed var(--border); border-radius: 12px; padding: 28px 20px; text-align: center; color: var(--muted-foreground); font-size: 14px; }
.dash-account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dash-account-row:last-of-type { border-bottom: none; }
.dash-account-row .k { font-size: 13px; color: var(--muted-foreground); }
.dash-account-row .v { font-size: 14px; font-weight: 500; text-align: right; word-break: break-all; }
.dash-login-edit { display: flex; gap: 10px; margin-top: 18px; }
.dash-login-edit input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--foreground);
  font-size: 13px;
  font-family: inherit;
}
.dash-login-edit input:focus { outline: none; border-color: rgba(255,107,122,0.5); }
.dash-login-saved { color: #4ade80; font-size: 12.5px; margin-top: 8px; visibility: hidden; }
.dash-login-saved.show { visibility: visible; }
.dash-signout { width: 100%; justify-content: center; margin-top: 20px; }
.dash-locked { max-width: 460px; margin: 0 auto; text-align: center; padding: 120px 0 140px; }
.dash-locked h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; letter-spacing: -0.02em; }
.dash-locked p { color: var(--muted-foreground); font-size: 15px; margin-bottom: 32px; }

/* gated pages: html.cp-locked is set synchronously in <head> before paint */
#authLocked { display: none; }
.cp-locked #authProtectedContent { display: none; }
.cp-locked #authLocked { display: block; }
@media (max-width: 900px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-head { flex-direction: column; }
}

/* Legal document pages */
.legal-page { max-width: 848px; padding: 64px 24px 80px; margin: 0 auto; }
.legal-page > .back-link { margin-bottom: 40px; }
.legal-page > .eyebrow { display: flex; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 32px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 24px; margin: 28px 0 48px; font-size: 14px; }
.legal-text h2 { margin: 48px 0 20px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.legal-text p { margin-bottom: 20px; color: var(--muted-foreground); line-height: 1.85; font-size: 15px; overflow-wrap: anywhere; }
