/* ===========================================================
   Gomath Technologies — design tokens
   =========================================================== */
:root {
  --background: oklch(0.14 0.025 262);
  --foreground: oklch(0.97 0.006 260);
  --card: oklch(0.19 0.03 262);
  --secondary: oklch(0.23 0.03 262);
  --border: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 20%);
  --muted-foreground: oklch(0.68 0.03 260);

  --primary: oklch(0.62 0.19 291);
  --primary-foreground: oklch(0.98 0.01 260);
  --accent: oklch(0.78 0.13 199);

  --gradient-brand: linear-gradient(135deg, oklch(0.62 0.19 291), oklch(0.78 0.13 199));
  --gradient-hero: radial-gradient(ellipse 60% 50% at 50% -10%, oklch(0.62 0.19 291 / 30%), transparent 65%);
  --shadow-glow: 0 0 0 1px oklch(0.78 0.13 199 / 25%), 0 12px 40px oklch(0.62 0.19 291 / 30%);

  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-width: 1180px;
}

/* ===========================================================
   Reset / base
   =========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================================================
   Reusable primitives
   =========================================================== */
.glass-card {
  background: oklch(1 0 0 / 4%);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.25rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  box-shadow: 0 8px 24px oklch(0.62 0.19 291 / 35%);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--foreground);
}
.btn-outline:hover { background: oklch(1 0 0 / 6%); border-color: var(--accent); }

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.875rem; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.14 0.025 262 / 70%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }

.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44Px;
  border-radius: 0.6rem;
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  flex-shrink: 0;
}


.brand-logo {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}
.main-nav a:hover { color: var(--foreground); }

@media (min-width: 860px) {
  .main-nav { display: flex; }
}

/* ===========================================================
   Confirmation banner
   =========================================================== */
.banner-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.banner-wrap.open { max-height: 200px; }

.banner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: oklch(0.78 0.13 199 / 12%);
  border-bottom: 1px solid oklch(0.78 0.13 199 / 30%);
  color: var(--foreground);
  opacity: 0;
  transition: opacity 0.4s ease 0.05s;
}
.banner-wrap.open .banner { opacity: 1; }

.banner p { font-size: 0.92rem; line-height: 1.5; }
.banner strong { color: var(--accent); }

.banner-close {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  flex-shrink: 0;
  padding: 0.2rem;
  border-radius: 0.4rem;
  display: flex;
}
.banner-close:hover { color: var(--foreground); }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 6%);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2rem, 5.4vw, 3.75rem);
  line-height: 1.1;
  max-width: 18ch;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted-foreground);
}

.hero-ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.trust-grid {
  margin-top: 3.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.trust-card svg { color: var(--accent); }

/* ===========================================================
   Bundle selector
   =========================================================== */
.bundles { padding: 5rem 0; }

.bundles h2, .how h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted-foreground);
  max-width: 56ch;
  margin: 0.9rem auto 0;
  font-size: 1rem;
}

.bundle-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 920px) {
  .bundle-grid { grid-template-columns: repeat(3, 1fr); }
}

.bundle-card {
  position: relative;
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
}
.bundle-card.revealed { opacity: 1; transform: translateY(0); }

.bundle-card.selected {
  border-color: oklch(0.78 0.13 199 / 45%);
  box-shadow: var(--shadow-glow);
}

.bundle-card .badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: oklch(0.78 0.13 199 / 15%);
  color: var(--accent);
  border: 1px solid oklch(0.78 0.13 199 / 35%);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.bundle-card h3 { font-size: 1.2rem; padding-right: 5rem; }

.bundle-card .tagline {
  margin-top: 0.6rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  min-height: 2.6em;
}

.price-block {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.price {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
}

.price-note {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.feature-list {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--foreground);
}
.feature-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }

.toggle-btn {
  margin-top: 1.75rem;
  width: 100%;
}

.bundle-card.selected .toggle-btn {
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  border-color: transparent;
}

/* ===========================================================
   How it works
   =========================================================== */
.how {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: oklch(1 0 0 / 2%);
}

.steps-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card { display: flex; flex-direction: column; align-items: flex-start; }

.step-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: oklch(1 0 0 / 5%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.step-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.step-card h3 { font-size: 1.05rem; margin-top: 0.45rem; }

.step-card p {
  margin-top: 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  padding: 4.5rem 0 9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-blurb {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-link {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.footer-link:hover { color: var(--accent); }

.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: 0.9rem;
}
.footer-address svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--accent); }

.footer-security {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.87rem;
  margin-bottom: 0.9rem;
}
.footer-security svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--accent); }

.copyright {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  margin-top: 3.5rem;
}

/* ===========================================================
   Sticky checkout bar
   =========================================================== */
.checkout-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 140%);
  width: calc(100% - 2rem);
  max-width: 60rem;
  z-index: 60;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.checkout-bar.visible { transform: translate(-50%, 0); }

.checkout-inner {
  background: oklch(0.19 0.03 262 / 85%);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-glow);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkout-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.checkout-count { font-weight: 600; font-size: 0.92rem; }

.checkout-names {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.checkout-action {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.checkout-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.checkout-total-label {
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.checkout-total-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .checkout-inner { flex-direction: column; align-items: stretch; }
  .checkout-info { order: 1; }
  .checkout-action { order: 2; justify-content: space-between; width: 100%; }
  .checkout-names { max-width: 100%; white-space: normal; }
  #proceedBtn { display: none; }
  .checkout-inner::after { content: ""; }
}

@media (max-width: 640px) {
  .checkout-action { flex-wrap: wrap; }
  #proceedBtn {
    display: flex;
    width: 100%;
    order: 3;
  }
}

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bundle-card, .checkout-bar, .banner-wrap, .banner, .btn {
    transition: none !important;
  }
  .bundle-card { opacity: 1 !important; transform: none !important; }
}
