/* ===========================================================
   Replay | Digital Scratch Cards  —  editable static clone
   Brand tokens extracted from the live replay.cx site
   =========================================================== */
:root {
  --brand-yellow: #f6d96b;     /* header band */
  --brand-yellow-soft: #f9db79;
  --ink: #1c1b1b;              /* near-black text */
  --ink-soft: #2f2e2e;
  --nav-bg: #1d1c1c;           /* dark top bar */
  --white: #ffffff;
  --paper: #ffffff;
  --muted: #6b6a6a;
  --line: #e6e6e6;
  --blue: #116dff;             /* Wix accent / links */
  --mint: #b5e8d5;
  --peach: #ffbfb3;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.12);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top dark nav ---------- */
.topbar {
  background: var(--nav-bg);
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: .04em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  height: 58px;
}
.topbar a {
  color: #f3f3f3;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  opacity: .92;
  transition: opacity .2s, color .2s;
}
.topbar a:hover { opacity: 1; color: var(--brand-yellow); }

/* ---------- Yellow brand band ---------- */
.brandband { background: var(--brand-yellow); }
.brandband .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  position: relative;
}
.brandband .logo { display: flex; align-items: center; }
.brandband .logo img { height: 78px; width: auto; }
.brandband .spacer { flex: 1; }
.btn-account {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 22px;
  background: transparent;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn-account:hover { background: var(--ink); color: var(--brand-yellow); transform: translateY(-1px); }

/* center logo variant on inner pages */
.brandband.center .wrap { justify-content: center; }
.brandband.center .btn-account { position: absolute; right: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 40px;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--ink); color: var(--brand-yellow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.btn-yellow { background: var(--brand-yellow); color: var(--ink); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
/* The entire hero section is the live scratch-card campaign iframe */
.hero {
  position: relative;
  width: 100%;
  padding: 0;
  background: linear-gradient(160deg, #aee0f5 0%, #cfeafc 45%, #f3e6c9 100%);
  overflow: hidden;
}
.hero-iframe {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 520px;
  border: 0;
}

/* intro (wizard + headline) below the hero */
.intro .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro .art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.intro .section-title { margin-bottom: 18px; }
/* visually-hidden but available to screen readers / SEO */
.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;
}
/* ---------- Scratch card demo (legacy, unused) ---------- */
.scratch-stage { text-align: center; }
.scratch-card {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
  user-select: none;
  touch-action: none;
}
.scratch-prize {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: radial-gradient(circle at 50% 40%, #fff6d8, #f6d96b 70%);
  text-align: center; padding: 30px;
}
.scratch-prize .tag {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .18em; font-size: 13px; color: var(--ink-soft);
}
.scratch-prize .big {
  font-family: var(--font-display); font-size: 46px; line-height: .95;
  color: var(--ink); text-transform: uppercase;
}
.scratch-prize .small { font-size: 14px; color: var(--ink-soft); }
.scratch-card canvas { position: absolute; inset: 0; cursor: grab; }
.scratch-hint { margin-top: 16px; font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--ink-soft); }

/* ---------- Generic sections ---------- */
section { padding: 86px 0; }
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  margin: 0 0 28px;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .2em; font-size: 13px; color: var(--blue);
  margin: 0 0 12px;
}
.lead-copy { font-size: 18px; max-width: 60ch; color: var(--ink-soft); }

/* why it works */
.why { background: #faf8f3; }
.why .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.why p { font-size: 18px; color: var(--ink-soft); }
.stat-cards { display: grid; gap: 18px; margin-top: 26px; }
.stat-card {
  border-radius: var(--radius); padding: 22px 24px;
  border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.stat-card .label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
.stat-card .num { font-family: var(--font-display); font-size: 40px; line-height: 1; margin-top: 4px; }
.stat-card.passive .num { color: var(--muted); }
.stat-card.active { border-color: var(--ink); background: linear-gradient(180deg,#fffdf5,#fff7df); }
.stat-card.active .num { color: var(--ink); }
.why .art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* win big */
.winbig { background: var(--brand-yellow); }
.winbig .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.winbig .eyebrow { color: var(--ink-soft); }
.winbig .section-title { font-size: clamp(40px, 6vw, 78px); }
.winbig .section-title .hl { display: block; }
.winbig img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.2)); }

/* loyalty / quick links */
.loyalty { background: #fff; }
.loyalty .section-title { text-align: center; }
.qlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; margin-top: 38px; }
.qlink {
  display: block; padding: 26px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #faf8f3;
  font-family: var(--font-head); font-size: 18px; font-weight: 500;
  transition: transform .15s, box-shadow .2s, background .2s; color: var(--ink);
}
.qlink:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.qlink span { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.loyalty .cta-row { text-align: center; margin-top: 42px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--brand-yellow); padding: 64px 0 56px; text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(40px,6vw,74px); margin: 0; text-transform: uppercase; color: var(--ink); }
.page-hero p { margin: 14px auto 0; max-width: 50ch; font-size: 18px; color: var(--ink-soft); }

/* about */
.about-block { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.about-block.rev { grid-template-columns: .8fr 1.2fr; }
.about-block.rev .art { order: -1; }
.about-block img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 16px; }
.plan {
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px; background: #fff;
  display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: transform .18s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--ink); background: linear-gradient(180deg,#fffdf5,#fff7df); position: relative; }
.plan.featured::after {
  content: "POPULAR"; position: absolute; top: 18px; right: 18px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .1em;
  background: var(--ink); color: var(--brand-yellow); padding: 5px 10px; border-radius: 20px;
}
.plan h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; margin: 0 0 6px; }
.plan .price { font-family: var(--font-display); font-size: 52px; line-height: 1; margin: 6px 0; }
.plan .price small { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 400; }
.plan .blurb { color: var(--ink-soft); min-height: 64px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.plan li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d8d8d8; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: #fbfbfb;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form-note { margin-top: 14px; font-size: 14px; color: #2e9e6b; display: none; }
.form-note.show { display: block; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 28px; }
.post {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .2s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 4/3; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .thumb img { transform: scale(1.05); }
.post .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post h3 { font-family: var(--font-head); font-size: 20px; line-height: 1.2; margin: 0 0 10px; }
.post p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.post .meta { margin-top: 14px; font-size: 13px; color: var(--muted); font-family: var(--font-head); letter-spacing: .04em; }

/* ---------- Blog article (post) ---------- */
.article { padding: 0 0 80px; }
.article-hero { background: var(--brand-yellow); padding: 56px 0 48px; }
.article-hero .wrap { max-width: 820px; }
.article-hero .kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.article-hero h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.02; margin: 0; color: var(--ink); }
.article-hero .meta { margin-top: 16px; font-family: var(--font-head); letter-spacing: .04em; font-size: 14px; color: var(--ink-soft); }
.article-cover { max-width: 980px; margin: -28px auto 0; padding: 0 24px; }
.article-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }
.article-body { max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
.article-body p { font-size: 18px; color: var(--ink-soft); margin: 0 0 20px; }
.article-body .lead { font-size: 20px; color: var(--ink); }
.article-body h2 { font-family: var(--font-head); font-weight: 700; text-transform: none; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 38px 0 14px; color: var(--ink); }
.article-body h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 26px 0 8px; color: var(--ink); }
.article-body ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.article-body li { position: relative; padding: 6px 0 6px 30px; font-size: 17px; color: var(--ink-soft); }
.article-body li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--blue); font-weight: 700; }
.article-cta { max-width: 760px; margin: 44px auto 0; padding: 34px; background: linear-gradient(180deg,#fffdf5,#fff7df); border: 2px solid var(--ink); border-radius: 18px; text-align: center; }
.article-cta h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; margin: 0 0 10px; }
.article-cta p { margin: 0 0 20px; color: var(--ink-soft); }
.article-back { max-width: 760px; margin: 30px auto 0; padding: 0 24px; }
.article-back a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--blue); }
.article-back a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--nav-bg); color: #d9d9d9; padding: 60px 0 34px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer a { color: #cdcdcd; display: block; padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer a:hover { color: var(--brand-yellow); }
.footer .brand img { height: 54px; margin-bottom: 14px; }
.footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #333; font-size: 13px; color: #8d8d8d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- reveal (safe: always ends visible, pure CSS) ----------
   Elements are visible by default. When motion is allowed they get a
   one-time fade-up that ENDS at opacity:1 — no JS, so never blank. */
