/* ==========================================================================
   OFP Funding OFP90 offer — port of the ofp90.lovable.app design
   (Tailwind build) to plain CSS. Tokens copied 1:1 from its :root.
   Shared base with /giveaway (same Lovable design system).
   ========================================================================== */
:root {
  --neon: oklch(76.7% .222 147.9);
  --neon-bright: oklch(81.2% .205 150.6);
  --blue: oklch(49.9% .263 268);
  --blue-deep: oklch(41.2% .229 267.4);
  --background: oklch(100% 0 0);
  --foreground: oklch(16.2% .014 258.4);
  --card: oklch(100% 0 0);
  --secondary: oklch(96.6% .007 260.7);
  --muted-foreground: oklch(48.7% .032 262.2);
  --destructive: oklch(56.8% .195 27.4);
  --border: oklch(90.1% .016 257.2);
  --input: oklch(84.2% .021 257.5);
  --ink: oklch(12.8% .013 263.6);
  --ink-foreground: oklch(96% .008 253.9);

  --font-sans: "Cormorant Garamond", Georgia, serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }

.eyebrow { text-transform: uppercase; font-size: .75rem; }
.muted { color: var(--muted-foreground); }
.bg-secondary { background: var(--secondary); }
.paper {
  background-color: var(--secondary);
  background-image: radial-gradient(color-mix(in oklab, var(--blue) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

.container { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 72rem; }
.container-form { max-width: 36rem; }
.section { padding: 6rem 0; }

.section-eyebrow { text-align: center; color: var(--blue); }
.section-title {
  margin: 1rem auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 2.25rem;
  line-height: 1.25;
  text-transform: uppercase;
}
.section-lead {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .06);
  transition: background-color .15s;
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; padding: 1rem; }
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  padding: 1.25rem 1.5rem;
  background: var(--neon);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1), 0 0 0 1px color-mix(in oklab, var(--neon-bright) 50%, transparent);
  transition: background-color .15s;
}
.btn-neon:hover { background: var(--neon-bright); }
.cta-row { margin-top: 2.5rem; text-align: center; }
.cta-row-lg { margin-top: 3rem; }
.cta-note { margin-top: 1rem; }

/* Countdown banner */
.banner {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  background: var(--neon);
  color: var(--ink);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 25%, transparent);
  animation: neon-breathe 5s ease-in-out infinite;
}
.banner-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in oklab, var(--neon-bright) 70%, transparent) 50%, transparent 65%);
  animation: neon-sweep 7s ease-in-out infinite;
}
.banner-inner {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: .5rem 1rem;
  display: grid;
  justify-items: center;
  gap: .25rem 1rem;
  text-align: center;
  font-weight: 500;
}
@media (min-width: 640px) {
  .banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
}
.banner-muted { color: color-mix(in oklab, var(--ink) 80%, transparent); }
.dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; vertical-align: middle; background: var(--ink); }
.dot-dim { background: color-mix(in oklab, var(--ink) 40%, transparent); }
.dot-pulse { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.countdown { display: flex; gap: .75rem; font-variant-numeric: tabular-nums; }
.countdown b { font-weight: 500; }
.countdown small { margin-left: .25rem; font-size: .75rem; font-weight: 400; }

@keyframes neon-breathe {
  0%, 100% { background-color: var(--neon); }
  50% { background-color: color-mix(in oklab, var(--neon) 80%, var(--neon-bright)); }
}
@keyframes neon-sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .banner, .banner-sweep, .dot-pulse { animation: none; }
}

