/* ============================================================
   Klaxo — shared design system
   Vanilla CSS. Palette: #2563eb blue, dark ink, white surfaces.
   ============================================================ */

:root {
  /* Brand */
  --brand: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-tint: #dbeafe;
  --brand-tint-soft: #eff6ff;

  /* Ink / text */
  --ink: #111827;
  --body: #1f2937;
  --muted: #6b7280;
  --muted-soft: #9ca3af;

  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --line: #e5e7eb;
  --dark: #111827;
  --dark-line: #374151;

  /* Accent */
  --success: #10b981;
  --star: #f59e0b;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, "Times New Roman", serif;

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow: 0 4px 16px rgba(16,24,40,.06);
  --shadow-md: 0 12px 28px rgba(16,24,40,.09);
  --shadow-lg: 0 24px 48px rgba(16,24,40,.12);
  --shadow-brand: 0 12px 24px rgba(37,99,235,.28);

  /* Layout */
  --container: 1100px;
  --container-narrow: 760px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .18s;
  --t: .28s;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
::selection { background: var(--brand-tint); color: var(--brand-800); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { padding: 60px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-subtitle { font-size: 18px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint-soft);
  border: 1px solid var(--brand-tint);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

/* ---------- Buttons (keeps existing .cta class names) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cta:hover { background: var(--brand-700); border-color: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.cta-secondary { background: #fff; color: var(--brand); margin-left: 12px; }
.cta-secondary:hover { background: var(--brand-tint-soft); color: var(--brand-700); }
.cta-white { background: #fff; color: var(--brand); border-color: #fff; }
.cta-white:hover { background: #fff; color: var(--brand-700); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.cta-block { width: 100%; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t) var(--ease);
}
.site-nav.is-scrolled { box-shadow: var(--shadow-sm); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 66px; position: relative; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }

.nav-links { list-style: none; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 9px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }

/* mobile-first: links collapse into a dropdown panel */
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
}
.nav-links.is-open { display: flex; }
.nav-links a { display: block; padding: 13px 24px; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--brand); background: var(--surface-alt); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-links a { padding: 0; color: var(--muted); font-weight: 500; background: none; }
  .nav-links a:hover, .nav-links a.active { color: var(--brand); background: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; text-align: center; background: linear-gradient(180deg, var(--brand-tint-soft) 0%, #fff 70%); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero h1 span { color: var(--brand); }
.hero p { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-actions .cta-secondary { margin-left: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-tint); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-tint-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.feature p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { background: var(--surface-alt); }
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .price-card { padding: 48px; } }
.price-card > h3 {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 10px;
}
.price-amount { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 9vw, 64px); line-height: 1; color: var(--brand); text-align: center; }
.price-amount span { font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--muted); }
.price-care { text-align: center; font-weight: 600; color: var(--brand); margin-top: 8px; font-size: 16px; }
.price-badge {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--success);
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.30);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.plan-label { margin: 26px 0 12px; font-weight: 600; color: var(--ink); }
.price-features { list-style: none; }
.price-features li { position: relative; padding: 9px 0 9px 32px; color: var(--body); }
.price-features li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-note { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 600px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: var(--shadow-brand);
}
.step h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (min-width: 980px) {
  .process-grid .step { position: relative; }
  .process-grid .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    left: calc(50% + 34px);
    width: calc(100% - 40px);
    border-top: 2px dashed var(--brand-tint);
  }
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface-alt); }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .testimonial-grid { grid-template-columns: repeat(4, 1fr); } }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--star); letter-spacing: 3px; font-size: 15px; margin-bottom: 14px; }
.testimonial-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: .6;
  color: var(--brand-tint);
  margin-bottom: 6px;
}
.testimonial-quote { color: var(--body); font-size: 15px; line-height: 1.6; flex: 1 1 auto; }
.testimonial-meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.testimonial-trade { color: var(--brand); font-size: 13px; }
.testimonial-stat {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-tint-soft); border: 1px solid var(--brand-tint);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.testimonial-disclaimer {
  text-align: center; color: var(--muted-soft); font-size: 13px; font-style: italic;
  max-width: 640px; margin: 32px auto 0;
}

/* ---------- CTA band ---------- */
.cta-section { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-800) 100%); color: #fff; text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 40px); color: #fff; margin-bottom: 14px; }
.cta-section p { color: var(--brand-tint); font-size: 18px; margin: 0 auto 28px; max-width: 560px; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--muted-soft); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 32px; width: 32px; border-radius: 8px; }
.footer-logo span { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; }
.footer-brand p { font-size: 15px; line-height: 1.7; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted-soft); font-size: 14px; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--dark-line); padding-top: 22px; text-align: center; font-size: 13px; color: var(--muted-soft); }

/* ---------- Inner-page helpers (services / terms / privacy / contact) ---------- */
.page-hero { padding: 56px 0 36px; text-align: center; background: linear-gradient(180deg, var(--brand-tint-soft) 0%, #fff 80%); }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 6vw, 48px); letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }

.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); margin: 36px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.prose p { color: var(--body); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; color: var(--body); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose strong { color: var(--ink); }

.update-pricing { width: 100%; border-collapse: collapse; margin: 16px 0; }
.update-pricing th, .update-pricing td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.update-pricing th { background: var(--surface-alt); font-weight: 600; color: var(--ink); font-size: 14px; }
.update-pricing td { color: var(--body); font-size: 15px; }

/* ---------- Services page ---------- */
.service-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 28px;
}
.service-block h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); margin-bottom: 14px; }
.service-block > p { color: var(--body); margin-bottom: 14px; }
.service-block ul { list-style: none; margin-top: 14px; }
.service-block li { position: relative; padding: 8px 0 8px 28px; color: var(--body); }
.service-block li::before { content: "\2192"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.update-pricing td:last-child { font-weight: 600; color: var(--brand); white-space: nowrap; }

@media (max-width: 600px) {
  .service-block { padding: 22px 18px; }
  .service-block h2 { font-size: 22px; }
  .update-pricing th, .update-pricing td { padding: 10px 8px; font-size: 14px; overflow-wrap: break-word; }
  .update-pricing td:last-child { white-space: normal; }
}

/* ---------- Info table (privacy) ---------- */
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-table th { background: var(--surface-alt); font-weight: 600; color: var(--ink); }
.info-table td { color: var(--body); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 920px; margin: 0 auto; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.contact-info h2, .contact-form h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); margin-bottom: 20px; }
.contact-method { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; }
.contact-method h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.contact-method p { color: var(--muted); }
.contact-method a { color: var(--brand); font-weight: 500; }
.contact-note { font-size: 14px; color: var(--muted-soft); margin-top: 8px; }
.contact-form { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--ink); margin-bottom: 7px; font-weight: 500; font-size: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: var(--r-sm); font-size: 16px; font-family: inherit; color: var(--body); background: #fff; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-soft); }
.contact-form button { width: 100%; background: var(--brand); color: #fff; border: 0; padding: 15px 28px; border-radius: var(--r-sm); font-family: var(--font-sans); font-size: 16px; font-weight: 600; cursor: pointer; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.contact-form button:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.contact-form button:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; display: none; }
.form-status.is-success { display: block; background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.30); color: #047857; }
.form-status.is-error { display: block; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.30); color: #b91c1c; }
.form-status a { color: var(--brand); font-weight: 600; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta:hover, .feature:hover, .testimonial-card:hover { transform: none; }
}
