/* High Fives marketing site (highfives.team) — the "Sunny" design.
   Values follow the design canvas; the logo keeps its exact inline styles in the HTML. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin.woff2) format('woff2');
}

:root {
  --ink: #1d1a33;
  --coral: #d93a20;
  --coral-dark: #b02a12;
  --yellow: #ffc531;
  --blue: #2a5bd7;
  --green: #1b7a43;
  --soft-yellow: #fff1c9;
  --soft-blue: #dcebff;
  --soft-coral: #ffe1d9;
  --muted: #575370;
  --muted-2: #6b6780;
  --display: 'Bricolage Grotesque', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { color: var(--coral); }
img, svg { max-width: none; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #ffffff; padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #ffffff; }
.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;
}

.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- header ---------- */
.site-header { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 28px; }
/* the sticker logo keeps its exact inline styles; it only must never shrink or wrap */
.site-header > a:first-of-type, .footer-inner > span:first-child { flex-shrink: 0; white-space: nowrap; }
.navlinks { display: flex; gap: 26px; margin-left: 12px; font-weight: 500; }
.navlinks a { text-decoration: none; }
.header-cta { margin-left: auto; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; text-align: center;
  cursor: pointer; border: 0;
}
.btn-coral { background: var(--coral); color: #ffffff; }
.btn-coral:hover { color: #ffffff; background: #c2321a; }
.btn-outline { background: #ffffff; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { color: var(--ink); background: #faf6ec; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); background: #ffd25e; }
.header-cta.btn { padding: 12px 20px; }

/* ---------- shared section bits ---------- */
.block { border-radius: 40px; max-width: 1240px; margin: 40px auto 0; padding: 80px 48px; }
.inner { max-width: 1120px; margin: 0 auto; }
.plain { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.eyebrow { display: block; font-size: 15px; font-weight: 700; color: var(--coral); }
.eyebrow-dark { color: var(--coral-dark); }
h1, h2 { font-family: var(--display); font-weight: 800; }
h2 { font-size: 46px; letter-spacing: -1px; line-height: 1.08; margin: 6px 0 12px; }
h3 { margin: 0; }
.lead { margin: 0 0 40px; font-size: 19px; max-width: 640px; }
.center { text-align: center; }

/* ---------- hero ---------- */
.hero { background: var(--soft-yellow); margin-top: 8px; padding: 72px 48px; }
.hero .g2 { gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: #ffffff; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.hero h1 { margin: 0; font-size: 64px; line-height: 1.04; letter-spacing: -2px; }
.hero-intro { margin: 0; font-size: 20px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 16px 26px; font-size: 18px; }
.checks { display: flex; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; padding: 4px 0 0; margin: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 8px; background: #ffffff; padding: 8px 14px 8px 10px; border-radius: 999px; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* hero board slider */
.slider { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.slider-window { background: #ffffff; border-radius: 28px; box-shadow: 0 24px 60px rgba(29, 26, 51, 0.14); overflow: hidden; }
.slider-track { display: flex; width: 200%; transition: transform 0.6s cubic-bezier(.65, 0, .35, 1); }
.slider-track[data-slide="1"] { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }
.slide { width: 50%; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.slide-bingo { gap: 16px; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); }
.board-title { font-family: var(--display); font-weight: 800; font-size: 26px; }
.live { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); background: #dcf5e6; padding: 6px 10px; border-radius: 999px; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.team-row { display: flex; flex-direction: column; gap: 6px; }
.team-line { display: flex; justify-content: space-between; font-weight: 700; }
.team-line span:last-child { font-variant-numeric: tabular-nums; }
.bar { height: 14px; background: #f2eee6; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; }
.toast { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.toast svg { flex-shrink: 0; }
.toast-blue { background: var(--soft-blue); }
.toast-yellow { background: var(--soft-yellow); }
.bingo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.bingo li {
  aspect-ratio: 1.35; border-radius: 14px; padding: 10px; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 14px; line-height: 1.25; font-weight: 700; background: #f2eee6; color: var(--muted);
}
.bingo li.done { background: var(--blue); color: #ffffff; }
.bingo li.row { background: var(--blue); color: #ffffff; box-shadow: 0 0 0 3px var(--yellow); }
.slider-controls { display: none; align-items: center; justify-content: center; gap: 14px; }
.js .slider-controls { display: flex; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #ffffff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.dot { height: 12px; width: 12px; border: 0; padding: 0; cursor: pointer; border-radius: 999px; transition: all 0.3s; background: #c9c3b5; }
.dot[aria-current="true"] { width: 32px; background: var(--coral); }
/* the dots are small; give them a 44px tap area */
.dot { position: relative; }
.dot::after { content: ''; position: absolute; inset: -16px -6px; }

/* ---------- how it works ---------- */
.how { padding: 96px 24px 40px; }
.how h2 { margin: 6px 0 40px; }
.steps { gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.2; }
.step h3 { font-size: 22px; }
.step p { margin: 0; }
.step-1 { background: var(--soft-blue); } .step-1 .step-num { color: var(--blue); }
.step-2 { background: var(--soft-yellow); } .step-2 .step-num { color: #b06d00; }
.step-3 { background: var(--soft-coral); } .step-3 .step-num { color: var(--coral); }

/* ---------- challenges ---------- */
.cards { gap: 20px; }
.card { border: 2px solid var(--ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- rewards ---------- */
.rewards { background: var(--soft-coral); padding: 72px 48px; position: relative; overflow: hidden; }
.rewards .g2 { gap: 56px; align-items: center; position: relative; }
.rewards-copy { display: flex; flex-direction: column; gap: 16px; }
.rewards h2 { margin: 0; }
.rewards-copy p { margin: 0; font-size: 19px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; margin: 0; padding: 0; list-style: none; }
.tags li { background: #ffffff; padding: 8px 14px; border-radius: 999px; }
.reward-card {
  background: #ffffff; border-radius: 28px; padding: 28px; box-shadow: 0 24px 60px rgba(29, 26, 51, 0.12);
  display: flex; flex-direction: column; gap: 18px; transform: rotate(-1.5deg);
}
.reward-banner { display: flex; align-items: center; gap: 16px; background: var(--soft-yellow); border-radius: 20px; padding: 18px 20px; }
.trophy { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.reward-label { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.reward-text { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.lead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px dashed #e6dfd0; border-radius: 20px; padding: 16px 20px; font-weight: 700; }
.lead-team { display: flex; align-items: center; gap: 10px; }
.lead-team::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.confetti span { position: absolute; top: 0; animation: hf-confetti linear forwards; animation-timing-function: cubic-bezier(.25, .6, .5, 1); }
@keyframes hf-confetti {
  0% { transform: translate(0, -30px) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--dx), 620px) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* ---------- pricing ---------- */
.pricing { background: var(--soft-blue); }
.pricing .lead { margin: 0 auto 44px; max-width: 600px; }
.plans { gap: 24px; align-items: stretch; }
.plan { background: #ffffff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan h3 { font-size: 22px; }
.plan p { margin: 0; }
.price { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1.2; }
.per { color: var(--muted); }
.plan .btn { margin-top: auto; padding: 14px; }
.plan-dark { background: var(--ink); color: #ffffff; }
.plan-dark .per { color: #c9c6dc; }
.ribbon { position: absolute; top: -14px; right: 24px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.vat-note { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- demo ---------- */
.demo { padding: 96px 24px; }
.demo .g2 { gap: 56px; align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 16px; }
.demo-copy h2 { margin: 0; }
.demo-copy p { margin: 0; font-size: 19px; }
.demo-form { background: var(--soft-yellow); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.demo-form .g2 { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field input, .field textarea {
  padding: 13px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #ffffff; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field[data-invalid] input { border-color: var(--coral); }
.optin { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.optin input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); flex-shrink: 0; }
.demo-form button[type="submit"] { padding: 16px; font-size: 18px; }
.demo-form button[disabled] { opacity: 0.7; cursor: wait; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-error { margin: 0; font-weight: 700; color: var(--coral-dark); }
.form-error:empty { display: none; }
/* the honeypot: off screen for people, tempting for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--soft-yellow); border-radius: 28px; padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; }
.thanks h3 { font-family: var(--display); font-weight: 800; font-size: 32px; }
.thanks p { margin: 0; font-size: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #ffffff; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #ffffff; }
.footer-nav a:hover { color: var(--yellow); }
.footer-note { color: #c9c6dc; font-size: 15px; margin: 0; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* ---------- simple pages (terms, privacy, contact, thanks) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: 52px; line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 16px; }
.doc h2 { font-size: 28px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 18px; }
.notice { background: var(--soft-yellow); border-radius: 20px; padding: 18px 22px; font-weight: 700; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .navlinks { display: none; }
  .block { margin: 24px 12px 0; padding: 56px 24px; border-radius: 32px; }
  .hero { margin-top: 8px; padding: 48px 24px; }
  .rewards { padding: 56px 24px; }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); letter-spacing: -1.5px; }
  h2 { font-size: clamp(32px, 7vw, 46px); }
  .how { padding-top: 72px; }
  .demo { padding: 72px 24px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .site-header { padding: 22px 16px; gap: 12px; }
  .header-cta { display: none; }
  .block, .hero { margin-left: 8px; margin-right: 8px; padding-left: 16px; padding-right: 16px; }
  .plain, .how, .demo { padding-left: 16px; padding-right: 16px; }
  .hero-intro { font-size: 18px; }
  .slide { padding: 20px; }
  .bingo li { font-size: 12px; padding: 6px; }
  .demo-form { padding: 24px 18px; }
  .reward-card { padding: 22px; }
  .lead-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .doc h1 { font-size: 40px; }
}
