/* ═══════════════════════════════════════════════════════════════
   FillFrog — Redesign enhancement layer
   Loaded AFTER each page's inline styles so its tokens win.
   Signature: the tri-color "prism" (iris → teal → gold), the three
   product colors — Retail / Pre-Sell / Scheduling.
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400..800&display=swap');

/* ─── TOKENS ─── */
:root,
[data-theme="dark"] {
  --bg:        #07080d;
  --accent:    #7c6cff;
  --glow:      rgba(124,108,255,0.35);
  --spot:      rgba(124,108,255,0.10);
  --prism:     linear-gradient(90deg, #7c6cff 0%, #00d4a0 52%, #f5a623 100%);
  --hover:    #282828;
  --elev:     #181818;
  --elev2:    #1f1f1f;
  --green:    #1ed760;
  --green-hi: #3be477;
  --ink:        #1a1a1a;
  --green-ink:  #004c3f;
  --green-tint: #eaf4f0;
  --amber:      #9a6700;
  --amber-tint: #fff4d9;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface2:  #f4f5f9;
  --bar-bg:    #eef0f5;
  --cap-bg:    #fafbfd;
  --border:    rgba(15,17,30,0.08);
  --border2:   rgba(15,17,30,0.13);
  --text:      #0b0c11;
  --muted:     #5a6070;
  --accent:    #5b4bd5;
  --glow:      rgba(91,75,213,0.16);
  --spot:      rgba(91,75,213,0.07);
  --nav-bg:    rgba(255,255,255,0.82);
  --hover:    #282828;
  --elev:     #181818;
  --elev2:    #1f1f1f;
  --green:    #1ed760;
  --green-hi: #3be477;
  --ink:        #1a1a1a;
  --green-ink:  #004c3f;
  --green-tint: #eaf4f0;
  --amber:      #9a6700;
  --amber-tint: #fff4d9;
  color-scheme: light;
}

/* ═══════════════════════════════════════════════════════════
   COLOR & DEPTH LAYER
   Adds Shopify's multi-color warmth on top of the base system.
   Paint only — no sizing, spacing, or positioning changes.
   ═══════════════════════════════════════════════════════════ */
:root {
  --mint:       #d8f2e5;  --mint-ink:   #00704f;
  --lilac:      #e6e2ff;  --lilac-ink:  #8b7bff;
  --peach:      #ffe6d4;  --peach-ink:  #ff6437 ;
  --sky:        #d9ebff;  --sky-ink:    #509bf5;
  --lemon:      #fff1c9;  --lemon-ink:  #7d5a00;
  --rose:       #ffdfe6;  --rose-ink:   #a81f47;
}

::selection { background: rgba(124,108,255,0.35); }
[data-theme="light"] ::selection { background: rgba(91,75,213,0.2); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Slightly stronger display tracking now that real Manrope weights load */
h1, .section-title, .cta-title { letter-spacing: -0.04em; }

/* ─── AURORA HERO BACKDROP (replaces the blur blobs) ─── */
.hero .blob, .page-hero .blob { display: none; }
.hero, .page-hero { isolation: isolate; }
.hero::before, .page-hero::before {
  content: '';
  position: absolute; inset: -25% -10% auto; height: 120%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 22% 22%, rgba(124,108,255,0.30) 0%, transparent 68%),
    radial-gradient(36% 42% at 78% 16%, rgba(0,212,160,0.20) 0%, transparent 68%),
    radial-gradient(30% 36% at 58% 62%, rgba(245,166,35,0.12) 0%, transparent 70%);
  filter: blur(70px) saturate(1.15);
  animation: ff-aurora 16s ease-in-out infinite alternate;
  transform-origin: 50% 30%;
}
.hero::after, .page-hero::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(124,108,255,0.18) 0%, transparent 75%);
}
[data-theme="light"] .hero::before, [data-theme="light"] .page-hero::before {
  background:
    radial-gradient(42% 46% at 22% 22%, rgba(105,88,255,0.16) 0%, transparent 68%),
    radial-gradient(36% 42% at 78% 16%, rgba(0,190,150,0.13) 0%, transparent 68%),
    radial-gradient(30% 36% at 58% 62%, rgba(240,160,40,0.09) 0%, transparent 70%);
}
[data-theme="light"] .hero::after, [data-theme="light"] .page-hero::after {
  background: radial-gradient(50% 60% at 50% 0%, rgba(105,88,255,0.10) 0%, transparent 75%);
}
@keyframes ff-aurora {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.06) rotate(2deg); }
  100% { transform: translate3d(-2%, -2%, 0) scale(1.02) rotate(-2deg); }
}


