/* voxkit.io landing page. One light theme: the clay illustrations are light.
   Palette and type: docs/superpowers/specs/2026-10-16-landing-page-design.md ("Visual style"). */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --forest: #2f6b4f;
  --forest-deep: #1f4d38;
  --sage: #dfe8da;
  --sky: #e3f0f8;
  --cream: #f6f1e7;
  --card: #fffdf8;
  --terracotta: #d9774b;
  --lime: #d4e45f;
  --cobalt: #3159c9;
  --ink: #1d2320;
  --muted: #555e58;
  --rule: #e4dccb;
  --radius-lg: 28px;
  --radius-md: 18px;
  --gutter: 16px;
  --max: 1160px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 99px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

/* Language hint */

.lang-hint {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

.lang-hint[hidden] {
  display: none;
}

.lang-hint a {
  font-weight: 600;
}

.lang-hint button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 99px;
  box-shadow: 0 1px 0 var(--rule);
}

@media (max-width: 1192px) {
  .site-header {
    margin-inline: var(--gutter);
  }
}

.wordmark img {
  width: 96px;
}

.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: #fff;
}

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

.lang-switch nav {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(29, 35, 32, 0.14);
}

.lang-switch nav a {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.lang-switch nav a:hover,
.lang-switch nav a[aria-current="page"] {
  background: var(--cream);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 99px;
  font: 600 0.95rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-lime {
  background: var(--lime);
  color: var(--ink);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

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

  .lang-switch {
    margin-left: auto;
  }

  .header-cta {
    padding: 0 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .header-cta {
    display: none;
  }
}

/* Hero */

main {
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 1192px) {
  main {
    margin-inline: var(--gutter);
  }
}

.hero {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}

.hero-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform-origin: 70% 60%;
  will-change: transform;
}

/* Pulsing rings over the near walkie-talkie's antenna (probe 1: about 79% / 24%). */
.hero-rings {
  position: absolute;
  left: 79%;
  top: 22%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hero-rings span {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(214, 233, 255, 0.85);
  border-radius: 50%;
  opacity: 0;
  animation: ring 3.6s ease-out infinite;
}

.hero-rings span:nth-child(2) {
  animation-delay: 1.2s;
}

.hero-rings span:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes ring {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.hero-copy {
  padding: 28px 22px 26px;
  background: var(--forest);
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 34em;
}

@media (min-width: 900px) {
  .hero-art {
    aspect-ratio: auto;
    height: min(78vh, 680px);
    min-height: 560px;
  }

  .hero-copy {
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    width: min(760px, 68%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 120px 44px 44px;
    background: linear-gradient(90deg, rgba(23, 56, 40, 0.78), rgba(23, 56, 40, 0.5) 62%, transparent);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  }

  .hero-rings {
    top: 24%;
  }
}

@media (max-width: 899px) {
  .hero-rings {
    top: 13%;
  }

  .hero-rings span {
    left: -24px;
    top: -24px;
    width: 48px;
    height: 48px;
  }
}

/* Waitlist form */

.waitlist-form {
  max-width: 480px;
  text-shadow: none;
}

.field-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border-radius: 99px;
}

.field-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font: 16px var(--body);
  color: var(--ink);
}

.field-row input:focus-visible {
  outline: none;
}

.field-row:focus-within {
  box-shadow: 0 0 0 3px var(--lime);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--lime);
}

.cf-turnstile:not(:empty) {
  margin-top: 12px;
}

.form-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.waitlist-form.is-done .field-row,
.waitlist-form.is-done .consent,
.waitlist-form.is-done .cf-turnstile {
  display: none;
}

.waitlist-form.is-done .form-status {
  font-size: 1.05rem;
}

@media (max-width: 420px) {
  .field-row {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .field-row input {
    min-height: 44px;
  }
}

/* Blocks */

.block {
  margin-top: 16px;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg);
}

.block-sky {
  background: var(--sky);
}

.block-sage {
  background: var(--sage);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36em;
}

.tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 99px;
  font: 700 0.72rem/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-cobalt {
  background: #fff;
  color: var(--cobalt);
}

.tag-green {
  background: var(--forest);
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  padding: 18px 18px 8px;
  background: var(--card);
  border-radius: var(--radius-md);
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  background: var(--cream);
}

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

.how {
  display: grid;
  gap: 32px;
  align-items: center;
}

.how-art {
  width: min(360px, 80%);
  margin-inline: auto;
  border-radius: var(--radius-md);
}

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

  .how-art {
    width: 100%;
  }
}

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

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-items: start;
  font-size: 1.05rem;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font: 700 1rem/1 var(--display);
}

.steps strong {
  display: block;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.faq details {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font: 400 1.4rem/1 var(--body);
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

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

.final {
  display: grid;
  gap: 28px;
  align-items: center;
  background: var(--forest);
  color: #fff;
}

.final .lead {
  color: rgba(255, 255, 255, 0.82);
}

.final-art {
  width: min(320px, 80%);
  margin-inline: auto;
  border-radius: var(--radius-md);
}

@media (min-width: 900px) {
  .final {
    grid-template-columns: 1fr 320px;
  }

  .final-art {
    width: 100%;
  }
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-langs {
  margin-left: auto;
}

.footer-langs a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

/* Motion (landing.js adds .motion to <html> unless reduced motion is requested) */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.motion [data-float] {
  animation: float 7s ease-in-out infinite;
}

.motion .card:nth-child(2) [data-float] {
  animation-delay: -2.3s;
}

.motion .card:nth-child(3) [data-float] {
  animation-delay: -4.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

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

  .hero-rings {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
