/* ==========================================================================
   SumoMath — James Charles Flash Anzan Landing Page
   Mobile-first · No Bootstrap · Outfit + brand tokens
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #246bfd;
  --color-primary-dark: #0846c6;
  --color-accent: #5b8cff;
  --color-coral: #ff5a6e;
  --color-navy: #0b1224;
  --color-navy-mid: #151e38;
  --color-deep-purple: #1a0f3c;
  --color-heading: #0f172a;
  --color-body: #475569;
  --color-muted: #64748b;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-surface: #ffffff;
  --color-surface-soft: #f5f7fb;
  --color-success: #0f9d6e;
  --color-error: #d64545;
  --color-focus: #ffd166;

  /* Gradients */
  --gradient-hero: linear-gradient(155deg, #0b1224 0%, #151e38 42%, #2a1468 100%);
  --gradient-accent: linear-gradient(135deg, #246bfd 0%, #7c4dff 100%);
  --gradient-number: linear-gradient(180deg, #ffffff 0%, #c7d7ff 100%);

  /* Type */
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-flash: clamp(4.5rem, 3rem + 8vw, 7.5rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 4rem;
  --space-9: 5.5rem;
  --container: 1100px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 18px 50px rgba(15, 23, 42, 0.14);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tap-min: 44px;
}

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

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

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-body);
  background: var(--color-surface);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--color-surface);
  color: var(--color-heading);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

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

.section {
  padding: var(--space-8) 0;
}

.section--soft {
  background: var(--color-surface-soft);
}

.section--dark {
  background: var(--gradient-hero);
  color: #e8eeff;
}

.section__eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section--dark .section__eyebrow {
  color: #9ec0ff;
}

.section__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-2xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  font-weight: 700;
}

.section--dark .section__title {
  color: #fff;
}

.section__lead {
  margin: 0;
  max-width: 42rem;
  font-size: var(--fs-md);
  color: var(--color-body);
}

.section--dark .section__lead {
  color: rgba(232, 238, 255, 0.84);
}

.section__header {
  margin-bottom: var(--space-6);
  max-width: 40rem;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 18, 36, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand__text {
  display: none;
}

@media (min-width: 480px) {
  .brand__text {
    display: inline;
  }
}

.header-nav {
  display: none;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
    align-items: center;
  }
}

.header-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.header-nav a:hover {
  color: #fff;
}

.header-cta {
  min-height: var(--tap-min);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-min);
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

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

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(36, 107, 253, 0.35);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 34px rgba(36, 107, 253, 0.45);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn--light:hover {
  color: var(--color-primary-dark);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--color-heading);
  border-color: rgba(15, 23, 42, 0.14);
}

.btn--ghost-dark:hover {
  color: var(--color-heading);
  border-color: var(--color-primary);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 520px) {
  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }
}

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

.hero {
  position: relative;
  overflow: visible;
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-7) 0 var(--space-8);
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-4);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7cbff;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-3xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero__support {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: #d7e2ff;
  font-weight: 500;
  max-width: 34rem;
}

.hero__text {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-md);
  color: rgba(232, 238, 255, 0.8);
  max-width: 36rem;
}

.hero__disclaimer {
  margin: var(--space-5) 0 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: rgba(232, 238, 255, 0.55);
  max-width: 34rem;
}

.hero-embed {
  width: min(100%, 325px);
  margin-inline: auto;
}

.hero-embed .tiktok-embed {
  margin: 0 auto !important;
}

@media (min-width: 960px) {
  .hero-embed {
    width: 325px;
    justify-self: end;
  }
}

/* -------------------------------------------------------------------------- */
/* Three steps                                                                */
/* -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.step {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-heading);
  font-size: var(--fs-md);
  line-height: 1.3;
}

.step p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-body);
}

.step__visual {
  margin-top: var(--space-4);
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mini-flash {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  animation: mini-flash 2s ease-in-out infinite;
}

@keyframes mini-flash {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  40%, 60% { opacity: 1; transform: scale(1); }
}

.mini-mind {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  position: relative;
}

.mini-mind::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(36, 107, 253, 0.2);
  animation: mind-pulse 2.2s ease-in-out infinite;
}

@keyframes mind-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

.mini-answer {
  font-weight: 700;
  color: var(--color-success);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .mini-flash,
  .mini-mind::after {
    animation: none;
    opacity: 1;
  }
}

/* -------------------------------------------------------------------------- */
/* Finger movements + SumoMath progression graphic                            */
/* -------------------------------------------------------------------------- */

.fingers-layout {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .fingers-layout {
    grid-template-columns: 1fr 1.15fr;
  }
}

.note-callout {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(36, 107, 253, 0.06);
  border-left: 4px solid var(--color-primary);
  color: var(--color-heading);
  font-size: var(--fs-sm);
}

.progression-band {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: #f4efe6;
  line-height: 0;
  /* Don't stretch to match text column height */
  align-self: center;
}

.progression-band__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Skill cards                                                                */
/* -------------------------------------------------------------------------- */

.skill-grid {
  display: grid;
  gap: var(--space-4);
}

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

.skill-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.skill-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(36, 107, 253, 0.1);
  color: var(--color-primary);
}

.skill-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-heading);
  font-size: var(--fs-md);
}

.skill-card p {
  margin: 0;
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.about-panel {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 800px) {
  .about-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.about-panel h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xl);
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.about-panel p {
  margin: 0 0 var(--space-3);
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.about-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--color-heading);
  font-weight: 550;
}

.about-points li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gradient-accent);
}

/* -------------------------------------------------------------------------- */
/* Conversion                                                                 */
/* -------------------------------------------------------------------------- */

.conversion {
  text-align: center;
  padding: var(--space-8) 0;
}

.conversion .section__title {
  max-width: 18ch;
  margin-inline: auto;
}

.conversion .section__lead {
  margin: 0 auto var(--space-6);
}

.conversion .btn-row {
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                        */
/* -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item__button {
  width: 100%;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 650;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(36, 107, 253, 0.1);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-item__button[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__panel {
  padding: 0 1.15rem 1.15rem;
  color: var(--color-body);
  font-size: var(--fs-sm);
}

.faq-item__panel[hidden] {
  display: none;
}

.faq-item__panel p {
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Sticky mobile CTA                                                          */
/* -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(11, 18, 36, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(110%);
  transition: transform 0.28s var(--ease);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  width: min(100%, 520px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

body.has-sticky-cta {
  padding-bottom: 5.5rem;
}

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

.site-footer {
  background: var(--color-navy);
  color: rgba(232, 238, 255, 0.72);
  padding: var(--space-7) 0 var(--space-6);
}

.site-footer a {
  color: #c7d7ff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--space-4);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
}

.footer-disclaimer {
  margin: 0 0 var(--space-5);
  max-width: 46rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-sm);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Cookie banner                                                              */
/* -------------------------------------------------------------------------- */

#cookie-consent-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.97);
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

#cookie-consent-banner.show {
  display: block;
}

#cookie-consent-banner p {
  margin: 0 0 0.85rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

#cookie-consent-banner a {
  color: var(--color-coral);
}

#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 520px) {
  #cookie-consent-banner .cookie-actions {
    flex-direction: row;
    justify-content: center;
  }
}

#cookie-consent-banner button {
  min-height: var(--tap-min);
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#cookie-consent-banner .accept {
  background: var(--color-coral);
  color: #fff;
}

#cookie-consent-banner .decline {
  background: #95a5a6;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                  */
/* -------------------------------------------------------------------------- */

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

.text-balance {
  text-wrap: balance;
}