/* Hero */
.hero { color: var(--ink-foreground); }
.hero-top { background: var(--ink); padding: 2rem 1.5rem 0; text-align: center; }
.hero h1 {
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.875rem;
  line-height: 1.25;
  text-transform: uppercase;
}
.hero-lead { max-width: 42rem; margin: 1.25rem auto 0; font-size: 1.125rem; opacity: .9; }
.hero-claim {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: var(--neon);
}
.hero-bottom { background: var(--ink); padding: 8rem 1.5rem 4rem; text-align: center; }
@media (min-width: 640px) {
  .hero-top { padding-top: 3rem; }
  .hero h1 { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
  .hero-lead { font-size: 1.25rem; }
  .hero-claim { font-size: 1rem; }
}

/* Certificate carousel: overlaps the hero's two halves (-6rem pull) */
.carousel-wrap { position: relative; max-width: 42rem; margin: 2rem auto -6rem; }
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; gap: 1rem; will-change: transform; }
.carousel-track.is-animating { transition: transform .45s cubic-bezier(.25, .8, .25, 1); }
.slide { flex: 0 0 85%; min-width: 0; user-select: none; -webkit-user-drag: none; }
@media (min-width: 640px) { .slide { flex-basis: 64%; } }
@media (min-width: 768px) { .slide { flex-basis: 58%; } }
.carousel-dots { margin-top: .5rem; display: flex; justify-content: center; }
.carousel-dots button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .375rem;
  transition: background-color .15s;
}
.carousel-dots button:hover { background: color-mix(in oklab, var(--ink-foreground) 10%, transparent); }
.carousel-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: color-mix(in oklab, var(--ink-foreground) 40%, transparent); }
.carousel-dots button[aria-pressed="true"] span { background: var(--neon); }

/* Prize */
.prize-card {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--blue);
  background: var(--card);
  text-align: center;
}
.prize-amount { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .5rem 1.5rem; }
.prize-value, .prize-free { font-family: var(--font-serif); text-transform: uppercase; line-height: 1; }
.prize-value { font-size: 3rem; color: var(--blue); }
.prize-free { font-size: 1.875rem; color: var(--muted-foreground); }
.prize-text { max-width: 36rem; margin: 1.25rem auto 0; font-size: 1.125rem; color: var(--muted-foreground); }
.prize-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .75rem;
  font-size: .875rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .prize-value { font-size: 4.5rem; }
  .prize-free { font-size: 3rem; }
}

.stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); padding: 2rem 1rem; text-align: center; }
.stat-value { font-family: var(--font-serif); font-size: 2.25rem; color: var(--blue); }
.stat-label { margin-top: .5rem; font-size: .875rem; text-transform: uppercase; color: var(--muted-foreground); }

.claim-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--blue);
  background: var(--card);
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--blue);
}
@media (min-width: 768px) { .claim-box { font-size: 1.5rem; } }

.lists { margin-top: 3.5rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .lists { grid-template-columns: 1fr 1fr; } }
.list-card { padding: 2rem; border: 1px solid var(--border); background: var(--card); }
.list-card-dashed { border-style: dashed; background: transparent; }
@media (min-width: 768px) { .list-card { padding: 2.5rem; } }
.list-card h3 { font-size: 1.5rem; text-transform: uppercase; }
.checklist { margin-top: 1.5rem; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .75rem; }
.checklist svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checklist-muted li { color: var(--muted-foreground); }
.checklist-muted svg { width: 1rem; height: 1rem; margin-top: .375rem; stroke: var(--muted-foreground); stroke-width: 1.6; }

