/* DM Sans */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Serif Display */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;

  /* Dark palette — cool indigo + rose */
  --bg:        #16162A;
  --surface:   #2A2A45;
  --card:      #1E1E38;
  --muted:     #908CA0;
  --ink:       #C8C5D4;
  --highlight: #EDEDF4;

  --accent:     #E0567B;
  --accent-bg:  rgba(224, 86, 123, 0.12);
  --accent-dark:#F07A9B;

  --positive:   #2EBB7D;

  --border:     rgba(237, 237, 244, 0.10);
  --border-mid: rgba(237, 237, 244, 0.18);

  --nav-bg:      #0D0D1A;
  --dropdown-bg: #0D0D1A;
  --surface-bg:  rgba(42, 42, 69, 0.45);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w: 1100px;
}

/* Light palette — warm cream + rose */
[data-theme="light"] {
  --bg:        #FBF9F6;
  --surface:   #F2EFE9;
  --card:      #FFFFFF;
  --muted:     #8B8680;
  --ink:       #423D37;
  --highlight: #16162A;

  --accent:     #C85972;
  --accent-bg:  rgba(200, 89, 114, 0.08);
  --accent-dark:#A8466D;

  --positive:   #2BA876;

  --border:     rgba(66, 61, 55, 0.10);
  --border-mid: rgba(66, 61, 55, 0.15);

  --nav-bg:      #F0EDEA;
  --dropdown-bg: #FFFFFF;
  --surface-bg:  rgba(242, 239, 233, 0.65);
}

html {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--highlight);
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 500; }

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}

strong {
  color: var(--highlight);
  font-weight: 500;
}

em {
  color: var(--accent-dark);
  font-style: italic;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 2.5rem 0;
}

.section--sm {
  padding: 2rem 0;
}

.section--surface {
  background: var(--surface-bg);
  transition: background-color 0.2s;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  border: none;
  text-decoration: none;
}

.btn--dark {
  background: var(--highlight);
  color: var(--bg);
}

.btn--dark:hover { opacity: 0.85; }

.btn--green {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-weight: 600;
}

.btn--green:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(224, 86, 123, 0.3);
}

[data-theme="light"] .btn--green:hover {
  box-shadow: 0 2px 8px rgba(200, 89, 114, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 0.5px solid var(--border-mid);
}

.btn--outline:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent-dark);
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border-mid);
  color: var(--ink);
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: var(--accent);
  background-color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card p {
  text-align: justify;
}