/* ─── HERO PHOTO BACKDROP (fullscreen Unsplash image beneath the aurora) ─── */
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%; max-width: none; display: block;
  object-fit: cover; object-position: center;
  filter: saturate(0.8) brightness(0.85) contrast(1.05);
}
[data-theme="light"] .hero-bg img { filter: saturate(0.85); }
/* Tint + vignette keeps the headline legible; fades to the page bg so the section blends into the next */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(7,8,13,0.38) 0%, transparent 70%),
    linear-gradient(180deg, rgba(7,8,13,0.74) 0%, rgba(7,8,13,0.78) 45%, rgba(7,8,13,0.92) 82%, var(--bg) 100%);
}
[data-theme="light"] .hero-bg::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255,255,255,0.40) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.82) 45%, rgba(255,255,255,0.94) 82%, var(--bg) 100%);
}

/* ─── GRADIENT HEADLINE SHIMMER ─── */
.line-accent, .cta-title .highlight, .hero h1 .line-accent {
  background-size: 200% 100%;
  animation: ff-pan 7s ease-in-out infinite alternate;
}
@keyframes ff-pan { to { background-position: 100% 0; } }

/* ─── NAV ─── */
.ff-nav { transition: background .3s, border-color .3s, box-shadow .3s; }
.ff-nav.scrolled { box-shadow: 0 10px 40px rgba(5,6,15,0.35); }
[data-theme="light"] .ff-nav.scrolled { box-shadow: 0 10px 34px rgba(20,22,45,0.08); }
.ff-nav .nav-link { position: relative; }
.ff-nav .nav-link.active { color: var(--text) !important; }
.ff-nav .nav-link.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  border-radius: 2px;
  background: var(--prism);
}

