/* ==========================================================================
   CueTime website
   ========================================================================== */

:root {
  --bg: #0a0f0c;
  --bg-2: #0e1511;
  --surface: #131c17;
  --surface-2: #19241e;
  --surface-3: #213029;
  --border: rgba(214, 240, 223, 0.09);
  --border-strong: rgba(214, 240, 223, 0.16);
  --text: #e8f1eb;
  --muted: #9db0a4;
  --subtle: #6f8378;
  --accent: #11d18b;
  --accent-2: #90d5ad;
  --accent-ink: #032b1a;
  --felt: #0f5236;
  --warn: #ffb547;
  --danger: #ff6b6b;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 10px 30px -15px rgba(0, 0, 0, 0.6);
  --container: 1180px;
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

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

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

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

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

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 40em;
}

.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 15, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 15, 12, 0.88);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-weight: 550;
  font-size: 0.97rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 1.08rem;
    border-radius: 12px;
  }

  .nav .btn {
    margin: 12px 0 0;
    justify-content: center;
  }

  .nav-open .site-header {
    background: var(--bg);
  }

  .nav-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-open .nav-toggle .icon-open {
    display: none;
  }

  .nav-open .nav-toggle .icon-close {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Buttons & badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px -10px rgba(17, 209, 139, 0.65);
}

