/* Tokens follow the app (src/renderer/style.css) so the site and the app look like one product. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --fill: rgba(120, 120, 128, 0.12);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --separator: rgba(60, 60, 67, 0.16);
  --accent: #0071e3;
  --accent-text: #0066cc;
  --glow: rgba(0, 113, 227, 0.22);
  --monitor: #e8e8ed;
  --screen: #fbfbfd;
  --nav: rgba(255, 255, 255, 0.72);
  --selected: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.08);
  --danger: #d70015;
  --success: #248a3d;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 1.25rem;
  --page: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0d0d0f;
    --surface: #1c1c1e;
    --fill: rgba(120, 120, 128, 0.24);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --separator: rgba(84, 84, 88, 0.55);
    --accent: #0a84ff;
    --accent-text: #2997ff;
    --glow: rgba(10, 132, 255, 0.35);
    --monitor: #2c2c2e;
    --screen: #151517;
    --nav: rgba(22, 22, 23, 0.72);
  --selected: #636366;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.5);
    --danger: #ff453a;
    --success: #30d158;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* anchors land below the sticky nav */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 100%/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Size-specific tracking: tighter as type grows, body left alone. */
h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.021em;
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: var(--text-2);
}

.small {
  font-size: 0.875rem;
  color: var(--text-2);
  letter-spacing: 0.005em;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.center {
  text-align: center;
}

.head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1rem;
  text-align: center;
}

/* Buttons: feedback on press, not on release. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.375rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 100ms ease-out, filter 150ms;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn.secondary {
  background: var(--fill);
  color: var(--text);
}

.btn.small-btn {
  min-height: 2rem;
  padding: 0 0.9rem;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Nav: translucent material, a soft edge instead of a hard divider. */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav::after {
  content: '';
  position: absolute;
  inset: 100% 0 auto;
  height: 1px;
  background: var(--separator);
  opacity: 0;
  transition: opacity 200ms;
}

.nav.scrolled::after {
  opacity: 1;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.nav nav a:not(.btn) {
  color: var(--text-2);
}

.nav nav a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 40rem) {
  .nav nav a:not(.btn) {
    display: none;
  }
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.hero .lede {
  max-width: 36rem;
  margin: 1.25rem auto 2rem;
}

.hero .small {
  margin-top: 1rem;
}

/* Demo: three monitors, the pointer plays the eyes. */
.demo {
  --gap: clamp(0.5rem, 2vw, 1.5rem);
  position: relative;
  max-width: 56rem;
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding: 0 0.25rem;
}

.desk {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: end;
  touch-action: pan-y;
}

.monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: clamp(0.5rem, 1.5vw, 0.875rem);
  background: var(--monitor);
  padding: clamp(0.25rem, 0.8vw, 0.45rem);
  transition: opacity 300ms var(--ease);
}

.window {
  height: 100%;
  border-radius: clamp(0.3rem, 1vw, 0.5rem);
  background: var(--screen);
  padding: clamp(0.35rem, 1.2vw, 0.75rem);
  text-align: left;
  overflow: hidden;
  font: clamp(0.5rem, 1.35vw, 0.8125rem) / 1.45 ui-monospace, 'SF Mono', 'Cascadia Mono', 'DejaVu Sans Mono', monospace;
  color: var(--text-2);
}

.window .bar {
  display: flex;
  gap: 0.25em;
  margin-bottom: 0.6em;
}

.window .bar i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--fill);
}

.window .label {
  margin-bottom: 0.3em;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
  opacity: 0.55;
}

.typed {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.caret {
  display: inline-block;
  width: 0.12em;
  min-width: 1px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--accent);
  opacity: 0;
}

