/* ── Cricket Caddy — marketing site ────────────────────────────────────────
   Light, airy, brand pink. Display: Bricolage Grotesque. Body: Instrument
   Sans. Pure static CSS — no build step, runs on any webserver. */

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

:root {
  --pink:        #D4166A;
  --pink-dark:   #9e1050;
  --pink-soft:   #FBE9F1;
  --pink-glow:   rgba(212, 22, 106, .12);
  --ink:         #1A0A24;
  --ink-dim:     #6B4D8A;
  --ink-faint:   #9E82B8;
  --bg:          #FDFBFE;
  --bg-tint:     #F7F2FC;
  --card:        #FFFFFF;
  --border:      #EBDFF5;
  --green:       #1D9E75;
  --radius:      18px;
  --display:     "Bricolage Grotesque", system-ui, sans-serif;
  --body:        "Instrument Sans", system-ui, sans-serif;
}

/* Global type scale — 17.5px base bumps every rem-based size on the page
   up ~9% (menus, body copy, tiles) without touching individual rules. */
html { scroll-behavior: smooth; font-size: 17.5px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.01em; }

/* ── Reveal-on-scroll ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0s !important; }
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 5vw;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 48px; display: block; }
.nav-links { display: flex; gap: 14px; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-weight: 500; font-size: 1.05rem;
  padding: 8px 16px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--pink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: 11px 22px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 6px 18px var(--pink-glow); }
.btn-pink:hover { background: var(--pink-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33143f; }
.btn-hero { padding-left: 46px; padding-right: 46px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* Text pinned to the left over a full-bleed video — keeps the batter (frame
   center) and the "Caddy says" scoring HUD (top-right, baked into the
   clip) both visible and in focus, text never covers either. */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 86vh;
  padding: 72px 5vw;
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(10, 6, 14, .48);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 40rem; display: flex; flex-direction: column; align-items: flex-start; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff;
  background: rgba(212, 22, 106, .55); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 750; color: #fff; }
.scribble { position: relative; color: var(--pink); white-space: nowrap; }
.scribble::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em;
  background: rgba(251, 233, 241, .35); z-index: -1; border-radius: 4px;
}
.hero-sub { margin: 22px 0 28px; font-size: 1.13rem; color: rgba(255, 255, 255, .9); max-width: 34rem; }

.access-form { display: flex; flex-direction: column; gap: 10px; max-width: 30rem; }
.access-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.access-form-row input { flex: 1; min-width: 140px; }
.access-form input, .access-form select, .access-form button {
  font-family: var(--body); font-size: .95rem;
  padding: 12px 18px; border-radius: 999px;
}
.access-form input, .access-form select {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .96); color: var(--ink);
  outline: none; transition: border-color .15s;
}
.access-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231A0A24'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.access-form select:invalid { color: rgba(26, 10, 36, .5); }
.access-form input:focus, .access-form select:focus { border-color: var(--pink); }

.mobile-input-wrap {
  display: flex; align-items: stretch;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .96);
  border-radius: 999px; overflow: hidden; transition: border-color .15s;
}
.mobile-input-wrap:focus-within { border-color: var(--pink); }
.mobile-dial-code {
  display: flex; align-items: center;
  padding: 12px 4px 12px 18px;
  font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--ink-dim);
  white-space: nowrap;
}
.mobile-input-wrap input {
  border: none; background: none; padding: 12px 18px 12px 6px;
  border-radius: 0; width: 100%;
}
.mobile-input-wrap input:focus { border-color: transparent; }
.access-form-error {
  font-size: .85rem; color: #ffb4c6; background: rgba(212, 22, 106, .18);
  border: 1px solid rgba(255, 180, 198, .35); border-radius: 12px; padding: 9px 14px;
}
.access-otp-prompt { font-size: .92rem; color: rgba(255, 255, 255, .92); }
.hero-note { margin-top: 14px; font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* ── Marquee ──────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--ink); padding: 13px 0; }
.marquee-track {
  display: flex; gap: 34px; white-space: nowrap; width: max-content;
  animation: slide 26s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .12em;
  color: #fff;
}
.marquee-track i { color: var(--pink); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { max-width: 1180px; margin: 0 auto; padding: 92px 5vw 20px; }
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 750; margin-bottom: 44px;
}
.section h2 .dim { color: var(--ink-faint); }

/* ── Bento ────────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease, border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(26, 10, 36, .08); }
.tile-wide { grid-column: span 3; }
.tile.dimmed { opacity: .35; }
.tile.lit { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-glow); }
.tile-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pink);
  background: var(--pink-soft); border-radius: 999px; padding: 4px 11px;
}
.tile h3 { font-size: 1.28rem; font-weight: 700; }
.tile p { font-size: .92rem; color: var(--ink-dim); }

/* tile graphics */
.checks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.check {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-tint); border-radius: 10px; padding: 7px 12px; font-size: .85rem;
}
.check-num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: #fff;
  font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.check b { margin-left: auto; }
