/* ==========================================================================
   MakesenseofITall — styles
   Plain CSS, no framework. Colors live in :root tokens; dark mode is automatic.
   ========================================================================== */

:root {
  --brand: #0f766e;          /* teal */
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --accent: #f59e0b;         /* amber highlight */

  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --surface: #ffffff;
  --text: #13201e;
  --text-muted: #51605d;
  --border: #dfe6e4;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 8px 24px rgba(16, 24, 22, .06);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #123b37;
    --accent: #fbbf24;

    --bg: #0d1413;
    --bg-alt: #121c1a;
    --surface: #16211f;
    --text: #e6eeec;
    --text-muted: #9fb0ac;
    --border: #253331;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw + .5rem, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.5vw + .6rem, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--brand); }

img, svg { max-width: 100%; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.container-narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .8em 1.4em;
  font: inherit; font-weight: 650; text-decoration: none;
  color: #fff; background: var(--brand);
  border: 2px solid var(--brand); border-radius: 999px;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }

@media (prefers-color-scheme: dark) {
  .btn { color: #062a26; }
  .btn-ghost { color: var(--brand); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); }
.logo-mark { color: var(--brand); display: inline-flex; }
.logo-text { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; margin: 0; }
.logo-text strong { color: var(--brand); font-weight: 850; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--text-muted); text-decoration: none; font-weight: 550; font-size: .97rem; }
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after  { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero-inner { max-width: 860px; }
.eyebrow {
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand); margin-bottom: .9rem;
}
.highlight {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 45%, transparent) 62%);
  padding: 0 .1em;
}
.lead { font-size: clamp(1.1rem, 1vw + .8rem, 1.3rem); color: var(--text-muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2.2rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin: 0;
  color: var(--text-muted); font-weight: 550; font-size: .97rem;
}
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: .45em; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head p:last-child { color: var(--text-muted); }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.compare-card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.compare-card li { padding-left: 1.7em; position: relative; }
.compare-card li::before { position: absolute; left: 0; font-weight: 800; }
.compare-old h3 { color: var(--text-muted); }
.compare-old li { color: var(--text-muted); }
.compare-old li::before { content: "✕"; color: #c2410c; }
.compare-new { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.compare-new h3 strong { color: var(--brand); }
.compare-new li::before { content: "✓"; color: var(--brand); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card p { color: var(--text-muted); margin: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem;
}
.card-icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step p { color: var(--text-muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: .9rem;
}
@media (prefers-color-scheme: dark) { .step-num { color: #062a26; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact-copy p { color: var(--text-muted); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; font-weight: 600; }
.contact-list em { font-weight: 400; color: var(--text-muted); font-size: .9em; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .97rem; }
.optional { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px; padding: .7em .85em;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #dc2626; }

.form-status { margin: 1rem 0 0; min-height: 1.5em; font-weight: 550; }
.form-status.ok { color: var(--brand); }
.form-status.error { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.site-footer .logo-text { color: var(--text); }

/* Ninja Forms anti-spam widget (paid plans only) sits under the form */
.contact-form-wrap { min-width: 0; }
.contact-form-wrap > :not(form):not(script) { margin-top: 1rem; }