.btn-primary:hover {
  background: #2ae29d;
  color: var(--accent-ink);
  box-shadow: 0 10px 34px -8px rgba(17, 209, 139, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.store-badge img {
  height: 54px;
  width: auto;
}

.store-badges--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Device mockups
   -------------------------------------------------------------------------- */

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 2410;
  border-radius: 13% / 6%;
  padding: 3.2%;
  background: linear-gradient(145deg, #2a332e, #0d110f 55%, #222b26);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10.5% / 4.9%;
  background: #0e1410;
}

.phone--ios {
  aspect-ratio: 1206 / 2622;
}

.tablet {
  position: relative;
  width: 100%;
  aspect-ratio: 2048 / 2732;
  border-radius: 5.5% / 4.2%;
  padding: 2.6%;
  background: linear-gradient(145deg, #2a332e, #0d110f 55%, #222b26);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tablet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3.4% / 2.6%;
  background: #0e1410;
}

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

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(48% 60% at 78% 38%, rgba(17, 209, 139, 0.22), transparent 70%),
    radial-gradient(40% 50% at 10% 10%, rgba(15, 82, 54, 0.55), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lead {
  margin-bottom: 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(17, 209, 139, 0.08);
  border: 1px solid rgba(17, 209, 139, 0.28);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 550;
}

.pill:hover {
  color: var(--text);
  background: rgba(17, 209, 139, 0.14);
}

.pill b {
  flex: none;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.hero-visual .ring {
  position: absolute;
  width: 112%;
  max-width: 620px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.85;
}

.hero-visual .ring circle {
  fill: none;
  stroke-width: 3;
}

.hero-phones {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 440 / 600;
}

.hero-phones .phone {
  position: absolute;
  width: 58%;
}

.hero-phones .phone--back {
  right: 0;
  top: 0;
  transform: rotate(6deg);
  filter: saturate(0.9) brightness(0.92);
}

.hero-phones .phone--front {
  left: 0;
  bottom: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(19, 28, 23, 0.86);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-chip small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.76rem;
}

.float-chip .chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(17, 209, 139, 0.14);
  color: var(--accent);
}

.float-chip .chip-icon svg {
  width: 18px;
  height: 18px;
}

.float-chip--a {
  top: 14%;
  left: -6%;
}

.float-chip--b {
  bottom: 12%;
  right: -4%;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .store-badges,
  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 16px;
  }

  .hero-phones {
    width: min(100%, 380px);
  }
}

@media (max-width: 520px) {
  .float-chip--a {
    left: -2%;
  }

  .float-chip--b {
    right: -2%;
  }
}

/* --------------------------------------------------------------------------
   Sports strip
   -------------------------------------------------------------------------- */

.sports {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 22px 0;
}

.sports .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
}

.sports span {
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sports ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sports li {
  position: relative;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 650;
}

.sports li + li::before {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card h3 {
  margin-bottom: 8px;
}

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

.card p + p {
  margin-top: 0.8em;
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(17, 209, 139, 0.1);
  border: 1px solid rgba(17, 209, 139, 0.22);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

/* Timer cards */

.timer-card {
  padding: 32px 28px;
  text-align: center;
  overflow: hidden;
}

.timer-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(17, 209, 139, 0.14), transparent 70%);
  pointer-events: none;
}

.timer-dial {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 24px;
}

.timer-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-dial .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.timer-dial .progress {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 8;
  stroke-linecap: round;
}

.timer-dial .face {
  fill: var(--surface-3);
}

.timer-dial .readout {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}

.timer-dial .readout small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timer-dial .readout strong {
  font-size: 1.55rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.modes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.modes li {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.combo-note {
  margin: 36px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  padding: 18px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}

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

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(80px, 12vw, 150px);
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(17, 209, 139, 0.22), transparent 70%);
  filter: blur(10px);
}

.split-media .phone {
  width: min(78%, 320px);
}

.split-copy h2 {
  margin-bottom: 18px;
}

.split-copy > p {
  color: var(--muted);
  font-size: 1.12rem;
}

.check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311d18b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat,
    rgba(17, 209, 139, 0.12);
}

.check-list li span {
  display: block;
  color: var(--muted);
  font-size: 0.96rem;
}

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

  .split--reverse .split-media {
    order: 0;
  }

  .split-copy {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Cast TV demo
   -------------------------------------------------------------------------- */

.tv {
  width: 100%;
  max-width: 560px;
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(160deg, #262e2a, #090c0a);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.tv-display {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #17211b, #0b100d 70%);
}

.tv-display svg {
  width: 100%;
  height: 100%;
}

.tv-stand {
  width: 26%;
  height: 22px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a201c, #0b0e0c);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

.tv-caption {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.feature {
  padding: 26px;
}

.feature .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature .icon-box svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.96rem;
}

@media (max-width: 620px) {
  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding: 20px;
  }

  .feature .icon-box {
    grid-row: span 2;
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented button svg {
  width: 16px;
  height: 16px;
}

.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.gallery figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
}

.gallery .phone {
  width: 250px;
}

.gallery .tablet {
  width: 420px;
}

.gallery figcaption {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

[data-shot-theme="dark"] .shot-light,
[data-shot-theme="light"] .shot-dark {
  display: none;
}

@media (max-width: 620px) {
  .gallery .phone {
    width: 210px;
  }

  .gallery .tablet {
    width: 300px;
  }
}

/* --------------------------------------------------------------------------
   Why / stats
   -------------------------------------------------------------------------- */

.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.why > div {
  background: var(--surface);
  padding: 32px 28px;
}

.why strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--accent);
}

.why h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.why p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 960px) {
  .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* --------------------------------------------------------------------------
   FAQ (details/summary)
   -------------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq details[open] {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-weight: 650;
  font-size: 1.04rem;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390d5ad' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat,
    rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease;
}

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

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

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  text-align: center;
  border: 1px solid var(--border-strong);
  background: var(--felt);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/img/cue-ball.webp") center 65% / cover no-repeat;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 20, 13, 0.62), rgba(6, 20, 13, 0.88)),
    radial-gradient(60% 80% at 50% 0%, rgba(17, 209, 139, 0.2), transparent 70%);
}

.cta-band h2 {
  max-width: 760px;
  margin: 0 auto 16px;
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 34px;
  color: #c6d8cc;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Sponsor teaser
   -------------------------------------------------------------------------- */

.teaser {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(17, 209, 139, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}

.teaser h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.teaser p {
  color: var(--muted);
  margin-bottom: 24px;
}

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

/* Mock app bar with sponsor slot */

.appbar-mock {
  border-radius: 20px;
  padding: 18px 20px;
  background: #101612;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.appbar-mock .icons {
  display: flex;
  gap: 12px;
  color: #c7d3cb;
}

.appbar-mock .icons svg {
  width: 20px;
  height: 20px;
}

.appbar-mock .center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.appbar-mock .title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
}

.appbar-mock .title img {
  width: 22px;
  height: 22px;
}

.sponsor-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.sponsor-slot small {
  font-size: 0.62rem;
  color: rgba(199, 211, 203, 0.7);
}

.sponsor-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(17, 209, 139, 0.6);
  background: rgba(17, 209, 139, 0.08);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sponsor-logo svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(17, 209, 139, 0.16), transparent 70%),
    radial-gradient(40% 70% at 0% 0%, rgba(15, 82, 54, 0.5), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 16px;
}

.page-hero .lead {
  margin: 0;
}

.page-hero--photo {
  padding: clamp(80px, 12vw, 160px) 0 clamp(72px, 10vw, 128px);
}

.page-hero--photo::before {
  background: url("/assets/img/cue-ball.webp") center 60% / cover no-repeat;
  z-index: -2;
}

.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 15, 12, 0.96) 0%, rgba(10, 15, 12, 0.82) 45%, rgba(10, 15, 12, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}

.page-hero--photo .lead {
  color: #c2d3c8;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 620px) {
  .page-hero--photo::after {
    background:
      linear-gradient(180deg, rgba(10, 15, 12, 0.86), rgba(10, 15, 12, 0.94)),
      linear-gradient(0deg, var(--bg) 0%, transparent 35%);
  }
}

/* --------------------------------------------------------------------------
   Docs layout (help + privacy)
   -------------------------------------------------------------------------- */

.docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 120px);
}

