/* Deskr landing page. Tokens live in theme.css. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #0b0e13;
  background: var(--background);
  color: #f3f5f8;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--primary); color: var(--primary-foreground); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px oklch(0.84 0.13 205 / 0.4), 0 14px 50px -10px oklch(0.84 0.13 205 / 0.6);
}

.btn-ghost {
  background: oklch(1 0 0 / 0.04);
  border-color: var(--border-strong);
  color: var(--foreground);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.08); }

.btn-lg { height: 3.25rem; padding: 0 1.6rem; font-size: 1rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; }

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
.nav.is-scrolled {
  background: oklch(0.145 0.008 250 / 0.72);
  border-color: var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: var(--tracking-tight);
}
.brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-links a:hover { color: var(--foreground); background: oklch(1 0 0 / 0.05); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 4rem; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: oklch(0.145 0.008 250 / 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .nav-links a { padding: 0.8rem 0.75rem; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: oklch(0.145 0.008 250 / 0.96); border-color: var(--border); }
  .nav-actions .btn-sm { display: none; }
}

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

.hero {
  position: relative;
  padding: 9rem 0 4rem;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 32rem at 50% -8%, oklch(0.84 0.13 205 / 0.42), transparent 70%),
    radial-gradient(36rem 26rem at 8% 35%, oklch(0.70 0.14 230 / 0.16), transparent 70%),
    radial-gradient(36rem 26rem at 92% 30%, oklch(0.78 0.12 180 / 0.14), transparent 70%),
    linear-gradient(to bottom, transparent 75%, var(--background));
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.11) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 35%, transparent 85%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: oklch(1 0 0 / 0.03);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.badge b {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
}

.hero h1 {
  margin: 1.5rem auto 0;
  max-width: 15ch;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.gradient-text {
  background: linear-gradient(100deg, var(--foreground) 10%, var(--primary) 55%, oklch(0.80 0.12 180) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted-foreground);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--subtle-foreground); }

.hero-shot {
  position: relative;
  margin: 4rem auto 0;
  max-width: 68rem;
}
.hero-glow {
  position: absolute;
  inset: 10% 5% -5%;
  z-index: -1;
  background: radial-gradient(closest-side, oklch(0.84 0.13 205 / 0.35), transparent);
  filter: blur(40px);
}

/* Browser frame around screenshots */
.frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--background-elevated);
}
.frame-dots { display: flex; gap: 0.4rem; }
.frame-dots i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: oklch(1 0 0 / 0.14); }
.frame-url {
  flex: 1;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--subtle-foreground);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-spacer { width: 2.9rem; }
.frame img { width: 100%; }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust .icon { width: 1.1rem; height: 1.1rem; color: var(--primary); }

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

.section { padding: 7rem 0; }
.section-alt {
  background: linear-gradient(to bottom, transparent, oklch(0.175 0.012 250) 15%, oklch(0.175 0.012 250) 85%, transparent);
}
.section-head { max-width: 44rem; margin: 0 auto 4rem; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.section-head p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 220ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx) var(--my), oklch(0.84 0.13 205 / 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.card:hover { border-color: oklch(0.84 0.13 205 / 0.25); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.9375rem; }
.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.8rem;
  border: 1px solid oklch(0.84 0.13 205 / 0.2);
  background: var(--accent);
  color: var(--primary);
}
.mini-search {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background-elevated);
  font-size: 0.8125rem;
}
.mini-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  background: oklch(1 0 0 / 0.04);
}
.mini-input .icon { width: 0.95rem; height: 0.95rem; color: var(--subtle-foreground); }
.caret {
  width: 1.5px;
  height: 1rem;
  margin-left: -0.35rem;
  background: var(--primary);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.mini-result {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
}
.mini-result > span:nth-child(2) { flex: 1; }
.mini-result b { display: block; font-weight: 600; }
.mini-result small { color: var(--subtle-foreground); font-size: 0.75rem; }
.mini-result.is-active { background: var(--accent); }
.mini-dot { width: 1.4rem; height: 1.4rem; border-radius: 0.4rem; background: oklch(1 0 0 / 0.1); }
.mini-result.is-active .mini-dot { background: var(--primary); opacity: 0.8; }
.mini-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--subtle-foreground);
  font-size: 0.75rem;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.card-media {
  flex: 1;
  min-height: 0;
  margin: 1.5rem -1.75rem -1.75rem;
  border-top: 1px solid var(--border);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:has(.card-media) { display: flex; flex-direction: column; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 4rem;
}
.feature + .feature { margin-top: 8rem; }
.feature.reverse { grid-template-columns: 1.25fr 1fr; }
.feature.reverse .feature-text { order: 2; }
.feature h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.feature-text > p { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--muted-foreground); }

.checklist { margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.75rem; color: var(--muted-foreground); }
.checklist li strong { color: var(--foreground); font-weight: 600; }
.checklist .icon {
  width: 1.25rem; height: 1.25rem;
  margin-top: 0.15rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
}

