:root {
  --sky-25: #f6fbff;
  --sky-50: #ebf6ff;
  --sky-100: #d7ecff;
  --sky-200: #b5dcff;
  --sky-300: #8cc7f7;
  --sky-400: #59a7e6;
  --sky-700: #115a8c;
  --ink-900: #0f2233;
  --ink-700: #28445c;
  --white: #ffffff;
  --border: #c8e3f8;
  --card-shadow: 0 18px 40px rgba(9, 63, 104, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink-900);
  background: radial-gradient(circle at top right, #d6f0ff 0%, #f7fbff 48%, #f0f8ff 100%);
}

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

a {
  color: var(--sky-700);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #f59f25;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  background: var(--ink-900);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  border-radius: 0 0 8px 0;
  z-index: 30;
}

.skip-link:focus {
  top: 0;
}

.background-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(130, 198, 244, 0.35));
}

.bubble-a {
  width: 280px;
  height: 280px;
  top: -70px;
  left: -40px;
}

.bubble-b {
  width: 360px;
  height: 360px;
  right: -90px;
  top: 120px;
}

.bubble-c {
  width: 220px;
  height: 220px;
  left: 35%;
  bottom: 14%;
}

.bubble-d {
  width: 280px;
  height: 280px;
  right: 26%;
  bottom: -120px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(225, 242, 255, 0.28), rgba(255, 255, 255, 0.58));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(243, 249, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.top-nav {
  min-height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

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

.button,
.text-button,
.icon-button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.84rem 1.5rem;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(120deg, #3293dc, #5eb8ff);
  box-shadow: 0 12px 26px rgba(41, 131, 199, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 109, 168, 0.38);
}

.button:active {
  transform: translateY(0);
}

.button-small {
  padding: 0.62rem 1.1rem;
  font-size: 0.95rem;
}

.text-button {
  padding: 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  color: var(--sky-700);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  align-items: center;
  padding-top: 3.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--ink-700);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

h3 {
  font-size: 1.1rem;
}

.hero-text {
  margin: 1rem 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 55ch;
  color: var(--ink-700);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.micro-disclaimer {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.hero-art {
  justify-self: center;
  max-width: 480px;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tier-card,
.testimonial-card,
.steps-grid li,
.faq-item,
.flavor-wall-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.tier-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.tier-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sky-700);
}

.tier-joke {
  margin: 0;
  color: var(--ink-700);
  min-height: 3rem;
}

.flavor-wall-wrap {
  padding: 1.4rem;
  display: grid;
  gap: 0.65rem;
}

#flavor-wall {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-900);
}

.steps-grid {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.steps-grid li {
  padding: 1.1rem;
}

.steps-grid p {
  margin: 0.7rem 0 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.testimonial-card {
  padding: 1rem;
}

.testimonial-card p {
  margin: 0 0 0.6rem;
  color: var(--ink-700);
  line-height: 1.6;
}

.testimonial-card span {
  font-size: 0.9rem;
  color: var(--sky-700);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1rem 1.1rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.block-disclaimer {
  margin: 1.2rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed #8bc1e8;
  background: #f5fbff;
  color: var(--ink-700);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2.2rem;
  background: rgba(239, 247, 255, 0.7);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-content p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #17334a;
  color: var(--white);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  box-shadow: 0 10px 22px rgba(7, 30, 49, 0.3);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(90vw, 360px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.confetti-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 120ms ease;
}

.confetti-overlay.is-active {
  opacity: 1;
}

.celebration-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 34, 53, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 50;
}

.celebration-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(96vw, 560px);
  background: linear-gradient(180deg, #fcfeff, #eaf6ff);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 32px 56px rgba(7, 45, 75, 0.35);
  padding: 1.5rem;
  overflow: hidden;
}

.icon-button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0.42rem 0.78rem;
  color: var(--ink-700);
  font-weight: 700;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

#modal-message {
  margin: 0.95rem 0 0;
  color: var(--ink-700);
  max-width: 40ch;
}

#modal-done {
  margin-top: 1rem;
}

.receipt-card {
  margin-top: 0.95rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #b3d8f1;
  background: linear-gradient(180deg, #ffffff, #f4faff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed #9bc9ea;
}

.receipt-merchant {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.receipt-subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.receipt-meta p {
  margin: 0;
  display: grid;
  gap: 0.12rem;
}

.receipt-meta span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-700);
}

.receipt-meta strong {
  font-family: "Courier New", monospace;
  font-size: 0.84rem;
}

.receipt-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.receipt-lines th,
.receipt-lines td {
  text-align: left;
  padding: 0.45rem 0.1rem;
  border-bottom: 1px dashed #c5e1f6;
}

.receipt-lines th:last-child,
.receipt-lines td:last-child {
  text-align: right;
  white-space: nowrap;
}

.receipt-lines thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-700);
}

.receipt-lines tfoot th,
.receipt-lines tfoot td {
  font-weight: 800;
  border-bottom: 0;
  padding-top: 0.7rem;
}

.receipt-note {
  margin: 0.78rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-700);
  border-top: 1px dashed #b2d8f0;
  padding-top: 0.6rem;
}

.confetti-zone {
  margin-top: 0.75rem;
}

.confetti-zone:empty {
  display: none;
}

.confetti-zone .micro-disclaimer {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-700);
  border: 1px dashed #9fcaea;
  border-radius: 10px;
  background: #f7fcff;
  padding: 0.55rem 0.65rem;
}

.confetti {
  position: absolute;
  top: -12vh;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--drift, 0), var(--fall-distance, 110vh), 0) rotate(680deg);
    opacity: 0;
  }
}

body.modal-open {
  overflow: hidden;
}

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

  .hero-art {
    order: -1;
    max-width: 370px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 3.4rem 0;
  }

  .top-nav {
    min-height: 4rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .button-small {
    font-size: 0.86rem;
  }

  .modal-panel {
    padding: 1.1rem;
  }

  .receipt-head {
    display: block;
  }

  .receipt-subtitle {
    margin-top: 0.2rem;
  }

  .receipt-meta {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .background-bubbles {
    display: none;
  }
}
