/*
Theme Name: Creo.io
Theme URI: https://creo.io
Author: Creovate LLC
Author URI: https://creo.io
Description: Custom WordPress theme for Creo.io, the brand growth platform from Creovate LLC. Website builder, AI content tools, creator marketplace, and lead gen — all editable via the WordPress Customizer, native block editor, and Advanced Custom Fields.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: creo
*/

/* =========================================================
   Creo io — Design System
   Ported verbatim from the original React app's src/styles.css.
   All tokens use CSS variables so they can be re-themed without
   touching component markup.
   ========================================================= */

:root {
  /* Brand colors */
  --creo-purple: #6B46E0;
  --creo-cyan: #0099CC;
  --creo-gradient: linear-gradient(135deg, #6B46E0, #0099CC);

  /* Surfaces (light) */
  --bg: #F5F7FF;
  --surface: #FFFFFF;
  --surface-2: #F5F7FF;
  --border: #E4E7F2;

  /* Text */
  --text: #0D1528;
  --text-muted: #5A6480;
  --text-on-brand: #FFFFFF;

  /* Status */
  --success: #0A8C5F;
  --warning: #B07000;
  --error: #C0392B;

  /* Section-separation washes (product page) — same low-opacity-tint
     recipe .badge-ai already uses on --creo-cyan, applied to --creo-purple
     instead, so a new zone reads as "part of the family" rather than an
     unrelated color. */
  --related-wash: rgba(107,70,224,.05);
  --related-border: rgba(107,70,224,.14);

  /* Radii */
  --r-btn: 8px;
  --r-card: 14px;
  --r-modal: 20px;
  --r-badge: 99px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(13,21,40,.04), 0 4px 16px rgba(13,21,40,.06);
  --shadow-lg: 0 10px 40px rgba(13,21,40,.12);

  /* Layout */
  --container: 1180px;
  --nav-h: 68px;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

.dark {
  --bg: #0A0E1F;
  --surface: #111827;
  --surface-2: #0F1424;
  --border: #1F2940;
  --text: #F1F4FF;
  --text-muted: #8A93B0;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  --related-wash: rgba(107,70,224,.10);
  --related-border: rgba(107,70,224,.22);
}

/* Reset-ish */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--text); }
h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--creo-purple);
}

.gradient-text {
  background: var(--creo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--creo-cyan);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--creo-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(107,70,224,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(107,70,224,.45); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--creo-purple); color: var(--creo-purple); }