[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { animation: fadeUp .7s ease both; }
  [data-reveal][data-delay="1"] { animation-delay: .12s; }
  [data-reveal][data-delay="2"] { animation-delay: .24s; }
  [data-reveal][data-delay="3"] { animation-delay: .36s; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .topbar .wrap { gap: 26px; }
  .why .grid, .winbig .grid, .about-block, .about-block.rev, .contact-grid, .intro .intro-grid { grid-template-columns: 1fr; }
  .about-block.rev .art { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .brandband .logo img { height: 60px; }
  section { padding: 60px 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .article-cover { margin-top: 0; padding-top: 24px; }
  .hero-iframe { height: 78vh; min-height: 520px; }
}
@media (max-width: 560px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; padding: 12px 18px; gap: 16px; }
  .topbar a { font-size: 14px; }
  .wrap { padding: 0 18px; }
  .form-row { grid-template-columns: 1fr; }
  .brandband .wrap { min-height: 96px; }
  .brandband.center .wrap { flex-direction: column; gap: 12px; justify-content: center; }
  .brandband.center .btn-account { position: static; }
  .brandband .btn-account { padding: 10px 14px; font-size: 12px; }
  .scratch-card { width: 260px; height: 260px; }
  .footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .footer .legal { flex-direction: column; }
  .article-body p { font-size: 17px; }
  .scratch-prize .big { font-size: 38px; }
}