.docs--single {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  padding-right: 6px;
}

.toc h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin: 0 0 12px 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 550;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.toc a.is-active {
  color: var(--accent);
  background: rgba(17, 209, 139, 0.08);
}

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

  .toc {
    position: static;
    max-height: none;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .toc ol {
    grid-template-columns: 1fr;
  }
}

.prose {
  min-width: 0;
}

.prose > section + section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.prose h2 .icon-box {
  margin: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}

.prose h2 .icon-box svg {
  width: 20px;
  height: 20px;
}

.prose > h2 {
  margin-top: 44px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: #c5d2ca;
}

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

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

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

.prose li::marker {
  color: var(--accent);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0 !important;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 !important;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 209, 139, 0.14);
  color: var(--accent);
  font-weight: 750;
  font-size: 0.9rem;
}

.kbd {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 7px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  white-space: nowrap;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  margin: 22px 0;
  background: rgba(17, 209, 139, 0.07);
  border: 1px solid rgba(17, 209, 139, 0.22);
}

.callout svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

.callout p {
  margin: 0;
  color: #cfe0d5;
}

.callout--warn {
  background: rgba(255, 181, 71, 0.07);
  border-color: rgba(255, 181, 71, 0.25);
}

.callout--warn svg {
  color: var(--warn);
}

.def-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 1em;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.96rem;
}

.def-table th,
.def-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.def-table tr:last-child th,
.def-table tr:last-child td {
  border-bottom: 0;
}