.btn-ghost {
  background: transparent;
  color: var(--creo-purple);
  padding: 8px 12px;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--creo-cyan); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-badge);
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-ai { background: rgba(0,153,204,.12); color: var(--creo-cyan); border-color: rgba(0,153,204,.25); }
.badge-new { background: rgba(10,140,95,.12); color: var(--success); border-color: rgba(10,140,95,.25); }
.badge-addon { background: rgba(176,112,0,.12); color: var(--warning); border-color: rgba(176,112,0,.25); }
.badge-popular { background: var(--creo-gradient); color: #fff; border-color: transparent; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--creo-purple);
  box-shadow: var(--shadow-lg);
}
.card-anchor { border-color: var(--creo-purple); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--creo-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.card-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* ===== WooCommerce store notice (currency/geo banner, WooPayments Multi-
   Currency reuses this same core element) =====
   WooCommerce injects this via wp_body_open — already right before the nav
   markup in header.php — but its plugin default is `position: fixed; top:
   0`, which floats it on top of everything (including the sticky nav below)
   instead of respecting that DOM position. Overriding position lets it flow
   naturally as a real pre-header: it sits above the nav and pushes it down
   while visible, then scrolls away on dismiss with the sticky nav taking
   over normally. Do not touch `display` — WooCommerce's own JS toggles that
   based on a dismissal cookie. */
.woocommerce-store-notice {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 51;
  width: 100%;
  margin: 0;
  padding: 10px 24px;
  background: var(--creo-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}
.woocommerce-store-notice__dismiss-link {
  display: inline-block;
  margin-left: 14px;
  padding: 3px 14px;
  border-radius: var(--r-badge);
  border: 1px solid rgba(255,255,255,.65);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s ease;
}
.woocommerce-store-notice__dismiss-link:hover {
  background: rgba(255,255,255,.2);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--creo-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
}
.nav-link { transition: color .15s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}
.nav-icon-btn:hover { color: var(--creo-purple); border-color: var(--creo-purple); }

.hamburger { display: none; }

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 49;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { font-size: 16px; font-weight: 600; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(107,70,224,.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 18px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Experimental home-page hero background — EASY UNDO: remove the single
   "hero-with-image" class from the <section class="hero"> tag in
   front-page.php (or delete this block) to revert with nothing else to
   touch. Dark scrim over the photo keeps text readable regardless of
   where the image's bright/dark areas land; text is forced to white here
   since a photo background needs consistent contrast independent of the
   site's light/dark theme tokens. */
.hero-with-image {
  background-image: linear-gradient(rgba(10,14,31,.72), rgba(10,14,31,.82)), url('assets/images/home-hero-bg.png');
  background-size: cover;
  background-position: center;
}
.hero-with-image::before { display: none; }
.hero-with-image h1 { color: #fff; }
.hero-with-image .hero-sub { color: rgba(255,255,255,.82); }
/* .btn-outline normally uses var(--text)/var(--border), which are
   near-black/near-invisible in light mode — fine on a plain page
   background, but unreadable against this section's fixed dark photo. */
.hero-with-image .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.hero-with-image .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* Logo strip */
.logo-strip {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.logo-strip-track {
  display: flex;
  gap: 56px;
  animation: scroll-x 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.powered-by-strip { text-align: center; padding: 28px 0 4px; }
.powered-by-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.powered-by-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; }

.portfolio-thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(107,70,224,.12), rgba(0,153,204,.12));
  color: var(--creo-purple);
}

.logo-dot {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
  color: var(--creo-purple);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Section heading ===== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* ===== Social proof bar ===== */
.portfolio-section {
  background: var(--related-wash);
  border-top: 1px solid var(--related-border);
  border-bottom: 1px solid var(--related-border);
}

.proof-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 24px;
}
.proof-grid.proof-grid-4 { grid-template-columns: repeat(4, 1fr); }
.proof-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.proof-num .gradient-text { display: inline-block; }
.proof-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ===== Steps ===== */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--creo-gradient);
  color: #fff;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Grid items default to min-width:auto, which floors a column's width at
     its content's min-content size — since .price-amount is nowrap, the
     card with the widest price text (e.g. Pro's "$299.00 /mo") was forcing
     its 1fr column wider than the others, throwing off the equal 4-column
     split. This lets every column shrink to its fair share regardless. */
  min-width: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--creo-purple); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--creo-purple);
  box-shadow: 0 16px 40px rgba(107,70,224,.18);
}
.price-flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
}
.price-card-top { flex: 1; display: flex; flex-direction: column; }
.price-card-bottom { margin-top: 24px; }
.price-note { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin: 0 0 10px; }
.price-tier { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--creo-purple); margin-bottom: 12px; }
/* Two lines, not one: the struck-through regular price sits above the bold
   current price, rather than crammed onto the same line — that's what made
   cards with a discount feel cramped/untidy next to Agency's plain "Custom". */