.focused .caret {
  animation: blink 1.06s steps(1) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.stand {
  width: 10%;
  height: clamp(0.6rem, 2vw, 1.4rem);
  background: var(--monitor);
}

.foot {
  width: 34%;
  height: clamp(0.2rem, 0.5vw, 0.35rem);
  border-radius: 999px;
  background: var(--monitor);
}

/* The focus ring is one element that springs between screens (transform only). */
.ring {
  position: absolute;
  left: 0;
  top: 0;
  border: clamp(2px, 0.35vw, 3px) solid var(--accent);
  border-radius: clamp(0.6rem, 1.7vw, 1rem);
  box-shadow: 0 0 clamp(0.75rem, 2vw, 1.25rem) var(--glow);
  pointer-events: none;
  will-change: transform;
  transition: opacity 180ms ease;
}

.caption {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
  min-height: 1.5em;
}

.caption b {
  color: var(--text);
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.card p {
  color: var(--text-2);
}

.num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.shots figure {
  margin: 0;
  width: min(100%, 22rem);
  display: grid;
  gap: 0.875rem;
  text-align: center;
}

.shots figcaption {
  font-size: 0.875rem;
  color: var(--text-2);
}

.shot {
  border-radius: 0.875rem;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 0 0 1px var(--separator), 0 20px 50px rgba(0, 0, 0, 0.25);
}

.alt {
  background: var(--bg-2);
}

/* Privacy */
.points {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  max-width: 56rem;
  margin: 0 auto;
}

.point {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
}

.point svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.point p {
  color: var(--text-2);
  max-width: 18rem;
}

/* Pricing */
.price-card {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  gap: 1.25rem;
}

.card .price {
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.price span {
  font-size: 1.0625rem;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text-2);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.list li::before {
  content: '';
  flex: none;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-0.1rem);
}

.price-card .btn {
  width: 100%;
}

/* Platforms */
.platforms {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-bottom: 1.25rem;
}

.platform {
  justify-items: start;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
}

.badge.live {
  background: var(--glow);
  color: var(--accent-text);
}

.platform .btn {
  margin-top: 0.5rem;
}

.waitlist {
  max-width: 40rem;
  margin: 0 auto;
  gap: 1rem;
}

.waitlist form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr auto;
}

.waitlist input[type='email'] {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
}

.waitlist input[type='email']:focus-visible {
  outline-offset: 0;
  border-radius: 999px;
}

.waitlist input[aria-invalid='true'] {
  border-color: var(--danger);
}

.segmented {
  grid-column: 1 / -1;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr; /* equal halves, so one pill can slide between them */
  justify-self: start;
  padding: 0.2rem;
  border: 0;
  margin: 0;
  border-radius: 999px;
  background: var(--fill);
}

/* One pill that slides to the checked option instead of jumping. */
.segmented .thumb {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0.2rem;
  width: calc(50% - 0.2rem);
  border-radius: 999px;
  background: var(--selected);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 340ms cubic-bezier(0.25, 1, 0.3, 1); /* fast start, soft settle, no overshoot */
}

.segmented:has(input[value='mac']:checked) .thumb {
  transform: translateX(100%);
}

.segmented label {
  position: relative;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: transform 100ms ease-out;
}

.segmented label:active {
  transform: scale(0.96);
}

.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segmented label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
}

.hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.5em;
  font-size: 0.9375rem;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--success);
}

@media (max-width: 30rem) {
  .waitlist form {
    grid-template-columns: 1fr;
  }
}

/* FAQ: native details, styled */
.faq {
  max-width: 44rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--separator);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  position: relative;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-2);
  transition: rotate 200ms var(--ease);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details p {
  padding: 0 0 1.25rem;
  color: var(--text-2);
}

code {
  font: 0.875em ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;
  background: var(--fill);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

/* Closing call to action */
.final {
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.final img {
  width: 5rem;
  height: 5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--separator);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer a {
  color: var(--text-2);
}

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

/* Legal pages */
.legal {
  max-width: 44rem;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(4rem, 9vw, 6rem);
}

.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.note {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--fill);
  font-size: 0.875rem;
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:active {
    transform: none;
  }
  .focused .caret {
    animation: none;
    opacity: 1;
  }
  .segmented .thumb {
    transition: none;
  }
  .segmented label:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-2: var(--text);
    --separator: var(--text);
  }
  .card,
  .nav {
    border: 1px solid var(--text);
  }
}

.monitor:not(.focused) .screen {
  opacity: 0.7;
}
