/* ============================================================
   CircleRoll LLC — circleroll.com
   Playful static site. No frameworks, no build step.
   ============================================================ */

@import url('fonts.css');

/* ---------- Tokens ---------- */
:root {
  --magenta: #E040A0;
  --magenta-dark: #C22B87;
  --cyan: #00C2E0;
  --cyan-dark: #009DB5;
  --yellow: #FFD23F;
  --yellow-dark: #F5B800;
  --green: #3DDC84;
  --green-dark: #23B565;
  --purple: #7B5CFF;
  --purple-dark: #5F41E0;
  --orange: #FF8A3D;
  --orange-dark: #E8721A;
  --indigo: #221B4A;
  --ink: #1F2430;
  --ink-muted: #5C6370;
  --cream: #FFF8F2;
  --cloud: #EAF6FA;
  --white: #FFFFFF;
  /* Exact flat background color of the HopSlide showcase artwork */
  --hopslide-orange: #FC6E21;

  --font-display: 'Baloo 2', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-card: 0 6px 24px rgba(31, 36, 48, 0.10);
  --shadow-pop: 0 10px 32px rgba(31, 36, 48, 0.16);

  --container: 1120px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-pop); }
.btn:active { transform: translateY(0) scale(0.99); }

/* Keyboard accessibility */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; }
.btn-white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.btn-magenta { background: var(--magenta); color: var(--white); }
.btn-magenta:hover { background: var(--magenta-dark); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: var(--cyan-dark); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2.5px solid rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); box-shadow: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(123, 92, 255, 0.97);
  backdrop-filter: blur(12px);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
}
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; transition: transform 0.5s ease; }
.nav-brand:hover img { transform: rotate(180deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--yellow); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--white); }
.nav-links .btn { padding: 10px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3.5px;
  background: var(--white);
  border-radius: 4px;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Sections / color bands ---------- */
.band { padding: 88px 0; position: relative; overflow: hidden; }
.band-cyan { background: var(--cyan); color: var(--white); }
.band-yellow { background: var(--yellow); color: var(--ink); }
.band-magenta { background: var(--magenta); color: var(--white); }
.band-purple { background: var(--purple); color: var(--white); }
.band-orange { background: var(--orange); color: var(--white); }
.band-hopslide { background: var(--hopslide-orange); color: var(--white); }
.band-green { background: var(--green); color: var(--ink); }
.band-indigo { background: var(--indigo); color: var(--white); }

/* Seamless artwork — no frame, image background matches the band */
.art-blend {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Floating circles — physics-driven, live in page space so you scroll past them (see main.js) */
#floaters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.floater {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: overlay;
}
.floater.fill { background: rgba(255, 255, 255, 0.5); }
.floater.ring-o { border: 6px solid rgba(255, 255, 255, 0.55); }

.band .eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  margin-bottom: 18px;
}
.band-yellow .eyebrow, .band-green .eyebrow { background: var(--ink); color: var(--white); }

/* ---------- Hero (pure CSS — crisp at any resolution) ---------- */
.hero {
  background: linear-gradient(180deg, #00A9CC 0%, var(--cyan) 45%, #2FD0EC 100%);
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 96px 0 150px;
  overflow: hidden;
}
.hero .container { width: 100%; position: relative; z-index: 3; }
.hero-copy { max-width: 34rem; }
.hero-copy h1 { text-shadow: 0 2px 18px rgba(0, 80, 100, 0.3); }
.hero-copy p.lead {
  font-size: 1.25rem;
  max-width: 30rem;
  opacity: 0.98;
  text-shadow: 0 1px 12px rgba(0, 80, 100, 0.3);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Rolling hill */
.hero-hill {
  position: absolute;
  left: -25%;
  bottom: -46%;
  width: 150%;
  height: 62%;
  background: linear-gradient(180deg, #7ED957 0%, #3DBB4E 70%);
  border-radius: 50% 50% 0 0;
  z-index: 1;
}

/* The CircleRoll logo — the real one, slowly rolling on the hill */
.hero-ball {
  position: absolute;
  right: 9%;
  bottom: 8%;
  width: clamp(190px, 24vw, 300px);
  aspect-ratio: 1;
  z-index: 2;
  animation: ball-roll 18s linear infinite;
  filter: drop-shadow(0 18px 24px rgba(0, 70, 40, 0.28));
}
.hero-ball img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes ball-roll {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animated confetti drifting up around the ball */
.hero .confetti {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  animation: confetti-drift 7s ease-in-out infinite;
}
@keyframes confetti-drift {
  0%   { opacity: 0; transform: translateY(30px) scale(0.6); }
  15%  { opacity: 0.9; }
  70%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-130px) translateX(-24px) scale(1); }
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 72px 0 300px; }
  .hero-ball { right: 50%; transform: translateX(50%); width: 220px; bottom: 6%; animation: none; }
  .hero-ball img { animation: ball-roll 18s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ball, .hero-ball img { animation: none !important; }
  .hero .confetti { animation: none; opacity: 0.7; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.card .card-mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- App showcase ---------- */
.showcase .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase-art img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
}
/* Seamless artwork — image background matches the band exactly, no frame */
.band-hopslide .showcase-art img {
  border-radius: 0;
  box-shadow: none;
}
.showcase-features {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}
.showcase-features li::before {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  margin-top: 8px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- Apps grid ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
}
.app-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--ink);
}
.app-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-pop); }
.app-card-art { aspect-ratio: 3 / 2; overflow: hidden; }
.app-card-art img { width: 100%; height: 100%; object-fit: cover; }
.app-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.app-card-body h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card-body p { color: var(--ink-muted); font-size: 0.97rem; flex: 1; }
.app-status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.app-status.live { background: var(--green); color: var(--ink); }
.app-status.soon { background: var(--yellow); color: var(--ink); }
.app-card-link {
  margin-top: 14px;
  font-weight: 700;
  color: var(--magenta);
}

/* ---------- Page headers ---------- */
.page-header { padding: 72px 0; text-align: center; }
.page-header .lead { font-size: 1.2rem; max-width: 40rem; margin: 0 auto; opacity: 0.95; }
.page-header-art {
  max-width: 560px;
  margin: 36px auto 0;
}
.page-header-art img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
}

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-pop);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cloud);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(224, 64, 160, 0.18);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field .field-error {
  display: none;
  color: #D62839;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 5px;
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: #D62839; }
.form-field.invalid .field-error { display: block; }

.form-success {
  display: none;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.form-success.show { display: block; animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.contact-aside h2 { margin-top: 8px; }
.contact-methods { display: grid; gap: 16px; margin-top: 28px; }
.contact-method {
  background: rgba(255, 255, 255, 0.16);
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-method:hover { background: rgba(255, 255, 255, 0.28); transform: translateX(4px); }
.contact-method strong { display: block; font-size: 1.05rem; }
.contact-method span { font-size: 0.92rem; opacity: 0.9; }

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-body h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal-body p, .legal-body li { color: var(--ink-muted); }
.legal-body .updated {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta-band p { font-size: 1.15rem; max-width: 36rem; margin: 0 auto 28px; opacity: 0.95; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-grid p { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; max-width: 22rem; }
.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.97rem;
  transition: color 0.15s ease;
}
.footer-grid ul a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-dots { display: flex; gap: 6px; }
.footer-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--yellow-dark); }

/* ---------- Store badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.store-badges img {
  height: 48px;
  width: auto;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.store-badges a:hover img { opacity: 0.9; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .showcase .container,
  .contact-wrap { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .band { padding: 60px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--purple);
    border-bottom: 3px solid var(--ink);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
}