.price-amount { display: flex; flex-direction: column; gap: 2px; }
.price-amount-was { font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.price-amount-was del { text-decoration: line-through; }
.price-amount-main { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.price-amount-main small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.price-amount-main ins { text-decoration: none; }
.price-amount .woocommerce-Price-amount { font-weight: inherit; }
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 21px; font-weight: 800; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.7; color: var(--text); }
.legal-content ul { padding-left: 20px; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.legal-content a { color: var(--creo-purple); }
.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.price-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text);
}
.price-features svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,14,31,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadein .2s ease;
}
.modal {
  background: var(--surface);
  border-radius: var(--r-modal);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.modal-step-dot { flex: 1; height: 4px; border-radius: 99px; background: var(--border); }
.modal-step-dot.active { background: var(--creo-gradient); }
.addon {
  display: flex; gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.addon:hover { border-color: var(--creo-purple); }
.addon.selected { border-color: var(--creo-purple); background: rgba(107,70,224,.06); }
.addon-info { flex: 1; }
.addon-name { font-weight: 600; font-size: 14px; }
.addon-desc { color: var(--text-muted); font-size: 13px; }
.addon-price { font-weight: 700; color: var(--creo-purple); }
.addon-radio, .addon-check {
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.addon-radio { border-radius: 50%; }
.addon-check { border-radius: 6px; }
.addon.selected .addon-radio,
.addon.selected .addon-check { background: var(--creo-purple); border-color: var(--creo-purple); }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.summary-row.total { font-weight: 700; font-size: 18px; border-bottom: 0; padding-top: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-error { color: var(--error); font-size: 13px; margin-top: 12px; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes creo-spin { to { transform: rotate(360deg); } }
/* Video generation progress indicator — see assets/js/tool-video-image-generator.js. */
.creo-vi-spinner {
  width: 36px; height: 36px; margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--creo-purple);
  border-radius: 50%;
  animation: creo-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .creo-vi-spinner { animation: none; opacity: .6; }
}

/* ===== Forms ===== */
/* Lead Gen "Book a call" card — gradient pitch panel + form, side by side. */
.leadgen-cta {
  display: grid;
  grid-template-columns: 42% 1fr;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  margin: 40px 0 32px;
}
.leadgen-cta-pitch {
  background: var(--creo-gradient);
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.leadgen-cta-pitch .eyebrow { color: rgba(255,255,255,.85); }
.leadgen-cta-pitch h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0 26px;
  text-wrap: balance;
}
.leadgen-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.leadgen-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.leadgen-checklist .check-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.leadgen-cta-form { background: var(--surface); padding: 40px 36px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.platform-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-check {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-btn);
  font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer;
  background: var(--surface-2);
}
.platform-check input { accent-color: var(--creo-purple); }

@media (max-width: 780px) {
  .leadgen-cta { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr; }
}

.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--creo-purple);
  box-shadow: 0 0 0 3px rgba(107,70,224,.15);
}
.form-success { color: var(--success); font-weight: 600; }
.form-error-banner {
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.25);
  color: var(--error);
  border-radius: var(--r-btn);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== Filter pills ===== */
.filter-bar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill {
  padding: 8px 16px;
  border-radius: var(--r-badge);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .15s ease;
}
.filter-pill:hover { color: var(--creo-purple); border-color: var(--creo-purple); }
.filter-pill.active { background: var(--creo-gradient); color: #fff; border-color: transparent; }

/* ===== Creator card ===== */
.creator-card { display: flex; flex-direction: column; gap: 12px; }
.creator-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--creo-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
  overflow: hidden;
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-meta { display: flex; justify-content: space-between; align-items: center; }
.creator-rate { font-weight: 700; color: var(--creo-purple); }

/* ===== CTA banner ===== */
.cta-banner {
  margin-top: 56px;
  padding: 40px;
  border-radius: var(--r-card);
  background: var(--creo-gradient);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; font-size: 22px; font-weight: 700; }
.cta-banner p { color: rgba(255,255,255,.85); margin-top: 4px; }
.cta-banner .btn { background: #fff; color: var(--creo-purple); }
.cta-banner .btn:hover { background: rgba(255,255,255,.92); }

/* ===== Platform pills ===== */
.platform-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 32px 0 56px; }
.platform-pill {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-badge);
  font-weight: 600;
  font-size: 13px;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--creo-purple); }
.footer-tag { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .15s ease;
}
.footer-social a:hover { color: #fff; background: var(--creo-gradient); border-color: transparent; }

/* ===== Page header ===== */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}
.page-header h1 { font-size: 42px; margin-bottom: 16px; }
.page-header p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ===== Team avatar ===== */
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--creo-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 32px;
  margin-bottom: 16px;
}

