/* Arrowly website: one stylesheet for every page. Colours come from the app icon and store art. */
:root {
  --brand: #4b4fff;
  --brand-deep: #2a1fb8;
  --violet: #7b2ff7;
  --magenta: #c13cf2;
  --sun: #ffc531;
  --orange: #ff8a1f;
  --ink: #15173a;
  --muted: #565d82;
  --bg: #f6f5ff;
  --card: #ffffff;
  --line: #e4e2fa;
  --night: #120c4a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(43, 31, 184, 0.35);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 12, 74, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font: 700 1.45rem var(--display);
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.logo span em {
  font-style: normal;
  color: var(--sun);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #2b1600;
}

.nav-links .nav-cta:hover {
  color: #2b1600;
  background: linear-gradient(135deg, #ffd459, #ff9a3a);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: #fff;
  cursor: pointer;
}

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

  .nav-links {
    position: absolute;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--night);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
  }

  .nav-links .nav-cta {
    margin-top: 6px;
    text-align: center;
  }
}

/* ---------- Buttons & store badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 16px;
  font: 800 1rem var(--body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sun {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #2b1600;
  box-shadow: 0 12px 28px -10px rgba(255, 138, 31, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(75, 79, 255, 0.9);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  background: #0b0b14;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
  line-height: 1.2;
}

.store-badge strong {
  display: block;
  font: 600 1.2rem/1.15 var(--display);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(193, 60, 242, 0.55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 138, 31, 0.35), transparent 60%),
    linear-gradient(140deg, #2a1fb8 0%, #4b4fff 45%, #7b2ff7 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--sun), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34em;
  margin-bottom: 28px;
}

.tagline {
  font: 700 clamp(1.3rem, 3vw, 1.8rem) var(--display);
  margin: -6px 0 14px;
}

.tagline span {
  color: var(--sun);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1600' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 197, 49, 0.55), rgba(255, 138, 31, 0) 70%);
  filter: blur(10px);
}

.hero-phone {
  position: relative;
  width: min(330px, 78vw);
  border-radius: 34px;
  box-shadow: 0 40px 80px -30px rgba(10, 4, 60, 0.85);
  transform: rotate(4deg);
  animation: bob 6s ease-in-out infinite;
}

.hero-icon {
  position: absolute;
  left: -4%;
  bottom: 8%;
  width: clamp(86px, 12vw, 128px);
  border-radius: 28px;
  box-shadow: 0 20px 40px -14px rgba(10, 4, 60, 0.8);
  transform: rotate(-10deg);
  animation: bob 6s ease-in-out -3s infinite;
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

.floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floaters svg {
  position: absolute;
  opacity: 0.22;
  animation: drift 14s ease-in-out infinite;
}

.floaters svg:nth-child(1) { top: 12%; left: 4%; width: 90px; }
.floaters svg:nth-child(2) { top: 64%; left: 44%; width: 60px; animation-delay: -4s; }
.floaters svg:nth-child(3) { top: 8%; left: 52%; width: 48px; animation-delay: -8s; opacity: 0.35; }
.floaters svg:nth-child(4) { bottom: 6%; right: 3%; width: 110px; animation-delay: -2s; }

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(18px, -16px) rotate(8deg);
  }
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 70px;
  color: var(--bg);
}

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

  .hero .lead {
    margin-inline: auto;
  }

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

  .hero-visual {
    margin-top: 12px;
  }
}

/* ---------- Stats strip ---------- */
.stats {
  position: relative;
  z-index: 4;
  margin-top: -40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.stat {
  padding: 22px 18px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  font: 700 clamp(1.6rem, 3.5vw, 2.3rem)/1.1 var(--display);
  background: linear-gradient(120deg, var(--brand), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

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

.kicker {
  display: inline-block;
  font: 600 0.95rem var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}

.grad-text {
  background: linear-gradient(120deg, var(--brand), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  box-shadow: 0 10px 22px -10px rgba(75, 79, 255, 0.9);
}

.feature:nth-child(3n + 2) .feature-icon {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #2b1600;
  box-shadow: 0 10px 22px -10px rgba(255, 138, 31, 0.9);
}

.feature:nth-child(3n) .feature-icon {
  background: linear-gradient(135deg, var(--magenta), var(--violet));
}

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

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

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

/* How to play */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px 26px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 700 1.3rem var(--display);
  color: #2b1600;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  box-shadow: 0 10px 20px -10px rgba(255, 138, 31, 0.9);
}

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

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* Modes (alternating rows) */
.dark-band {
  color: #fff;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(193, 60, 242, 0.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(75, 79, 255, 0.45), transparent 60%),
    var(--night);
}

.dark-band .section-head p,
.dark-band .mode p {
  color: rgba(255, 255, 255, 0.78);
}

.dark-band .kicker {
  color: var(--sun);
}

.modes {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.mode:nth-child(even) .mode-media {
  order: 2;
}

.mode-media {
  display: grid;
  place-items: center;
}

.mode-media img {
  width: min(300px, 70vw);
  border-radius: 30px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}

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

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 197, 49, 0.18);
  color: var(--sun);
  border: 1px solid rgba(255, 197, 49, 0.4);
  margin-bottom: 14px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}

.checks li::before {
  content: "";
  flex: none;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1600' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

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

  .mode:nth-child(even) .mode-media {
    order: 0;
  }

  .checks {
    justify-items: center;
  }
}

/* Screenshot gallery */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
}

.gallery figure {
  flex: 0 0 auto;
  width: min(250px, 66vw);
  margin: 0;
  scroll-snap-align: center;
}

.gallery img {
  border-radius: 24px;
  box-shadow: 0 20px 40px -24px rgba(43, 31, 184, 0.7);
}

.gallery figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  margin-top: 12px;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--brand);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
}

