/* ==========================================================================
   TrazeTell — design system v7 "Signal"
   Modern professional SaaS-style layout. Palette anchored on #f84523.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --accent: #f84523;
  --accent-600: #d93513;
  --accent-700: #b62c0f;
  --accent-100: #fee4dc;
  --accent-50:  #fef5f2;

  --ink-950: #10141c;
  --ink-900: #171c26;
  --ink-800: #232a37;
  --ink-700: #3a4252;
  --ink-500: #656d7d;
  --ink-400: #88909d;
  --ink-300: #b3b9c4;
  --ink-200: #dde0e6;
  --ink-100: #eceef2;
  --paper: #f7f7f5;
  --white: #ffffff;
  --border: #e4e5ea;

  --navy-900: #0e1420;
  --navy-800: #161d2c;

  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 28, 0.05), 0 2px 8px rgba(16, 20, 28, 0.04);
  --shadow-md: 0 12px 28px rgba(16, 20, 28, 0.09);
  --shadow-lg: 0 30px 70px rgba(16, 20, 28, 0.18);
  --container: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font-family: inherit; cursor: pointer; }
main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  font-family: var(--font-body);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: var(--radius-full);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.eyebrow.blue, .eyebrow.green, .eyebrow.red { color: var(--accent-700); background: var(--accent-50); border-color: var(--accent-100); }
.eyebrow.on-dark { color: var(--white); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }
.eyebrow.on-dark::before { background: var(--accent); }
.eyebrow.center { justify-content: center; }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  color: var(--ink-950);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 1.35rem + 1vw, 2.2rem);
  color: var(--ink-950);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-950);
}
.lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-500);
}
.text-muted { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold, .btn-orange {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover, .btn-orange:hover { background: var(--accent-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-navy, .btn-blue {
  background: var(--ink-950);
  color: var(--white);
}
.btn-navy:hover, .btn-blue:hover { background: var(--ink-800); transform: translateY(-2px); }
.btn-green { background: var(--ink-950); color: var(--white); }
.btn-green:hover { background: var(--ink-800); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-outline-navy {
  border-color: var(--ink-300);
  color: var(--ink-900);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--ink-950); color: var(--white); border-color: var(--ink-950); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header — floating rounded bar, logo mark left, CTA right
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}
.brand::before {
  content: "";
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--ink-950);
  border-radius: 11px;
  background-image: linear-gradient(135deg, var(--ink-950) 0%, var(--ink-950) 45%, var(--accent) 45%, var(--accent) 100%);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 2px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.primary-nav a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-full);
  transition: color 0.15s ease, background-color .15s ease;
}
.primary-nav a:hover { color: var(--ink-950); background: var(--ink-100); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink-800);
}
#mobile-nav { display: none; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  #mobile-nav.is-open {
    display: block;
    background: var(--white);
    border-top: 1px solid var(--border);
  }
  #mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
  #mobile-nav a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--ink-700);
    font-weight: 700;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
  }
  #mobile-nav .btn { margin: 1rem 1.5rem 1.5rem; }
}

/* ==========================================================================
   Inner-page hero — left-aligned, split with stat rail
   ========================================================================== */
.page-hero {
  position: relative;
  background: var(--paper);
  color: var(--ink-950);
  overflow: hidden;
  padding-block: 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .wrap { position: relative; }
.page-hero-inner { max-width: 680px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.page-hero h1 { color: var(--ink-950); margin-top: 0.4rem; }
.page-hero .lede { color: var(--ink-500); }

.crumb-trail {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-400);
  margin-bottom: 0;
}
.crumb-trail a { color: var(--ink-500); }
.crumb-trail a:hover { color: var(--accent-700); }

/* ==========================================================================
   Home hero — big centred statement, floating stat cards
   ========================================================================== */
.home-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding-block: 6rem 8rem;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(248,69,35,0.35), transparent 68%);
  filter: blur(10px);
}
.home-hero .wrap {
  position: relative;
  display: block;
}
.home-hero-copy { max-width: 780px; }
.home-hero-copy .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: var(--white); }
.home-hero-copy .eyebrow::before { background: var(--accent); }
.home-hero-copy h1 { color: var(--white); margin-block: 1.3rem 1.4rem; }
.home-hero-copy .lede { color: rgba(255,255,255,0.68); max-width: 600px; }
.home-hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

