/* Wink website. Colours follow the app icon (blue to violet) and the overlay's dark cards. */
:root {
  --bg: #0b0c14;
  --bg-2: #10121c;
  --surface: #151826;
  --surface-2: #1b1f30;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5fb;
  --muted: #a7adc4;
  --faint: #6e7590;
  --blue: #4f7dff;
  --violet: #8b5cf6;
  --pink: #c056f5;
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.14);
  --listen: #34e0a1;
  --warn: #ffb547;
  --error: #ff5a6e;
  --brand: linear-gradient(135deg, var(--blue) 0%, var(--violet) 55%, var(--pink) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(10, 10, 40, 0.9), 0 0 0 1px var(--edge);
  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', 'Segoe UI Variable Display', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1160px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft brand glow behind the top of every page. */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -10vw auto;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(79, 125, 255, 0.22), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(192, 86, 245, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}
code {
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0.1em 0.5em;
  border-radius: 7px;
  border: 1px solid var(--edge-strong);
  border-bottom-width: 3px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--listen);
  box-shadow: 0 0 12px var(--listen);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(11, 12, 20, 0.72);
  border-bottom: 1px solid var(--edge);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 800 1.25rem var(--font-display);
  letter-spacing: -0.02em;
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font: 600 1rem var(--font);
  color: var(--text);
  border: 1px solid var(--edge-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}
.btn-primary {
  border: 0;
  background: var(--brand);
  box-shadow: 0 10px 30px -8px rgba(124, 92, 246, 0.65);
}
.btn-primary:hover {
  background: var(--brand);
  box-shadow: 0 16px 40px -8px rgba(124, 92, 246, 0.8);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.92rem;
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

/* A faint grid that fades out from the middle, with slow-drifting brand light. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 420px;
  height: 420px;
  left: 4%;
  top: 8%;
  background: #3e63ff;
}
.orb-2 {
  width: 380px;
  height: 380px;
  right: 6%;
  top: 0;
  background: #9b4dff;
  animation-delay: -6s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  right: 30%;
  bottom: -8%;
  background: #d04cf0;
  opacity: 0.35;
  animation-delay: -12s;
}
@keyframes drift {
  to {
    transform: translate(40px, 30px) scale(1.12);
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  line-height: 1.04;
}

/* Gradient headline text with a slow shimmer. */
.hero .gradient-text {
  background: linear-gradient(100deg, #5b86ff 0%, #8b5cf6 30%, #d06cff 50%, #8b5cf6 70%, #5b86ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

/* The word after "Wink does the" swaps between things Wink does. */
.rotator {
  display: grid;
  width: max-content;
}
/* Words swap with a short rise, blur and fade (no clipping: Chrome won't draw
   gradient text inside a clipped box). */
.rotator .word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.3em);
  filter: blur(10px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    filter 0.55s var(--ease);
}
.rotator .word.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.rotator .word.is-out {
  opacity: 0;
  transform: translateY(-0.3em);
  filter: blur(10px);
}

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

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  width: 16px;
  height: 16px;
  color: var(--listen);
}

/* The demo sits on a glowing stage, with the spoken request floating above it. */
.stage {
  position: relative;
  padding-top: 34px;
}
.stage::before {
  content: '';
  position: absolute;
  inset: 18% 6% -6%;
  border-radius: 40px;
  background: var(--brand);
  filter: blur(60px);
  opacity: 0.45;
  z-index: -1;
}
.stage .demo {
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}
.stage:hover .demo {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}
.voice-card {
  position: absolute;
  top: 0;
  left: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% + 18px);
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(21, 24, 38, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--edge-strong);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
.voice-card .mic {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--listen);
  color: #06281c;
}
.voice-card .mic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--listen);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
.voice-card .mic svg {
  width: 17px;
  height: 17px;
}
.voice-card .said {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wave {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--listen);
  animation: wave 1s ease-in-out infinite;
}
.wave i:nth-child(2) {
  animation-delay: -0.8s;
}
.wave i:nth-child(3) {
  animation-delay: -0.6s;
}
.wave i:nth-child(4) {
  animation-delay: -0.4s;
}
.wave i:nth-child(5) {
  animation-delay: -0.2s;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
@media (max-width: 960px) {
  .stage .demo,
  .stage:hover .demo {
    transform: none;
  }
  .voice-card {
    left: 0;
    max-width: 100%;
  }
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-top: 22px;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}
.hero-note {
  color: var(--faint);
  font-size: 0.9rem;
}
@media (max-width: 960px) {
  .hero {
    padding-top: 56px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero illustration: Word start screen with Wink pointing ---------- */
.demo {
  position: relative;
  border-radius: 16px;
  background: #f3f3f6;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  color: #1f2330;
  font-family: 'Segoe UI', var(--font);
}
.demo-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #e3e4ea;
  font-size: 12px;
  color: #50566a;
}
.demo-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dbe3;
}
.demo-bar span {
  margin-left: 8px;
}
.demo-body {
  display: grid;
  grid-template-columns: 22% 1fr;
  height: calc(100% - 34px);
}
.demo-side {
  background: #1d5bbd;
  color: #fff;
  padding: 14px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-side b {
  font-size: 17px;
  margin-bottom: 6px;
}
.demo-side span {
  opacity: 0.85;
}
.demo-main {
  padding: 16px 18px;
}
.demo-main h4 {
  margin: 0 0 12px;
  font-size: 15px;
}
.demo-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tile {
  font-size: 10.5px;
  color: #3a3f52;
}
.tile div {
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid #dcdee6;
  border-radius: 4px;
  margin-bottom: 5px;
}
.tile.target div {
  border: 2px solid #7c8cff;
  box-shadow: 0 0 0 6px rgba(124, 140, 255, 0.22);
}
.demo-lines {
  margin-top: 16px;
  display: grid;
  gap: 7px;
}
.demo-lines i {
  height: 8px;
  border-radius: 4px;
  background: #e1e3ea;
}
.demo-lines i:nth-child(2) {
  width: 80%;
}
.demo-lines i:nth-child(3) {
  width: 64%;
}

/* Wink's ring and bubble, styled like the real overlay. */
.tile.target > div {
  position: relative;
}
.wink-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 3px solid #ffb547;
  box-shadow: 0 0 22px rgba(255, 181, 71, 0.6);
  animation: ring 1.8s var(--ease) infinite;
}
@keyframes ring {
  0% {
    transform: scale(1.25);
    opacity: 0.35;
  }
  60% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.wink-cursor {
  position: absolute;
  left: 52%;
  top: 52%;
  width: 26px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  animation: hover 3s ease-in-out infinite;
}
@keyframes hover {
  50% {
    transform: translate(3px, -4px);
  }
}
.wink-bubble {
  position: absolute;
  left: 44%;
  top: 36%;
  width: min(300px, 58%);
  padding: 14px 16px;
  border-radius: 16px;
  color: #f4f5fb;
  background: linear-gradient(180deg, rgba(26, 28, 40, 0.97), rgba(16, 17, 26, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.6);
  font: 13px/1.5 var(--font);
}
.wink-bubble .who {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 12px;
  color: #a7adc4;
  margin-bottom: 6px;
}
.wink-bubble .who img {
  width: 16px;
  height: 16px;
}
.wink-bubble ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.wink-bubble li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #a7adc4;
}
.wink-bubble li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #6e7590;
  flex: none;
}
.wink-bubble li.done {
  color: #6e7590;
  text-decoration: line-through;
}
.wink-bubble li.done::before {
  background: #34e0a1 no-repeat center/9px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='%230b0c14' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  border-color: #34e0a1;
}
.wink-bubble li.now {
  color: #f4f5fb;
  font-weight: 600;
}
.wink-bubble li.now::before {
  border-color: #ffb547;
  box-shadow: 0 0 8px rgba(255, 181, 71, 0.7);
}
.wink-bubble .count {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #ffb547;
}
.wink-bubble .count i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 181, 71, 0.2);
  overflow: hidden;
  position: relative;
}
.wink-bubble .count i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffb547;
  transform-origin: left;
  animation: countdown 1.8s linear infinite;
}
@keyframes countdown {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 520px) {
  .wink-bubble {
    left: 26%;
    top: 50%;
    width: 70%;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}
.kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--edge);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--edge-strong);
}
.card p {
  color: var(--muted);
  margin: 0;
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg {
  width: 23px;
  height: 23px;
}
.step-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font: 800 2.6rem var(--font-display);
  color: rgba(255, 255, 255, 0.05);
}

