/* Padel Funnel — padelfunnel.com
   Layout lives in inline style attributes carried over from the design.
   This file holds what inline styles cannot express: keyframes, hover
   states, responsive rules and the currency toggle. */

/* Accent palette. Green carries one meaning throughout: ranking in the top
   three. Amber and red are the other two states, matching the ranking grid
   so the page and the report speak the same language. */
:root {
  --pf-green-ink: #0a7a42;    /* small text on white, passes AA */
  --pf-green: #12b45c;        /* accents, numerals on the dark section */
  --pf-green-bright: #1dcc5d; /* dots and fills */
  --pf-green-tint: #f0faf4;   /* panel backgrounds */
  --pf-green-line: rgba(18, 180, 92, 0.24);
  --pf-amber: #d98324;
  --pf-red: #d63b40;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Clear the fixed nav when jumping to an anchor. */
  scroll-padding-top: 90px;
}

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #0a0a0a; text-decoration: none; }
a:hover { color: #6b6b6b; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes line-pulse {
  0%   { opacity: 0;   transform: scale(1); }
  15%  { opacity: 0.9; }
  70%  { opacity: 0.4; }
  100% { opacity: 0;   transform: scale(0.85); }
}

/* Decorative arcs either side of the hero. */
.pf-ln {
  display: block;
  position: absolute;
  top: -8%;
  height: 116%;
  width: var(--w);
  border: 2.5px solid var(--pf-green-line);
  animation: line-pulse 5s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: 0;
}

.pf-ln.l {
  left: 0;
  border-left: none;
  border-radius: 0 80% 80% 0 / 0 50% 50% 0;
}

.pf-ln.r {
  right: 0;
  border-right: none;
  border-radius: 80% 0 0 80% / 50% 0 0 50%;
}

/* Currency toggle. Two instances (nav and pricing) stay in sync via app.js. */
.pf-cur {
  border: none;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: transparent;
  color: #6b6b6b;
  transition: background .18s, color .18s;
}

.pf-cur.is-active { background: #0a0a0a; color: #fff; }

/* Button hover states. Inline color declarations already win over a:hover,
   so these only need to add the lift and the shadow. */
.pf-lift { transition: transform .2s, box-shadow .2s; }
.pf-lift:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }

.pf-glow { transition: box-shadow .2s; }
.pf-glow:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14); }

/* Section eyebrows. Green on light sections, brighter green on the dark one. */
.pf-eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-green-ink);
}

.pf-eyebrow.on-dark { color: var(--pf-green); }

/* Availability pill above the hero headline. */
.pf-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--pf-green-tint);
  border: 1px solid var(--pf-green-line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pf-green-ink);
}

.pf-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pf-green-bright);
  flex: none;
}

/* Numerals on the deliverables grid. */
.pf-num { color: var(--pf-green); }

/* Ticked feature list in the pricing card. */
.pf-feat {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: #2a2a2a;
}

.pf-feat::before {
  content: "✓";
  color: var(--pf-green-ink);
  font-weight: 700;
  line-height: 1.4;
  flex: none;
}

/* Proof section stat tiles. */
.pf-stat {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 3px solid var(--pf-stat-accent, rgba(0, 0, 0, 0.2));
  border-radius: 12px;
  padding: 20px 22px;
  background: #fff;
}

.pf-stat.good  { --pf-stat-accent: var(--pf-green-bright); background: var(--pf-green-tint); }
.pf-stat.mid   { --pf-stat-accent: var(--pf-amber); }
.pf-stat.bad   { --pf-stat-accent: var(--pf-red); }

.pf-stat-num {
  display: block;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.pf-stat.good .pf-stat-num { color: var(--pf-green-ink); }
.pf-stat.mid  .pf-stat-num { color: var(--pf-amber); }
.pf-stat.bad  .pf-stat-num { color: var(--pf-red); }

.pf-stat-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4a4a4a;
}

@media (prefers-reduced-motion: reduce) {
  .pf-ln,
  .pf-marquee { animation: none !important; }
  html { scroll-behavior: auto; }
  .pf-ln { opacity: 0.35; }
}

@media (max-width: 1000px) {
  .pf-two { grid-template-columns: 1fr !important; }
  .pf-hero-title { font-size: clamp(46px, 9vw, 64px) !important; }
}

@media (max-width: 810px) {
  .pf-sides { display: none !important; }
  .pf-cta { flex-direction: column !important; align-items: stretch !important; }
  .pf-cta > * { width: 100% !important; max-width: 320px; margin: 0 auto !important; }
  .pf-pad { padding-left: 24px !important; padding-right: 24px !important; }
  .pf-trust { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
}