.feature-media { position: relative; }
.feature-media .frame { transition: transform 300ms ease, box-shadow 300ms ease; }
.feature-media .frame:hover { transform: scale(1.01); box-shadow: var(--shadow-lg), 0 30px 80px -30px oklch(0.84 0.13 205 / 0.25); }

.stack { position: relative; padding-bottom: 12%; }
.stack .frame + .frame {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 62%;
}

@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature.reverse .feature-text { order: 0; }
  .feature + .feature { margin-top: 6rem; }
  .stack .frame + .frame { right: 0; }
}

kbd, .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  vertical-align: 0.1em;
}

/* ---------- Taskr mock board ---------- */

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 1.1rem;
  background:
    radial-gradient(30rem 16rem at 80% 0%, oklch(0.84 0.13 205 / 0.08), transparent 70%),
    var(--background-elevated);
}
.board-col { display: grid; align-content: start; gap: 0.6rem; }
.board-col h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.2rem;
  padding: 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.board-col h4 span { color: var(--subtle-foreground); font-weight: 500; }
.task {
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.8125rem;
}
.task-title { display: flex; gap: 0.5rem; align-items: flex-start; }
.task-check {
  flex: none;
  width: 0.95rem; height: 0.95rem;
  margin-top: 0.15rem;
  border-radius: 0.3rem;
  border: 1.5px solid var(--border-strong);
}
.task.done .task-check { background: var(--primary); border-color: var(--primary); }
.task.done .task-title span { color: var(--subtle-foreground); text-decoration: line-through; }
.task-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; padding-left: 1.45rem; }
.chip {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.06);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}
.chip.accent { background: var(--accent); color: var(--accent-foreground); }
.chip.warn { background: oklch(0.75 0.15 60 / 0.14); color: oklch(0.85 0.12 70); }
.timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid oklch(0.84 0.13 205 / 0.3);
  background: var(--accent);
}
.timer b { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.timer small { display: block; color: var(--muted-foreground); font-size: 0.6875rem; }
.timer-dot {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
}
.timer-dot .icon { width: 0.9rem; height: 0.9rem; }

@media (max-width: 600px) {
  .board { grid-template-columns: 1fr 1fr; }
  .board-col:last-child { display: none; }
}

.text-link { color: var(--accent-foreground); text-decoration: underline; text-decoration-color: oklch(0.84 0.13 205 / 0.35); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Taskr features ---------- */

.taskr-more { margin-top: 3.5rem; }
.taskr-more + .feature { margin-top: 8rem; }
.taskr-more h3 { font-size: 1.125rem; font-weight: 600; color: var(--muted-foreground); }
.taskr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.taskr-grid a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 200ms ease, transform 200ms ease;
}
.taskr-grid a:hover { border-color: oklch(0.84 0.13 205 / 0.3); transform: translateY(-2px); }
.taskr-grid strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.taskr-grid strong::after { content: " →"; color: var(--primary); opacity: 0; transition: opacity 200ms ease; }
.taskr-grid a:hover strong::after { opacity: 1; }
.taskr-grid span { display: block; margin-top: 0.35rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted-foreground); }
.taskr-note { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--muted-foreground); }
@media (max-width: 960px) { .taskr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .taskr-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .taskr-more + .feature { margin-top: 6rem; } }

/* ---------- Address bar mock (Chrome omnibox in keyword mode) ---------- */

.omni {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: oklch(0.20 0.008 250);
  box-shadow: var(--shadow-lg), 0 30px 80px -30px oklch(0.84 0.13 205 / 0.25);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.omni-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: oklch(0.27 0.01 250);
  box-shadow: 0 0 0 2px oklch(0.84 0.13 205 / 0.55);
  font-size: 0.95rem;
}
.omni-search { width: 1rem; height: 1rem; color: var(--muted-foreground); }
.omni-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem 0.15rem 0.3rem;
  border-radius: 999px;
  background: oklch(0.84 0.13 205 / 0.18);
  color: var(--accent-foreground);
  font-size: 0.85rem;
  white-space: nowrap;
}
.omni-chip img, .omni-list img { width: 1rem; height: 1rem; border-radius: 0.2rem; }
.omni-text { display: inline-flex; align-items: center; gap: 0.35rem; }
.omni-text .caret { margin-left: 0; }
.omni-list { padding: 0 0 0.6rem; }
.omni-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
}
.omni-list li span { overflow: hidden; text-overflow: ellipsis; }
.omni-list li.is-active { background: oklch(1 0 0 / 0.07); }
.omni-list b { font-weight: 600; color: var(--foreground); }
.omni-list i { font-style: normal; color: var(--subtle-foreground); margin-left: 0.35rem; }

@media (max-width: 520px) {
  .omni-chip { font-size: 0; gap: 0; padding: 0.25rem; }
}

/* ---------- Shortcuts ---------- */

.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .keys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .keys { grid-template-columns: 1fr; } }
.key-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.key-combo { display: flex; align-items: center; gap: 0.35rem; color: var(--subtle-foreground); font-size: 0.8rem; }
.key-combo kbd {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 0.6rem;
  border-bottom-width: 3px;
  font-size: 0.9rem;
  transition: transform 120ms ease, border-bottom-width 120ms ease;
}
.key-card:hover kbd { transform: translateY(1px); border-bottom-width: 2px; }
.key-card p { color: var(--muted-foreground); font-size: 0.9375rem; }
.key-card p strong { display: block; margin-bottom: 0.2rem; color: var(--foreground); font-weight: 600; }

