:root {
  --color-primary-50: #fef7f3;
  --color-primary-100: #feeee7;
  --color-primary-200: #fcddcf;
  --color-primary-500: #f38966;
  --color-primary-600: #e45c3a;
  --color-primary-700: #c1381f;
  --color-secondary-400: #66c9d6;
  --color-secondary-500: #2dadbe;
  --color-secondary-600: #1e828f;
  --color-neutral-50: #fafaf9;
  --color-neutral-100: #f3f2f1;
  --color-neutral-200: #e8e5e3;
  --color-neutral-400: #b2a8a3;
  --color-neutral-500: #8b7c74;
  --color-neutral-600: #6d5d55;
  --color-neutral-950: #171412;
  --color-page: var(--color-neutral-50);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-surface: 0 10px 24px rgb(23 20 18 / 0.08);
  --shadow-ticket: 0 18px 18px rgb(23 20 18 / 0.18);
  --radius-surface: 1.75rem;
  --radius-button: 1rem;
  --max-width: 72rem;
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-page);
  color: var(--color-neutral-950);
  font-family:
    'Rubik',
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding-inline: max(1.5rem, env(safe-area-inset-left, 0px))
    max(1.5rem, env(safe-area-inset-right, 0px));
  background: rgb(250 250 249 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-neutral-200);
  animation: fade-in 700ms var(--ease-out-expo) both;
}

.site-header .container {
  width: 100%;
  max-width: var(--max-width);
}

@media (width >= 48rem) {
  .site-header {
    padding-inline: max(2rem, env(safe-area-inset-left, 0px))
      max(2rem, env(safe-area-inset-right, 0px));
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-neutral-600);
}

.nav-desktop a:hover {
  color: var(--color-neutral-950);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (width >= 48rem) {
  .nav-desktop {
    display: flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: var(--radius-button);
  border: 2px solid var(--color-neutral-950);
  border-right-width: 6px;
  border-bottom-width: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 150ms var(--ease-out-expo);
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-default {
  background: white;
  color: var(--color-neutral-950);
}

.btn-default:hover {
  background: var(--color-neutral-100);
}

.btn-primary {
  background: var(--color-primary-600);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-700);
}

.btn-sm {
  height: 2.25rem;
  padding-inline: 0.875rem;
}

/* Surfaces */

.surface {
  background: white;
  border: 2px solid var(--color-neutral-950);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-surface);
}

/* Hero */

.hero {
  padding-block: 3rem 4rem;
  overflow: hidden;
}

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

@media (width >= 56rem) {
  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-neutral-600);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-load-1 {
  animation: hero-rise 650ms var(--ease-out-expo) both;
}

.hero-load-2 {
  animation: hero-rise 650ms var(--ease-out-expo) 80ms both;
}

.hero-load-3 {
  animation: hero-rise 650ms var(--ease-out-expo) 160ms both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: hero-rise 750ms var(--ease-out-expo) 120ms both;
}

.hero-ticket-wrap {
  width: min(20rem, calc(100vw - 2.5rem));
  filter: drop-shadow(0 18px 18px rgb(23 20 18 / 0.18));
  animation: ticket-float 7s ease-in-out infinite;
}

.hero-ticket {
  --ticket-cutout: 0.8rem;
  --ticket-radius: 1.5rem;
  --ticket-pad-x: 2.75rem;
  color: var(--color-neutral-50);
  text-align: center;
}

.hero-ticket-top,
.hero-ticket-bottom {
  background: var(--color-primary-700);
}

.hero-ticket-top {
  padding: 1.1rem var(--ticket-pad-x) 0;
  background: var(--color-primary-600)
    linear-gradient(to bottom, var(--color-primary-600), var(--color-primary-700));
  clip-path: shape(
    from 0 var(--ticket-radius),
    arc to var(--ticket-radius) 0 of var(--ticket-radius) cw,
    line to calc(100% - var(--ticket-radius)) 0,
    arc to 100% var(--ticket-radius) of var(--ticket-radius) cw,
    line to 100% calc(100% - var(--ticket-cutout)),
    arc to calc(100% - var(--ticket-cutout)) 100% of var(--ticket-cutout) ccw,
    line to var(--ticket-cutout) 100%,
    arc to 0 calc(100% - var(--ticket-cutout)) of var(--ticket-cutout) ccw,
    close
  );
}

.hero-ticket-bottom {
  padding: 1.8rem var(--ticket-pad-x) 1rem;
  clip-path: shape(
    from 0 var(--ticket-cutout),
    arc to var(--ticket-cutout) 0 of var(--ticket-cutout) ccw,
    line to calc(100% - var(--ticket-cutout)) 0,
    arc to 100% var(--ticket-cutout) of var(--ticket-cutout) ccw,
    line to 100% calc(100% - var(--ticket-radius)),
    arc to calc(100% - var(--ticket-radius)) 100% of var(--ticket-radius) cw,
    line to var(--ticket-radius) 100%,
    arc to 0 calc(100% - var(--ticket-radius)) of var(--ticket-radius) cw,
    close
  );
}

.hero-ticket-label {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-neutral-50);
}

.hero-ticket-number {
  margin: 0.2rem 0 0.4rem;
  color: var(--color-neutral-50);
}

.hero-ticket-board {
  display: inline-flex;
  align-items: flex-start;
  font-size: 4rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-ticket-suffix {
  margin-top: 0.7rem;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-ticket-perforation {
  height: 1px;
  margin: 0 calc(var(--ticket-pad-x) * -1);
  background-image: repeating-linear-gradient(
    to right,
    rgb(255 255 255 / 0.7) 0 0.7rem,
    transparent 0.7rem 1.05rem
  );
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--color-neutral-100);
  border-block: 1px solid var(--color-neutral-200);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--color-neutral-600);
  font-size: 0.9375rem;
}

/* Steps */

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width >= 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 2px solid var(--color-neutral-950);
  background: var(--color-secondary-400);
  font-size: 0.875rem;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  line-height: 1.55;
}

/* Features */

.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width >= 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 2px solid var(--color-neutral-950);
  background: var(--color-primary-100);
  font-size: 1.125rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  line-height: 1.55;
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (width >= 48rem) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card.featured {
  background: white;
  outline: 3px solid var(--color-primary-600);
  outline-offset: 2px;
}

.price-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 2px solid var(--color-neutral-950);
  background: var(--color-primary-100);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.price-amount {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-neutral-950);
}

.price-amount span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-neutral-500);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-neutral-600);
}

.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--color-secondary-500);
}

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

/* CTA band */

.cta-band {
  padding-block: 4rem;
}

.cta-inner {
  padding: 2.5rem 2rem;
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-inner p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--color-neutral-600);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--color-neutral-200);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
}

@media (width >= 40rem) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--color-neutral-950);
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease-out-expo),
    transform 600ms var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease-out-expo),
    transform 600ms var(--ease-out-expo);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

.reveal-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticket-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-4px) rotate(-2deg);
  }
}

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

  .site-header,
  .hero-load-1,
  .hero-load-2,
  .hero-load-3,
  .hero-visual {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-ticket-wrap {
    animation: none;
    transform: rotate(-5deg);
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
