/*
 * OpenBench showcase site. The palette is the dark theme of the application
 * (frontend/src/app/theme-preset.ts and frontend/src/styles.scss): neutral greys from Aura,
 * the basketball orange as primary, and the same attendance colours.
 */

:root {
  color-scheme: dark;
  --font: 'Geist', 'Geist Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Surfaces: the sunken page, the cards on it, and hover states. */
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-hover: #262626;
  --border: #404040;
  --border-soft: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a3a3a3;

  /* Primary of the dark theme: orange 400 with dark text on it. */
  --primary: #fb923c;
  --primary-hover: #fdba74;
  --primary-contrast: #431407;
  --brand-soft: oklch(0.3 0.06 50);

  /* Attendance colours, dark variant. */
  --yes: oklch(0.7 0.15 155);
  --yes-contrast: oklch(0.16 0.03 155);
  --yes-soft: oklch(0.3 0.06 155);
  --no: oklch(0.7 0.17 25);
  --no-contrast: oklch(0.16 0.03 25);
  --no-soft: oklch(0.3 0.07 25);
  --pending: oklch(0.8 0.13 80);

  --radius-md: 0.5rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1rem;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-raised: 0 30px 80px rgb(0 0 0 / 60%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.sprite {
  display: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ---- Small shared pieces: dots, pills, buttons, eyebrows. ---- */

.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.dot--brand {
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent);
}

.dot--yes {
  background: var(--yes);
}

.dot--no {
  background: var(--no);
}

.dot--pending {
  background: var(--pending);
}

.yes {
  color: var(--yes);
}

.no {
  color: var(--no);
}

.accent {
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.button:hover {
  transform: translateY(-1px);
}

.button--sm {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.button--primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.button--primary:hover {
  background: var(--primary-hover);
}

.button--ghost {
  border-color: var(--border);
  background: var(--surface);
}

.button--ghost:hover {
  background: var(--surface-hover);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: 0.05em;
}

.pill--yes {
  background: var(--yes);
  color: var(--yes-contrast);
}

.pill--no {
  background: var(--no);
  color: var(--no-contrast);
}

/* ---- Brand mark, the same basketball as the app. ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand--sm {
  font-size: 1rem;
}

.logo {
  width: 1.85rem;
  height: 1.85rem;
}

.brand--sm .logo {
  width: 1.4rem;
  height: 1.4rem;
}

.logo__ball {
  fill: var(--primary);
}

.logo__seams {
  stroke: var(--primary-contrast);
}

/* ---- Top bar: the header of the app, blurred over the page. ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.nav__links {
  display: none;
  gap: 0.25rem;
  margin-inline-start: 1rem;
}

.nav__links a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.nav__links a:hover,
.nav__links a.is-active {
  background: var(--brand-soft);
  color: var(--text);
}

.nav .button {
  margin-inline-start: auto;
}

@media (min-width: 48rem) {
  .nav__links {
    display: flex;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero__glow {
  position: absolute;
  inset: -20rem -10rem auto auto;
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(251 146 60 / 22%), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.lead strong {
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__facts .icon {
  color: var(--primary);
}

.hero__visual {
  position: relative;
  min-height: 28rem;
}

.hero__desktop {
  position: absolute;
  top: 2rem;
  left: 18%;
  width: 115%;
  opacity: 0.85;
}

.hero__phone {
  position: relative;
  width: min(15rem, 60vw);
  margin-inline-start: 2%;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.floating-chip--yes {
  top: 46%;
  left: min(13rem, 52vw);
}

.floating-chip--yes .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  border-radius: 0.4rem;
  background: var(--yes);
  color: var(--yes-contrast);
  stroke-width: 2.4;
}

.floating-chip--tally {
  right: 0;
  bottom: 1.5rem;
  gap: 1rem;
  animation-delay: -3s;
}

.floating-chip--tally span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.floating-chip--tally b {
  font-size: 1.1rem;
}

@media (min-width: 60rem) {
  .hero {
    padding: 5rem 0 6rem;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
  }

  .hero__visual {
    min-height: 34rem;
  }

  .hero__phone {
    width: 16.5rem;
  }

  .hero__desktop {
    top: 3rem;
    left: 25%;
    width: 130%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
}

@keyframes float {
  50% {
    transform: translateY(-0.5rem);
  }
}

/* ---- Device frames around the screenshots. ---- */

.device {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-raised);
}

.device--phone {
  padding: 0.45rem;
  border-radius: 2.4rem;
  background: #1f1f1f;
  box-shadow:
    inset 0 0 0 1px #333,
    var(--shadow-raised);
}

.device--phone img {
  border-radius: 1.95rem;
}

.device--desktop {
  border-radius: var(--radius-lg);
}

.device__bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}

.device__bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border);
}

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

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 1rem 0 4rem;
}

.section--raised {
  border-block: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #111 0%, var(--bg) 100%);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section__head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 700;
}

.section__lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.075rem;
}

/* ---- Before / after. ---- */

