/* ============================================================
   CADENCE INTELLIGENCE — styles.css
   Fonts: Playfair Display (display) + Outfit (body)
   Palette: Dark navy / blue accent
   ============================================================ */

/* ---- Design Tokens ---------------------------------------- */
:root {
  --bg:               #0F1623;
  --surface:          #111827;
  --surface-elevated: #1A2332;
  --footer-bg:        #080E19;
  --border:           #1E2D47;
  --text:             #F1F5F9;
  --text-muted:       #94A3B8;
  --text-subtle:      #64748B;
  --accent:           #3B82F6;
  --accent-light:     #60A5FA;
  --accent-hover:     #2563EB;
  --btn-bg:           #3B82F6; /* Same as --accent today; separate token allows button colour to diverge from accent in future */
  --btn-text:         #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --container:    1200px;
  --nav-h:        68px;
  --section-gap:  80px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  /* no transition needed — scrolled shadow removed for dark bg */
}

/* .nav.scrolled intentionally has no box-shadow on dark bg; border is sufficient */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-wordmark {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
}

.nav-tagline {
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: var(--accent) !important;
  color: var(--btn-text) !important;
  border-radius: 4px;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s var(--ease-out) !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  line-height: 1;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  height: 50px;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
  font-style: normal;
}

.btn-arrow:hover::after {
  transform: translateX(5px);
}

/* ---- Section Base ----------------------------------------- */
.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

/* Alternate section background — add to any .section to get --surface */
.section--surface {
  background: var(--surface);
}

/* ---- Section Label ---------------------------------------- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 48px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 88px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-eyebrow-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: end;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.5vw, 5.75rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-right {
  padding-bottom: 10px;
}

.hero-right-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ============================================================
   STATS BAR (homepage only — sits on --bg, no background)
   ============================================================ */

