/* ZoGGster website. One stylesheet, no build step.
   Brand: Varela Round only; yellow #FFD700, cobalt #0000FF, deep #003D9A,
   light #00C8FF, white. Red is kept off standard surfaces (brand brief). */

@font-face {
  font-family: "Varela Round";
  src: url("/assets/VarelaRound-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --yellow: #ffd700;
  --yellow-dk: #f49b00;
  --yellow-soft: #fff3c4;
  --cobalt: #0000ff;
  --deep: #003d9a;
  --deep-press: #002a6b;
  --navy: #001b4d;
  --light: #00c8ff;
  --matte: #dce7f7;
  --matte-2: #cbdaf2;
  --paper: #ffffff;
  --ink: #2c2c36;
  --ink-500: #5e5e6b;
  --font: "Varela Round", "Avenir Next Rounded", system-ui, sans-serif;
  --measure: 34rem;
  /* Rows that scroll sideways line their first item up with the page text. */
  --edge: max(1rem, calc((100vw - 64rem) / 2 + 1rem));
  --dots: radial-gradient(circle, rgba(0, 0, 255, .16) 1.6px, transparent 2.2px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--matte);
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font); font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; max-width: min(var(--measure), 100%); }
a { color: var(--deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
main > section { scroll-margin-top: 56px; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.intro { font-size: 1.2rem; color: var(--ink-500); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem;
  background: rgba(220, 231, 247, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top img { height: 40px; width: auto; }
.top nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--deep); padding: .4rem 0; }
.top nav a:hover { text-decoration: underline; }
.top .cta.small { margin-left: .5rem; }
@media (max-width: 760px) { .top nav { display: none; } .top .cta.small { margin-left: auto; } }

/* ---------- Buttons ---------- */
/* Comic-book press: yellow pill, cobalt outline, a hard offset shadow. */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1.8rem; border-radius: 999px;
  font: 1.2rem var(--font); color: var(--deep-press); text-decoration: none;
  background: var(--yellow); border: 3px solid var(--deep-press);
  box-shadow: 0 6px 0 var(--deep-press);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--deep-press); }
.cta:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--deep-press); }
.cta.small { min-height: 42px; padding: 0 1.1rem; font-size: 1rem; border-width: 2px; box-shadow: 0 4px 0 var(--deep-press); }
.cta[disabled] { opacity: .7; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 56px);
  display: grid; place-items: center; text-align: center;
  padding: 3rem 1rem 5rem;
}
.hero-field {
  position: absolute; inset: -40px;
  background-image: var(--dots); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate(22px, 22px); } }
.hero-inner { position: relative; display: grid; justify-items: center; gap: 1.5rem; }
/* Clear space: 1.5x the lowercase "o" on hero placements (brief). */
.wordmark-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 24px; }
.wordmark { width: min(82vw, 560px); height: auto; margin: 2.5rem 2.5rem 1rem; animation: pop .9s cubic-bezier(.2, .9, .3, 1.35) both; }
@keyframes pop {
  0% { transform: scale(.6) rotate(-4deg); opacity: 0; }
  60% { transform: scale(1.05) rotate(1deg); opacity: 1; }
  100% { transform: none; }
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }

/* ---------- What's a ZoGG (the oracle) ---------- */
.oracle {
  position: relative; overflow: hidden;
  background: var(--deep) radial-gradient(circle, rgba(0, 200, 255, .12) 1.6px, transparent 2.2px) 0 0 / 22px 22px;
  color: var(--paper); text-align: center;
  min-height: 100svh; display: grid; place-items: center;
  padding: 5rem 1rem;
}
.oracle-inner { width: min(100%, 60rem); display: grid; justify-items: center; gap: 1.25rem; }
.oracle h2 { color: var(--yellow); font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.answer { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.25; color: var(--paper); max-width: 22ch; margin: .5rem 0 0; text-wrap: balance; }
.moments { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; max-width: 34rem; }
.moments li { color: var(--matte); font-size: 1.15rem; }
.bridge { color: var(--light); margin: 2rem 0 0; max-width: 30rem; }
.definition { margin: 0; display: grid; justify-items: center; gap: .5rem; }
.lead-in { color: var(--light); font-size: 1.25rem; margin: 0; }
.definition blockquote {
  margin: 0; color: var(--paper);
  font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.06;
  max-width: 14ch; min-height: 3.3em; display: grid; place-items: center;
  text-wrap: balance;
}
.definition blockquote[data-len="mid"] { font-size: clamp(2.3rem, 6.6vw, 4.6rem); max-width: 16ch; }
.definition blockquote[data-len="long"] { font-size: clamp(2rem, 5.4vw, 3.8rem); max-width: 18ch; }
.definition blockquote.arrive { animation: arrive .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(.97); } }

