/* Careero marketing site — self-contained, no framework. */
:root {
  --brand-from: #3b82f6;
  --brand-mid: #6c5ce7;
  --brand-to: #8b5cf6;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f5f3ff;
  --radius: 14px;
  --container: 1120px;
  --gradient: linear-gradient(
    120deg,
    var(--brand-from),
    var(--brand-mid) 55%,
    var(--brand-to)
  );
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* Belt-and-suspenders: never allow a stray element to create a horizontal
     scrollbar on narrow phones. Clip (not hidden) keeps the sticky header. */
  overflow-x: clip;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.6em;
}
h3 {
  font-size: 1.2rem;
  margin: 1.4em 0 0.3em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--brand-mid);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img,
svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.25em;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.06s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(108, 92, 231, 0.35);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: #cbd5e1;
  color: var(--ink);
}

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-word {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: block;
}

.nav-burger {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.nav-trigger::-webkit-details-marker {
  display: none;
}
.nav-trigger:hover {
  background: var(--bg-soft);
}
.caret {
  font-size: 0.7em;
  color: var(--muted);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}
.nav-details[open] .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:hover {
  background: var(--bg-tint);
  color: var(--brand-mid);
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- hero ---- */
.hero {
  background: radial-gradient(
    1200px 500px at 50% -120px,
    var(--bg-tint),
    #fff 70%
  );
  padding: 72px 0 40px;
}
.hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-mid);
  background: var(--bg-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero h1 {
  background: none;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 1.6em;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-bullets {
  margin-top: 28px;
  text-align: left;
  display: inline-block;
}

/* ---- sections ---- */
.section {
  padding: 56px 0;
}
.section:nth-of-type(even) {
  background: var(--bg-soft);
}
.section-intro {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 1.8em;
  font-size: 1.05rem;
}
.narrow h2,
.narrow .section-intro {
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--brand-mid);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.97rem;
}
.card-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---- steps ---- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.steps h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---- faq ---- */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--brand-mid);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-a {
  padding: 0 20px 18px;
  color: var(--muted);
}
.faq-a a {
  color: var(--brand-mid);
}

/* ---- cta band ---- */
.section.cta-band {
  background: var(--gradient);
}
.cta-band-inner {
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.4em;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-mid);
}
.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--brand-from);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* ---- footer ---- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 56px 0 28px;
}
.site-footer .brand,
.site-footer .brand-word {
  color: #fff;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
.foot-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 320px;
  margin: 14px 0 18px;
}
.foot-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.foot-col a {
  color: #94a3b8;
  font-size: 0.92rem;
}
.foot-col a:hover {
  color: #fff;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #1e293b;
  margin-top: 36px;
  padding-top: 20px;
  color: #64748b;
  font-size: 0.85rem;
}
.foot-bottom a {
  color: #94a3b8;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }
  .nav-burger span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    margin: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-item {
    position: static;
  }
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    font-weight: 600;
  }
  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 8px 12px;
    padding: 0 0 0 6px;
    min-width: 0;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
  }
  .nav-actions .btn {
    width: 100%;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 32px;
  }
}

/* Respect users who don't want motion. */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
