/* Valentine Repair — polish-2026-07-02.css
   Premium polish sprint. Appended to main.css via <link>.
   To revert: remove the <link rel="stylesheet" href="/assets/css/polish-2026-07-02.css"> from index.html.
   All additions scoped via :where() to avoid specificity wars with main.css. */

/* ============================================================
   1. SVG card icons (replace emoji)
   ============================================================ */
:where(.card-icon) {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border-color: rgba(245, 158, 11, .25);
}
:where(.card-icon svg) {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease, stroke .2s;
}
:where(.card:hover .card-icon svg) {
  transform: scale(1.08);
  stroke: var(--accent-soft);
}

/* ============================================================
   2. Hero background — AI image + dark vignette overlay
   ============================================================ */
:where(.hero) {
  position: relative;
  overflow: hidden;
}
:where(.hero-backdrop) {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
:where(.hero-backdrop img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
  filter: saturate(1.1) contrast(1.05);
  /* subtle ambient drift even when not interacting */
  animation: heroImageDrift 24s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
}
:where(.hero-vignette) {
  position: absolute;
  inset: 0;
  background:
    /* radial vignette around center for text legibility */
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(11,11,16,.75) 0%, rgba(11,11,16,.45) 40%, transparent 75%),
    /* edge fade */
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(11,11,16,.7) 100%),
    /* top + bottom gradient */
    linear-gradient(180deg, rgba(11,11,16,.55) 0%, transparent 25%, transparent 70%, rgba(11,11,16,.85) 100%);
}
:where(.hero) > *:not(.hero-backdrop):not(.hero-floaters) {
  position: relative;
  z-index: 2;
}
@keyframes heroImageDrift {
  from { transform: translate3d(-1.5%, -0.5%, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, 0.5%, 0) scale(1.05); }
}

/* ============================================================
   2b. Hero floaters — anti-gravity mouse parallax layer
   ============================================================ */
:where(.hero-floaters) {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
:where(.floater) {
  position: absolute;
  width: 64px;
  height: 64px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.55));
  /* Compose: mouse-parallax (px) + idle bob (px). Both written to CSS vars by JS.
     If JS is disabled or reduced-motion is on, var(--parallax-x,0)/var(--bob-y,0) fall back to 0. */
  --depth: 0;
  transform: translate3d(
    calc(var(--parallax-x, 0) * var(--depth)),
    calc(var(--parallax-y, 0) * var(--depth) + var(--bob-y, 0px)),
    0
  );
  will-change: transform;
}
:where(.floater .f-icon) {
  width: 100%;
  height: 100%;
  display: block;
}

/* On tight screens, smaller floaters and lower opacity */
@media (max-width: 720px) {
  :where(.floater) { width: 44px; height: 44px; opacity: 0.7; }
}
@media (max-width: 480px) {
  :where(.floater) { width: 36px; height: 36px; opacity: 0.55; }
}

/* Hide floaters when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  :where(.floater) { display: none; }
  :where(.hero-backdrop img) { animation: none; }
}

/* ============================================================
   3. Hero entrance fade-up
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
:where(.hero-eyebrow),
:where(.hero h1),
:where(.hero-sub),
:where(.hero-actions),
:where(.hero-meta) {
  animation: heroFadeUp .8s cubic-bezier(.16,1,.3,1) backwards;
}
:where(.hero-eyebrow) { animation-delay: 0ms; }
:where(.hero h1)       { animation-delay: 80ms; }
:where(.hero-sub)      { animation-delay: 160ms; }
:where(.hero-actions)  { animation-delay: 240ms; }
:where(.hero-meta)     { animation-delay: 320ms; }

/* ============================================================
   4. Button hover polish — accent glow + lift
   ============================================================ */
:where(.btn-primary) {
  position: relative;
  overflow: hidden;
}
:where(.btn-primary)::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity .25s ease;
}
:where(.btn-primary:hover)::after { opacity: .55; }
:where(.btn-primary:hover) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .25);
}

/* ============================================================
   5. Pricing card "Most common" prominence
   ============================================================ */
:where(.pricing-card.featured) {
  border-color: var(--accent);
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(245,158,11,.04) 0%, var(--bg-elev) 30%);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 16px 48px rgba(0,0,0,.4),
    0 0 80px rgba(245,158,11,.08);
  transform: translateY(-4px);
}
:where(.pricing-card.featured:hover) {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 24px 64px rgba(0,0,0,.5),
    0 0 100px rgba(245,158,11,.15);
}
:where(.pricing-card.featured .tag) {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
  font-size: .72rem;
  padding: 5px 14px;
}

/* ============================================================
   6. Social-proof strip
   ============================================================ */
:where(.social-proof) {
  max-width: var(--container);
  margin: -32px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
:where(.social-proof-grid) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
:where(.proof-item) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  transition: background .2s;
}
:where(.proof-item:hover) {
  background: var(--surface);
  color: var(--text);
}
:where(.proof-icon) {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
:where(.proof-icon svg) {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:where(.proof-text) {
  display: grid;
  gap: 2px;
  min-width: 0;
}
:where(.proof-text strong) {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
:where(.proof-text span) {
  font-size: .78rem;
  color: var(--muted);
}
:where(.proof-text [data-todo]) {
  outline: 1px dashed rgba(245,158,11,.4);
  outline-offset: 2px;
  padding: 0 4px;
  border-radius: 2px;
}

@media (min-width: 640px) {
  :where(.social-proof-grid) { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   7. Open/Closed status pill (nav)
   ============================================================ */
:where(.nav-status) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  white-space: nowrap;
}
:where(.nav-status::before) {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(142,142,168,.15);
}
:where(.nav-status[data-state="open"]) {
  border-color: rgba(52, 211, 153, .35);
  color: var(--success);
  background: rgba(52, 211, 153, .08);
}
:where(.nav-status[data-state="open"])::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
  animation: statusPulse 2.4s ease-in-out infinite;
}
:where(.nav-status[data-state="closed"]) {
  border-color: rgba(245, 158, 11, .35);
  color: var(--accent);
  background: rgba(245, 158, 11, .08);
}
:where(.nav-status[data-state="closed"])::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
:where(.nav-status[data-state="weekend"]) {
  border-color: rgba(142, 142, 168, .35);
  color: var(--muted);
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, .05); }
}

/* Hide on tightest mobile to keep nav usable */
@media (max-width: 480px) {
  :where(.nav-status) { display: none; }
}

/* ============================================================
   8. Hero entrance — respects reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  :where(.hero-eyebrow),
  :where(.hero h1),
  :where(.hero-sub),
  :where(.hero-actions),
  :where(.hero-meta) {
    animation: none;
  }
  :where(.pricing-card.featured) { transform: none; }
  :where(.nav-status[data-state="open"])::before { animation: none; }
}