/* Demo videos */
.demos {
  padding-top: 40px;
}
.promo {
  max-width: 980px;
  margin: 0 auto 36px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.promo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.shorts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.short {
  margin: 0;
}
.short-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.short-frame:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 140, 255, 0.55);
}
.short-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.short-frame .sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 12, 20, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.short-frame .sound svg {
  width: 16px;
  height: 16px;
}
.short figcaption {
  padding: 12px 4px 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.short figcaption b {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 2px;
}
.short figcaption span {
  color: var(--muted);
}
/* ---- demo player (a short opened large) ---- */

.player {
  width: min(92vw, calc(86vh * 9 / 16));
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 22px;
  overflow: visible;
  background: #000;
  box-shadow: var(--shadow);
}

.player::backdrop {
  background: rgba(5, 6, 12, 0.82);
  backdrop-filter: blur(6px);
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 92vh;
  border-radius: 22px;
  background: #000;
}

.player-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid var(--edge-strong);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.player-close:hover {
  background: var(--bg);
}

@media (max-width: 640px) {
  .player-close {
    top: 8px;
    right: 8px;
  }
}

.shorts-hint {
  margin-top: 18px;
  text-align: center;
  color: var(--faint);
  font-size: 0.88rem;
}
@media (max-width: 1100px) {
  .shorts {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  /* Swipe through the shorts on phones. */
  .shorts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .short {
    scroll-snap-align: start;
  }
}

/* Two modes */
.mode {
  padding: 34px;
}
.mode h3 {
  font-size: 1.45rem;
}
.mode ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.mode li {
  display: flex;
  gap: 10px;
}
.mode li::before {
  content: '→';
  color: var(--accent);
}
.mode .example {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--edge-strong);
  font-size: 0.95rem;
  color: var(--text);
}
.mode .example span {
  display: block;
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Capabilities */
.caps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cap {
  padding: 22px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
}
.cap b {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.cap span {
  color: var(--muted);
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .caps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Privacy band */
.band {
  border-radius: 28px;
  padding: 56px;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(79, 125, 255, 0.18), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(192, 86, 245, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--edge);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checks li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(52, 224, 161, 0.15) no-repeat center/12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='%2334e0a1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (max-width: 900px) {
  .band {
    grid-template-columns: 1fr;
    padding: 32px 22px;
  }
}

/* Setup steps on the landing page */
.setup {
  counter-reset: setup;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.setup .card::before {
  counter-increment: setup;
  content: counter(setup);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  font: 800 1.05rem var(--font-display);
  color: #fff;
}
.setup .card .btn {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .setup {
    grid-template-columns: 1fr;
  }
}

/* Requirements */
.reqs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.req {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
}
.req small {
  display: block;
  color: var(--faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.req b {
  display: block;
  font-family: var(--font-display);
}
.req span {
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .reqs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
  padding: 0 22px;
}
details[open] {
  border-color: var(--edge-strong);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  color: var(--muted);
  margin: 0 0 18px;
}

/* Final call to action */
.cta {
  text-align: center;
  padding: 72px 24px;
  border-radius: 28px;
  background:
    radial-gradient(50% 100% at 50% 0%, rgba(139, 92, 246, 0.3), transparent 70%),
    var(--surface);
  border: 1px solid var(--edge);
}
.cta img {
  width: 76px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 14px 30px rgba(124, 92, 246, 0.55));
}
.cta p {
  color: var(--muted);
  font-size: 1.1rem;
}
.cta .hero-actions {
  justify-content: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--edge);
  padding: 36px 0;
  color: var(--faint);
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer a {
  color: var(--muted);
}

/* ---------- User guide ---------- */
.guide-hero {
  padding: 64px 0 24px;
}
.guide-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40em;
}
.guide {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 24px 0 96px;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 0.93rem;
}
.toc b {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 8px;
}
.toc a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
}
.toc a:hover,
.toc a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent);
  text-decoration: none;
}
@media (max-width: 960px) {
  .guide {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}

.doc {
  min-width: 0;
}
.doc section {
  padding: 0 0 56px;
}
.doc h2 {
  font-size: 1.8rem;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.doc h2 .n {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  font-size: 1rem;
  color: #fff;
}
.doc h3 {
  margin-top: 28px;
}
.doc p,
.doc li {
  color: var(--muted);
}
.doc strong {
  color: var(--text);
}
.doc ol.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}
.doc ol.steps > li {
  counter-increment: s;
  position: relative;
  padding: 16px 18px 16px 58px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
}
.doc ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}
.doc ul {
  padding-left: 1.2em;
}
.doc ul li {
  margin-bottom: 6px;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 140, 255, 0.3);
  background: var(--accent-soft);
}
.callout::before {
  content: 'i';
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--bg);
  font: 800 0.85rem var(--font-display);
}
.callout p {
  margin: 0;
  color: var(--text);
}
.callout.warn {
  border-color: rgba(255, 181, 71, 0.35);
  background: rgba(255, 181, 71, 0.08);
}
.callout.warn::before {
  content: '!';
  background: var(--warn);
}
.callout.ok {
  border-color: rgba(52, 224, 161, 0.35);
  background: rgba(52, 224, 161, 0.08);
}
.callout.ok::before {
  content: '✓';
  background: var(--listen);
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--edge);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
td {
  color: var(--muted);
  background: var(--surface);
}
tr:last-child td {
  border-bottom: 0;
}