.def-table thead th {
  background: var(--surface-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

.def-table tbody th {
  width: 34%;
  color: var(--text);
  font-weight: 650;
  background: var(--surface);
}

.def-table td {
  color: #c5d2ca;
  background: rgba(19, 28, 23, 0.5);
}

@media (max-width: 560px) {
  .def-table,
  .def-table tbody,
  .def-table tr,
  .def-table th,
  .def-table td {
    display: block;
    width: 100%;
  }

  .def-table thead {
    display: none;
  }

  .def-table tbody th {
    width: 100%;
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .def-table td {
    background: var(--surface);
    padding-top: 0;
  }
}

.help-figure {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 520px;
}

.help-figure .phone {
  width: 100%;
}

.help-figure figcaption {
  grid-column: 1 / -1;
  color: var(--subtle);
  font-size: 0.88rem;
}

.prose .faq {
  margin: 0;
}

.support-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(17, 209, 139, 0.14), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
}

.support-card p {
  margin: 0;
}

.support-card .hero-actions {
  justify-content: flex-end;
}

@media (max-width: 680px) {
  .support-card {
    grid-template-columns: 1fr;
  }

  .support-card .hero-actions {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Sponsor page
   -------------------------------------------------------------------------- */

.placement {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
}

.placement-visual {
  padding: 28px;
  min-height: 210px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(17, 209, 139, 0.16), transparent 70%),
    #0d130f;
  border-bottom: 1px solid var(--border);
}

.placement-body {
  padding: 26px 28px 30px;
}

.mini-phone {
  width: 150px;
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(145deg, #2a332e, #0d110f 55%, #222b26);
  box-shadow: var(--shadow);
}

.mini-phone-screen {
  border-radius: 19px;
  background: #101612;
  padding: 12px 10px 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.mini-phone .sponsor-logo {
  font-size: 0.62rem;
  padding: 4px 8px;
  gap: 5px;
}

.mini-phone .sponsor-logo svg {
  width: 11px;
  height: 11px;
}

.mini-phone .sponsor-slot small {
  font-size: 0.5rem;
}

.mini-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 6px solid #90d5ad;
  border-right-color: rgba(144, 213, 173, 0.18);
  background: #4f5f55;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  transform: rotate(-30deg);
}

.mini-ring span {
  transform: rotate(30deg);
}

.mini-tv {
  width: 230px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  padding: 6px;
  background: linear-gradient(160deg, #262e2a, #090c0a);
  box-shadow: var(--shadow);
}

.mini-tv-screen {
  height: 100%;
  border-radius: 5px;
  background: #101612;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  padding: 8px;
  gap: 6px;
}

.mini-tv .mini-ring {
  width: 66px;
  height: 66px;
  border-width: 5px;
  font-size: 1rem;
  align-self: center;
}

.mini-tv .sponsor-logo {
  font-size: 0.58rem;
  padding: 3px 8px;
  gap: 4px;
}

.mini-tv .sponsor-logo svg {
  width: 10px;
  height: 10px;
}

.mini-tv .sponsor-slot small {
  font-size: 0.46rem;
}

.map-visual {
  position: relative;
  width: 210px;
  height: 150px;
}

.map-visual .flag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}

.map-visual .flag.is-on {
  border-color: rgba(17, 209, 139, 0.6);
  background: rgba(17, 209, 139, 0.12);
  color: var(--accent);
}

.map-visual .globe {
  position: absolute;
  inset: 10px 40px;
  border-radius: 50%;
  border: 1px solid rgba(144, 213, 173, 0.25);
  background:
    radial-gradient(circle at 35% 30%, rgba(17, 209, 139, 0.25), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(144, 213, 173, 0.12) 17px 18px),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(144, 213, 173, 0.12) 17px 18px);
}

.process {
  counter-reset: process;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process li {
  counter-increment: process;
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.process li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.process h3 {
  font-size: 1.08rem;
}

.process p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 960px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

/* Contact form */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-aside > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-aside .check-list {
  margin-bottom: 32px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 650;
}

.email-link:hover {
  color: var(--text);
  border-color: rgba(17, 209, 139, 0.5);
}

.email-link svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.form {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}

.field label .optional {
  color: var(--subtle);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #0c120e;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db0a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--subtle);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 209, 139, 0.15);
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.form-footer p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.85rem;
  max-width: 320px;
}

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

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

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-grid p {
  margin: 14px 0 0;
  max-width: 320px;
}

.footer-grid h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin: 6px 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--subtle);
}

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}