/* =====================================================================
   ClickMagnet — Design System & Styles
   Brand colours: Cream #FEFCF6  ·  Navy #2B3454
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --cream: #FEFCF6;
  --navy: #2B3454;

  /* Derived navy scale */
  --navy-900: #1d2438;
  --navy-700: #2B3454;
  --navy-500: #475174;
  --navy-300: #8a92ab;
  --navy-100: #d9dce6;

  /* Warm cream scale */
  --cream-200: #f4f0e4;
  --cream-300: #ece6d5;

  /* Functional */
  --bg: var(--cream);
  --surface: #ffffff;
  --text: var(--navy-900);
  --text-soft: #5b6178;
  --line: rgba(43, 52, 84, 0.12);
  --line-strong: rgba(43, 52, 84, 0.22);

  /* Accent (subtle warm gold to lift the two-tone palette) */
  --accent: #c9a24b;
  --accent-soft: rgba(201, 162, 75, 0.14);

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", Georgia, serif;

  /* Spacing & shape */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(43, 52, 84, 0.06);
  --shadow: 0 18px 50px -24px rgba(43, 52, 84, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(43, 52, 84, 0.45);

  --container: 1160px;
  --section-pad: clamp(64px, 9vw, 130px);
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 56ch;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--navy-900); }
.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line-strong);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--navy); background: rgba(43,52,84,0.04); }
.btn--light {
  background: var(--cream);
  color: var(--navy-900);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(254, 252, 246, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.brand img { height: 38px; width: auto; }
.brand .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-700);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(43,52,84,0.06); color: var(--navy-900); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 7px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle.open span::after { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(70px, 10vw, 130px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(201,162,75,0.10), transparent 60%),
    radial-gradient(50% 60% at 0% 30%, rgba(43,52,84,0.06), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 22px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-trust .stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy-900);
}
.hero-trust .stat-label { font-size: 0.85rem; color: var(--text-soft); }

/* Hero visual card */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -90px; top: -90px;
  background: radial-gradient(circle, rgba(201,162,75,0.35), transparent 70%);
  border-radius: 50%;
}
.hv-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(254,252,246,0.12);
  border: 1px solid rgba(254,252,246,0.2);
  position: relative; z-index: 1;
}
.hv-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--cream);
  position: relative; z-index: 1;
}
.hv-list { list-style: none; padding: 0; position: relative; z-index: 1; display: grid; gap: 12px; }
.hv-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.98rem; color: rgba(254,252,246,0.92);
}
.hv-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--cream-200);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
  padding-block: 26px;
}
.trust-strip span {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-300);
  font-weight: 600;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--navy);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step .num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--navy);
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  color: var(--cream);
}
.plan--featured h3,
.plan--featured .price { color: var(--cream); }
.plan--featured .plan-desc,
.plan--featured .plan-features li { color: rgba(254,252,246,0.88); }
.plan--featured .plan-features svg { color: var(--accent); }

.plan-tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.plan--featured .plan-name { color: rgba(254,252,246,0.7); }
.price {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price small { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); font-family: var(--font-sans); }
.plan--featured .price small { color: rgba(254,252,246,0.7); }
.plan-desc { margin-top: 12px; font-size: 0.95rem; min-height: 48px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 13px;
  flex: 1;
}
.plan-features li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--text-soft); }
.plan-features svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--cream-300), var(--navy-100));
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--navy-500);
  font-size: 0.9rem;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tag {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream-200);
  border: 1px solid var(--line);
  color: var(--navy-700);
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 24px 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy-900);
}
.faq-q .chev {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq-q .chev svg { width: 16px; height: 16px; }
.faq-item.open .chev { transform: rotate(45deg); background: var(--navy); color: var(--cream); border-color: var(--navy); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 4px 24px; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: 50%; top: -60%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,162,75,0.25), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(254,252,246,0.85); max-width: 52ch; margin: 16px auto 30px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--navy);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-300); margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--navy-700); font-weight: 500; }
.contact-info-item a:hover { color: var(--accent); }

form .field { margin-bottom: 18px; }
form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 7px;
}
form input,
form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(43,52,84,0.10);
}
form textarea { resize: vertical; min-height: 140px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(254,252,246,0.8);
  padding-block: clamp(54px, 7vw, 84px) 32px;
  margin-top: var(--section-pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer .brand { color: var(--cream); }
.footer-about p { color: rgba(254,252,246,0.6); margin-top: 16px; font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-sans);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(254,252,246,0.62); font-size: 0.95rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-legal-details {
  font-size: 0.88rem;
  color: rgba(254,252,246,0.55);
  line-height: 1.8;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(254,252,246,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(254,252,246,0.5);
}
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(254,252,246,0.18);
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.footer-bottom .socials a:hover { background: rgba(254,252,246,0.1); border-color: rgba(254,252,246,0.4); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: var(--cream-200);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(60px, 8vw, 110px) clamp(40px, 5vw, 60px);
}
.legal-body {
  max-width: 820px;
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 80px);
}
.legal-body h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.6rem; }
.legal-body h3 { margin-top: 28px; margin-bottom: 10px; }
.legal-body p, .legal-body li { color: var(--text-soft); margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 14px; }
.legal-body a { color: var(--navy); text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .nav-links, .nav .btn--ghost { display: none; }
  .nav-toggle { display: block; }

  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px 20px 24px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 55;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 14px 12px;
    font-weight: 500;
    border-radius: 12px;
    color: var(--navy-700);
  }
  .mobile-menu a:hover { background: rgba(43,52,84,0.05); }
  .mobile-menu .btn { margin-top: 10px; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
}

/* desktop: hide mobile menu element */
@media (min-width: 681px) { .mobile-menu { display: none !important; } }