.round-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Plus */
.plus-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #4b4fff 0%, #7b2ff7 55%, #c13cf2 100%);
  box-shadow: var(--shadow);
}

.plus-card h2 .crown {
  display: inline-block;
  transform: translateY(-3px);
}

.plus-card p {
  color: rgba(255, 255, 255, 0.88);
}

.plus-card .checks li {
  color: #fff;
}

.plus-art {
  justify-self: center;
  width: min(220px, 60vw);
  border-radius: 40px;
  box-shadow: 0 30px 60px -24px rgba(10, 4, 60, 0.9);
  transform: rotate(6deg);
}

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

  .plus-card .checks {
    justify-items: center;
  }
}

/* FAQ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  font: 600 1.12rem/1.35 var(--display);
}

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

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

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

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

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

.faq-group {
  max-width: 860px;
  margin: 0 auto 40px;
}

.faq-group h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-group h2 .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  color: #fff;
  border-radius: 32px;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px);
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(255, 197, 49, 0.35), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(193, 60, 242, 0.5), transparent 60%),
    linear-gradient(135deg, #2a1fb8, #4b4fff);
  box-shadow: var(--shadow);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
  margin-inline: auto;
  font-size: 1.12rem;
}

.cta-band .store-badges {
  justify-content: center;
  margin-top: 24px;
}

/* Share */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.share a,
.share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font: 800 0.9rem var(--body);
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s;
}

.share a:hover,
.share button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.share svg {
  width: 18px;
  height: 18px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 0 clamp(72px, 10vw, 110px);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(193, 60, 242, 0.5), transparent 60%),
    linear-gradient(140deg, #2a1fb8 0%, #4b4fff 55%, #7b2ff7 100%);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  max-width: 40em;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb [aria-current] {
  color: var(--sun);
}

/* Legal documents */
.doc {
  position: relative;
  z-index: 4;
  margin-top: -56px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 0.95rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

.doc article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}

.doc article h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin-top: 1.8em;
  scroll-margin-top: 96px;
}

.doc article h2:first-of-type {
  margin-top: 0.4em;
}

.doc article p,
.doc article li {
  color: #2f3458;
  max-width: 72ch;
}

.doc article ul,
.doc article ol {
  padding-left: 22px;
}

.doc article li + li {
  margin-top: 8px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.doc-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
}

.callout {
  border-left: 4px solid var(--sun);
  background: #fff8e6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 0 0 1.4em;
}

.callout p {
  margin: 0;
}

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

  .toc {
    position: static;
  }
}

/* Support */
.support-cards {
  position: relative;
  z-index: 4;
  margin-top: -56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.support-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

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

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

.email-link {
  font: 600 1.15rem var(--display);
  word-break: break-all;
}

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

.tips {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.tips ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 110px);
  background: var(--night);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 14px;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--sun);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

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

/* Reveal on scroll (only when JS adds .reveal-ready) */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
