/* Joke Rabbit — Electric Citrus brand tokens & site chrome */

:root {
  --surface: #f6faf9;
  --surface-low: #f0f4f3;
  --surface-container: #ebefee;
  --ink: #181c1c;
  --ink-muted: #3e4949;
  --outline: #6e7979;
  --outline-variant: #bdc9c8;
  --primary: #006565;
  --primary-bright: #008080;
  --on-primary: #ffffff;
  --citrus: #fcd400;
  --sun: #ffd700;
  --coral: #ff7f50;
  --royal: #4169e1;
  --mint-mid: #e8f5f4;
  --sky-tint: #f0f8ff;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 48px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px rgba(0, 101, 101, 0.12);
  --shadow-pill: 0 10px 28px rgba(0, 101, 101, 0.28);
  --font: "Quicksand", system-ui, sans-serif;
  --max: 68rem;
  --legal-max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-bright);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

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

/* —— Site chrome —— */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.site-header a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-header a.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--primary);
}

.site-footer {
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--mint-mid) 0%, #dceeee 100%);
  border-top: 1px solid rgba(189, 201, 200, 0.6);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer .brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer .brand-lockup img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.site-footer .brand-lockup strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-footer .brand-lockup span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-weight: 600;
}

.site-footer nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--primary);
}

.site-footer .fine {
  width: 100%;
  margin: 0;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--outline);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
  box-shadow: var(--shadow-pill);
}

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

.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"] {
  cursor: default;
  opacity: 0.85;
  transform: none;
  pointer-events: none;
}

.btn-secondary {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(0, 128, 128, 0.35);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--primary-bright);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* —— Landing hero —— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--surface) 0%,
    var(--mint-mid) 42%,
    var(--sky-tint) 100%
  );
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.hero-atmosphere::before {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -8%;
  right: -5%;
  background: radial-gradient(circle, rgba(252, 212, 0, 0.55), transparent 70%);
}

.hero-atmosphere::after {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  bottom: 5%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 127, 80, 0.35), transparent 70%);
}

.ambient-layer,
.carousel-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
  animation: float-drift var(--dur, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.ambient-bubble.teal {
  background: radial-gradient(circle at 30% 30%, rgba(0, 128, 128, 0.45), rgba(0, 101, 101, 0.15));
}

.ambient-bubble.citrus {
  background: radial-gradient(circle at 30% 30%, rgba(252, 212, 0, 0.55), rgba(255, 215, 0, 0.12));
}

.ambient-bubble.coral {
  background: radial-gradient(circle at 30% 30%, rgba(255, 127, 80, 0.5), rgba(255, 127, 80, 0.1));
}

.ambient-bubble.royal {
  background: radial-gradient(circle at 30% 30%, rgba(65, 105, 225, 0.4), rgba(65, 105, 225, 0.08));
}

@keyframes float-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(var(--dx, 18px), var(--dy, -22px), 0) scale(1.05);
  }
  66% {
    transform: translate3d(calc(var(--dx, 18px) * -0.6), calc(var(--dy, -22px) * 0.4), 0)
      scale(0.96);
  }
}

.content-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 14rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(10px);
  will-change: transform, opacity;
  animation: bubble-carousel var(--dur, 22s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.content-bubble[data-tone="citrus"] {
  border-color: rgba(252, 212, 0, 0.55);
}

.content-bubble[data-tone="coral"] {
  border-color: rgba(255, 127, 80, 0.45);
}

.content-bubble[data-tone="teal"] {
  border-color: rgba(0, 128, 128, 0.4);
}

.content-bubble[data-tone="royal"] {
  border-color: rgba(65, 105, 225, 0.4);
}

@keyframes bubble-carousel {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.92);
  }
  12% {
    opacity: 1;
    transform: translate3d(var(--dx, 10px), 0, 0) scale(1);
  }
  55% {
    opacity: 1;
    transform: translate3d(calc(var(--dx, 10px) * -1), var(--dy, -18px), 0) scale(1.02);
  }
  85%,
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--dx, 10px) * 0.4), calc(var(--dy, -18px) * 1.4), 0)
      scale(0.94);
  }
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 32rem;
}

.brand-mark {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--primary);
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.hero-support {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 28rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(62vh, 520px);
}

.hero-visual img {
  width: min(88%, 420px);
  border-radius: 28%;
  filter: drop-shadow(0 28px 48px rgba(0, 101, 101, 0.22));
  animation: mascot-bob 5.5s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* —— Sections —— */

.section {
  padding: 4.5rem 1.5rem;
  position: relative;
}

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

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.section .lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.section-bits {
  background: linear-gradient(160deg, #fff9f5 0%, #ffefe6 45%, #f8fdfc 100%);
}

.section-sets {
  background: linear-gradient(160deg, #f3f7ff 0%, #e6eefc 45%, #eaf6f5 100%);
}

.section-learn {
  background: linear-gradient(160deg, var(--surface) 0%, var(--mint-mid) 100%);
}

.section-plans {
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--surface) 100%);
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin-top: 0.25rem;
}

.feature-orb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--on-primary);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.feature-orb.coral {
  background: linear-gradient(135deg, #ff8b60, var(--coral));
}

.feature-orb.royal {
  background: linear-gradient(135deg, var(--royal), #5b8cff);
}

.feature-orb.teal {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 44rem;
}

.plan {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(189, 201, 200, 0.7);
  box-shadow: var(--shadow-soft);
}

.plan h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

.plan.open-mic h3 {
  color: var(--primary-bright);
}

.plan.headliner h3 {
  color: #6e5c00;
}

.plan.headliner {
  border-color: rgba(252, 212, 0, 0.65);
  background: linear-gradient(160deg, #fffef5 0%, #ffffff 70%);
}

/* —— Legal pages —— */

body.legal-page {
  background: linear-gradient(160deg, var(--surface) 0%, var(--mint-mid) 55%, var(--sky-tint) 100%);
  min-height: 100vh;
}

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

.legal-header a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.legal-header a.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.legal-header .back {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
}

.legal-header .back:hover {
  color: var(--primary);
}

.legal-main {
  max-width: var(--legal-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
}

.legal-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary);
}

.legal-main h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-main h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-main .meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.legal-main table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin: 0.75rem 0;
}

.legal-main th,
.legal-main td {
  border: 1px solid var(--outline-variant);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.legal-main th {
  background: var(--surface-low);
  font-weight: 700;
}

.legal-main .note {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(189, 201, 200, 0.7);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.legal-main ol,
.legal-main ul {
  padding-left: 1.25rem;
}

.legal-footer {
  max-width: var(--legal-max);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.legal-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

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

/* —— Responsive —— */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
    order: 1;
  }

  .hero-visual {
    order: 0;
    min-height: min(42vh, 320px);
  }

  .hero-visual img {
    width: min(70%, 280px);
  }

  .hero-support {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .content-bubble {
    font-size: 0.82rem;
    max-width: 10.5rem;
    padding: 0.7rem 0.95rem;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-header nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 1rem;
  }

  .site-header .logo span {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .cta-group {
    width: 100%;
  }
}

/* —— Reduced motion —— */

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

  .ambient-bubble,
  .content-bubble,
  .hero-visual img,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .content-bubble {
    opacity: 0.9;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
