/* Snowfall: a winter night. Deep navy, snow white, one cool accent. */

:root {
  color-scheme: dark;
  --bg: #0b1222;
  --bg-raised: #111a2e;
  --bg-video: #2d3a60; /* the videos' own sky */
  --line: rgba(214, 228, 255, 0.11);
  --line-strong: rgba(214, 228, 255, 0.2);
  --text: #eef3fb;
  --muted: #a6b3c9;
  --faint: #7d8aa3;
  --accent: #a3d3ff;
  --accent-hover: #c0e1ff;
  --accent-ink: #071a30;
  --warn-bg: #3a2f12;
  --warn-text: #ffe3a3;
  --radius: 14px;
  --radius-small: 9px;
  --page: 1120px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 650;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--bg-raised);
  padding: 8px 12px;
  z-index: 10;
}

/* --- Header ------------------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

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

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

@media (max-width: 560px) {
  .nav .nav-link {
    display: none;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.is-disabled:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

.hero {
  padding: 64px 0 40px;
}

@media (min-width: 720px) {
  .hero {
    padding: 96px 0 56px;
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  max-width: 15ch;
}

.lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 40em;
}

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

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

.screen {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-video);
  aspect-ratio: 1260 / 708;
}

.screen video,
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

section {
  padding: 56px 0;
}

@media (min-width: 720px) {
  section {
    padding: 88px 0;
  }
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

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

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--bg);
  padding: 26px 24px 28px;
}

.feature h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.showcase {
  display: grid;
  gap: 48px;
}

.show {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px) {
  .show {
    grid-template-columns: 3fr 2fr;
    gap: 44px;
  }

  .show.flip {
    grid-template-columns: 2fr 3fr;
  }

  .show.flip .media {
    order: 2;
  }
}

.show .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-video);
  aspect-ratio: 16 / 9;
}

.show .media video,
.show .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.show p {
  margin-top: 10px;
  color: var(--muted);
}

.columns {
  display: grid;
  gap: 40px;
}

@media (min-width: 860px) {
  .columns {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.columns h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin-bottom: 16px;
}

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

.columns p {
  color: var(--muted);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.list li:first-child {
  border-top: 1px solid var(--line);
}

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

/* --- Price ------------------------------------------------------------------------------- */

.price-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 32px 24px;
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .price-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 40px 44px;
  }
}

.price-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.price {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card .list {
  margin-top: 18px;
}

.price-side {
  display: grid;
  gap: 16px;
  justify-items: start;
}

@media (min-width: 760px) {
  .price-side {
    justify-items: end;
    text-align: right;
  }
}

.price-side .note {
  color: var(--faint);
  font-size: 14px;
  max-width: 22em;
}

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

.faq {
  max-width: 50em;
}

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

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details > div {
  padding: 0 0 20px;
  color: var(--muted);
}

.faq details > div p + p {
  margin-top: 10px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* --- Single-purpose pages (thanks, recover, legal) --------------------------------------- */

.page {
  padding: 56px 0 80px;
}

@media (min-width: 720px) {
  .page {
    padding: 80px 0 104px;
  }
}

.narrow {
  max-width: 640px;
}

.page h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
}

.page .lead {
  font-size: 1.1rem;
}

.panel {
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 24px;
}

@media (min-width: 720px) {
  .panel {
    padding: 32px;
  }
}

.label {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 8px;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.key {
  font-family: var(--mono);
  font-size: clamp(14px, 3.9vw, 18px);
  letter-spacing: 0.03em;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 10px 14px;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

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

.hint {
  color: var(--faint);
  font-size: 14px;
  margin-top: 10px;
}

.waiting {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
}

.flakes {
  display: inline-flex;
  gap: 6px;
}

.flakes i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.25;
  animation: fall 1.2s ease-in-out infinite;
}

.flakes i:nth-child(2) {
  animation-delay: 0.2s;
}

.flakes i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fall {
  0%,
  100% {
    transform: translateY(-4px);
    opacity: 0.25;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

form {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
  font-size: 15px;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-row input {
  flex: 1 1 240px;
}

.message {
  margin-top: 18px;
  color: var(--text);
}

.message.error {
  color: var(--warn-text);
}

[hidden] {
  display: none !important;
}

/* Legal pages */

.draft {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-bottom: 1px solid rgba(255, 227, 163, 0.25);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 10px var(--gutter);
}

.legal {
  max-width: 720px;
  color: var(--muted);
}

.legal h1 {
  color: var(--text);
}

.legal .updated {
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
}

.legal h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul {
  margin: 0 0 14px;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

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

.placeholder {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--warn-text);
  background: rgba(255, 227, 163, 0.08);
  border-radius: 4px;
  padding: 0 4px;
}

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

  .flakes i {
    animation: none;
    opacity: 0.6;
  }

  .button,
  .faq summary::after {
    transition: none;
  }
}