/* ===== Creator single profile ===== */
.creator-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.creator-profile-avatar {
  width: 220px; height: 220px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--creo-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 56px; font-weight: 700;
}
.creator-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== WooCommerce chrome minimal reset (full overrides in assets/css/woocommerce.css) ===== */
.woocommerce-page main { padding: 48px 0 96px; }

/* ===== Video & Image Generator — docked generation bar + history grid ===== */
/* Generous room for the fixed dock below so the last row of history (and
   its Download/Regenerate buttons) is always reachable by scrolling, no
   matter how many past generations are in the grid. The dock can wrap to
   2-3 lines on narrow viewports, so mobile gets extra clearance. */
.creo-vi-page { padding-bottom: 300px; }
@media (max-width: 700px) { .creo-vi-page { padding-bottom: 380px; } }
/* A uniform grid rather than variable-height masonry — every card is the
   same footprint regardless of the generation's native aspect ratio (see
   .creo-vi-item-media below), so this reads as one consistent gallery
   instead of a jumble of different-sized tiles. */
.creo-vi-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.creo-vi-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  animation: fadein .25s ease;
}
/* Every result previews inside the same fixed window — a tall 9:16 clip and
   a wide 16:9 image both letterbox to fit, full design always visible, no
   cropping. The actual downloaded file still carries its real aspect ratio;
   only this on-page preview is normalized. */
.creo-vi-item-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.creo-vi-item-media img, .creo-vi-item-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.creo-vi-play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  background: rgba(10,14,31,.28);
}
.creo-vi-play-badge::before {
  content: ''; position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,14,31,.45);
}
.creo-vi-item-model-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px;
  border-radius: var(--r-badge);
  background: rgba(13,21,40,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.creo-vi-item-body { padding: 10px 12px; }
.creo-vi-item-prompt {
  font-size: 12px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.creo-vi-item-actions { display: flex; gap: 6px; }
.creo-vi-item-actions .btn { flex: 1; font-size: 12px; padding: 6px 10px; }
.creo-vi-regenerate-panel { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.creo-vi-revision-input {
  width: 100%; resize: vertical; font-size: 12px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--r-input, 8px);
  background: var(--surface-2); color: var(--text); padding: 8px 10px;
}
.creo-vi-revision-actions { display: flex; gap: 6px; }
.creo-vi-revision-actions .btn { flex: 1; font-size: 12px; padding: 6px 10px; }
.creo-vi-item-pending {
  padding: 32px 16px; text-align: center;
  min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.creo-vi-pending-bar {
  width: 100%; max-width: 180px; height: 4px; border-radius: 999px;
  background: var(--border); overflow: hidden; margin-top: 10px;
}
.creo-vi-pending-bar-fill {
  height: 100%; width: 40%; border-radius: 999px;
  background: var(--creo-gradient);
  animation: creo-vi-indeterminate 1.4s ease-in-out infinite;
}
@keyframes creo-vi-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) { .creo-vi-pending-bar-fill { animation: none; width: 100%; } }
.creo-vi-pending-note { font-size: 11px; color: var(--text-muted); margin-top: 10px; max-width: 220px; }
.creo-vi-item-failed { border-color: var(--error); }
.creo-vi-item-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  display: inline-block; margin-bottom: 8px;
}
.creo-vi-item-badge.failed { background: rgba(220,38,38,.12); color: var(--error); }

/* Full-screen pop-out — click any history thumbnail to view it at full
   size with the actual aspect ratio (video gets real controls here, unlike
   the muted first-frame preview in the grid). */
.creo-vi-lightbox-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,14,31,.86);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.creo-vi-lightbox-media img, .creo-vi-lightbox-media video {
  max-width: 100%; max-height: 85vh; display: block; border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.creo-vi-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.28);
}
.creo-vi-lightbox-close:hover { background: rgba(255,255,255,.24); }