.check .ok { color: var(--green); } .check .bad { color: #e0313d; }
.check-score { text-align: right; font-size: .9rem; color: var(--ink-dim); padding-right: 4px; }
.check-score b { color: var(--green); font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.stream-graphic { display: flex; align-items: center; gap: 12px; font-size: 2rem; margin-top: auto; padding-top: 10px; }
.sg-wave { display: flex; gap: 5px; }
.sg-wave i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
  animation: hop 1.2s ease-in-out infinite;
}
.sg-wave i:nth-child(2) { animation-delay: .18s; }
.sg-wave i:nth-child(3) { animation-delay: .36s; }
@keyframes hop { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-7px); opacity: 1; } }

.mini-skel { background: #140a1c; border-radius: 12px; margin-top: auto; min-height: 130px; position: relative; overflow: hidden; }
#skeleton-mini { position: absolute; inset: 0; width: 100%; height: 100%; }

.cams-graphic { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.cam-node {
  flex: 1; text-align: center; font-size: .78rem; font-weight: 600; color: var(--pink);
  background: var(--pink-soft); border-radius: 10px; padding: 12px 4px;
  animation: camblink 3s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes camblink { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px var(--pink-glow); } }

.remote-graphic { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .82rem; flex-wrap: wrap; }
.rc-btn { background: var(--pink); color: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 600; }
.rc-arrow { color: var(--ink-faint); font-size: 1.1rem; }
.rc-phone em { color: var(--green); font-style: normal; animation: pulse 1.6s infinite; }

.train-bar {
  position: relative; height: 34px; background: var(--bg-tint); border-radius: 999px;
  overflow: hidden; margin-top: 8px;
}
.train-bar i {
  position: absolute; inset: 0; width: 0%; background: var(--pink-soft);
  border-radius: 999px; transition: width .3s linear;
}
.train-bar span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; color: var(--pink-dark); font-variant-numeric: tabular-nums;
}

/* ── Personas ─────────────────────────────────────────────────────────────── */
.personas { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  font-family: var(--body); font-size: .95rem; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--ink-dim);
  border: 1.5px solid var(--border); border-radius: 999px; padding: 10px 20px;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--pink); color: var(--pink); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 6px 18px var(--pink-glow); }
.persona-line { margin-top: 22px; font-size: 1.18rem; color: var(--ink-dim); max-width: 40rem; min-height: 3.6em; }

/* ── Persona detail panels ────────────────────────────────────────────────── */
.persona-panels { margin-top: 10px; }
.persona-panel { display: none; }
.persona-panel.active { display: block; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pfeatures {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.pfeature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pfeature:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: 0 14px 34px rgba(26, 10, 36, .07);
}
.pf-icon {
  width: 42px; height: 42px; padding: 9px; color: var(--pink);
  background: var(--pink-soft); border-radius: 13px; margin-bottom: 12px;
}
.pfeature h4 { font-family: var(--display); font-size: 1.02rem; font-weight: 700; margin-bottom: 5px; }
.pfeature p { font-size: .86rem; color: var(--ink-dim); line-height: 1.5; }

/* Bento features nested under "For you" — visually its own beat, but part
   of the same section so the persona chips above and the tiles they filter
   read as one connected interaction. */
.features-sub { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.features-sub-h {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; margin-bottom: 36px;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.step-art { position: relative; width: 64px; height: 64px; margin-bottom: 16px; }
.step-icon {
  width: 64px; height: 64px; padding: 15px; color: var(--pink);
  background: var(--pink-soft); border-radius: 20px;
}
.step-num-badge {
  position: absolute; top: -7px; right: -7px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--ink-dim); }
.step-arrow { align-self: center; color: var(--ink-faint); font-size: 1.6rem; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band {
  max-width: 1180px; margin: 92px auto 0; padding: 64px 5vw; text-align: center;
  background: var(--pink); border-radius: calc(var(--radius) * 1.6);
  color: #fff;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; }
.cta-band p { margin: 14px auto 26px; max-width: 30rem; opacity: .92; }
.cta-band .access-form { margin: 0 auto; align-items: stretch; }
.cta-band input { border-color: transparent; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 56px 5vw 42px;
}
.footer-logo { height: 36px; }
.footer-links { display: flex; gap: 10px; }
.footer-links a {
  color: var(--ink-dim); text-decoration: none; font-size: .95rem;
  padding: 6px 14px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.footer-links a:hover { background: var(--pink); color: #fff; }
.footer-note { margin-left: auto; font-size: .8rem; color: var(--ink-faint); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding-top: 48px; min-height: 78vh; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .footer-note { margin-left: 0; }
}