.hero-chip-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: -4.5rem;
  z-index: 2;
}
.hero-chip {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-chip .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-chip p { font-size: 0.82rem; color: var(--ink-500); margin-top: 0; line-height: 1.4; }
@media (max-width: 860px) {
  .hero-chip-row { grid-template-columns: 1fr 1fr; margin-top: -3rem; }
}
@media (max-width: 560px) {
  .hero-chip-row { grid-template-columns: 1fr; }
}

/* visual strip — media card overlapping the hero, caption card beside it */
.home-visual-strip { position: relative; z-index: 2; padding-block: 6rem; }
.home-visual-strip .visual-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.home-visual-strip .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.home-visual-strip img { width: 100%; max-height: 460px; object-fit: cover; }
.visual-note {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  border: 1px solid var(--border);
}
.visual-note .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-700);
  display: block;
  margin-bottom: 0.9rem;
}
.visual-note p { color: var(--ink-500); font-size: 0.95rem; line-height: 1.75; }
@media (max-width: 860px) {
  .home-visual-strip .visual-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Feature section — three-up card grid with lead card spanning two rows
   ========================================================================== */
.bento { padding-block: 6rem; background: var(--paper); }
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3.5rem;
  align-items: stretch;
}
.bento-primary {
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.bento-primary .bento-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--accent-50);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bento-primary h3 { font-size: 1.4rem; margin-bottom: 0.9rem; color: var(--ink-950); }
.bento-primary p { color: var(--ink-500); line-height: 1.75; }
.bento-primary ul { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.bento-primary li { display: flex; gap: 0.7rem; font-size: 0.9rem; color: var(--ink-700); align-items: flex-start; }
.bento-primary li::before { content: "＋"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.bento-side {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.bento-card {
  background: var(--ink-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.bento-card:nth-child(2) { background: var(--accent); }
.bento-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.65rem; color: var(--white); }
.bento-card p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.78); }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Zigzag feature row — rounded media card, copy beside
   ========================================================================== */
.zigzag { padding-block: 6rem; }
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.zigzag-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.zigzag-media img { width: 100%; max-height: 420px; object-fit: cover; }
.zigzag-copy h3 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.zigzag-copy p { color: var(--ink-500); line-height: 1.8; }
.zigzag-copy p + p { margin-top: 1.1rem; }
.zigzag-copy ul { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.8rem; }
.zigzag-copy ul li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-700);
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
}
@media (max-width: 780px) {
  .zigzag-row { grid-template-columns: 1fr; gap: 2rem; }
  .zigzag-media { order: -1; }
}

/* ==========================================================================
   Steps — vertical connected timeline
   ========================================================================== */
.steps-section { background: var(--white); padding-block: 6.5rem; color: var(--ink-950); }
.steps-section .eyebrow { }
.steps-section h2 { color: var(--ink-950); }
.steps-section .lede { color: var(--ink-500); }

.steps-track {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
  max-width: 820px;
}
.step-card {
  position: relative;
  padding: 0 0 2.6rem 4rem;
  border-left: 2px solid var(--border);
}
.step-card:last-child { border-color: transparent; padding-bottom: 0; }
.step-card .step-num {
  position: absolute;
  left: -1.35rem;
  top: -0.15rem;
  width: 2.7rem;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--white);
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink-950);
}
.step-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.7;
}
@media (max-width: 620px) {
  .step-card { padding-left: 3.2rem; }
  .step-card .step-num { width: 2.3rem; height: 2.3rem; font-size: 0.85rem; left: -1.15rem; }
}

/* ==========================================================================
   Skills — icon card grid
   ========================================================================== */