pre {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #080910;
  border: 1px solid var(--edge);
  overflow-x: auto;
  font: 0.88rem/1.6 var(--mono);
  color: #d6daf0;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
}

.examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.examples span {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
  color: var(--text);
  font-size: 0.95rem;
}
.examples span::before {
  content: '“';
  color: var(--accent);
}
.examples span::after {
  content: '”';
  color: var(--accent);
}
@media (max-width: 640px) {
  .examples {
    grid-template-columns: 1fr;
  }
}

/* Entrance animation, only for people who haven't asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- "Mac: coming soon" ---------- */
/* Looks like a button next to Download, but isn't clickable yet. */
.btn-soon {
  position: relative;
  cursor: default;
  color: var(--muted);
  border: 1px dashed var(--edge-strong);
  background: rgba(255, 255, 255, 0.025);
  padding-right: 10px;
}
.btn-soon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(124, 140, 255, 0.45);
  color: var(--text);
}
.btn-soon svg {
  width: 17px;
  height: 17px;
  margin-top: -2px;
}
.soon-pill {
  position: relative;
  overflow: hidden;
  margin-left: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 14px -4px rgba(139, 92, 246, 0.7);
}
/* A light sweep across the pill every few seconds. */
.soon-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .soon-pill::after {
    animation: soon-shine 3.6s var(--ease) infinite;
  }
}
@keyframes soon-shine {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
