/* Kodeleads marketing site — design system ported from the Metafi Figma kit.
   Tokens below are the kit's own values; only the brand hue is shared with the app. */

:root {
  --brand:        #5f57ff;
  --brand-hover:  #4c44e6;
  --brand-deep:   #303597;
  --brand-soft:   #eeedff;
  --ink:          #0d0d12;
  --muted:        #666d80;
  --muted-light:  #a4abb8;
  --border:       #eeeff2;
  --border-strong:#dfe1e6;
  --surface:      #f8f9fb;
  --white:        #ffffff;
  --teal:         #40c4aa;
  --teal-soft:    #e7fef8;
  --cyan:         #33cfff;
  --danger:       #df1c41;

  --container: 1200px;
  --radius-s:  8px;
  --radius-m:  12px;
  --radius-l:  20px;
  --radius-xl: 24px;
  --pill:      999px;

  --shadow-s: 0 1px 2px rgba(13, 13, 18, .04);
  --shadow-m: 0 4px 16px rgba(13, 13, 18, .06);
  --shadow-l: 0 24px 60px rgba(13, 13, 18, .10);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter Tight', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-size: 14px; font-weight: 600; color: var(--brand);
  letter-spacing: 0; margin-bottom: 12px;
}
h2.section-title { font-size: 44px; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-m);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--dark   { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #24242e; }
.btn--brand  { background: var(--brand); color: var(--white); }
.btn--brand:hover { background: var(--brand-hover); }
.btn--light  { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.btn--light:hover { border-color: var(--muted-light); }
.btn--onbrand      { background: var(--white); color: var(--brand); }
.btn--onbrand:hover { background: #f3f2ff; }
.btn--ghost-onbrand { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost-onbrand:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 80px; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 80px; display: flex; align-items: center; gap: 32px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; margin: 0 auto; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 96px 0 0; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(95,87,255,.16) 0%, rgba(95,87,255,0) 70%),
    linear-gradient(180deg, #fbfbff 0%, var(--white) 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(13,13,18,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,13,18,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(75% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 20%, #000 0%, transparent 75%);
}
.hero h1 { font-size: 68px; letter-spacing: -0.045em; margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted-light); }
.hero-visual { margin-top: 64px; }

/* Sub-page hero (shorter, no product shot) */
.pagehero { padding: 80px 0 56px; text-align: center; position: relative; overflow: hidden; }
.pagehero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 50% 0%, rgba(95,87,255,.12) 0%, rgba(95,87,255,0) 70%);
}
.pagehero h1 { font-size: 56px; margin-bottom: 16px; }
.pagehero .lead { max-width: 620px; margin: 0 auto; }