.section { padding-block: 6.5rem; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.9rem; }

.skills-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.skill-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow .15s ease, transform .15s ease;
}
.skill-row:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.skill-row .icon-badge {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-50);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
}
.skill-row .icon-badge svg { display: block; }
.skill-row .icon-badge::before { content: none; }
.skill-row h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.skill-row p { color: var(--ink-500); font-size: 0.9rem; line-height: 1.65; }
@media (max-width: 700px) {
  .skills-columns { grid-template-columns: 1fr; }
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2.2rem; transition: box-shadow .15s ease, transform .15s ease; }
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-card .icon-badge { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); border: none; color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.info-card h3 { margin-bottom: 0.6rem; font-size: 1.02rem; }
.info-card p { color: var(--ink-500); font-size: 0.9rem; line-height: 1.6; }

/* ==========================================================================
   Fit-check — stacked comparison card with divider
   ========================================================================== */
.fit-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.fit-card { padding: 2.75rem; }
.fit-card.yes { background: var(--white); }
.fit-card.no { background: var(--ink-950); }
.fit-card h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; font-size: 1.05rem; }
.fit-card.yes h3 { color: var(--ink-950); }
.fit-card.no h3 { color: var(--white); }
.fit-card ul { display: flex; flex-direction: column; gap: 1rem; }
.fit-card li { display: flex; gap: 0.8rem; font-size: 0.92rem; align-items: flex-start; }
.fit-card.yes li { color: var(--ink-700); }
.fit-card.no li { color: rgba(255,255,255,0.7); }
.fit-card.yes li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.fit-card.no li::before { content: "✕"; color: rgba(255,255,255,0.4); font-weight: 700; }
@media (max-width: 720px) { .fit-check { grid-template-columns: 1fr; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.compare-col { padding: 2.25rem; }

.callout {
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-md);
  padding: 2rem 2.2rem;
  position: relative;
}
.callout h2 { font-size: 1rem; color: var(--accent-700); }
.callout p { margin-top: 0.7rem; color: var(--ink-700); }

/* ==========================================================================
   CTA banner — dark rounded panel, offset accent corner
   ========================================================================== */
.cta-banner {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  padding: 3.75rem 3.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  filter: blur(40px);
}
.cta-banner-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.66); margin-top: 0.6rem; }
.cta-banner .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-banner .btn-outline-light { border-color: rgba(255,255,255,0.35); color: var(--white); }
.cta-banner .btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

/* ==========================================================================
   Contact split layout — info column left, form card right
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--ink-900); }
.field input, .field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-900);
  background: var(--paper);
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.field-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-500); }
.field-consent input { margin-top: 0.2rem; accent-color: var(--accent); }
.required { color: var(--accent-600); }

.form-alert {
  gap: 0.65rem;
  align-items: flex-start;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-700);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1.3rem;
}
.form-alert:not([hidden]) { display: flex; }
.form-alert svg { flex-shrink: 0; margin-top: 0.1rem; }

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success .icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-500); font-size: 0.92rem; line-height: 1.6; max-width: 380px; margin-inline: auto; }
.form-success .btn { margin-top: 1.5rem; }

.side-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.side-card h3 { margin-bottom: 0.9rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-body); color: var(--accent-700); }
.side-card address { font-style: normal; font-size: 0.88rem; color: var(--ink-700); line-height: 1.8; }
.side-card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.side-card a { font-size: 0.88rem; color: var(--ink-900); font-weight: 600; }
.side-card a:hover { color: var(--accent-700); }

/* ==========================================================================
   Accordion FAQ — rounded card list, category tabs
   ========================================================================== */