.compare {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.compare__card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.compare__card--after {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.compare__label {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare__label--brand {
  color: var(--primary);
}

.compare__arrow {
  display: grid;
  place-items: center;
  color: var(--primary);
  transform: rotate(90deg);
}

.compare__arrow .icon {
  width: 2rem;
  height: 2rem;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.925rem;
}

.chat__msg {
  align-self: flex-end;
  max-width: 85%;
  padding: 0.4rem 0.75rem;
  border-radius: 0.9rem 0.9rem 0.25rem;
  background: #1e3a2f;
}

.chat__msg--in {
  align-self: flex-start;
  border-radius: 0.9rem 0.9rem 0.9rem 0.25rem;
  background: var(--surface-hover);
}

.tally {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.tally__item b {
  display: block;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.tally__item span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tally__bar {
  display: flex;
  grid-column: 1 / -1;
  gap: 0;
  height: 0.55rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
}

.tally__bar i:first-child {
  background: var(--yes);
}

.tally__bar i:last-child {
  background: var(--no);
}

.compare__note {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 52rem) {
  .compare {
    grid-template-columns: 1fr auto 1.25fr;
  }

  .compare__arrow {
    transform: none;
  }
}

/* ---- Steps and ease of use. ---- */

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

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.step:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  transform: translateY(-2px);
}

.step__num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--border);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.step__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  padding: 0.6rem;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.ease {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.ease__item {
  display: flex;
  gap: 1rem;
}

.ease__item > .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--primary);
}

.ease h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.ease p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

@media (min-width: 52rem) {
  .steps,
  .ease {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Feature showcases: copy beside a screenshot, alternating sides. ---- */

.showcase {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.showcase + .showcase {
  margin-top: 6rem;
}

.showcase__copy h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.showcase__copy > p:not(.tag) {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

.tag .icon {
  color: var(--primary);
}

.checks {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-inline-start: 1.9rem;
  font-size: 0.95rem;
}

.checks li::before {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.35rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e1a' 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 / 0.8rem no-repeat,
    var(--yes);
}

.showcase__phone {
  width: min(17rem, 78vw);
  margin-inline: auto;
}

.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 30rem;
  margin-inline: auto;
}

.phone-pair .device:last-child {
  transform: translateY(2.5rem);
}

@media (min-width: 56rem) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .showcase--reverse > :first-child {
    order: 2;
  }

  .showcase--wide {
    grid-template-columns: 1fr;
  }

  .showcase--wide .showcase__copy {
    max-width: 40rem;
  }
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.feature > .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* ---- Gallery: a horizontal strip of screenshots, scrolled by hand. ---- */

.gallery {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem max(1rem, calc((100vw - 72rem) / 2 + 1.5rem)) 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--border) transparent;
}

.gallery__item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.75rem;
  width: 14rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  text-align: start;
  cursor: zoom-in;
  scroll-snap-align: center;
}

.gallery__item--desktop {
  width: min(36rem, 85vw);
}

.gallery__item img {
  height: 30rem;
  width: auto;
  max-width: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: top;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.gallery__item--desktop img {
  width: 100%;
  height: 30rem;
}

.gallery__item:hover img {
  border-color: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 40rem) {
  .gallery__item img,
  .gallery__item--desktop img {
    height: 24rem;
  }

  .gallery__item {
    width: 11rem;
  }
}

/* ---- Roles. ---- */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  list-style: none;
}

.role {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.role h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.role h3::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
}

.role p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

@media (min-width: 60rem) {
  .role {
    border-bottom: 0;
  }

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

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

.price {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.price h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 700;
}

.price__card {
  position: relative;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgb(251 146 60 / 16%), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-raised);
}

.price__amount {
  font-size: clamp(4rem, 12vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price__amount span {
  color: var(--primary);
}

.price__unit {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.price__note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (min-width: 56rem) {
  .price {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

/* ---- Contact card, under the final call to action. ---- */

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  max-width: 32rem;
  margin: 2.5rem auto 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  text-align: start;
}

.contact-card__avatar {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--brand-soft);
  font-weight: 700;
}

.contact-card__name {
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-card__role {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-card__email {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 1.05rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: border-color 0.15s;
}

.contact-card__email:hover {
  border-color: var(--primary);
}

.contact-card__email .icon {
  color: var(--primary);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 0.75rem;
}

.contact-card__actions .button {
  flex: 1 1 12rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.contact-card__actions .is-copied {
  border-color: var(--yes);
  color: var(--yes);
}

/* ---- Final call to action. ---- */

.cta {
  padding-block: 1rem;
  text-align: center;
}

.cta__ball {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.cta h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cta > p {
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

  50% {
    transform: translateY(-1.25rem) rotate(25deg);
  }
}

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

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer a {
  text-decoration: none;
}

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

/* ---- Lightbox for the gallery: full screen, one screenshot at a time. ---- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 88%);
  backdrop-filter: blur(6px);
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  margin: 0;
  padding: 4rem 1rem 1.5rem;
  touch-action: pan-y;
}

.lightbox__stage img {
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.15s;
}

.lightbox__stage img.is-loading {
  opacity: 0.3;
}

.lightbox__caption {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.lightbox__title {
  font-weight: 600;
}

.lightbox__count {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
}

.lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  transform: translateY(-50%);
}

.lightbox__nav .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--prev .icon {
  transform: rotate(180deg);
}

.lightbox__nav--next {
  right: 1rem;
}

/* On a phone, the arrows move below the image so they never cover it; swiping works too. */
@media (max-width: 40rem) {
  .lightbox__stage {
    padding: 4rem 0.75rem 5.5rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

@media (min-width: 40rem) {
  .lightbox__stage {
    padding-inline: 5.5rem;
  }
}

/* ---- Reveal on scroll, only when the script runs. ---- */

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

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