/* Brand color swatches — a filled circle (native color picker) paired with
   a hex text field kept in sync both ways, instead of a bare native color
   input with no way to type/paste an exact brand hex. */
.creo-vi-color-row { display: flex; gap: 12px; flex-wrap: wrap; }
.creo-vi-color-swatch {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--r-input, 8px);
  padding: 6px 10px; background: var(--surface-2);
}
/* Native <input type=color> swatch rendering is inconsistent across
   browsers (some showed a blank/white circle regardless of value) — the
   visible circle is a plain div carrying the actual hex as its
   background-color instead, with the real color input sitting on top,
   fully transparent, just to catch the click and open the OS picker. */
.creo-vi-color-swatch-fill {
  position: relative;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border);
  cursor: pointer; overflow: hidden; display: block;
}
.creo-vi-color-swatch-fill.is-empty {
  background:
    linear-gradient(45deg, transparent 46%, var(--border) 48%, var(--border) 52%, transparent 54%),
    var(--surface);
}
.creo-vi-brand-color-picker {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: none; opacity: 0; cursor: pointer;
}
.creo-vi-brand-color-hex {
  width: 84px; border: none; background: transparent; font-size: 13px;
  font-family: monospace; color: var(--text); padding: 0;
}
.creo-vi-brand-color-hex:focus { outline: none; }

/* Floating pill, not flush against the viewport edge — the brand gradient
   makes it read as the one persistent "action bar" on the page rather than
   just another surface-colored panel blending into everything else. */
.creo-vi-dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 40;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1180px;
  background: var(--creo-gradient);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(107,70,224,.35);
  padding: 14px 20px;
}
.creo-vi-dock-inner { width: 100%; }
.creo-vi-dock-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
/* Inputs sit as white pills on top of the gradient bar rather than trying
   to theme the gradient itself for light/dark text — higher contrast and
   matches how .btn-primary already treats this same gradient elsewhere. */