.accordion-group + .accordion-group { margin-top: 3rem; }
.accordion-group h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-body); color: var(--accent-700); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem; background: var(--accent-50); border-radius: var(--radius-full); }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink-950);
}
.accordion-item[open] summary { border-bottom: 1px solid var(--border); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "";
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-50);
  flex-shrink: 0;
  position: relative;
}
.accordion-item summary::before {
  content: "";
  position: absolute;
}
.accordion-item summary { position: relative; }
.accordion-item summary::after {
  background-image: linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 2px, 2px 12px;
}
.accordion-item[open] summary::after { background-size: 12px 2px, 0 2px; }
.accordion-item .accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   Legal pages — sticky pill index + rounded article card
   ========================================================================== */
.legal-hero {
  background: var(--paper);
  color: var(--ink-950);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.legal-hero .wrap { position: relative; }
.legal-hero h1 { color: var(--ink-950); font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem); font-family: var(--font-display); margin-top: 0.7rem; }
.legal-hero p { color: var(--ink-500); margin-top: 0.5rem; font-size: 0.88rem; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding-block: 4rem;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 110px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem;
  margin-bottom: 0;
  display: block;
}
.legal-toc p.label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); margin: 0 0 0.9rem; }
.legal-toc ul { display: flex; flex-direction: column; gap: 0.15rem; }
.legal-toc ul li { padding: 0; }
.legal-toc ul li::before { content: none; }
.legal-toc a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-500);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  display: block;
}
.legal-toc a:hover { color: var(--accent-700); background: var(--accent-50); }
.legal-toc .divider { height: 1px; background: var(--border); margin: 1rem 0; }