.stats-bar {
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 0 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:first-child {
  padding-left: 0;
  text-align: left;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* ============================================================
   VALUE SECTION
   ============================================================ */

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.value-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.value-headline em {
  font-style: italic;
  color: var(--accent-light);
}

.value-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.value-body p + p {
  margin-top: 20px;
}

/* ============================================================
   CAPABILITIES PREVIEW
   ============================================================ */

.caps-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.caps-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.caps-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.caps-link:hover { color: var(--text-muted); }
.caps-link::after { content: '→'; transition: transform 0.2s ease; }
.caps-link:hover::after { transform: translateX(4px); }

/* Bordered card grid — replaces old gap:1px border trick */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.25s ease;
}

.cap-card:hover {
  border-color: var(--accent);
}

.cap-number {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.cap-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Replaces old inline-styled stat callout blocks in cap cards */
.cap-stat {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cap-stat + .cap-stat {
  margin-top: 8px;
}

.cap-outcome {
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cap-outcome::before {
  content: '→';
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   HOW IT WORKS (HOMEPAGE — COMPACT)
   ============================================================ */

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.how-step {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
}

.how-step:last-child {
  border-right: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.how-step:hover .step-number {
  color: var(--accent);
}

.step-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION (all pages)
   ============================================================ */

.cta-section {
  background: var(--surface-elevated);
  padding: var(--section-gap) 0;
  border-bottom: none;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.cta-left {
  max-width: 640px;
}

.cta-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 24px;
  display: block;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

.cta-headline em {
  font-style: italic;
  color: var(--accent-light);
}

.cta-right {
  text-align: right;
  flex-shrink: 0;
}

.cta-sub {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 280px;
  margin-left: auto;
  text-align: left;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-wordmark {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-subtle);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* ============================================================
   WHAT WE DO PAGE
   ============================================================ */

.page-header {
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 88px;
  border-bottom: 1px solid var(--border);
}

.page-header-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.page-header-eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.page-header-eyebrow-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.page-header-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}

.page-header-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-header-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-top: 8px;
}

/* Capability list rows */
.cap-list { display: flex; flex-direction: column; }

.cap-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cap-row:first-child { border-top: 1px solid var(--border); }

.cap-row-number {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-subtle);
  padding-top: 6px;
}

.cap-row-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.cap-row-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.cap-outcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
}

.cap-outcome-tag::before {
  content: '→';
}

/* Detailed How It Works */
.how-detailed {
  display: flex;
  flex-direction: column;
}

.how-detailed-step {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.how-detailed-step:first-child { border-top: 1px solid var(--border); }

.how-detailed-number {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--accent);
  padding-top: 6px;
}

.how-detailed-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.how-detailed-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page-intro {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

.contact-page-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.contact-page-eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.contact-page-eyebrow-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.contact-page-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-page-headline em {
  font-style: italic;
  color: var(--accent-light);
}

.contact-page-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* Grid layout */
.contact-grid-section {
  padding: 72px 0 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

/* Form card */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
}

/* Intent toggle */
.intent-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.intent-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.intent-btn + .intent-btn {
  border-left: 1px solid var(--border);
}

.intent-btn--active {
  background: var(--accent);
  color: var(--btn-text);
}

/* Form fields */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  height: 120px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.form-submit-note {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* Sidebar */
.contact-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Booking card */
.sidebar-booking-card {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 36px;
}

.sidebar-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.sidebar-heading em {
  font-style: italic;
  color: var(--accent-light);
}

.sidebar-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.sidebar-cta {
  width: 100%;
  justify-content: center;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0 20px;
}

.sidebar-meta {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* Email card */
.sidebar-email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-email-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.sidebar-email-address {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s ease;
  word-break: break-all;
}

.sidebar-email-address:hover {
  color: var(--accent-hover);
}

.sidebar-email-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
}

.delay-1  { transition-delay: 0.1s; }
.delay-2  { transition-delay: 0.2s; }
.delay-3  { transition-delay: 0.3s; }
.delay-4  { transition-delay: 0.4s; }
.delay-5  { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 320px; gap: 60px; }
  .value-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-headline { position: static; }
  .page-header-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-sidebar { position: static; }
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }
  .container { padding: 0 32px; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .caps-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); border-radius: 0; }
  .how-step { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; text-align: left; }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:first-child { padding-left: 0; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .cta-right { text-align: left; }
  .cta-sub { margin-left: 0; }

  .cap-row { grid-template-columns: 48px 1fr; gap: 32px; }
  .cap-row-content { grid-column: 2; }
  .how-detailed-step { grid-template-columns: 48px 1fr; gap: 32px; }

  .footer-inner { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 640px) {
  :root { --section-gap: 60px; }
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open { display: flex; }
  .nav-menu-btn { display: flex; }

  .nav-links a { font-size: 1rem; padding: 10px 12px; }
  .nav-cta { height: 44px !important; font-size: 1rem !important; }

  .how-grid { grid-template-columns: 1fr; border-radius: 0; }
  .how-step { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }

  .caps-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cap-row { grid-template-columns: 1fr; gap: 16px; }
  .cap-row-number { display: none; }

  .how-detailed-step { grid-template-columns: 40px 1fr; gap: 20px; }

  .contact-page-headline { font-size: 3rem; }
  .contact-form-card { padding: 28px 24px; }
  .form-row-two { grid-template-columns: 1fr; gap: 0; }
  .form-submit-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   THANK-YOU PAGE
   ============================================================ */

.thankyou-page {
  padding-top: calc(var(--nav-h) + 6px);
  padding-bottom: 72px;
  min-height: calc(100vh - var(--nav-h) - 81px);
}

.thankyou-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.thankyou-eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.thankyou-eyebrow-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.thankyou-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 640px;
  color: var(--text);
}

.thankyou-subtext {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.thankyou-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
}

.thankyou-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thankyou-tile-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.thankyou-tile-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s ease;
  word-break: break-all;
}

.thankyou-tile-value:hover {
  color: var(--accent-hover);
}

.thankyou-tile-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.thankyou-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  margin-top: 40px;
  transition: color 0.2s ease;
}

.thankyou-back::before {
  content: '←';
}

.thankyou-back:hover {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .thankyou-tiles {
    grid-template-columns: 1fr;
  }
}