/* ── Image placeholders (swap for real graphics) ───────────────────────── */
.ph {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-l);
  color: var(--muted); padding: 24px;
}
.ph::before {
  content: 'GRAFIK MANGLER'; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; color: var(--brand); opacity: .75;
}
.ph strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.ph span { font-size: 13px; color: var(--muted); max-width: 46ch; }
.ph--hero { aspect-ratio: 1200 / 660; }
.ph--wide { aspect-ratio: 16 / 7; }
.ph--card { aspect-ratio: 4 / 3; border-radius: var(--radius-m); }
.ph--square { aspect-ratio: 1 / 1; border-radius: var(--radius-m); }
.ph--avatar { width: 56px; height: 56px; border-radius: var(--pill); padding: 0; }
.ph--avatar::before { content: 'FOTO'; font-size: 8px; letter-spacing: .08em; }
.ph--avatar strong, .ph--avatar span { display: none; }
.ph--logo { height: 40px; border-radius: var(--radius-s); padding: 8px 16px; }
.ph--logo::before { content: 'LOGO'; font-size: 9px; letter-spacing: .1em; }
.ph--logo strong { font-size: 12px; }
.ph--logo span { display: none; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 28px;
}
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card-visual { margin-top: 24px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-m);
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ── Social proof / stats ──────────────────────────────────────────────── */
.proof { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-label { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.proof-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: var(--pill);
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ── Split feature rows ────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split--flip .split-media { order: -1; }
.split h3 { font-size: 34px; margin-bottom: 16px; }
.split p { color: var(--muted); }
.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); margin-top: 1px; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 15px; margin-bottom: 8px;
}
.billing-toggle button {
  width: 46px; height: 26px; border-radius: var(--pill); border: 0;
  background: var(--brand); position: relative; cursor: pointer; padding: 0;
}
.billing-toggle button::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: var(--pill); background: var(--white);
  transition: transform .18s;
}
.billing-toggle[data-cycle="yearly"] button::after { transform: translateX(20px); }
.billing-toggle .dim { color: var(--muted); }
.billing-save { text-align: center; font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 40px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; height: 100%;
}
.price-card--featured { background: var(--brand); border-color: var(--brand); color: var(--white); }
.price-card--featured .price-desc,
.price-card--featured .price-period,
.price-card--featured .checklist li { color: rgba(255,255,255,.82); }
.price-card--featured .checklist svg { color: var(--white); }
.price-name { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.price-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: var(--pill);
}
.price-desc { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 42px; }
.price-amount { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; margin-top: 24px; }
.price-amount small { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.price-period { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-card .btn { margin-top: 24px; }
.price-card .checklist { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.price-card--featured .checklist { border-top-color: rgba(255,255,255,.22); }

.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.addon { border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px; }
.addon h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.addon p { font-size: 14px; color: var(--muted); }
.addon .addon-price { margin-top: 14px; font-size: 20px; font-weight: 600; }

/* ── Integrations ──────────────────────────────────────────────────────── */
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.integration {
  border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
}
.integration:hover { border-color: var(--border-strong); box-shadow: var(--shadow-m); }
.integration h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.integration p { font-size: 14px; color: var(--muted); }
.integration .ph--logo { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-m); padding: 0; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill);
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  margin-top: 10px;
}
.tag--live { background: var(--teal-soft); color: #0f7a63; border-color: transparent; }
.tag--soon { background: var(--brand-soft); color: var(--brand-deep); border-color: transparent; }

/* ── Testimonials ──────────────────────────────────────────────────────── */
.quote-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; }
.quote-card p { font-size: 17px; line-height: 1.55; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.quote-author strong { display: block; font-size: 15px; font-weight: 600; }
.quote-author span { font-size: 13px; color: var(--muted); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--white); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-body { padding: 0 24px 22px; font-size: 15px; color: var(--muted); }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta {
  background: var(--brand); color: var(--white); text-align: center;
  padding: 88px 0; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .6;
}
.cta > .container { position: relative; }
.cta h2 { font-size: 44px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--muted-light); max-width: 30ch; }
.footer h4 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.86); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }
.footer-social { display: flex; gap: 16px; }
.footer-social svg { width: 18px; height: 18px; }

/* ── Legal / prose pages ───────────────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 16px; color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0; display: grid; gap: 8px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; }
.prose td { color: var(--muted); }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-m); background: var(--white); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(95,87,255,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail strong { display: block; font-size: 15px; font-weight: 600; }
.contact-detail span, .contact-detail a { font-size: 15px; color: var(--muted); }
.contact-detail a:hover { color: var(--brand); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .integration-grid, .addon-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
  .hero h1 { font-size: 54px; }
  h2.section-title, .cta h2 { font-size: 36px; }
  .pagehero h1 { font-size: 44px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 80px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-inner { justify-content: space-between; }
  .nav-toggle { display: block; order: 3; }
  .nav-actions { order: 2; margin-left: auto; }
  .nav-actions .btn--sm.hide-mobile { display: none; }

  .section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4, .integration-grid, .addon-grid, .steps,
  .split, .contact-grid, .stats { grid-template-columns: 1fr; }
  .split + .split { margin-top: 56px; }
  .split--flip .split-media { order: 0; }
  .stats { gap: 32px; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 40px; }
  .pagehero h1 { font-size: 34px; }
  h2.section-title, .cta h2 { font-size: 30px; }
  .split h3 { font-size: 26px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-visual { margin-top: 44px; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
