/* ==========================================================
   CLICKFU — Shared Stylesheet
   Reads from the active palette via CSS custom properties.
   Mobile-first. No frameworks.
   ========================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.section-sub {
  color: var(--text-mute);
  font-size: 17px;
  margin: 0;
}

.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-card); }

.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-logo {
  width: 32px;
  height: 32px;
  color: var(--primary);  /* SVG uses currentColor — keeps logo on-brand across palettes */
}
.brand-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-tagline {
  font-size: 12px;
  color: var(--text-mute);
  padding-left: 10px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); opacity: 1; }
.site-nav .btn { color: var(--primary-ink); }

@media (max-width: 880px) {
  .brand-tagline { display: none; }
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-mute);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 520px;
}
.hero-form input[type=email] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
}
.hero-form input[type=email]::placeholder { color: var(--text-dim); }
.hero-form input[type=email]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.form-note { font-size: 12px; color: var(--text-dim); margin: 6px 0 0; width: 100%; }
.form-success { font-size: 14px; color: var(--success); margin: 8px 0 0; font-weight: 600; }
.form-error { font-size: 14px; color: var(--danger); margin: 8px 0 0; font-weight: 600; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}

/* Hero art (floating cards) */
.hero-art {
  position: relative;
  height: 460px;
  perspective: 1200px;
}
.hero-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  width: 240px;
}
.hero-card-1 { top: 30px; left: 0; transform: rotate(-4deg); width: 250px; }
.hero-card-2 { top: 160px; right: 0; transform: rotate(3deg); width: 230px; }
.hero-card-3 { bottom: 20px; left: 60px; transform: rotate(-2deg); width: 260px; }

.hero-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.hero-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}
.hero-card-bar {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-card-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}
.hero-card-meta { font-size: 12px; color: var(--text-mute); }
.hero-card-meta strong { color: var(--text); }
.hero-card-mock {
  height: 80px;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-card) 100%);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}
.hero-card-mock::before, .hero-card-mock::after {
  content: ""; position: absolute; left: 12px; right: 12px;
  height: 8px; border-radius: 4px; background: var(--bg-soft);
}
.hero-card-mock::before { top: 14px; }
.hero-card-mock::after { top: 30px; right: 60px; }
.hero-card-lines { display: grid; gap: 6px; }
.hero-card-lines span {
  display: block;
  height: 8px;
  background: var(--bg-soft);
  border-radius: 4px;
}
.hero-card-lines span:nth-child(2) { width: 80%; }
.hero-card-lines span:nth-child(3) { width: 60%; }
.hero-card-lines span:nth-child(4) { width: 70%; }

@media (max-width: 880px) {
  .hero { padding: 50px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 340px; }
  .hero-card-1 { width: 210px; }
  .hero-card-2 { width: 200px; }
  .hero-card-3 { width: 220px; }
}
@media (max-width: 520px) {
  .hero-title { font-size: 32px; line-height: 1.1; }
  .hero-sub { font-size: 16px; }
  .hero-form { flex-direction: column; align-items: stretch; }
  .hero-form input[type=email] { flex: 0 0 auto; width: 100%; }
  .hero-form .btn { width: 100%; flex: 0 0 auto; }
  .hero-trust { flex-direction: column; gap: 6px; }
  .hero-art { height: 280px; transform: scale(0.85); transform-origin: left top; }
  .hero-card-1, .hero-card-2, .hero-card-3 { width: 200px; }
  .site-nav .btn.btn-sm { padding: 8px 14px; font-size: 13px; }
}

/* ---------- How it works ---------- */
.how {
  padding: 80px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}
.how-step h3 {
  font-family: var(--font-head);
  font-size: 22px;
  margin: 0 0 10px;
}
.how-step p {
  margin: 0 0 18px;
  color: var(--text-mute);
  font-size: 15px;
}
.step-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
}

@media (max-width: 880px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ---------- Tool Grid ---------- */
.tools { padding: 90px 0; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tool-flagship { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.tool-status {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg-soft);
  padding: 5px 10px;
  border-radius: 999px;
}
.status-coming-first {
  color: var(--primary-ink);
  background: var(--primary);
}
.tool-icon {
  font-size: 32px;
  margin-bottom: 14px;
  filter: saturate(1.2);
}
.tool-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 0 8px;
}
.tool-tagline {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 16px;
}
.tool-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-mute);
}
.tool-bullets li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.tool-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.tool-notify {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: center;
  flex-wrap: wrap;
}
.tool-notify input[type=email] {
  flex: 1 1 140px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
}
.tool-notify .form-success { width: 100%; font-size: 13px; }

@media (max-width: 980px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- Why Clickfu ---------- */
.why {
  padding: 90px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.why-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.why-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0 0 8px;
}
.why-card p { font-size: 14px; color: var(--text-mute); margin: 0; }

@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { padding: 90px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  position: relative;
}
.price-popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-amount {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.price-credits {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.price-features li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border-soft);
}
.price-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--primary);
  font-weight: 700;
}
.price-cta-locked {
  display: block;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 600;
}
.pricing-foot {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 28px;
}

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-popular { transform: none; }
}

/* ---------- Waitlist CTA ---------- */
.waitlist-cta { padding: 80px 0; }

.waitlist-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background-image:
    radial-gradient(400px 200px at 10% 0%, var(--primary-soft), transparent 70%),
    radial-gradient(400px 200px at 90% 100%, var(--accent-soft), transparent 70%);
}
.waitlist-box h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 12px;
}
.waitlist-box p {
  color: var(--text-mute);
  margin: 0 0 24px;
}
.waitlist-box .waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.waitlist-box input[type=email] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq { padding: 90px 0; background: var(--bg-elev); border-top: 1px solid var(--border-soft); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 22px 22px;
  margin: 0;
  color: var(--text-mute);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 8px;
}
.footer-credit {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--text); }

.footer-bar {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
}
.footer-bar small { color: var(--text-dim); font-size: 13px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
