/* Session Recorder — marketing site.
   Calm, single-accent (coral) system. Light by default, full dark support via
   prefers-color-scheme. Self-contained: system fonts, no external assets. */

:root {
  --ink: #16181d;
  --ink-2: #3b3f47;
  --muted: #767b85;
  --line: #e7e7e3;
  --bg: #f7f7f5;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfa;
  --accent: #ff5a4d;
  --accent-ink: #ffffff;
  --accent-tint: rgba(255, 90, 77, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04);

  --font: ui-sans-serif, -apple-system, 'Segoe UI', Roboto, Inter, system-ui,
    sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --maxw: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececea;
    --ink-2: #b9bcc2;
    --muted: #878b93;
    --line: #262a31;
    --bg: #0e1013;
    --bg-2: #14161b;
    --surface: #16181d;
    --surface-2: #1b1e24;
    --accent: #ff6355;
    --accent-tint: rgba(255, 99, 85, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ink) 24%, var(--line));
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn--primary:hover {
  filter: brightness(1.04);
  border-color: var(--accent);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-ink);
}

/* ---- Chrome Web Store badge ---- */

.badge-cws {
  display: inline-flex;
  transition: transform 0.08s ease;
}

.badge-cws:hover {
  transform: translateY(-1px);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 5vw, 40px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__logo {
  border-radius: 6px;
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
}

/* ---- Layout ---- */

section {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
}

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

.hero {
  padding-bottom: 24px;
  text-align: center;
}

.hero__copy {
  max-width: 760px;
  margin: 0 auto;
}

h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 680;
  margin: 8px 0 20px;
}

.hero__lede {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink-2);
  margin: 0 auto 28px;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero__shot {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 0 clamp(16px, 5vw, 40px) clamp(40px, 7vw, 80px);
  perspective: 1600px;
}

/* ---- Screenshot frames ---- */

.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: auto;
}

@keyframes hero-flatten {
  from {
    transform: rotateX(6deg);
  }
  to {
    transform: rotateX(0deg);
  }
}

.shot--hero {
  transform: rotateX(6deg);
  transform-origin: 50% 0;
  animation: hero-flatten linear both;
  animation-timeline: scroll(root block);
  animation-range: 0px 600px;
}

.shot--tilt-r {
  transform: perspective(1400px) rotateY(-7deg) rotate(1.4deg);
}

.shot--tilt-l {
  transform: perspective(1400px) rotateY(7deg) rotate(-1.4deg);
}

@media (prefers-reduced-motion: reduce) {
  .shot,
  .shot--hero,
  .shot--tilt-r,
  .shot--tilt-l {
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ---- How it works ---- */

.how {
  text-align: center;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  text-align: left;
}

.step {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}

.step h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 760px) {
  .how__steps {
    grid-template-columns: 1fr;
  }
}

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

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vw, 120px);
}

.feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.feature--rev {
  grid-template-columns: 1.15fr 0.85fr;
}

.feature--rev .feature__copy {
  order: 2;
}

.feature--rev .feature__shot {
  order: 1;
}

.feature h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 14px;
}

.feature__copy p {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
}

.feature__shot {
  perspective: 1400px;
}

@media (max-width: 820px) {
  .feature,
  .feature--rev {
    grid-template-columns: 1fr;
  }
  .feature--rev .feature__copy,
  .feature--rev .feature__shot {
    order: initial;
  }
  .shot--tilt-r,
  .shot--tilt-l {
    transform: none;
  }
}

/* ---- Captures + privacy ---- */

.captures {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.captures__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cap h4 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.cap p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.captures__privacy {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 720px) {
  .captures__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---- Install ---- */

.install__card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.install__card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.install__lede {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
}

.install__note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
}

.install__alt {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

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

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 40px) 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 24px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.foot__links {
  justify-self: end;
  display: flex;
  gap: 20px;
}

.foot__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.foot__links a:hover {
  color: var(--ink);
}

.foot__note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