/* Reviews */
.reviews { margin-top: 2rem; display: grid; gap: .75rem; }
@media (min-width: 768px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--card);
  text-align: center;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  transition: box-shadow .15s;
}
.review:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }
@media (min-width: 768px) { .review { padding: 1.25rem; } }
.stars { display: flex; justify-content: center; gap: .25rem; color: var(--blue); }
.stars svg { width: .75rem; height: .75rem; fill: currentColor; }
.review blockquote { margin-top: .75rem; font-family: var(--font-serif); font-size: .875rem; line-height: 1.375; }
@media (min-width: 768px) { .review blockquote { font-size: 1rem; } }
.review-meta { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.review-name { font-size: .75rem; }
.review-role { margin-top: .125rem; font-size: 11px; color: var(--muted-foreground); }

.cta-row-xl { margin-top: 3.5rem; }

/* ofp90 uses a thinner 16px check (giveaway uses 20px / stroke 2) */
.checklist svg { width: 1rem; height: 1rem; margin-top: .25rem; stroke-width: 1.6; }
.checklist-muted svg { margin-top: .375rem; }

/* Full review modal — Radix Dialog look from the source: ink/85 overlay,
   max-w-3xl, eyebrow title, large serif paragraphs. */
.review-dialog {
  margin: auto;
  width: calc(100% - 2rem);
  max-width: 48rem;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.review-dialog[open] { display: grid; gap: 1rem; animation: dialog-in .2s ease-out; }
.review-dialog::backdrop { background: color-mix(in oklab, var(--ink) 85%, transparent); animation: fade-in .2s ease-out; }
@media (min-width: 640px) { .review-dialog { padding: 2rem; border-radius: .5rem; } }
@media (min-width: 768px) { .review-dialog { padding: 3rem; } }
.dialog-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .125rem;
  background: var(--card);
  opacity: .7;
  transition: opacity .15s, background-color .15s;
}
.dialog-close:hover { opacity: 1; background: var(--secondary); }
.dialog-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dialog-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.review-dialog-title { padding-right: 2.5rem; color: var(--blue); font-weight: 600; line-height: 1; }
.review-dialog-role { font-size: .875rem; color: var(--muted-foreground); }
.review-dialog-body { display: grid; gap: 1.25rem; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.625; }
@media (min-width: 768px) { .review-dialog-body { font-size: 1.25rem; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) {
  .review-dialog[open], .review-dialog::backdrop { animation: none; }
}

/* Footer "Cookie settings" button reads as a link */
.footer-bottom button { font-size: inherit; transition: color .15s; }
.footer-bottom button:hover { color: var(--neon); }

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 60;
  max-width: 36rem;
  max-height: 85dvh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
}
.cookie-banner[hidden] { display: none; }
@media (min-width: 640px) { .cookie-banner { left: 1.5rem; right: 1.5rem; } }
.cookie-title { font-family: var(--font-serif); font-size: 1.125rem; text-transform: uppercase; }
.cookie-text { margin-top: .5rem; font-size: 1rem; color: var(--muted-foreground); }
.cookie-text a { text-decoration: underline; }
.cookie-text a:hover { color: var(--foreground); }
.cookie-actions { margin-top: 1rem; display: flex; gap: .75rem; }
.cookie-btn {
  flex: 1;
  height: 2.75rem;
  padding: 0 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color .15s, color .15s;
}
.cookie-btn-outline { border: 1px solid var(--blue); color: var(--foreground); }
.cookie-btn-solid { background: var(--blue); color: #fff; }
.cookie-btn:hover { background: var(--blue-deep); color: #fff; }

/* Privacy page */
.legal { max-width: 42rem; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-back { font-size: .875rem; color: var(--muted-foreground); }
.legal-back:hover { color: var(--foreground); }
.legal h1 { margin-top: 1.5rem; font-size: 2.25rem; text-transform: uppercase; }
.legal-body { margin-top: 2rem; display: grid; gap: 1.25rem; color: var(--muted-foreground); }
.legal-body h2 { font-size: 1.5rem; text-transform: uppercase; color: var(--foreground); }
.legal-body a, .legal-body button { text-decoration: underline; }
.legal-body a:hover, .legal-body button:hover { color: var(--foreground); }

/* FAQ */
.faq { max-width: 48rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.faq-list { margin-top: 3rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list details { padding: 1.5rem 0; }
.faq-list details + details { border-top: 1px solid var(--border); }
.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
@media (min-width: 640px) { .faq-list summary { font-size: 1.5rem; } }
.faq-icon { color: var(--blue); transition: transform .15s; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list details p { margin-top: 1rem; color: var(--muted-foreground); }

/* Footer */
.footer { background: var(--ink); color: var(--ink-foreground); }
.footer-grid { max-width: 64rem; margin: 0 auto; padding: 4rem 1.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo { width: 12rem; margin-bottom: 1.25rem; }
.footer-title { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.25; text-transform: uppercase; }
.footer-text { margin-top: .75rem; font-size: .875rem; color: color-mix(in oklab, var(--ink-foreground) 70%, transparent); }
.footer-head { color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }
.footer-list { margin-top: 1rem; display: grid; gap: .5rem; font-size: .875rem; }
.footer-list-muted { color: color-mix(in oklab, var(--ink-foreground) 70%, transparent); }
.footer a { transition: color .15s; }
.footer a:hover { color: var(--neon); }
.footer-bottom {
  padding: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 15%, transparent);
  text-align: center;
  font-size: .875rem;
  color: color-mix(in oklab, var(--ink-foreground) 60%, transparent);
}