.creo-vi-dock-row select {
  border: none; border-radius: var(--r-input, 8px);
  background: #fff; color: #1a1330; font-size: 13px; padding: 0 10px;
  /* Native <select> sizes to its longest <option> text by default — with
     no cap that pushed the rest of the row off-screen entirely (model
     labels like "Nano Banana" plus a description ran well past 200px).
     min-width:0 lets it actually shrink inside the flex row instead of
     forcing overflow, and text-overflow ellipsizes anything still cut off. */
  min-width: 0; flex: 1 1 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Selects only had horizontal padding, so their height came from the
   browser's own default control sizing while the Image/Video pills got
   their height from explicit vertical padding — align-items:stretch can't
   fully equalize that gap for native form controls, so match it directly. */
.creo-vi-dock-row select {
  padding-top: 10px; padding-bottom: 10px;
  min-height: 44px; box-sizing: border-box;
}
#creo-vi-model { flex: 2 1 220px; max-width: 340px; }
#creo-vi-aspect-ratio { max-width: 150px; }
#creo-vi-duration { max-width: 130px; }
/* The Image/Video toggle is a full .addon component (icon + label + its own
   padding), not a plain button — squeezing it into a narrow fixed column
   pushed its label text past the box edge. It gets a wider, non-shrinking
   lane and tighter internal spacing scoped to just this context instead. */
.creo-vi-dock-row .grid-2 { flex: 0 0 270px; width: 270px; min-width: 0; }
.creo-vi-dock-row .grid-2 .addon {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff;
  padding: 10px 12px; gap: 8px; min-height: 44px; box-sizing: border-box;
  align-items: center;
}
.creo-vi-dock-row .grid-2 .addon.selected { background: #fff; color: #1a1330; border-color: #fff; }
.creo-vi-dock-row .grid-2 .addon .addon-desc { color: rgba(255,255,255,.75); }
.creo-vi-dock-row .grid-2 .addon-radio { width: 18px; height: 18px; flex-shrink: 0; font-size: 11px; }
.creo-vi-dock-row .grid-2 .addon-name { font-size: 13px; white-space: nowrap; }
#creo-vi-prompt {
  /* flex-basis:100% previously forced this to claim the entire row width by
     itself, which — combined with flex-wrap on the row — pushed Generate
     onto its own line below every time, regardless of how wide the dock
     was. flex-basis:0 lets it grow to fill just the remaining space next
     to the button instead. */
  flex: 1 1 0%; resize: vertical; border: none; border-radius: var(--r-input, 8px);
  padding: 10px 12px; font-family: inherit; font-size: 14px; background: #fff; color: #1a1330;
  min-height: 64px; max-height: 200px; min-width: 0;
}
/* Inverted from .btn-primary's usual gradient fill — on top of a gradient
   bar, a gradient button disappears into it. Solid white reads as the one
   thing to click. */
#creo-vi-submit {
  white-space: nowrap; display: flex; align-items: center; flex: 0 0 auto;
  background: #fff; color: var(--creo-purple); box-shadow: none;
}
#creo-vi-submit:hover { background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
#creo-vi-credits { background: rgba(107,70,224,.12); }
.creo-vi-dock-disclaimer { color: rgba(255,255,255,.75); margin-top: 8px; margin-bottom: 0; }
@media (max-width: 700px) {
  .creo-vi-dock { left: 8px; right: 8px; width: auto; transform: none; }
  .creo-vi-dock-row .grid-2 { width: 100%; }
}

/* Standard "AI can make mistakes" note, same convention ChatGPT/Claude use
   near their own generate/send controls — shown on every AI tool page so
   customers know to review output (spelling, claims, on-image text)
   before using it, rather than treating it as guaranteed-correct. */
.creo-ai-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Usage summary + "Go Unlimited" — a proactive nudge (how much of this
   cycle's cap is left) shown on every visit, not just once a generation
   gets blocked at the wall. */
.creo-vi-usage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
}
.creo-vi-usage-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.creo-vi-usage-stat { display: flex; align-items: center; gap: 8px; }
.creo-vi-usage-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.creo-vi-usage-track {
  width: 72px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden;
}
.creo-vi-usage-fill { height: 100%; border-radius: 999px; background: var(--creo-gradient); }
.creo-vi-usage-fill.is-near-limit { background: #E8A63D; }
.creo-vi-usage-fill.is-at-limit { background: var(--error); }
.creo-vi-usage-count { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.creo-vi-usage-note { font-size: 11px; color: var(--text-muted); }
.creo-vi-bonus-note { color: var(--creo-purple); font-weight: 600; margin-left: 8px; }
.creo-vi-go-unlimited, .creo-vi-buy-credits { white-space: nowrap; font-size: 13px; padding: 8px 16px; }

.creo-vi-brand-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 320px;
  padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface); cursor: pointer; text-align: left;
}
.creo-vi-brand-btn-text { display: flex; flex-direction: column; }
.creo-vi-brand-btn-text strong { font-size: 14px; }
.creo-vi-brand-btn-text small { color: var(--text-muted); font-size: 12px; margin-top: 1px; }
.creo-vi-brand-chevron { color: var(--text-muted); transition: transform .2s ease; flex-shrink: 0; }
.creo-vi-brand-btn[aria-expanded="true"] .creo-vi-brand-chevron { transform: rotate(180deg); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .creator-profile { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: inline-flex; }
  .grid-3, .grid-4, .grid-2, .pricing-grid, .proof-grid, .proof-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