.legal-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: none;
  margin-inline: 0;
}
.legal-body section { padding-block: 1.9rem; border-bottom: 1px solid var(--border); }
.legal-body section:first-of-type { padding-top: 0; }
.legal-body section:last-of-type { border-bottom: none; padding-bottom: 0; }
.legal-body h2 { font-size: 1.15rem; margin-bottom: 0.8rem; scroll-margin-top: 100px; }
.legal-body p { color: var(--ink-500); font-size: 0.94rem; line-height: 1.8; }
.legal-body ul { margin-top: 0.6rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal-body li { color: var(--ink-500); font-size: 0.92rem; line-height: 1.65; }
.legal-body address { font-style: normal; background: var(--paper); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); padding: 1.1rem 1.3rem; font-size: 0.9rem; color: var(--ink-700); line-height: 1.85; margin-top: 0.6rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.82rem; }
.legal-body th, .legal-body td { text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--border); }
.legal-body th { background: var(--paper); color: var(--ink-950); font-weight: 700; }
.consent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.consent-toggle:last-child { border-bottom: none; }
.consent-toggle .switch {
  width: 40px; height: 24px;
  border-radius: 999px;
  background: var(--ink-200);
  border: none;
  position: relative;
  flex-shrink: 0;
}
.consent-toggle .switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.consent-toggle .switch.on { background: var(--accent); }
.consent-toggle .switch.on::before { left: 19px; }
.tag-pill { font-size: 0.68rem; font-weight: 700; color: var(--accent-700); background: var(--accent-50); padding: 0.28rem 0.65rem; border-radius: 999px; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ==========================================================================
   Module list (program.php) — numbered card grid
   ========================================================================== */
.module-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 3.5rem; }
.module-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.module-row:hover { box-shadow: var(--shadow-md); border-color: var(--accent-100); }
.module-row > div:first-child { order: 2; min-width: 0; }
.module-num {
  order: 1;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  background: var(--ink-950);
  border-radius: 14px;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-row:nth-child(3) .module-num,
.module-row:nth-child(3n) .module-num { background: var(--accent); }
.module-row h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.module-row > div:first-child > p.lede { font-size: 0.95rem; margin-bottom: 1.2rem; }
.module-row .outcomes { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 0.7rem; }
.module-row ul { display: flex; flex-direction: column; gap: 0.55rem; }
.module-row li { font-size: 0.87rem; color: var(--ink-700); display: flex; gap: 0.6rem; }
.module-row li::before { content: "→"; color: var(--accent); font-weight: 700; }
@media (max-width: 700px) {
  .module-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .module-num { width: 56px; height: 56px; font-size: 1.6rem; }
}

/* ==========================================================================
   Phase list (learning-path.php) — horizontal connected timeline
   ========================================================================== */
.phase-grid { display: flex; flex-direction: column; gap: 0; margin-top: 4rem; }
.phase-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}
.phase-card:last-child { border-bottom: 1px solid var(--border); }
.phase-card .phase-meta { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; gap: 0.5rem; }
.phase-card h3 { grid-column: 2; grid-row: 1; }
.phase-card ol { grid-column: 2; grid-row: 2; }
.phase-card .phase-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  background: var(--ink-950);
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}
.phase-card:nth-child(4) .phase-num { background: var(--accent); }
.phase-card .phase-duration { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); }
.phase-card h3 { color: var(--ink-950); margin-bottom: 1.1rem; font-size: 1.15rem; }
.phase-card ol { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.phase-card li { font-size: 0.9rem; display: flex; gap: 0.6rem; color: var(--ink-500); }
.phase-card li span.n { font-weight: 700; color: var(--accent-700); }
@media (max-width: 780px) {
  .phase-card { grid-template-columns: 1fr; gap: 1rem; }
  .phase-card .phase-meta,
  .phase-card h3,
  .phase-card ol { grid-column: 1; grid-row: auto; }
}

/* ==========================================================================
   Project showcase (practice-projects.php) — stacked card list, side badge
   ========================================================================== */
.project-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3.5rem; }
.project-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.project-card-head {
  background: var(--ink-950);
  color: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
}
.project-card:nth-child(2n) .project-card-head { background: var(--accent); }
.project-card-head .code {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  opacity: 0.85;
}
.project-card-head h3 { font-size: 0.95rem; line-height: 1.35; color: var(--white) !important; }
.project-card-body { padding: 2rem 2.2rem; flex: 1; display: flex; flex-direction: column; gap: 1.1rem; }
.project-card-body p { font-size: 0.9rem; color: var(--ink-500); line-height: 1.65; }
.project-card-body h4 { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 0.6rem; }
.project-card-body ul { display: flex; flex-direction: column; gap: 0.45rem; }
.project-card-body li { font-size: 0.85rem; color: var(--ink-700); display: flex; gap: 0.5rem; }
.project-card-body li::before { content: "→"; color: var(--accent); font-weight: 700; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { font-size: 0.7rem; font-weight: 700; background: var(--paper); border: 1px solid var(--border); color: var(--ink-700); padding: 0.3rem 0.75rem; border-radius: var(--radius-full); }
@media (max-width: 700px) {
  .project-card { grid-template-columns: 1fr; }
  .project-card-head { flex-direction: row; padding: 1.25rem 1.5rem; }
}

/* ==========================================================================
   Footer — light band, logo + newsletter-style CTA row, four-column grid,
   dark bottom bar
   ========================================================================== */
.site-footer { background: var(--paper); color: var(--ink-700); border-top: 1px solid var(--border); }
.footer-top { padding-block: 4.5rem 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1.3rem; }
.footer-brand .brand { color: var(--ink-950); }
.footer-col { }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand > p { font-size: 0.87rem; line-height: 1.8; color: var(--ink-500); max-width: 320px; }
.footer-brand address {
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.9;
  color: var(--ink-500);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.footer-brand address strong { color: var(--ink-950); }
.footer-brand address a { color: var(--accent-700); font-weight: 600; }
.footer-col h3 { color: var(--ink-950); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.3rem; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col li { position: relative; }
.footer-col a { font-size: 0.87rem; color: var(--ink-500); }
.footer-col a:hover { color: var(--accent-700); }
.footer-disclaimer {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ink-500);
}
.footer-disclaimer a { color: var(--accent-700); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  background: var(--ink-950);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom strong { color: var(--white); }

/* ==========================================================================
   Utility
   ========================================================================== */
.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; }
.mt-lg { margin-top: 3rem; }
.center-text { text-align: center; }
.max-w-prose { max-width: 640px; }
.mx-auto { margin-inline: auto; }