.oracle-controls { display: grid; justify-items: center; gap: .75rem; margin-top: .5rem; }
.zbutton {
  position: relative; width: 128px; height: 128px; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 38% 32%, #2e63c4, var(--navy) 70%);
  border: 4px solid var(--yellow); box-shadow: 0 8px 0 var(--deep-press), 0 18px 40px rgba(0, 0, 0, .35);
  display: grid; place-items: center; padding: 0;
  transition: transform .15s ease;
}
.zbutton img { width: 84px; height: 84px; transform: rotate(-6deg); position: relative; }
.zbutton:hover { transform: rotate(-4deg) scale(1.04); }
.zbutton.zogged { animation: squash .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes squash {
  0% { transform: scale(1); }
  30% { transform: scale(.86, .9); }
  65% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
/* The ZoGG moment: a yellow halftone flash bursting out of the Z. */
.burst {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--yellow) 2.2px, transparent 2.8px) 0 0 / 12px 12px;
}
.zbutton.zogged .burst { animation: burst .8s ease-out; }
@keyframes burst {
  0% { opacity: .95; transform: scale(.8); }
  100% { opacity: 0; transform: scale(5.5); }
}
.felt {
  font: inherit; color: var(--paper); background: transparent; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .5rem 1.2rem; min-height: 44px;
}
.felt[aria-pressed="true"] { background: var(--yellow); color: var(--deep-press); border-color: var(--yellow); }
.tally {
  margin-top: .5rem; padding: .9rem 1.4rem; border-radius: 20px;
  background: rgba(255, 255, 255, .08); max-width: 34rem;
}
.tally p { margin: 0; max-width: none; color: var(--matte); }
.tally.declared { background: var(--yellow); }
.tally.declared p { color: var(--deep-press); }
.tally.declared strong { font-weight: 400; font-size: 1.15em; display: block; margin: .2rem 0; }
.tally.declared a { color: var(--deep-press); }
.tally.celebrate { animation: declare 1.1s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes declare {
  0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255, 215, 0, .8); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 26px rgba(255, 215, 0, 0); }
  100% { transform: none; }
}
.all { margin-top: 1.5rem; width: 100%; }
.all summary { cursor: pointer; color: var(--light); display: inline-block; padding: .5rem; }
.all-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0; text-align: left;
  columns: 3 16rem; column-gap: 2rem;
}
.all-list li { break-inside: avoid; display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; }
.all-list input { accent-color: var(--yellow); width: 20px; height: 20px; margin-top: .2rem; flex: none; }
.all-list label { cursor: pointer; color: var(--paper); }

/* ---------- Practices (the teaching) ---------- */
.practices { padding: 6rem 0; background: var(--paper); }
.practices h2 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 18ch; margin-bottom: 1rem; }
.practice-list {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 2.5rem 3rem;
}
.practice-list li { border-top: 3px solid var(--yellow); padding-top: 1rem; }
.practice-list h3 { color: var(--deep); font-size: 1.45rem; margin-bottom: .5rem; }
.practice-list p { margin: 0; }

/* ---------- ZoGGster Talks ---------- */
.talks { background: var(--navy); color: var(--paper); padding: 6rem 0 5rem; }
.talks h2 { color: var(--yellow); font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .75rem; }
.talks .intro { color: var(--matte); }
.reel {
  list-style: none; margin: 2.5rem 0 0; padding: 0 var(--edge) 1rem;
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-color: var(--deep) transparent;
}
.reel li { flex: none; width: min(62vw, 230px); scroll-snap-align: start; }
.reel p { margin: .75rem 0 0; color: var(--matte); }
.talk {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; cursor: pointer;
  border: 3px solid rgba(255, 255, 255, .14); border-radius: 26px; overflow: hidden; background: var(--deep);
}
.talk video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--yellow); box-shadow: 0 5px 0 var(--deep-press);
}
.play::after {
  content: ""; position: absolute; left: 25px; top: 20px;
  border-left: 20px solid var(--deep-press); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.talk.playing .play { opacity: 0; }

/* ---------- A way of life ---------- */
.way { padding: 6rem 0; background: var(--yellow-soft); }
.way h2 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 16ch; margin-bottom: 1rem; }
.way-inner > p { font-size: 1.2rem; }
.offer { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1.75rem 2.5rem; }
.offer strong { display: block; font-weight: 400; font-size: 1.4rem; color: var(--deep); margin-bottom: .25rem; }
.offer span { color: var(--ink); }