/* ---------- Privacy ---------- */

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } }

.table-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
}
.table-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
}
.table-card h3 .icon { color: var(--primary); }
.table-card table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-card th, .table-card td { padding: 0.85rem 1.5rem; text-align: left; vertical-align: top; }
.table-card tr + tr td { border-top: 1px solid var(--border); }
.table-card th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle-foreground);
  border-bottom: 1px solid var(--border);
}
.table-card td:first-child { color: var(--foreground); font-weight: 500; white-space: nowrap; }
.table-card td:last-child { color: var(--muted-foreground); }
.table-card code { font-family: var(--font-mono); font-size: 0.8em; color: var(--accent-foreground); }

@media (max-width: 520px) {
  .table-card th, .table-card td { padding: 0.75rem 1rem; }
  .table-card td:first-child { white-space: normal; }
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-weight: 600;
}
.step h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; }
.step p { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.9375rem; }

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

.faq { max-width: 48rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 200ms ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--subtle-foreground); transition: transform 250ms ease; }
.faq details[open] summary .icon { transform: rotate(90deg); color: var(--primary); }
.faq-body { padding: 0 1.5rem 1.35rem; color: var(--muted-foreground); }
.faq details[open] .faq-body { animation: faq-in 250ms ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- CTA + footer ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid oklch(0.84 0.13 205 / 0.2);
  background:
    radial-gradient(40rem 20rem at 50% 120%, oklch(0.84 0.13 205 / 0.22), transparent 70%),
    var(--card);
  text-align: center;
}
.cta img { width: 4rem; height: 4rem; margin: 0 auto 1.75rem; border-radius: 1rem; }
.cta p { max-width: 32rem; margin: 1.25rem auto 0; color: var(--muted-foreground); font-size: 1.125rem; }
.cta .hero-ctas { margin-top: 2rem; }

.footer { padding: 4rem 0 3rem; border-top: 1px solid var(--border); margin-top: 7rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-links a:hover { color: var(--foreground); }
.footer small { display: block; margin-top: 0.4rem; color: var(--subtle-foreground); font-size: 0.8125rem; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(var(--rise, 12px)); filter: blur(var(--blur, 0)); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes shot-in {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes glow-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}

.js .hero .badge { animation: rise 400ms ease-out both; --rise: 8px; }
.js .hero h1 { animation: rise 600ms ease-out 80ms both; --rise: 16px; --blur: 4px; }
.js .hero-sub { animation: rise 500ms ease-out 160ms both; }
.js .hero-ctas, .js .hero-note { animation: rise 500ms ease-out 240ms both; }
.js .hero-shot .frame { animation: shot-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 320ms both; }
.js .hero-glow { animation: glow-in 1400ms ease-out 400ms both; }
.js .trust { animation: rise 500ms ease-out 700ms both; }

/* Scroll reveals; only hidden once JS has marked the page, so content is never lost without it */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: var(--delay, 0ms);
}
.js .reveal.from-left { transform: translateX(-24px); }
.js .reveal.from-right { transform: translateX(24px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-delay: 0ms !important;
    transition-duration: 150ms !important;
    transition-delay: 0ms !important;
  }
  .js .hero h1, .js .hero-shot .frame, .js .hero-glow { animation-name: fade; }
  .caret { animation: none; }
  .js .reveal, .js .reveal.from-left, .js .reveal.from-right { transform: none; }
  .btn:hover, .btn:active, .feature-media .frame:hover, .key-card:hover kbd { transform: none; }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- Legal pages (privacy.html) ---------- */

.legal { padding: 8.5rem 0 0; }
.legal-inner { max-width: 48rem; }
.legal-head h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}
.legal-meta { margin-top: 1rem; color: var(--subtle-foreground); font-size: 0.9375rem; }
.legal section { margin-top: 3.5rem; }
.legal h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.legal p { margin-top: 1rem; }
.legal section > ul { margin-top: 1rem; display: grid; gap: 0.75rem; }
.legal section > ul li { position: relative; padding-left: 1.25rem; }
.legal section > ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
}
.legal strong { color: var(--foreground); font-weight: 600; }
.legal code { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent-foreground); }
.legal .table-card { margin-top: 1.5rem; }
.legal .table-card td:first-child { white-space: normal; min-width: 9rem; }
.table-scroll { overflow-x: auto; }
.legal-summary {
  margin-top: 2.5rem !important;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(0.84 0.13 205 / 0.2);
  background: var(--card);
}
.legal-summary h2 { font-size: 1.125rem; }
.legal + .footer { margin-top: 6rem; }
@media (max-width: 600px) {
  .legal { padding-top: 7rem; }
  .legal-summary { padding: 1.25rem; }
  .legal .table-card th, .legal .table-card td { padding: 0.75rem 1rem; }
}
.support-contact .btn { margin-top: 1.25rem; }