/* ─── BUTTONS: gradient + shine sweep ─── */
.btn-hero, .btn-cta-main, .btn-ff-primary, .btn-buy-primary {
  background-image: linear-gradient(135deg, #8b7bff 0%, #6c5ce7 55%, #5a7bff 120%);
  position: relative; overflow: hidden;
}
[data-theme="light"] .btn-hero, [data-theme="light"] .btn-cta-main,
[data-theme="light"] .btn-ff-primary, [data-theme="light"] .btn-buy-primary {
  background-image: linear-gradient(135deg, #6c5ce7 0%, #5b4bd5 55%, #4d6ce8 120%);
}
.btn-hero-ps, .btn-cta-ps {
  background-image: linear-gradient(135deg, #17e2b2 0%, #00d4a0 60%, #00b9a8 120%);
  position: relative; overflow: hidden;
}
.btn-hero-sched, .btn-cta-sched {
  background-image: linear-gradient(135deg, #ffbe45 0%, #f5a623 60%, #f08c1e 120%);
  position: relative; overflow: hidden;
}
.btn-hero::after, .btn-cta-main::after, .btn-ff-primary::after, .btn-buy-primary::after,
.btn-hero-ps::after, .btn-cta-ps::after, .btn-hero-sched::after, .btn-cta-sched::after {
  content: '';
  position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}
.btn-hero:hover::after, .btn-cta-main:hover::after, .btn-ff-primary:hover::after, .btn-buy-primary:hover::after,
.btn-hero-ps:hover::after, .btn-cta-ps:hover::after, .btn-hero-sched:hover::after, .btn-cta-sched:hover::after {
  left: 130%;
}

/* ─── CARD SPOTLIGHT (cursor-tracking tint, set via JS --mx/--my) ─── */
.feature-card, .ai-card, .feature-cell, .use-case-card, .connect-card,
.product-tile, .shot-card, .product-card, .pos-summary-card, .pricing-callout {
  position: relative;
}
.feature-card::after, .ai-card::after, .feature-cell::after, .use-case-card::after,
.connect-card::after, .product-tile .tile-body::after, .product-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.feature-card:hover::after, .ai-card:hover::after, .feature-cell:hover::after,
.use-case-card:hover::after, .connect-card:hover::after,
.product-tile:hover .tile-body::after, .product-card:hover::after {
  opacity: 1;
}

/* ─── LIGHT MODE: Apple-style layered card shadows ─── */
[data-theme="light"] .product-tile,
[data-theme="light"] .feature-card,
[data-theme="light"] .ai-card,
[data-theme="light"] .feature-cell,
[data-theme="light"] .use-case-card,
[data-theme="light"] .connect-card,
[data-theme="light"] .shot-card,
[data-theme="light"] .product-card,
[data-theme="light"] .pos-summary-card,
[data-theme="light"] .pricing-callout,
[data-theme="light"] .presell-card,
[data-theme="light"] .payments-section,
[data-theme="light"] .showcase-card,
[data-theme="light"] .rate,
[data-theme="light"] .calc,
[data-theme="light"] .ai-note {
  box-shadow: 0 1px 2px rgba(16,17,32,0.04), 0 12px 34px rgba(28,26,72,0.06);
}
[data-theme="light"] .product-tile:hover {
  box-shadow: 0 20px 50px rgba(28,26,72,0.13), 0 0 40px var(--glow);
}
[data-theme="light"] .product-tile.tile-presell:hover {
  box-shadow: 0 20px 50px rgba(28,26,72,0.13), 0 0 40px rgba(0,168,130,0.16);
}
[data-theme="light"] .product-tile.tile-scheduling:hover {
  box-shadow: 0 20px 50px rgba(28,26,72,0.13), 0 0 32px rgba(212,132,10,0.14);
}
[data-theme="light"] .ai-card:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .feature-cell:hover {
  box-shadow: 0 16px 40px rgba(28,26,72,0.10), 0 0 28px var(--glow);
}
[data-theme="light"] .shot-card:hover,
[data-theme="light"] .product-card:hover {
  box-shadow: 0 22px 54px rgba(28,26,72,0.12);
}
[data-theme="light"] .gateway-img-wrap,
[data-theme="light"] .pos-thumb-wrap,
[data-theme="light"] .cal-card,
[data-theme="light"] .hero-phone-inner,
[data-theme="light"] .pricing-card-mock {
  box-shadow: 0 2px 6px rgba(16,17,32,0.05), 0 24px 60px rgba(28,26,72,0.12);
}
[data-theme="light"] .presell-phone-img {
  box-shadow: 0 24px 60px rgba(28,26,72,0.14), 0 0 50px var(--glow2);
}

/* Alternating tinted band behind the AI section (both themes, stronger in light) */
.ai-section {
  background: linear-gradient(180deg, transparent 0%, rgba(124,108,255,0.045) 18%, rgba(124,108,255,0.045) 82%, transparent 100%);
}
[data-theme="light"] .ai-section {
  background: linear-gradient(180deg, transparent 0%, #f5f5fb 15%, #f5f5fb 85%, transparent 100%);
}

/* ─── STATS BAR: prism numerals ─── */
.stat-num { position: relative; }
.stats-bar { position: relative; overflow: hidden; }
.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--prism); opacity: .55;
}

/* ─── PRISM RIBBON above the footer ─── */
footer { position: relative; }
footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--prism);
  opacity: .65;
}

/* ─── MARQUEE (homepage industry chips) ─── */
.ff-marquee {
  overflow: hidden;
  margin-top: 3.2rem;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ff-marquee-track {
  display: flex; width: max-content;
  animation: ff-scroll 34s linear infinite;
}
.ff-marquee:hover .ff-marquee-track { animation-play-state: paused; }
.ff-marquee-half { display: flex; gap: 14px; padding-right: 14px; }
.ff-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.02rem; font-weight: 600; white-space: nowrap;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 12px 24px;
  transition: color .2s, border-color .2s, transform .2s;
}
[data-theme="light"] .ff-chip { box-shadow: 0 1px 2px rgba(16,17,32,0.04), 0 6px 18px rgba(28,26,72,0.05); }
.ff-chip:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
@keyframes ff-scroll { to { transform: translateX(-50%); } }

/* ─── PERSPECTIVE SETTLE for screenshots (JS adds .settled in view) ─── */
.ff-persp {
  transform: perspective(1400px) rotateX(16deg) scale(0.94);
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.ff-persp.settled { transform: perspective(1400px) rotateX(0deg) scale(1); }

/* ─── BENTO SCREENSHOT GALLERY (pos.php) ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
}
.bento-grid .shot-card.span2c { grid-column: span 2; }
.bento-grid .shot-card.span2r { grid-row: span 2; }
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .bento-grid .shot-card.span2c { grid-column: span 2; }
  .bento-grid .shot-card.span2r { grid-row: span 1; }
}
@media (max-width: 620px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .bento-grid .shot-card.span2c { grid-column: span 1; }
}

/* ─── SECTION PLUMBING ─── */
.section { padding: 90px 0; }
.section.on-panel { background: var(--hover); }
.section.on-dark { background: var(--dark); color: #fff; }
.on-dark .display-2x, .on-dark .display-1x { color: #fff; }
.on-dark .lede, .on-dark .section-head .sub { color: #b5b5b5; }
.on-dark .eyebrow { color: #3ddc97; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .sub { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-top: 14px; }

/* ─── STAT BAND (big Shopify numbers) ─── */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
@media (max-width: 992px) { .stat-band { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .stat-band { grid-template-columns: 1fr; } }
.stat-col { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; color: var(--green);
}
.stat-label { font-size: 0.92rem; font-weight: 600; color: white; margin-top: 10px; }
.stat-sub { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.on-dark .stat-col { border-top-color: rgba(255,255,255,0.4); }
.on-dark .stat-num { color: #3ddc97; }
.on-dark .stat-label { color: #fff; }
.on-dark .stat-sub { color: #b5b5b5; }

/* ─── SPOTIFY CARD (playlist card + hover play) ─── */
.sp-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--elev); border-radius: 8px; padding: 16px;
  transition: background-color .3s;
  position: relative;
}
.sp-card:hover { background: var(--hover); }
.sp-art {
  position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--elev2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sp-art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sp-art.duo { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.sp-art .art-label {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.sp-play {
  position: absolute; right: 10px; bottom: 10px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 12px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background-color .12s;
}
.sp-play svg { width: 18px; height: 18px; fill: #000; margin-left: 2px; }
.sp-card:hover .sp-play { opacity: 1; transform: translateY(0); }
.sp-play:hover { background: var(--green-hi); }
.sp-card-title { font-weight: 700; font-size: 1rem; color: #fff; margin-top: 14px; letter-spacing: -0.01em; }
.sp-card-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.55; margin-top: 5px; flex: 1; }
.sp-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* Small tag chips */
.mini-tag {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--pill);
  color: var(--muted); background: rgba(255,255,255,0.08);
}
.mini-tag.green { color: #000; background: var(--green); }

/* Category chips (search-style) */
.sp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  background: #2a2a2a; border-radius: var(--pill);
  padding: 9px 18px; white-space: nowrap;
  transition: background-color .15s;
}
.sp-chip:hover { background: #3a3a3a; color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── STAT BAND: rotate accent colours ─── */
.stat-col:nth-child(1) { border-top-color: var(--green); }
.stat-col:nth-child(1) .stat-num { color: var(--green); }
.stat-col:nth-child(2) { border-top-color: var(--lilac-ink); }
.stat-col:nth-child(2) .stat-num {color: var(--lilac-ink);}
.stat-col:nth-child(3) { border-top-color: var(--sky-ink); }
.stat-col:nth-child(3) .stat-num { color: var(--sky-ink); }
.stat-col:nth-child(4) { border-top-color: var(--peach-ink); }
.stat-col:nth-child(4) .stat-num { color: var(--peach-ink); }
.section.on-panel .stat-band { position: relative; }

/* ─── AI CARD TAG: sparkle icon chip instead of text ─── */
.ai-tag {
  width: 34px; height: 34px;
  padding: 0;
  align-items: center; justify-content: center;
  border-radius: 10px;
}
.ai-tag svg { width: 17px; height: 17px; display: block; }

/* ─── SMALL POLISH ─── */
.pricing-strip {
  background: var(--surface);
  border: 1px solid var(--border);
}
[data-theme="light"] .pricing-strip { box-shadow: 0 1px 2px rgba(16,17,32,0.04), 0 8px 24px rgba(28,26,72,0.05); }
[data-theme="light"] .pos-thumb-wrap img,
[data-theme="light"] .hero-visual img { background: #fff; }
[data-theme="light"] body::before { opacity: 0.22; } /* soften grain on white */

/* Screenshot frames get a faint prism edge on hover */
.pos-thumb-wrap, .gateway-img-wrap, .hero-visual-inner { transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.pos-thumb-wrap:hover { transform: translateY(-4px); border-color: rgba(124,108,255,0.45); }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-hero::before,
  .line-accent, .cta-title .highlight,
  .blob, .presell-phone-img, .zero, .rings circle { animation: none !important; }
  .ff-marquee { -webkit-mask-image: none; mask-image: none; }
  .ff-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .ff-marquee-half { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .ff-marquee-half[aria-hidden="true"] { display: none; }
  .ff-persp { transform: none; transition: none; }
}