/* ---------- The app ---------- */
.app { padding: 6rem 0; background: var(--matte); }
.app h2 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 18ch; margin-bottom: .75rem; }
.screens {
  list-style: none; margin: 3rem 0 0; padding: 0 var(--edge) 1rem;
  display: flex; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
}
.screens li { flex: none; width: min(66vw, 240px); scroll-snap-align: start; }
.screens img { border-radius: 32px; border: 6px solid var(--navy); box-shadow: 0 24px 50px rgba(0, 27, 77, .22); height: auto; }
.screens p { margin: 1rem 0 0; color: var(--ink); }
.get { margin-top: 4rem; }
.get h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.steps { padding-left: 1.4rem; max-width: var(--measure); }
.steps li { margin-bottom: .5rem; padding-left: .3rem; }
.fine { color: var(--ink-500); font-size: .95rem; }

/* ---------- Get ZoGGster (waitlist / beta) ---------- */
.join { padding: 6rem 0; background: var(--deep); color: var(--paper); }
.join h2 { color: var(--yellow); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .75rem; }
.join .intro { color: var(--matte); }
.join-inner { max-width: 44rem; }
#join-form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1rem; }
.choice legend { color: var(--light); margin-bottom: .75rem; padding: 0; }
.option { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; padding: 1.1rem 1.2rem; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .25); }
.option:has(input:checked) { border-color: var(--yellow); background: rgba(255, 215, 0, .1); }
.option input { accent-color: var(--yellow); width: 20px; height: 20px; margin-top: .25rem; flex: none; }
.option strong { display: block; font-weight: 400; font-size: 1.25rem; color: var(--paper); }
.option span { color: var(--matte); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; color: var(--matte); }
.field em { font-style: normal; color: rgba(220, 231, 247, .7); }
.field input {
  font: 1.15rem var(--font); color: var(--navy); background: var(--paper);
  border: 3px solid transparent; border-radius: 16px; padding: .75rem 1rem; min-height: 52px;
}
.field input:focus { outline: none; border-color: var(--yellow); }
.check { display: flex; gap: .6rem; align-items: center; color: var(--matte); cursor: pointer; }
.check input { accent-color: var(--yellow); width: 20px; height: 20px; }
#join-form .cta { justify-self: start; }
.form-note { margin: 0; min-height: 1.5em; color: var(--matte); }
.form-note.done { color: var(--yellow); font-size: 1.2rem; }
.form-note.error { color: #ffe08a; }
.join .fine { color: rgba(220, 231, 247, .75); margin: 0; }
.join .fine a { color: var(--yellow); }

/* ---------- Team ---------- */
.team { padding: 5rem 0; background: var(--paper); }
.team h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 2rem; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1.5rem 2rem; }
.people strong { display: block; font-weight: 400; font-size: 1.3rem; color: var(--navy); }
.people span { color: var(--ink-500); }

/* ---------- Movement ---------- */
.movement {
  padding: 7rem 0; text-align: center; color: var(--paper);
  background: var(--deep) radial-gradient(circle, rgba(255, 215, 0, .14) 1.6px, transparent 2.2px) 0 0 / 22px 22px;
}
.movement .wrap { display: grid; justify-items: center; }
.movement h2 { color: var(--yellow); font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 1.5rem; }
.movement p { color: var(--matte); font-size: 1.2rem; }

/* ---------- Footer ---------- */
footer { padding: 2.5rem 1rem 3rem; text-align: center; color: var(--ink-500); font-size: .95rem; background: var(--matte); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-bottom: .75rem; }
footer p { margin: 0 auto; }

/* ---------- Long-form pages (privacy, terms, support) ---------- */
.doc { max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: .5rem; }
.doc h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.doc ul { padding-left: 1.2rem; max-width: var(--measure); }
.doc li { margin-bottom: .4rem; }
.doc .meta { color: var(--ink-500); margin-bottom: 1.5rem; }
.doc .draft { background: var(--yellow-soft); color: #4a3800; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1.5rem; }
.doc .faq dt { color: var(--navy); font-size: 1.1rem; margin-top: 1.2rem; }
.doc .faq dd { margin: .3rem 0 0; max-width: var(--measure); }

/* ---------- Motion off: for devices that ask for reduced motion ---------- */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still { scroll-behavior: auto; }