/* Service list items (experience page) */
div[style*="cursor:pointer"][style*="border:0.5px solid var(--border)"][style*="border-radius:var(--radius-md)"] {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

div[style*="cursor:pointer"][style*="border:0.5px solid var(--border)"][style*="border-radius:var(--radius-md)"]:hover {
  border-color: var(--accent) !important;
  background-color: var(--surface) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Info boxes - "What you get", "Who this is not for", etc. */
div[style*="background:var(--card)"][style*="border:"] {
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: default;
}

div[style*="background:var(--card)"][style*="border:"]:hover {
  border-color: var(--accent) !important;
  background-color: var(--surface) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

div[style*="background:var(--card)"][style*="border:"] a {
  margin-top: auto;
}

/* Catch-all for any card-like box styling */
div[style*="background:var(--card)"] {
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}

div[style*="background:var(--card)"]:hover {
  border-color: var(--accent) !important;
  background-color: var(--surface) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 0.5px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.stat-card:hover {
  border-color: var(--accent);
  background-color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

/* Grid stat cards need flexbox column layout */
.grid-2 .stat-card {
  display: flex;
  flex-direction: column;
}

.grid-2 .stat-card a {
  margin-top: auto;
}

.dot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot-list li {
  font-size: 1rem;
  color: var(--ink);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.7;
}

.dot-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

hr.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
  padding: 1rem 0;
  transition: background-color 0.2s, border-color 0.2s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.nav__inner > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--highlight);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--highlight);
}

.nav__cases-trigger {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
  cursor: default;
}

.nav__links li:hover .nav__cases-trigger {
  color: var(--highlight);
}

.nav__links li {
  position: relative;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--dropdown-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0 0.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  list-style: none;
  z-index: 200;
}

.nav__links li:hover .nav__dropdown {
  display: block;
}

.nav__dropdown li { position: static; }

.nav__dropdown a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}

.nav__dropdown a:hover {
  color: var(--highlight);
}

.nav__dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.nav__cta {
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__cta:hover { opacity: 0.88; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile .theme-toggle {
  display: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--highlight);
  border-radius: 2px;
}

.nav__mobile {
  display: none !important;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--dropdown-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 200;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 2rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--highlight);
}

.nav__mobile .nav__cta--mobile {
  margin: 0.5rem 2rem;
  text-align: center;
  padding: 0.55rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.nav__mobile-group {
  display: flex;
  flex-direction: column;
}

.nav__mobile-toggle {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
  font-family: inherit;
  width: 100%;
}

.nav__mobile-toggle:hover { color: var(--highlight); }

.nav__mobile-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
  margin-left: 0.5rem;
}

.nav__mobile-toggle.open .nav__mobile-arrow {
  transform: rotate(180deg);
}

.nav__mobile-sub {
  display: none;
  flex-direction: column;
  background: var(--surface-bg);
}

.nav__mobile-sub.open {
  display: flex;
}

.nav__mobile-sub a {
  padding-left: 3rem;
  font-size: 0.9rem;
}

.footer {
  background: var(--nav-bg);
  border-top: 0.5px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  grid-auto-rows: 1fr;
}

.grid-2 > div {
  display: flex;
  flex-direction: column;
}

.grid-2 > div > a {
  margin-top: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  grid-auto-rows: 1fr;
}

.grid-3 > .card {
  display: flex;
  flex-direction: column;
}

.grid-3 > .card > a {
  margin-top: auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav__links, .nav__cta, .nav__inner > div {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile .theme-toggle {
    display: flex;
  }

  .section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  /* Full-width menu on mobile */
  .nav__mobile {
    display: none !important;
    position: fixed;
    left: 0;
    right: 0;
    top: 65px;
    min-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    transform: none;
  }

  .nav__mobile.open {
    display: flex !important;
  }

  .situation-grid,
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .results-grid,
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* CTA button rows wrap and fill width */
  div[style*="flex-wrap:wrap"][style*="flex-shrink:0"] {
    flex-shrink: 1 !important;
    width: 100% !important;
  }

  div[style*="flex-wrap:wrap"][style*="flex-shrink:0"] a {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Contact form */
.form-wrap { max-width: 560px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface, #fff);
  border: 0.5px solid var(--border, #d1d5db);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cv-submit-btn {
  margin-top: 1.75rem;
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 0.5px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cv-submit-btn:hover { background: rgba(0,0,0,0.04); }
.cv-submit-btn:active { transform: scale(0.98); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 1rem; line-height: 1.6; }
.form-success { display: none; padding: 1.25rem; border: 0.5px solid var(--border, #d1d5db); border-radius: 8px; background: var(--card); }
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.form-success strong { color: var(--ink); font-weight: 500; }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--highlight);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle__moon { display: block; }
.theme-toggle__sun  { display: none; }

[data-theme="light"] .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun  { display: block; }

[data-theme="light"] .nav__hamburger span {
  background: var(--highlight);
}

[data-theme="light"] .card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="light"] .stat-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Case study patterns */
.case-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.cross-link {
  padding: 1rem 1.25rem;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
}

.cross-link__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.cross-link__cta {
  font-size: 0.9rem;
  color: var(--accent-dark);
  text-decoration: none;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-row--tight {
  gap: 0.75rem;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bullet-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.35em;
}

.situation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  text-align: justify;
}

.starting-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}

.starting-card__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.starting-card__label {
  font-size: 0.9rem;
}

.starting-card__value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-dark);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--positive);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.result-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.text-justify {
  text-align: justify;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-dark);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* SPA page visibility */
.page { display: none; }
.page.active { display: block; }

/* Result cards - case pages - use highlight color for premium/success feel */
.page p[style*="color:var(--positive)"][style*="font-size:2.25rem"] {
  color: var(--highlight) !important;
}

/* Result card text alignment */
div[style*="grid-template-columns:repeat(3,1fr)"] .card {
  text-align: center;
}

div[style*="grid-template-columns:repeat(3,1fr)"] .card p {
  text-align: center;
}

/* Center result card grids */
div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"] {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}
