:root {
  --bg: #f5f5f5;
  --bg-2: #e5e7eb;
  --card: #ffffff;
  --text: #111111;
  --muted: #4b5563;
  --primary: #1f2937;
  --primary-2: #000000;
  --lime: #d1d5db;
  --ink: #111827;
  --header-ink: #2f3440;
  --header-ink-soft: #4f5d73;
  --header-surface: rgba(255, 255, 255, 0.88);
  --header-border: rgba(47, 52, 64, 0.15);
  --header-highlight: rgba(124, 174, 58, 0.22);
  --header-cta: #161b25;
  --accent: #f59e0b;
  --danger: #b91c1c;
  --success: #15803d;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(107, 114, 128, 0.14), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(75, 85, 99, 0.1), transparent 36%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", sans-serif; line-height: 1.2; margin-top: 0; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92vw); margin-inline: auto; }

.site-header, .admin-header, .portal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  background: var(--header-surface);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #111111 0%, #4b5563 45%, #111111 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(47, 52, 64, 0.22) 20%, rgba(47, 52, 64, 0.22) 80%, transparent 100%);
  pointer-events: none;
}

.nav-wrap, .admin-nav, .portal-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.site-header .nav-wrap {
  width: min(1320px, 96vw);
}

.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  height: 46px;
  max-width: min(320px, 30vw);
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-block;
}
.brand:not(.brand-text-only) .brand-wordmark { display: none; }
.brand.brand-text-only .brand-wordmark { display: inline-block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}
.site-nav a {
  font-weight: 650;
  color: var(--header-ink-soft);
  font-size: 0.9rem;
}
.site-nav a:not(.btn) {
  position: relative;
  padding: 0.52rem 0.72rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.24rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7cae3a, #4f5d73);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}
.site-nav a:not(.btn):hover {
  color: var(--header-ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(47, 52, 64, 0.16);
}
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn).is-active::after {
  transform: scaleX(1);
}
.site-nav a:not(.btn).is-active {
  color: #1f2737;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 246, 252, 0.95));
  border-color: rgba(47, 52, 64, 0.2);
}
.menu-toggle { display: none; }

.site-announcement {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.site-announcement-switch-wrap {
  position: relative;
}

.site-announcement-switch {
  margin: 0;
  position: relative;
  height: 2.1rem;
  overflow: hidden;
  display: block;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 20px rgba(255, 255, 255, 0.32);
}

.site-announcement-switch .phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(32%);
}

.site-announcement-switch .phrase-one {
  animation: cfAnnouncementPhraseOne 8s ease-in-out infinite;
}

.site-announcement-switch .phrase-two {
  animation: cfAnnouncementPhraseTwo 8s ease-in-out infinite;
}

@keyframes cfAnnouncementPhraseOne {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  42% {
    opacity: 1;
    transform: translateY(0);
  }
  52% {
    opacity: 0;
    transform: translateY(-32%);
  }
  100% {
    opacity: 0;
    transform: translateY(-32%);
  }
}

@keyframes cfAnnouncementPhraseTwo {
  0% {
    opacity: 0;
    transform: translateY(32%);
  }
  42% {
    opacity: 0;
    transform: translateY(32%);
  }
  52% {
    opacity: 1;
    transform: translateY(0);
  }
  94% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-32%);
  }
}

.admin-nav nav,
.portal-nav nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-nav nav a,
.portal-nav nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.admin-nav nav a:hover,
.portal-nav nav a:hover {
  transform: translateY(-1px);
  color: var(--primary-2);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.admin-nav nav a:last-child,
.portal-nav nav a:last-child {
  color: #7f1d1d;
  border-color: rgba(185, 28, 28, 0.28);
  background: rgba(254, 242, 242, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.72rem 1.22rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }
.btn:focus-visible,
.admin-nav nav a:focus-visible,
.portal-nav nav a:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.34);
  outline-offset: 2px;
}
.btn-primary {
  background: linear-gradient(135deg, #111827, #000000);
  color: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.32);
}
.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text);
}
.btn-ghost:hover {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.4);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}
.btn-secondary {
  background: linear-gradient(135deg, #334155, #1f2937);
  color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.45);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #3f4c63, #27364a);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.34);
}
.btn-danger-ghost {
  background: rgba(254, 242, 242, 0.86);
  color: #7f1d1d;
  border-color: rgba(220, 38, 38, 0.28);
}
.btn-danger-ghost:hover {
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(185, 28, 28, 0.46);
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.18);
}
.btn-nav {
  background: linear-gradient(140deg, #2f3440, var(--header-cta));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 0.66rem 1rem;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-nav .btn-nav {
  color: #f8fafc;
  border-radius: 10px;
  margin-left: 0.3rem;
  padding-inline: 0.85rem;
}

.site-nav .btn-nav:hover {
  background: linear-gradient(140deg, #3a4251, #242b39);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.4), 0 0 0 4px var(--header-highlight);
}

.btn-sm {
  padding: 0.48rem 0.88rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.premium-frame {
  position: relative;
  overflow: hidden;
}

.premium-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(107, 114, 128, 0.12), rgba(31, 41, 55, 0.1));
  pointer-events: none;
}

.hero { padding: 4.5rem 0 2.4rem; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); font-weight: 800; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-block: 1.4rem 1.2rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hero-badges span {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}
.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; padding: 0; list-style: none; }
.hero-metrics li { background: #fff; border-radius: 12px; padding: 0.9rem; border: 1px solid rgba(15, 23, 42, 0.08); }
.hero-metrics strong { display: block; }
.hero-metrics span { color: var(--muted); font-size: 0.92rem; }

.lead-panel, .admin-card, .card, .price-card, .trust-box, .contact-card, .auth-card, .stat-card, .timeline-item {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-panel { padding: 1.1rem; }
.lead-panel {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
label { display: grid; gap: 0.45rem; margin-bottom: 0.75rem; font-weight: 600; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  padding: 0;
  border-radius: 0;
  margin: 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.check-row span {
  color: inherit;
  font-weight: 600;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(21, 94, 117, 0.35); border-color: var(--primary-2); }

.section { padding: 4rem 0; }
.section-tight { padding: 0.4rem 0 2rem; }
.section-dark { background: linear-gradient(120deg, #0f172a, #1e293b); color: #e2e8f0; }
.section-dark .card { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.section-intro { color: var(--muted); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .price-card, .admin-card, .stat-card { padding: 1.1rem; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 0.3rem 0; }
.package-includes {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.package-includes li {
  position: relative;
  padding-left: 1.35rem;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.package-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 2px;
  background: linear-gradient(135deg, #111827, #4b5563);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.18);
}
.split { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list, .steps, .simple-list { padding-left: 1rem; }
.cta-band { padding: 3.5rem 0; }
.cta-inner { text-align: center; background: linear-gradient(135deg, #111111, #374151); color: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.center { text-align: center; }

.trust-strip {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}
.trust-strip p {
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}
.trust-strip li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.08);
  border: 1px solid rgba(31, 41, 55, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.cap-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.outcomes-wrap {
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.07), rgba(17, 24, 39, 0.03));
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.4rem;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.outcome {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.mini-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.service-stack {
  display: grid;
  gap: 1rem;
}

.service-row {
  display: grid;
  grid-template-columns: 82px 1fr 180px;
  gap: 1rem;
  align-items: center;
}

.service-index {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #f3f4f6;
}

.service-cta {
  display: flex;
  justify-content: flex-end;
}

.price-card.featured {
  border: 2px solid rgba(17, 24, 39, 0.55);
  transform: none;
}

.case-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.case-tag {
  display: inline-block;
  margin: 0 0 0.6rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Blog */
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.blog-card h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; }

.blog-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.4rem 0 0.75rem;
}

.blog-post-wrap { max-width: 760px; margin: 0 auto; }

.blog-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.blog-excerpt {
  font-size: 1.1rem;
  font-weight: 500;
  color: #334155;
  border-left: 3px solid #0ea5e9;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.blog-content { line-height: 1.8; }
.blog-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.blog-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.blog-content p { margin-bottom: 1rem; }
.blog-content ul, .blog-content ol { margin: 0 0 1rem 1.25rem; }
.blog-content li { margin-bottom: 0.4rem; }
.blog-content strong { font-weight: 700; }

.blog-post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }

.table-link-small {
  font-size: 0.75rem;
  color: #0ea5e9;
  margin-left: 0.5rem;
  text-decoration: none;
}
.table-link-small:hover { text-decoration: underline; }

.page-hero .container {
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.95), rgba(21, 94, 117, 0.95));
  color: #e2e8f0;
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.page-hero .kicker {
  color: #e5e7eb;
}

.page-hero p {
  margin-bottom: 0;
  color: #cbd5e1;
}

.contact-card {
  padding: 1.2rem;
}

.map-placeholder {
  border: 1px dashed rgba(15, 23, 42, 0.24);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.8rem;
  text-align: center;
  color: #64748b;
  background: rgba(248, 250, 252, 0.8);
}

.page-hero { padding: 3.4rem 0 1.8rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.founder-photo-slot {
  min-height: 280px;
  border-radius: var(--radius);
  border: 2px dashed rgba(15, 23, 42, 0.2);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.founder-photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.admin-main, .portal-main { padding: 1.4rem 0 3rem; }
.admin-grid, .portal-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { border-bottom: 1px solid rgba(15, 23, 42, 0.08); padding: 0.6rem; text-align: left; }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1rem; }
.stat-card h2 { font-size: 1.8rem; margin: 0; color: var(--primary); }
.timeline-item { padding: 0.8rem; margin-bottom: 0.6rem; }
.auth-shell { min-height: 72vh; display: grid; place-items: center; }
.auth-card { width: min(480px, 96%); padding: 1.4rem; }
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.auth-logo {
  display: block;
  max-width: min(280px, 70vw);
  width: auto;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.alert { border-radius: 10px; padding: 0.8rem 0.9rem; margin-bottom: 1rem; }
.alert-success { background: rgba(21, 128, 61, 0.15); border: 1px solid rgba(21, 128, 61, 0.3); }
.alert-danger { background: rgba(185, 28, 28, 0.15); border: 1px solid rgba(185, 28, 28, 0.3); }

.faq-list details {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  padding: 0.8rem;
}
.faq-list summary { cursor: pointer; font-weight: 700; }

.site-footer {
  margin-top: 3.5rem;
  padding: 2.4rem 0 1.2rem;
  color: #e2e8f0;
  background: linear-gradient(150deg, #0f172a, #1e293b);
}
.footer-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer-bottom { border-top: 1px solid rgba(226, 232, 240, 0.2); margin-top: 1rem; padding-top: 0.8rem; font-size: 0.9rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.tilt-card { transform-style: preserve-3d; transition: transform 0.2s ease; }
.form-status { min-height: 1.3rem; margin: 0.5rem 0 0; font-weight: 700; color: #14532d; }

.home-premium .hero-premium {
  padding-top: 4.2rem;
}

.home-premium .hero-premium-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 1.3rem;
  align-items: stretch;
}

.home-premium .hero-premium-copy {
  position: relative;
  padding: 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(47, 52, 64, 0.1);
  background:
    radial-gradient(circle at 10% 10%, rgba(75, 85, 99, 0.16), transparent 44%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.88));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.home-premium .hero-premium-copy h1 {
  max-width: 18ch;
  font-size: clamp(1.95rem, 3.6vw, 3.35rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.home-premium .hero-tagline {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-weight: 700;
  color: #2f3440;
  max-width: 54ch;
}

.home-premium .premium-metrics {
  margin-top: 0.9rem;
}

.home-premium .premium-metrics li {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(47, 52, 64, 0.12);
}

.home-premium .lead-panel-premium {
  padding: 1.35rem;
  border: 1px solid rgba(47, 52, 64, 0.12);
  background:
    linear-gradient(180deg, #ffffff, #f5f8f2 70%, #edf2e8);
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.home-premium .lead-panel-premium h2 {
  margin-bottom: 0;
}

.home-premium .lead-panel-premium p {
  margin: 0;
  color: #475569;
}

.home-premium .form-proof-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.home-premium .form-proof-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.9rem;
  color: #334155;
}

.home-premium .form-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.47rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #111827, #4b5563);
}

.home-premium .trust-strip-premium {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.84), rgba(244, 249, 240, 0.84));
  border-color: rgba(47, 52, 64, 0.12);
}

.home-premium .section-heading {
  margin-bottom: 1.2rem;
  max-width: 72ch;
}

.home-premium .section-heading h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.home-premium .service-row-premium {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(47, 52, 64, 0.12);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 242, 0.94));
}

.home-premium .service-row-premium h3 {
  margin-bottom: 0.2rem;
}

.home-premium .service-spotlight-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-premium .service-spotlight-card {
  scroll-margin-top: 108px;
  border-radius: 16px;
  border: 1px solid rgba(47, 52, 64, 0.14);
  background: linear-gradient(155deg, #ffffff, #f5f8f2);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  padding: 1rem;
}

.home-premium .service-spotlight-index {
  margin: 0 0 0.45rem;
  color: #4f5d73;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-premium .service-spotlight-card h3 {
  margin-bottom: 0.5rem;
}

.home-premium .service-spotlight-card p {
  color: #334155;
}

.home-premium .service-spotlight-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.home-premium .split-premium {
  align-items: start;
  gap: 1.25rem;
}

.home-premium .outcomes-premium {
  background: linear-gradient(160deg, rgba(75, 85, 99, 0.11), rgba(47, 52, 64, 0.04));
  border-color: rgba(47, 52, 64, 0.14);
}

.home-premium .trust-box-premium {
  border: 1px solid rgba(47, 52, 64, 0.14);
  background: linear-gradient(165deg, #2f3440, #3a4150);
  color: #e2e8f0;
  padding: 1.3rem;
}

.home-premium .trust-box-premium p,
.home-premium .trust-box-premium li {
  color: #dbe5f2;
}

.home-premium .package-grid-premium .price-card {
  background: linear-gradient(170deg, #ffffff, #f7faf4);
}

.home-premium .testimonials-premium .quote-card {
  position: relative;
  border: 1px solid rgba(47, 52, 64, 0.13);
  background: linear-gradient(150deg, #ffffff, #f5f8f3);
}

.home-premium .quote-mark {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #374151;
}

.home-premium .split-faq {
  align-items: start;
  gap: 1.25rem;
}

.home-premium .faq-list-premium details {
  border-color: rgba(47, 52, 64, 0.14);
  background: linear-gradient(160deg, #ffffff, #f6f9f4);
}

.home-premium .cta-inner-premium {
  background: linear-gradient(120deg, #2f3440, #1f2430 60%, #111827);
  border: 1px solid rgba(156, 163, 175, 0.35);
}

.home-premium .cta-inner-premium .kicker {
  color: #e5e7eb;
  margin-bottom: 0.45rem;
}

.public-body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    linear-gradient(180deg, #fafafa 0%, #f1f1f1 100%);
}

.public-body h1,
.public-body h2,
.public-body h3,
.public-body h4,
.public-body .brand-wordmark,
.public-body .site-nav a,
.public-body .btn,
.public-body label,
.public-body input,
.public-body textarea,
.public-body select {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.public-body .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.public-body .site-nav a:not(.btn) {
  border-radius: 0;
  font-size: 0.93rem;
}

.public-body .btn {
  border-radius: 0;
  text-transform: none;
}

.public-body .btn-primary {
  background: #3b5bdb;
}

.public-body .btn-primary:hover {
  background: #364fc7;
}

.public-body .btn-ghost {
  background: rgba(255, 255, 255, 0.9);
}

.home-editorial .hero-editorial {
  padding: 4.4rem 0 2rem;
  background: linear-gradient(155deg, #eef2ff 0%, #f3f0ff 45%, #fafafa 75%);
}

.home-editorial .hero-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 1.2rem;
  align-items: stretch;
}

.home-editorial .hero-editorial-copy {
  padding: 2rem 1.8rem 1.7rem;
  border: 1px solid rgba(59, 91, 219, 0.15);
  border-left: 4px solid #3b5bdb;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.6));
  box-shadow: 0 24px 60px rgba(59, 91, 219, 0.1);
}

.home-editorial .eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3b5bdb;
}

.home-editorial .hero-editorial-copy h1 {
  font-family: "Fraunces", serif;
  max-width: 11ch;
  font-size: clamp(1.9rem, 3.6vw, 3.45rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.home-editorial .lead-editorial {
  max-width: 60ch;
  font-size: 1rem;
  color: #4b5563;
}

.home-editorial .hero-note {
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  margin: 0 0 1rem;
}

.home-editorial .hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.home-editorial .hero-ledger div {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.home-editorial .hero-ledger span,
.home-editorial .story-steps span,
.home-editorial .service-card-index {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.home-editorial .hero-ledger strong,
.home-editorial .story-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
}

.home-editorial .hero-ledger p,
.home-editorial .story-steps p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.home-editorial .hero-stage-shell {
  position: relative;
  height: 100%;
  padding: 1.5rem;
  background: linear-gradient(160deg, #0d1b2a, #1a2550 65%, #111111);
  color: #f9fafb;
  border: 1px solid rgba(59, 91, 219, 0.2);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.35);
}

.home-editorial .hero-stage-mark {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-editorial .hero-stage-mark img {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.9;
}

.home-editorial .hero-stage-shell .eyebrow {
  color: #d1d5db;
}

.home-editorial .hero-stage-shell h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin-bottom: 1rem;
}

.home-editorial .hero-stage-cards {
  display: grid;
  gap: 0.8rem;
}

.home-editorial .hero-stage-cards article {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-editorial .hero-stage-cards strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.98rem;
}

.home-editorial .hero-stage-cards p,
.home-editorial .hero-stage-footer {
  color: #d1d5db;
}

.home-editorial .hero-stage-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.home-editorial .hero-stage-footer span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.38rem 0.6rem;
  font-size: 0.8rem;
}

.home-editorial .trust-strip-premium {
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.home-editorial .trust-strip-premium p {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-editorial .trust-strip li {
  border-radius: 0;
  font-size: 0.8rem;
}

.home-editorial .section-heading {
  max-width: 64rem;
  margin-bottom: 1.4rem;
}

.home-editorial .section-heading h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}

.service-carousel {
  position: relative;
}

.service-carousel-viewport {
  overflow: hidden;
}

.service-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.service-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.service-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: #ffffff;
  cursor: pointer;
  color: #111111;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.service-carousel-btn:hover {
  background: #3b5bdb;
  border-color: #3b5bdb;
  color: #ffffff;
}

.service-carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-carousel-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.service-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.service-carousel-dot.active {
  background: #3b5bdb;
  transform: scale(1.4);
}

.home-editorial .service-editorial-card {
  display: grid;
  gap: 0.75rem;
  align-content: space-between;
  padding: 1.2rem;
  min-height: 290px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.07);
}

.home-editorial .service-card-label {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.home-editorial .service-editorial-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.7rem;
  line-height: 1.08;
}

.home-editorial .service-card-result {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  color: #111111;
}

.home-editorial .split-story {
  gap: 1rem;
}

.home-editorial .story-panel {
  padding: 1.35rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.home-editorial .story-panel-dark {
  background: #111111;
  color: #f9fafb;
}

.home-editorial .story-panel-dark .eyebrow,
.home-editorial .story-panel-dark p,
.home-editorial .check-list-contrast li {
  color: #d1d5db;
}

.home-editorial .story-panel-light {
  background: rgba(255, 255, 255, 0.86);
}

.home-editorial .story-steps {
  display: grid;
  gap: 1rem;
}

.package-card-editorial {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.9rem;
  border-radius: 0;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.package-card-top {
  display: grid;
  gap: 0.45rem;
}

.package-pill {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.package-best-for {
  margin: 0;
  color: #111111;
  font-weight: 600;
  line-height: 1.5;
}

.package-cadence {
  margin: 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
}

.package-note {
  margin: 0;
  color: #4b5563;
  font-size: 0.93rem;
  line-height: 1.55;
}

.package-actions {
  margin-top: auto;
}

.package-card-editorial.featured {
  background: #111111;
  color: #f9fafb;
  transform: none;
}

.package-card-editorial.featured .price,
.package-card-editorial.featured p,
.package-card-editorial.featured li,
.package-card-editorial.featured h2,
.package-card-editorial.featured h3 {
  color: #e5e7eb;
}

.package-card-editorial.featured .package-pill,
.package-card-editorial.featured .package-cadence {
  color: #d1d5db;
}

.package-card-editorial.featured .package-cadence {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.package-card-editorial.featured .btn-primary,
.package-card-editorial.featured .btn-ghost {
  background: #ffffff;
  color: #111111;
}

.package-card-editorial.featured .btn-primary:hover,
.package-card-editorial.featured .btn-ghost:hover {
  background: #f3f4f6;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.package-grid > .package-card-editorial {
  height: 100%;
}

.package-card-editorial h2,
.package-card-editorial h3 {
  margin-bottom: 0;
}

.package-card-editorial .price {
  margin: 0.05rem 0 0.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.package-card-editorial .package-includes {
  margin-bottom: 0;
}

.package-card-editorial .package-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.package-card-editorial .btn {
  min-height: 56px;
}

.package-comparison-panel {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
}

.package-compare-table th,
.package-compare-table td {
  vertical-align: top;
  padding: 0.95rem 0.8rem;
}

.package-compare-table thead th {
  font-size: 0.9rem;
  color: #111111;
  background: rgba(17, 17, 17, 0.03);
}

.package-compare-table tbody th {
  width: 220px;
  color: #111111;
}

.package-compare-table td {
  color: #4b5563;
  line-height: 1.5;
}

.home-editorial .quote-card,
.home-editorial .faq-list-premium details {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.home-editorial .quote-mark {
  font-size: 2.4rem;
}

.home-editorial .cta-inner-premium {
  border-radius: 0;
}

.site-footer {
  margin-top: 2.8rem;
  padding-top: 0;
  background: #111111;
  color: #f3f4f6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-topline {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.05rem 0 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-topline p {
  margin: 0;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.footer-brand-title img {
  display: block;
  max-width: 240px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.96;
}

.footer-brand-title span {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #ffffff;
}

.footer-kicker {
  display: inline-block;
  margin-top: 0.3rem;
  color: #9ca3af;
  font-size: 0.88rem;
}

.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0.35rem 0;
}

.footer-logo-lockup img {
  display: block;
  max-width: 220px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.96;
}

.footer-logo-lockup span {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: #ffffff;
}

.footer-grid-premium {
  padding-top: 1.6rem;
  padding-bottom: 1.2rem;
  grid-template-columns: 1.25fr 1fr 0.8fr 0.8fr 0.9fr;
  gap: 1.5rem;
}

.footer-brand-block,
.footer-contact-compact {
  display: grid;
  gap: 0.35rem;
}

.footer-brand-block {
  max-width: 860px;
}

.footer-contact-inline {
  margin-top: 0.3rem;
  display: grid;
  gap: 0.25rem;
}

.footer-contact-inline p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.35;
}

.footer-contact-inline a {
  font-weight: 700;
}

.footer-contact-compact p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-link-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-link-col h4 {
  margin-bottom: 0.38rem;
  font-size: 1rem;
}

.footer-link-col p {
  margin: 0 0 0.28rem;
  line-height: 1.25;
}

.footer-link-button {
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: #d1d5db;
  font: inherit;
  cursor: pointer;
}

.footer-link-button:hover {
  color: #ffffff;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.site-footer h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  max-width: 18ch;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: #d1d5db;
}

.site-footer a {
  color: #d1d5db;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-meta {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.86rem;
}

.footer-payment-trust {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-payment-trust .footer-meta {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(59, 130, 246, 0.2));
  color: #e0e7ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom {
  margin-top: 0;
  border-top: 0;
  padding: 0.62rem 0 0.75rem;
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.84rem;
}

.footer-bottom-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.footer-separator {
  color: rgba(148, 163, 184, 0.7);
}

.quote-request-page .quote-request-hero {
  border: 1px solid rgba(47, 52, 64, 0.12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 252, 0.9));
}

.public-flash-wrap {
  margin-top: 0.9rem;
}

.quote-request-shell {
  display: grid;
  gap: 0.9rem;
}

.quote-request-topnote {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
}

.quote-request-topnote p {
  margin: 0;
  color: #334155;
}

.quote-request-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quote-request-tags span {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.86);
}

.quote-request-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.92));
  border-radius: 14px;
}

.quote-split-tight {
  gap: 0.8rem;
}

.quote-request-group {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.quote-request-group .check-row.is-disabled span {
  opacity: 0.55;
}

.quote-request-legend {
  padding: 0 0.3rem;
  font-weight: 700;
  color: #1f2937;
}

.quote-request-aside {
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-request-aside h3,
.quote-request-aside p,
.quote-request-aside strong {
  color: #e5e7eb;
}

.quote-request-aside .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.enquiry-card-quote {
  border-left: 4px solid #0f766e;
}

@media (max-width: 980px) {
  .home-editorial .hero-editorial-grid {
    grid-template-columns: 1fr;
  }

  .home-editorial .hero-ledger {
    grid-template-columns: 1fr;
  }

  .footer-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding-top: 0.9rem;
  }
}

@media (max-width: 640px) {
  .home-editorial .hero-editorial-copy,
  .home-editorial .hero-stage-shell,
  .home-editorial .service-editorial-card,
  .home-editorial .story-panel,
  .home-editorial .package-card-editorial,
  .home-editorial .quote-card,
  .home-editorial .faq-list-premium details,
  .home-editorial .cta-inner-premium {
    padding: 1rem;
  }

  .footer-topline {
    gap: 0.65rem;
  }

  .footer-grid-premium {
    grid-template-columns: 1fr;
  }

  .footer-link-row {
    gap: 0.5rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .footer-bottom {
    padding-bottom: 0.62rem;
  }

  .home-editorial .hero-editorial-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 3rem);
  }
}

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .capability-grid, .outcomes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: 64px 1fr; }
  .service-cta { grid-column: 1 / -1; justify-content: flex-start; }
  .home-premium .hero-premium-copy h1 { max-width: 100%; }
}

@media (max-width: 860px) {
  .brand-logo { height: 36px; max-width: 72vw; }
  .brand-wordmark { font-size: 1rem; }
  .menu-toggle { display: inline-flex; border: 1px solid rgba(47, 52, 64, 0.24); background: #fff; border-radius: 8px; padding: 0.5rem 0.9rem; font-weight: 700; color: var(--header-ink); }
  .admin-nav, .portal-nav { align-items: flex-start; padding: 0.7rem 0; }
  .admin-nav nav, .portal-nav nav { width: 100%; }
  .site-nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff, #f6f8fc);
    border-radius: 12px;
    border: 1px solid rgba(47, 52, 64, 0.13);
    padding: 0.8rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    display: none;
  }
  .site-nav a:not(.btn)::after {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.25rem;
  }
  .site-nav .btn-nav {
    margin-left: 0;
    margin-top: 0.35rem;
    text-align: center;
  }
  .site-nav.is-open { display: flex; }

  .site-announcement-switch {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    height: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-announcement-switch .phrase {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .site-announcement-switch .phrase-one {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 2.8rem; }
  .section { padding: 3rem 0; }
  .trust-strip { grid-template-columns: 1fr; }
  .capability-grid, .outcomes-grid { grid-template-columns: 1fr; }
  .page-hero .container { padding: 1.1rem; }
  .home-premium .hero-premium-copy,
  .home-premium .lead-panel-premium,
  .home-premium .service-row-premium,
  .home-premium .cta-inner-premium {
    border-radius: 14px;
  }
}

/* Homepage remodel */
.home-remodel {
  --remodel-ink: #2f3440;
  --remodel-ink-soft: #4f5d73;
  --remodel-surface: #f7f8fa;
  --remodel-line: rgba(47, 52, 64, 0.15);
  --remodel-brand: #7cae3a;
  --remodel-brand-dark: #2f3440;
  --remodel-warm: #6b7280;
}

.home-remodel .eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--remodel-brand-dark);
}

.home-remodel .hero-remodel {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.home-remodel .hero-remodel-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-remodel .blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
}

.home-remodel .blob-one {
  width: 380px;
  height: 380px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(124, 174, 58, 0.24), rgba(124, 174, 58, 0));
}

.home-remodel .blob-two {
  width: 460px;
  height: 460px;
  top: -80px;
  right: -120px;
  background: radial-gradient(circle, rgba(79, 93, 115, 0.2), rgba(79, 93, 115, 0));
}

.home-remodel .blob-three {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: 35%;
  background: radial-gradient(circle, rgba(47, 52, 64, 0.19), rgba(47, 52, 64, 0));
}

.home-remodel .hero-remodel-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 1.3rem;
  align-items: stretch;
  border: 1px solid var(--remodel-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 248, 0.95));
  box-shadow: 0 24px 52px rgba(7, 18, 31, 0.14);
  padding: 1.45rem;
}

.home-remodel .hero-remodel-copy,
.home-remodel .hero-remodel-side {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-remodel .hero-remodel-copy {
  padding: 0.6rem 0.45rem 0.6rem 0.6rem;
}

.home-remodel .hero-remodel-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 4.1vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--remodel-ink);
}

.home-remodel .lead-remodel {
  margin: 0;
  max-width: 58ch;
  color: var(--remodel-ink-soft);
  font-size: 1.04rem;
}

.home-remodel .hero-tagline {
  margin: 1rem 0 0;
  font-weight: 700;
  color: #0f172a;
}

.home-remodel .hero-microproof {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.home-remodel .hero-microproof li {
  position: relative;
  padding-left: 1.2rem;
  color: #2f3f53;
  font-weight: 600;
}

.home-remodel .hero-microproof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--remodel-brand), #4f5d73);
}

.home-remodel .hero-link-row {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-remodel .hero-location {
  margin: 0.9rem 0 0;
  color: #2f3f53;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-remodel .hero-link-row a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(47, 52, 64, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #243446;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-remodel .hero-link-row a:hover {
  background: #ffffff;
  border-color: rgba(47, 52, 64, 0.42);
  transform: translateY(-1px);
}

.home-remodel .hero-remodel-side {
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  border-left: 1px solid rgba(47, 52, 64, 0.16);
}

.home-remodel .hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 0.7rem;
}

.home-remodel .hero-logo-wrap img {
  max-width: 190px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-remodel .hero-remodel-side h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  margin-bottom: 0.9rem;
  color: var(--remodel-ink);
}

.home-remodel .ai-code-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 122, 72, 0.55);
  background:
    radial-gradient(circle at 90% 8%, rgba(34, 197, 94, 0.15), transparent 38%),
    linear-gradient(160deg, #020404, #020806 55%, #06110c);
  box-shadow: 0 16px 34px rgba(5, 18, 11, 0.62), inset 0 0 0 1px rgba(74, 222, 128, 0.12);
  margin: 0 0 0.9rem;
}

.home-remodel .ai-code-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.36rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.52rem 0.64rem;
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.92), rgba(5, 12, 8, 0.72));
}

.home-remodel .ai-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
}

.home-remodel .ai-code-dot:nth-child(1) {
  background: #ef4444;
}

.home-remodel .ai-code-dot:nth-child(2) {
  background: #f59e0b;
}

.home-remodel .ai-code-dot:nth-child(3) {
  background: #22c55e;
}

.home-remodel .ai-code-header p {
  margin: 0 0 0 0.36rem;
  color: #86efac;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-remodel .ai-code-rain {
  position: absolute;
  inset: 4.45rem 0 1.7rem;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 0.12rem;
  padding: 0.5rem 0.38rem;
}

.home-remodel .ai-rain-stream {
  color: rgba(74, 222, 128, 0.95);
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 0.58rem;
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 0 7px rgba(74, 222, 128, 0.35);
  white-space: pre;
  transform: translateY(-70%);
  animation: homeAiRainFall linear infinite;
}

.home-remodel .ai-rain-stream:nth-child(odd) {
  opacity: 0.75;
}

.home-remodel .ai-rain-stream:nth-child(3n) {
  opacity: 0.58;
}

.home-remodel .ai-rain-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 4, 0) 0%, rgba(2, 6, 4, 0.66) 78%, rgba(2, 6, 4, 0.9) 100%);
  pointer-events: none;
}

.home-remodel .ai-code-screen {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 220px;
  padding: 0.78rem 0.85rem;
  color: #bbf7d0;
  font-size: 0.8rem;
  line-height: 1.6;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  background: linear-gradient(180deg, rgba(1, 10, 6, 0.32), rgba(1, 7, 4, 0.76));
}

.home-remodel .ai-code-prompt {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.18);
  color: #dcfce7;
  font-size: 0.71rem;
  letter-spacing: 0.03em;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  background: rgba(2, 12, 8, 0.68);
}

.home-remodel .ai-code-screen code {
  color: inherit;
}

.home-remodel .ai-code-screen .ai-token-keyword {
  color: #4ade80;
}

.home-remodel .ai-code-screen .ai-token-fn {
  color: #86efac;
}

.home-remodel .ai-code-screen .ai-token-var {
  color: #bbf7d0;
}

.home-remodel .ai-code-screen .ai-token-number {
  color: #bef264;
}

.home-remodel .ai-code-screen .ai-token-string {
  color: #22c55e;
}

.home-remodel .ai-code-screen .ai-token-op {
  color: #6ee7b7;
}

.home-remodel .ai-code-caret {
  display: inline-block;
  width: 0.5ch;
  height: 1.18em;
  vertical-align: -0.18em;
  margin-left: 0.12rem;
  background: rgba(74, 222, 128, 0.92);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
  animation: homeAiCaretBlink 1s steps(1, end) infinite;
}

.home-remodel .ai-code-status {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.42rem 0.85rem 0.5rem;
  color: rgba(167, 243, 208, 0.84);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid rgba(74, 222, 128, 0.16);
}

.home-remodel .ai-code-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.55rem 0.85rem 0.7rem;
  border-top: 1px solid rgba(74, 222, 128, 0.16);
  color: rgba(187, 247, 208, 0.86);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-remodel .ai-code-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(134, 239, 172, 0.05) 0,
    rgba(134, 239, 172, 0.05) 1px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.5;
  z-index: 1;
}

@keyframes homeAiCaretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes homeAiRainFall {
  0% {
    transform: translateY(-70%);
  }
  100% {
    transform: translateY(95%);
  }
}

@media (max-width: 700px) {
  .home-remodel .hero-remodel-grid {
    padding: 1rem;
    gap: 1rem;
  }

  .home-remodel .hero-remodel-side {
    border-left: 0;
    border-top: 1px solid rgba(47, 52, 64, 0.16);
    padding: 1rem 0 0;
  }

  .home-remodel .hero-remodel-copy {
    padding: 0;
  }

  .home-remodel .ai-code-rain {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    inset: 4.35rem 0 1.7rem;
  }

  .home-remodel .ai-code-screen {
    min-height: 160px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-remodel .ai-rain-stream,
  .home-remodel .ai-code-caret {
    animation: none;
  }
}

.home-remodel .journey-snapshot-box {
  margin-top: 0.5rem;
}

.home-remodel .journey-gallery-launch {
  border: 1px solid var(--remodel-line);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.home-remodel .journey-gallery-launch .btn {
  justify-self: start;
}

.home-remodel .journey-gallery-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #54657b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-remodel .platform-intro {
  margin: 0 0 0.9rem;
  color: #43556b;
}

.home-remodel .platform-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.home-remodel .platform-info-grid article {
  border: 1px solid var(--remodel-line);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.65rem 0.7rem;
}

.home-remodel .platform-info-grid h3 {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  color: #1f2937;
}

.home-remodel .platform-info-grid p {
  margin: 0;
  font-size: 0.78rem;
  color: #4b5d73;
}

.home-remodel .journey-scroll-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.home-remodel .journey-scroll-card {
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--remodel-line);
  background: #fff;
  box-shadow: 0 14px 28px rgba(12, 28, 42, 0.12);
}

.home-remodel .journey-scroll-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.home-remodel .journey-image-trigger {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.home-remodel .journey-scroll-card figcaption {
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.8rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-top: 1px solid var(--remodel-line);
}

.home-remodel .journey-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
}

.home-remodel .journey-alt-text {
  font-size: 0.74rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-remodel .journey-scroll-hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.home-remodel .journey-empty {
  border: 1px dashed var(--remodel-line);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  color: #475569;
}

.home-remodel .journey-empty p {
  margin: 0 0 0.45rem;
}

.home-remodel .journey-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 6, 23, 0.92);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.home-remodel .journey-lightbox[hidden] {
  display: none !important;
}

.home-remodel .journey-lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.home-remodel .journey-lightbox p {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

.home-remodel #journeyLightboxIndex {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
}

.home-remodel .journey-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

.home-remodel .journey-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.home-remodel .journey-lightbox-prev {
  left: 1rem;
}

.home-remodel .journey-lightbox-next {
  right: 1rem;
}

.home-remodel .hero-journey {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.home-remodel .hero-journey li {
  padding: 0.8rem;
  border: 1px solid var(--remodel-line);
  background: rgba(255, 255, 255, 0.84);
  color: #314154;
}

.home-remodel .section-remodel-stats {
  padding-top: 0.6rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tools-download-layout {
  align-items: flex-start;
}

.tool-update-list {
  display: grid;
  gap: 0.8rem;
}

.tool-update-item {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
}

.tool-update-item h3 {
  margin: 0 0 0.25rem;
}

.home-remodel .stats-remodel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-remodel .stat-remodel-card {
  border: 1px solid var(--remodel-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.92));
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(8, 20, 30, 0.1);
}

.home-remodel .stat-label {
  margin: 0;
  font-weight: 700;
  color: #4f5d73;
}

.home-remodel .stat-value {
  margin: 0.4rem 0;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 800;
  color: var(--remodel-ink);
  line-height: 1;
}

.home-remodel .stat-note {
  margin: 0;
  color: #607086;
}

.home-remodel .remodel-heading {
  margin-bottom: 1.2rem;
  max-width: 68ch;
}

.home-remodel .remodel-heading h2 {
  margin-bottom: 0.45rem;
  font-family: "Fraunces", serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  color: var(--remodel-ink);
}

.home-remodel .services-remodel-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
}

.home-remodel .services-remodel-nav {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.home-remodel .service-tab {
  border: 1px solid var(--remodel-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 249, 0.92));
  text-align: left;
  color: #2f3f53;
  font-weight: 700;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-remodel .service-tab:hover {
  transform: translateX(3px);
  border-color: rgba(47, 52, 64, 0.38);
}

.home-remodel .service-tab.active {
  border-color: rgba(47, 52, 64, 0.55);
  box-shadow: 0 12px 26px rgba(31, 36, 48, 0.22);
  background: linear-gradient(145deg, #2f3440, #1f2430);
  color: #ffffff;
}

.home-remodel .service-tab-index {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.home-remodel .services-remodel-panels {
  border: 1px solid var(--remodel-line);
  background: linear-gradient(165deg, #f9fafc, #edf0f4);
  box-shadow: 0 20px 44px rgba(7, 18, 31, 0.12);
}

.home-remodel .service-panel {
  padding: 1.2rem;
}

.home-remodel .service-panel-kicker {
  margin: 0 0 0.5rem;
  color: #4f5d73;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.home-remodel .service-panel h3 {
  margin-bottom: 0.5rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  color: #2f3440;
}

.home-remodel .service-panel-summary {
  color: #4f5d73;
  font-size: 1.03rem;
  max-width: 65ch;
}

.home-remodel .service-panel-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.home-remodel .service-panel-list li {
  position: relative;
  padding-left: 1.2rem;
  color: #334155;
}

.home-remodel .service-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--remodel-brand), #4f5d73);
}

.home-remodel .service-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--remodel-line);
  padding-top: 0.9rem;
}

.home-remodel .service-panel-footer p {
  margin: 0;
  color: #4f5d73;
  max-width: 48ch;
}

.home-remodel .service-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-left: auto;
}

.home-remodel .section-remodel-band {
  padding-top: 0.5rem;
}

.home-remodel .remodel-band-shell {
  border: 1px solid rgba(124, 174, 58, 0.3);
  background:
    radial-gradient(circle at 90% 12%, rgba(124, 174, 58, 0.24), transparent 42%),
    linear-gradient(135deg, #2f3440, #1f2430 58%, #252b36);
  color: #edf1f6;
  padding: 1.5rem;
}

.home-remodel .remodel-band-shell .eyebrow,
.home-remodel .remodel-band-shell h2,
.home-remodel .remodel-band-shell p {
  color: inherit;
}

.home-remodel .remodel-band-shell h2 {
  font-family: "Fraunces", serif;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.home-remodel .band-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-remodel .band-points p {
  margin: 0;
  border: 1px solid rgba(232, 248, 251, 0.24);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
}

.home-remodel .package-grid-remodel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-remodel .package-card-remodel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--remodel-line);
  background: linear-gradient(165deg, #ffffff, #f3f5f8);
  padding: 1.2rem;
  box-shadow: 0 14px 34px rgba(7, 18, 31, 0.1);
  height: 100%;
}

.home-remodel .package-card-remodel.featured {
  background: linear-gradient(165deg, #2f3440, #1f2430);
  color: #edf1f6;
}

.home-remodel .package-card-remodel.featured .price,
.home-remodel .package-card-remodel.featured .package-copy,
.home-remodel .package-card-remodel.featured .package-label,
.home-remodel .package-card-remodel.featured li {
  color: #effcff;
}

.home-remodel .package-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: #32546b;
  font-weight: 800;
}

.home-remodel .package-copy {
  margin: 0;
  color: #4f5d73;
}

.home-remodel .package-card-remodel .package-includes {
  margin-bottom: 0;
}

.home-remodel .package-card-remodel .btn {
  margin-top: auto;
  min-height: 54px;
}

.home-remodel .split-remodel-testimonials {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
}

.home-remodel .testimonial-rail-wrap {
  border: 1px solid var(--remodel-line);
  background:
    radial-gradient(circle at 92% 6%, rgba(124, 174, 58, 0.2), transparent 32%),
    radial-gradient(circle at 10% 96%, rgba(47, 52, 64, 0.08), transparent 35%),
    linear-gradient(160deg, #fbfdff, #edf3f9 70%);
  box-shadow: 0 20px 44px rgba(7, 18, 31, 0.13);
  padding: 1rem 1rem 0.9rem;
}

.home-remodel .testimonial-rail-kicker {
  margin: 0 0 0.75rem;
  color: #365065;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-remodel .testimonial-slider-window {
  display: grid;
  margin: 0;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.home-remodel .testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
}

.home-remodel .testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.home-remodel .testimonial-rail-card {
  border: 1px solid var(--remodel-line);
  background: linear-gradient(165deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
  padding: 1.1rem 1.15rem;
  min-height: 250px;
}

.home-remodel .testimonial-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.home-remodel .testimonial-rating {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #b3871f;
  font-weight: 800;
  white-space: nowrap;
}

.home-remodel .quote-mark {
  display: inline-block;
  font-size: 1.32em;
  line-height: 0;
  vertical-align: -0.12em;
  color: #3f5b75;
  font-weight: 700;
}

.home-remodel .testimonial-quote {
  margin: 0;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.66;
  max-width: 42ch;
}

.home-remodel .testimonial-author {
  margin: 0.95rem 0 0;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(71, 85, 105, 0.18);
  color: #1f2937;
}

.home-remodel .testimonial-author strong {
  display: block;
  font-size: 0.94rem;
}

.home-remodel .testimonial-author span {
  display: block;
  margin-top: 0.12rem;
  color: #546274;
  font-size: 0.86rem;
}

.home-remodel .testimonial-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.home-remodel .testimonial-nav {
  border: 1px solid rgba(47, 52, 64, 0.24);
  background: #ffffff;
  color: #1f2937;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.42rem 0.62rem;
  cursor: pointer;
}

.home-remodel .testimonial-nav:hover,
.home-remodel .testimonial-nav:focus-visible {
  border-color: rgba(47, 52, 64, 0.42);
  background: #f8fafc;
}

.home-remodel .testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.home-remodel .testimonial-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.home-remodel .testimonial-dot.is-active {
  background: #2f3440;
  transform: scale(1.1);
}

.home-remodel .testimonial-empty {
  display: grid;
  align-content: center;
  min-height: 250px;
  border-style: dashed;
  border-color: rgba(71, 85, 105, 0.3);
  background:
    radial-gradient(circle at 6% 8%, rgba(124, 174, 58, 0.14), transparent 34%),
    linear-gradient(165deg, #f8fbff, #eef3f8);
}

.home-remodel .testimonial-empty .quote-mark {
  color: #4f6278;
}

.home-remodel .testimonial-empty-note {
  margin: 0.55rem 0 0;
  color: #546274;
  font-size: 0.86rem;
}

.home-remodel .split-faq-remodel {
  align-items: start;
}

.home-remodel .faq-remodel-list details {
  border: 1px solid var(--remodel-line);
  background: linear-gradient(150deg, #ffffff, #f3f6fa);
}

.home-remodel .cta-remodel {
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 174, 58, 0.24), transparent 36%),
    linear-gradient(125deg, #2f3440, #1f2430 56%, #252b36);
  border: 1px solid rgba(156, 163, 175, 0.35);
}

.home-remodel .cta-remodel h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-remodel .cta-remodel .eyebrow {
  color: #f8fafc;
}

.home-remodel .cta-remodel p {
  max-width: 62ch;
}

.home-remodel .cta-local-badge {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0;
  padding: 0.34rem 0.65rem;
  border: 1px solid rgba(226, 232, 240, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Improves paint/scroll cost for long homepage sections below the fold. */
.home-remodel .section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

@media (max-width: 1100px) {
  .home-remodel .hero-remodel-grid,
  .home-remodel .services-remodel-shell,
  .home-remodel .split-remodel-testimonials {
    grid-template-columns: 1fr;
  }

  .home-remodel .hero-remodel-side {
    border-left: 0;
    border-top: 1px solid rgba(47, 52, 64, 0.16);
    padding: 1rem 0 0;
  }

  .home-remodel .hero-remodel-copy {
    padding: 0;
  }

  .home-remodel .band-points,
  .home-remodel .stats-remodel-grid,
  .home-remodel .package-grid-remodel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-remodel .hero-remodel {
    padding-top: 3rem;
  }

  .home-remodel .hero-remodel-copy,
  .home-remodel .hero-remodel-side,
  .home-remodel .service-panel,
  .home-remodel .remodel-band-shell,
  .home-remodel .package-card-remodel,
  .home-remodel .testimonial-rail-wrap,
  .home-remodel .testimonial-rail-card,
  .home-remodel .faq-remodel-list details,
  .home-remodel .cta-remodel {
    padding: 1rem;
  }

  .home-remodel .hero-remodel-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9.5vw, 3rem);
  }

  .home-remodel .journey-slides {
    min-height: 0;
  }

  .home-remodel .journey-scroll-gallery {
    grid-auto-columns: minmax(240px, 86vw);
  }

  .home-remodel .journey-scroll-card img {
    height: 190px;
  }

  .home-remodel .service-panel-footer {
    align-items: flex-start;
  }

  .home-remodel .service-panel-actions {
    margin-left: 0;
  }

  .home-remodel .testimonial-slider-window,
  .home-remodel .testimonial-rail-card,
  .home-remodel .testimonial-empty {
    min-height: 0;
  }

  .home-remodel .testimonial-controls {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-remodel .testimonial-nav {
    width: 100%;
    max-width: 180px;
  }

  .home-remodel .testimonial-quote {
    font-size: 0.95rem;
  }

  .home-remodel .band-points,
  .home-remodel .stats-remodel-grid,
  .home-remodel .package-grid-remodel {
    grid-template-columns: 1fr;
  }
}

/* Public pages alignment (excluding home-specific blocks) */
.public-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 174, 58, 0.1), transparent 36%),
    radial-gradient(circle at 100% 20%, rgba(79, 93, 115, 0.13), transparent 40%),
    linear-gradient(180deg, #f8f9fb 0%, #f1f3f7 100%);
}

.public-body .site-header {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 252, 0.94));
  border-bottom: 1px solid rgba(47, 52, 64, 0.16);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.11);
}

.public-body .site-header::before {
  background: linear-gradient(90deg, #7cae3a 0%, #4f5d73 48%, #2f3440 100%);
}

.public-body .site-nav a:not(.btn) {
  border-radius: 10px;
  font-size: 0.93rem;
}

.public-body .public-refresh .btn {
  border-radius: 9px;
  text-transform: none;
}

.public-body .public-refresh .btn-primary {
  background: linear-gradient(140deg, #2f3440, #1f2430);
  box-shadow: 0 14px 28px rgba(31, 36, 48, 0.32);
}

.public-body .public-refresh .btn-primary:hover {
  background: linear-gradient(140deg, #353b49, #232936);
}

.public-body .public-refresh .btn-ghost {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(47, 52, 64, 0.18);
}

.public-body .public-refresh .page-hero {
  padding: 3.9rem 0 2.1rem;
}

.public-body .public-refresh .page-hero .container {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.55rem 1.6rem;
  border: 1px solid rgba(124, 174, 58, 0.3);
  background:
    radial-gradient(circle at 88% 12%, rgba(124, 174, 58, 0.18), transparent 34%),
    linear-gradient(125deg, #2f3440, #1f2430 56%, #252b36);
  color: #edf1f6;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.24);
}

.public-body .public-refresh .page-hero .kicker {
  color: #d5e7b7;
  letter-spacing: 0.16em;
}

.public-body .public-refresh .page-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.95rem, 3.8vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.public-body .public-refresh .page-hero p {
  color: #d3dbe7;
  max-width: 72ch;
}

.public-body .public-refresh .page-hero .hero-actions {
  margin-top: 1rem;
  margin-bottom: 0;
}

.public-body .public-refresh .panel,
.public-body .public-refresh .card,
.public-body .public-refresh .contact-card,
.public-body .public-refresh .case-card,
.public-body .public-refresh .package-card-editorial,
.public-body .public-refresh .outcome,
.public-body .public-refresh .service-row {
  border: 1px solid rgba(47, 52, 64, 0.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(244, 247, 250, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.public-body .public-refresh .section-dark {
  border-top: 1px solid rgba(124, 174, 58, 0.22);
  border-bottom: 1px solid rgba(124, 174, 58, 0.22);
  background:
    radial-gradient(circle at 90% 8%, rgba(124, 174, 58, 0.16), transparent 40%),
    linear-gradient(125deg, #2f3440, #1f2430);
}

.public-body .public-refresh .section-dark .card {
  border-color: rgba(226, 232, 240, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.public-body .public-refresh .service-row {
  grid-template-columns: 78px 1fr 200px;
  padding: 1rem;
  align-items: start;
}

.public-body .public-refresh .service-index {
  border-radius: 12px;
  background: linear-gradient(140deg, #2f3440, #1f2430);
}

.public-body .public-refresh .service-row h2 {
  margin-bottom: 0.4rem;
}

.public-body .public-refresh .service-row p {
  color: #4f5d73;
}

.public-body .public-refresh .package-grid {
  align-items: stretch;
}

.public-body .public-refresh .package-grid > .package-card-editorial {
  height: 100%;
}

.public-body .public-refresh .package-card-editorial {
  border-radius: 18px;
  gap: 0.95rem;
}

.public-body .public-refresh .package-card-editorial.featured {
  background: linear-gradient(145deg, #2f3440, #1f2430);
}

.public-body .public-refresh .package-card-editorial .package-actions {
  margin-top: auto;
}

.public-body .public-refresh .package-card-editorial .btn {
  min-height: 54px;
}

.public-body .public-refresh .case-tag {
  border-radius: 999px;
  background: rgba(124, 174, 58, 0.14);
  border-color: rgba(124, 174, 58, 0.35);
  color: #2f3440;
}

.public-body .public-refresh .faq-list details {
  border: 1px solid rgba(47, 52, 64, 0.14);
  background: linear-gradient(160deg, #ffffff, #f3f6fa);
}

.public-body .public-refresh .faq-list summary {
  color: #2f3440;
}

.public-body .public-refresh .cta-inner {
  border-radius: 18px;
  border: 1px solid rgba(124, 174, 58, 0.3);
  background:
    radial-gradient(circle at 8% 18%, rgba(124, 174, 58, 0.18), transparent 34%),
    linear-gradient(125deg, #2f3440, #1f2430 56%, #252b36);
}

.public-body .public-refresh .map-placeholder {
  border-color: rgba(47, 52, 64, 0.28);
  background: rgba(244, 247, 250, 0.88);
}

.public-body .public-refresh .founder-photo-slot {
  border: 1px dashed rgba(47, 52, 64, 0.3);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 250, 0.92));
}

.public-body .public-refresh.legal-page .page-hero .container {
  max-width: 980px;
}

.public-body .public-refresh .legal-updated {
  margin-top: 0.9rem;
  color: #5b6c80;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.public-body .public-refresh .legal-shell {
  display: grid;
  gap: 1rem;
}

.public-body .public-refresh .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.public-body .public-refresh .legal-nav a {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #334155;
}

.public-body .public-refresh .legal-nav a:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.32);
  background: #ffffff;
}

.public-body .public-refresh .legal-block {
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.95rem;
}

.public-body .public-refresh .legal-block h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #1f2937;
}

.public-body .public-refresh .legal-block p {
  margin: 0;
  color: #3b4a5f;
}

.public-body .public-refresh .legal-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  color: #3b4a5f;
}

.public-body .public-refresh .legal-company-block {
  border-color: rgba(124, 174, 58, 0.35);
  background:
    radial-gradient(circle at 9% 12%, rgba(124, 174, 58, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.9);
}

.legal-summary-section {
  padding-top: 0.4rem;
}

.quote-request-page .quote-request-section-tight {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.quote-request-page .quote-request-main-section {
  padding-top: 0.5rem;
}

.legal-summary-strip {
  border: 1px solid rgba(47, 52, 64, 0.15);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 249, 0.9));
  padding: 0.8rem 0.9rem;
}

.legal-summary-strip p {
  margin: 0;
  color: #314154;
  font-size: 0.92rem;
}

.legal-summary-strip a {
  font-weight: 700;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  width: min(500px, calc(100vw - 2rem));
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  border: 1px solid rgba(124, 174, 58, 0.36);
  background: linear-gradient(150deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.95));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  padding: 1rem;
  color: #e5e7eb;
}

.cookie-title {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.cookie-consent-inner p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.92rem;
}

.cookie-consent-inner a {
  color: #f8fafc;
  text-decoration: underline;
}

.cookie-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-preferences {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.34);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.cookie-preferences label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
}

.public-body .site-footer {
  border-top: 1px solid rgba(124, 174, 58, 0.25);
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 174, 58, 0.12), transparent 38%),
    linear-gradient(150deg, #111827, #1f2430);
}

@media (max-width: 980px) {
  .footer-link-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-body .public-refresh .service-row {
    grid-template-columns: 64px 1fr;
  }

  .public-body .public-refresh .service-cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .public-body .public-refresh .page-hero {
    padding-top: 3rem;
  }

  .public-body .public-refresh .page-hero .container {
    padding: 1.1rem;
  }

  .public-body .public-refresh .panel,
  .public-body .public-refresh .card,
  .public-body .public-refresh .contact-card,
  .public-body .public-refresh .case-card,
  .public-body .public-refresh .package-card-editorial,
  .public-body .public-refresh .outcome,
  .public-body .public-refresh .service-row,
  .public-body .public-refresh .cta-inner,
  .public-body .public-refresh .legal-block {
    border-radius: 14px;
  }

  .footer-topline {
    align-items: flex-start;
  }

  .footer-contact-compact {
    width: 100%;
  }

  .footer-link-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inline {
    justify-content: flex-start;
  }

  .cookie-consent {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
  }
}

/* CRM / Portal workspace shell */
.has-sidebar-layout .container {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 1.2rem 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-sidebar {
  background: linear-gradient(170deg, #111827, #1f2430 58%, #2f3440);
  color: #dbe5f2;
}

.portal-sidebar {
  background: linear-gradient(170deg, #1e293b, #2f3440 58%, #3b4252);
  color: #dbe5f2;
}

.portal-sidebar .workspace-link {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.14);
}

.workspace-brand {
  display: block;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.workspace-brand-logo {
  height: 30px;
  max-width: 190px;
  width: auto;
  object-position: left center;
}

.workspace-subtitle {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

.workspace-nav {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.workspace-nav-group {
  display: grid;
  gap: 0.3rem;
}

.workspace-nav-heading {
  margin: 0 0 0.25rem;
  color: #9fb0c7;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.workspace-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.52rem 0.62rem;
  border-radius: 0;
  color: #dbe5f2;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.14);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.workspace-link:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.24);
  transform: translateX(2px);
}

.workspace-link.is-active {
  background: rgba(124, 174, 58, 0.22);
  border-color: rgba(124, 174, 58, 0.45);
  color: #ecf7da;
}

.workspace-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  border: 1px solid rgba(248, 250, 252, 0.32);
  background: rgba(15, 23, 42, 0.45);
  color: #f8fafc;
  font-size: 0.7rem;
  line-height: 1;
}

.workspace-nav .workspace-link .workspace-count {
  margin-left: auto;
}

.workspace-link-label {
  min-width: 0;
}

.workspace-link-danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.kpi-generic-grid {
  grid-template-columns: repeat(5, minmax(130px, 160px));
  justify-content: center;
  gap: 0.55rem;
}

.kpi-generic-grid .stat-card {
  min-height: 74px;
  padding: 0.56rem 0.62rem;
  display: grid;
  align-content: center;
}

.kpi-generic-grid .stat-card h2 {
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 0.12rem;
}

.kpi-generic-grid .stat-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #64748b;
}

.kpi-admin-grid {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.kpi-admin-grid .kpi-admin-grid-row {
  margin-bottom: 0;
}

.kpi-admin-grid-row-primary {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.kpi-admin-grid-row-finance {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

@media (max-width: 1200px) {
  .kpi-admin-grid-row-primary,
  .kpi-admin-grid-row-finance {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .kpi-generic-grid {
    grid-template-columns: repeat(4, minmax(150px, 170px));
  }
}

@media (max-width: 900px) {
  .kpi-admin-grid-row-primary,
  .kpi-admin-grid-row-finance {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .kpi-generic-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    justify-content: stretch;
  }
}

.workspace-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.workspace-topbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1.2rem;
}

.workspace-topbar h1 {
  margin: 0;
  font-size: 1.2rem;
}

.workspace-topbar p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.workspace-content {
  padding: 1.35rem 1.45rem 2rem;
}

.workspace-content > h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.015em;
}

.workspace-content > p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #64748b;
  max-width: 72ch;
  font-size: 0.96rem;
}

.admin-grid,
.portal-grid {
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.admin-card {
  border: 1px solid rgba(47, 52, 64, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 250, 0.96));
  border-radius: 0;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 1.15rem;
}

.admin-card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.14rem;
}

.crm-tabs {
  display: grid;
  gap: 1.25rem;
}

.crm-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.crm-tab {
  border: 1px solid rgba(47, 52, 64, 0.24);
  background: #ffffff;
  color: #334155;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.crm-tab.is-active {
  background: rgba(124, 174, 58, 0.16);
  border-color: rgba(124, 174, 58, 0.48);
  color: #1f2937;
}

.crm-tab-panel {
  margin: 0;
}

.customers-tabs {
  margin-top: 1rem;
}

.customers-table th,
.customers-table td {
  text-align: center;
  vertical-align: middle;
}

.customers-table th:first-child,
.customers-table td:first-child,
.customers-table th:last-child,
.customers-table td:last-child {
  text-align: left;
}

.customers-table tbody td:nth-child(1),
.customers-table tbody td:nth-child(2),
.customers-table tbody td:nth-child(3) {
  font-size: 11px;
  line-height: 1.45;
}

.customers-table thead th:nth-child(1),
.customers-table thead th:nth-child(2),
.customers-table thead th:nth-child(3),
.customers-table tbody td:nth-child(1),
.customers-table tbody td:nth-child(2),
.customers-table tbody td:nth-child(3) {
  font-size: 11px;
}

.customers-table td:last-child .inline-actions {
  justify-content: flex-start;
}

.enquiry-inbox {
  display: grid;
  gap: 0.7rem;
}

.enquiry-card {
  border: 1px solid rgba(47, 52, 64, 0.14);
  background: #ffffff;
  padding: 0.75rem;
}

.enquiry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.enquiry-card-header h3 {
  margin: 0;
  font-size: 0.97rem;
}

.enquiry-meta,
.enquiry-interest,
.enquiry-message {
  margin: 0.28rem 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.crm-form,
.invoice-builder,
.admin-card form {
  display: grid;
  gap: 0.25rem;
}

.admin-card form + h2,
.admin-card form + h3,
.admin-card .crm-form + h2,
.admin-card .crm-form + h3 {
  margin-top: 0.95rem;
}

.admin-card label {
  color: #475569;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  border-color: rgba(47, 52, 64, 0.22);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  font-size: 0.94rem;
}

.admin-card input[type="checkbox"],
.admin-card input[type="radio"] {
  width: 1rem;
  height: 1rem;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  outline: 2px solid rgba(124, 174, 58, 0.3);
  border-color: rgba(47, 52, 64, 0.45);
}

.seo-score-card {
  margin-top: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  padding: 0.75rem;
}

.seo-score-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.seo-score-header h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0f172a;
}

.seo-score-summary {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

.seo-score-meter {
  height: 10px;
  margin-top: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #ffffff;
}

.seo-score-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #16a34a 100%);
  transition: width 180ms ease;
}

.seo-score-value {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #0f172a;
}

.seo-score-tips {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.84rem;
}

.seo-score-tips li {
  margin: 0.14rem 0;
}

.table-wrap {
  border: 1px solid rgba(47, 52, 64, 0.12);
  border-radius: 0;
  background: #ffffff;
}

.table-wrap-force-scroll {
  overflow-x: auto;
}

.table-wrap-force-scroll .entity-table {
  min-width: 720px;
}

.entity-table,
.table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}

.entity-table thead th,
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  color: #334155;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(47, 52, 64, 0.14);
}

.entity-table th,
.entity-table td,
.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  vertical-align: top;
}

.entity-table tbody tr:hover,
.table-wrap tbody tr:hover {
  background: rgba(124, 174, 58, 0.08);
}

.entity-table tbody tr:last-child td,
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.58rem;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-active,
.status-paid,
.status-enabled,
.status-opened,
.status-customer {
  color: #14532d;
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.28);
}

.status-planning,
.status-unpaid,
.status-partially_paid,
.status-unread,
.status-sent,
.status-pending,
.status-on_hold {
  color: #854d0e;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}

.status-overdue,
.status-blocked,
.status-rejected,
.status-expired,
.status-canceled,
.status-failed,
.status-danger,
.status-disabled {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.status-completed,
.status-accepted,
.status-replied,
.status-internal {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

.simple-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.5rem;
}

.timeline-item {
  border: 1px solid rgba(47, 52, 64, 0.12);
  background: #ffffff;
  border-radius: 0;
  margin-bottom: 0.55rem;
}

.timeline-item-project {
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.26);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  padding: 0.85rem;
}

.timeline-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.timeline-title-row h3,
.timeline-title-row h4 {
  margin: 0;
}

.timeline-body {
  margin: 0.25rem 0 0;
  color: #1f2937;
  line-height: 1.5;
}

.timeline-meta {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline-actions {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.screenshot-block {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.screenshot-thumb-btn {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 10px;
  cursor: zoom-in;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-thumb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.screenshot-thumb-btn:focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.35);
  outline-offset: 2px;
}

.screenshot-thumb {
  display: block;
  width: 96px !important;
  height: 72px !important;
  min-width: 96px;
  min-height: 72px;
  max-width: 96px !important;
  max-height: 72px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.screenshot-open-link {
  font-weight: 700;
}

.project-overview-hero-premium {
  border-radius: 18px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background:
    radial-gradient(circle at 85% 8%, rgba(100, 116, 139, 0.08), transparent 35%),
    linear-gradient(155deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.project-overview-grid {
  grid-template-columns: minmax(350px, 1.25fr) minmax(280px, 1fr) minmax(280px, 1fr);
  align-items: start;
}

.project-panel {
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.project-panel h2 {
  margin-bottom: 0.7rem;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

.project-panel h3 {
  margin-bottom: 0.4rem;
  color: #334155;
}

.project-panel .simple-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.project-panel .simple-list li:last-child {
  border-bottom: 0;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}

.image-modal[hidden] {
  display: none;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(4px);
}

.image-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(86vw, 760px);
  max-height: 84vh;
  padding: 0.7rem;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.58);
}

.image-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #111827;
  color: #f8fafc;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.image-modal-close:hover {
  background: #1f2937;
}

.image-modal-hint {
  margin: 0.4rem 0 0;
  color: #cbd5e1;
  font-size: 0.82rem;
  text-align: right;
}

.image-modal-media {
  display: block;
  width: 100%;
  max-height: calc(84vh - 1.4rem);
  object-fit: contain;
  border-radius: 10px;
  background: #0b1220;
}

@media (max-width: 1080px) {
  .project-overview-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .project-overview-grid {
    grid-template-columns: 1fr;
  }
}

.progress-meter {
  width: 100%;
  height: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.progress-meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #7cae3a, #4d7c0f);
}

.project-overview-hero {
  margin-bottom: 1rem;
}

.comment-thread {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.comment-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  padding: 0.65rem;
}

.comment-item p {
  margin: 0.3rem 0;
}

.comment-admin {
  border-left: 3px solid #1d4ed8;
}

.comment-customer {
  border-left: 3px solid #b45309;
}

.inline-form {
  display: inline-flex;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lead-log-table th,
.lead-log-table td {
  font-size: 11px;
  padding: 0.35rem 0.45rem;
  line-height: 1.25;
}

.lead-reply-panel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}

.lead-reply-panel h3 {
  margin: 0 0 0.5rem;
}

.lead-reply-panel p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
}

.lead-reply-panel label {
  display: block;
  margin-top: 0.45rem;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.lead-reply-panel textarea {
  width: 100%;
  font-size: 11px;
  min-height: 180px;
}

.lead-sync-block {
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.lead-sync-block h3 {
  margin: 0 0 0.55rem;
}

.portal-intro {
  margin-top: 0;
  color: #64748b;
}

.portal-intro-identity {
  margin-bottom: 0.25rem;
  color: #0f172a;
  font-weight: 700;
}

.portal-dashboard-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}

.portal-dashboard-hero-main h2 {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
}

.portal-dashboard-hero-main p {
  margin: 0;
  color: #475569;
  max-width: 62ch;
}

.portal-health-strip {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
}

.portal-health-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.62rem 0.75rem;
  min-height: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.portal-health-item span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.portal-health-item strong {
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.1;
  text-align: right;
}

.portal-quick-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  margin-top: 0.9rem;
  margin-bottom: 1rem;
}

.portal-action-card {
  border: 1px solid rgba(47, 52, 64, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.95));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  padding: 0.72rem 0.85rem;
  color: inherit;
  display: grid;
  gap: 0.15rem;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.2fr);
  align-items: center;
}

.portal-action-card p {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.portal-action-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #0f172a;
  justify-self: center;
}

.portal-action-card span {
  font-size: 0.82rem;
  color: #475569;
  text-align: right;
}

.portal-action-card:hover {
  border-color: rgba(124, 174, 58, 0.45);
  transform: translateY(-1px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.portal-kpi-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.portal-kpi-grid .stat-card {
  min-height: 74px;
  padding: 0.56rem 0.62rem;
  display: grid;
  align-content: center;
}

.portal-kpi-grid .stat-card h2 {
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 0.12rem;
}

.portal-kpi-grid .stat-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #64748b;
}

.portal-priority-card {
  background: linear-gradient(168deg, rgba(248, 250, 252, 0.98), rgba(239, 244, 250, 0.95));
}

.portal-priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.portal-priority-list li {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.68rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.portal-priority-list h3 {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
}

.portal-priority-list p {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

.portal-card-footer {
  margin: 0.75rem 0 0;
}

.portal-empty {
  color: #64748b;
  margin: 0;
}

.portal-grid h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.portal-grid h4 {
  margin: 0;
  font-size: 0.88rem;
}

.messages-grid {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.message-thread-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.message-thread-list li {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #ffffff;
  margin-bottom: 0.5rem;
}

.message-thread-list li a {
  display: grid;
  gap: 0.16rem;
  padding: 0.55rem;
  color: inherit;
}

.message-thread-list .thread-active {
  border-color: rgba(124, 174, 58, 0.5);
  background: rgba(124, 174, 58, 0.1);
}

.message-thread {
  max-height: 420px;
  overflow: auto;
  margin-bottom: 0.8rem;
  padding-right: 0.2rem;
}

.msg-admin {
  border-left: 3px solid #1d4ed8;
}

.msg-customer {
  border-left: 3px solid #b45309;
}

.portal-message-thread {
  display: grid;
  gap: 0.55rem;
  max-height: 520px;
  overflow: auto;
  padding-right: 0.2rem;
}

.portal-message-bubble {
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: 0.65rem 0.72rem;
}

.portal-message-bubble.from-admin {
  background: linear-gradient(160deg, rgba(29, 78, 216, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(29, 78, 216, 0.32);
}

.portal-message-bubble.from-customer {
  background: linear-gradient(160deg, rgba(124, 174, 58, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(124, 174, 58, 0.32);
}

.bubble-author {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
}

.bubble-body {
  margin: 0;
}

.bubble-time {
  display: block;
  margin-top: 0.28rem;
  color: #64748b;
  font-size: 0.74rem;
}

.admin-body:not(.has-sidebar-layout),
.portal-body:not(.has-sidebar-layout) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 174, 58, 0.16), transparent 42%),
    linear-gradient(150deg, #f4f7fb, #e8edf4);
}

.admin-body:not(.has-sidebar-layout) .auth-card,
.portal-body:not(.has-sidebar-layout) .auth-card {
  border: 1px solid rgba(47, 52, 64, 0.16);
  background: linear-gradient(165deg, #ffffff, #f2f6fb);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  border-radius: 0;
}

.admin-body,
.portal-body {
  font-size: 15px;
}

.admin-body p,
.portal-body p,
.admin-body td,
.portal-body td,
.admin-body label,
.portal-body label,
.admin-body input,
.portal-body input,
.admin-body textarea,
.portal-body textarea,
.admin-body select,
.portal-body select,
.admin-body .btn,
.portal-body .btn {
  font-size: clamp(11px, 0.94rem, 16px);
}

.admin-body .btn-sm,
.portal-body .btn-sm {
  font-size: 11px;
}

.admin-body .btn,
.portal-body .btn,
.admin-body .workspace-topbar,
.portal-body .workspace-topbar,
.admin-body .invoice-totals,
.portal-body .invoice-totals,
.admin-body .alert,
.portal-body .alert,
.admin-body .auth-card,
.portal-body .auth-card {
  border-radius: 0;
}

.invoice-builder .split {
  margin-bottom: 0.8rem;
}

.invoice-items-table th,
.invoice-items-table td {
  min-width: 120px;
}

.invoice-items-table td:last-child,
.invoice-items-table th:last-child {
  min-width: 100px;
}

.invoice-totals {
  margin: 0.9rem 0;
  max-width: 360px;
}

.invoice-totals p {
  margin: 0.35rem 0;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1080px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .workspace-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .workspace-content {
    padding: 1rem;
  }

  .admin-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .portal-quick-actions {
    grid-template-columns: 1fr;
  }

  .portal-kpi-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-health-strip {
    grid-template-columns: 1fr;
  }

  .portal-action-card {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .portal-action-card h3,
  .portal-action-card span {
    justify-self: start;
    text-align: left;
  }

  .portal-quick-actions,
  .portal-kpi-grid {
    grid-template-columns: 1fr;
  }

  .portal-priority-list li {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Premium software refresh: admin and portal only */
.admin-body,
.portal-body {
  --software-bg: #eff3fb;
  --software-bg-2: #e3eaf6;
  --software-panel: #ffffff;
  --software-panel-soft: #f8fbff;
  --software-border: rgba(23, 37, 84, 0.12);
  --software-border-strong: rgba(23, 37, 84, 0.22);
  --software-text: #0f172a;
  --software-muted: #475569;
  --software-accent: #0f4c81;
  --software-accent-2: #1f7a8c;
  --software-glow: rgba(31, 122, 140, 0.24);
  background:
    radial-gradient(circle at 8% 8%, rgba(31, 122, 140, 0.18), transparent 37%),
    radial-gradient(circle at 86% 88%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(156deg, var(--software-bg), var(--software-bg-2));
  color: var(--software-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.portal-body h1,
.portal-body h2,
.portal-body h3,
.workspace-topbar h1,
.workspace-content > h1 {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.015em;
}

.workspace-shell {
  grid-template-columns: 312px minmax(0, 1fr);
}

.workspace-sidebar {
  padding: 1.25rem 1rem 1rem;
  border-right: 1px solid rgba(147, 197, 253, 0.2);
}

.admin-sidebar {
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.2), transparent 42%),
    linear-gradient(184deg, #091530, #112341 54%, #17325c);
}

.portal-sidebar {
  background:
    radial-gradient(circle at 8% 12%, rgba(20, 184, 166, 0.2), transparent 40%),
    linear-gradient(184deg, #10213f, #1d3557 58%, #24456f);
}

.workspace-brand {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: 0.015em;
  font-size: 1.03rem;
}

.workspace-subtitle {
  margin: 0 0 1.05rem;
  color: #c5d9f8;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.workspace-nav {
  gap: 0.85rem;
}

.workspace-nav-group {
  gap: 0.34rem;
  padding: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(7, 18, 37, 0.34);
}

.workspace-nav-heading {
  color: #c4d6f0;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  padding-inline: 0.12rem;
}

.workspace-link {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(10, 23, 47, 0.46);
  color: #e9f2ff;
  padding: 0.56rem 0.66rem;
  font-size: 0.84rem;
}

.workspace-link:hover {
  transform: translateX(0);
  background: rgba(30, 64, 116, 0.48);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 12px 22px rgba(4, 10, 20, 0.24);
}

.workspace-link.is-active {
  color: #f0f9ff;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.7), rgba(11, 53, 94, 0.82));
  border-color: rgba(125, 211, 252, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 18px rgba(8, 47, 73, 0.32);
}

.workspace-count {
  border-radius: 999px;
  min-width: 1.48rem;
  height: 1.48rem;
  border-color: rgba(186, 230, 253, 0.62);
  background: rgba(8, 47, 73, 0.8);
}

.workspace-main {
  background: transparent;
}

.workspace-topbar {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.9));
  backdrop-filter: blur(16px);
  padding: 1rem 1.3rem;
}

.workspace-topbar h1 {
  font-size: 1.14rem;
  font-weight: 700;
}

.workspace-topbar p {
  margin-top: 0.18rem;
  color: #33527a;
  font-size: 0.84rem;
}

.workspace-content {
  padding: 1.55rem 1.55rem 2.35rem;
}

.software-hero {
  margin-bottom: 1rem;
}

.software-hero.software-hero-compact {
  margin-bottom: 0.9rem;
}

.software-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 140, 0.38);
  background: rgba(224, 242, 254, 0.9);
  color: #0c4a6e;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-content > p,
.software-hero p {
  color: var(--software-muted);
}

.section-heading-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.62rem;
}

.section-heading-inline h2 {
  margin-bottom: 0;
}

.section-heading-inline p {
  margin: 0;
  color: #4a678e;
  font-size: 0.84rem;
}

.crm-inline-note {
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: linear-gradient(170deg, #f0f9ff, #e0f2fe);
}

.crm-inline-note-title {
  margin-top: 0;
  margin-bottom: 0.45rem;
  color: #0f3f66;
}

.crm-inline-note-actions {
  margin-bottom: 0;
}

.crm-meta-note {
  margin-top: 0;
  color: #587191;
}

.crm-load-status {
  margin-top: -4px;
  margin-bottom: 10px;
  color: #64748b;
}

.context-alert-stack {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.context-alert-line {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbar-inline {
  margin: 0 0 0.75rem;
}

.content-html-preview {
  width: 100%;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.18);
  background: #f8fbff;
}

.admin-grid,
.portal-grid {
  gap: 1.35rem;
}

.admin-card,
.portal-grid .card,
.portal-grid .admin-card,
.auth-card {
  border-radius: 18px;
  border: 1px solid var(--software-border);
  background: linear-gradient(170deg, var(--software-panel), var(--software-panel-soft));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.admin-card h2 {
  margin-bottom: 0.88rem;
  font-size: 1.05rem;
}

.kpi-admin-grid {
  gap: 0.75rem;
  margin-bottom: 1.22rem;
}

.kpi-generic-grid .stat-card {
  min-height: 86px;
  border-radius: 16px;
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: linear-gradient(158deg, #ffffff 0%, #f1f8ff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.kpi-generic-grid .stat-card h2 {
  color: #0b3d66;
  font-size: 1.12rem;
}

.kpi-generic-grid .stat-card p {
  color: #40618b;
  font-size: 0.71rem;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--software-accent), var(--software-accent-2));
  border-color: rgba(14, 116, 144, 0.48);
  box-shadow: 0 14px 30px var(--software-glow);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(8, 47, 73, 0.34);
}

.btn-ghost {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #0f3158;
}

.btn-ghost:hover {
  border-color: rgba(14, 116, 144, 0.44);
  background: #ffffff;
}

.quick-actions-list {
  display: grid;
  gap: 0.55rem;
}

.quick-actions-card .btn {
  justify-content: flex-start;
}

.table-wrap {
  border-radius: 14px;
  border: 1px solid var(--software-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.entity-table,
.table-wrap table {
  font-size: 0.9rem;
}

.entity-table thead th,
.table-wrap thead th {
  background: linear-gradient(180deg, #f0f7ff, #e4effb);
  color: #1e3a5f;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
}

.entity-table th,
.entity-table td,
.table-wrap th,
.table-wrap td {
  padding: 0.76rem 0.72rem;
}

.entity-table tbody tr:nth-child(even),
.table-wrap tbody tr:nth-child(even) {
  background: rgba(15, 118, 110, 0.02);
}

.entity-table tbody tr:hover,
.table-wrap tbody tr:hover {
  background: rgba(59, 130, 246, 0.1);
}

.status-pill {
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  border-radius: 12px;
  border-color: rgba(30, 64, 175, 0.2);
  background: #ffffff;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  outline: 3px solid rgba(56, 189, 248, 0.3);
  border-color: rgba(14, 116, 144, 0.54);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88);
}

.alert {
  border-radius: 14px;
}

/* CRM refinement: slightly smaller type + cleaner workspace rhythm */
.admin-body,
.portal-body {
  font-size: 15px;
  line-height: 1.45;
}

.workspace-sidebar {
  padding: 1rem 0.9rem;
}

.workspace-subtitle {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.workspace-nav {
  gap: 0.65rem;
}

.workspace-link {
  border-radius: 10px;
  font-size: 0.82rem;
  padding: 0.48rem 0.58rem;
}

.workspace-count {
  font-size: 0.66rem;
}

.workspace-topbar {
  padding: 0.75rem 1rem;
}

.workspace-topbar h1 {
  font-size: 1.28rem;
}

.workspace-topbar p {
  font-size: 0.8rem;
}

.workspace-content > p,
.admin-body td,
.portal-body td,
.admin-body label,
.portal-body label {
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-nav-group {
    border-radius: 14px;
  }

  .workspace-content {
    padding: 1.1rem 1rem 2rem;
  }

  .section-heading-inline {
    align-items: flex-start;
  }

  .context-alert-line {
    align-items: flex-start;
  }

  .kpi-generic-grid .stat-card {
    min-height: 78px;
  }
}

/* Customers page hard overrides to beat shared table cascade */

.workspace-content .customers-tabs {
  margin-top: 2rem;
}

.workspace-content .customers-table th,
.workspace-content .customers-table td {
  text-align: center !important;
  vertical-align: middle;
}

.workspace-content .customers-table th:first-child,
.workspace-content .customers-table td:first-child,
.workspace-content .customers-table th:last-child,
.workspace-content .customers-table td:last-child {
  text-align: left !important;
}

.workspace-content .customers-table thead th:nth-child(1),
.workspace-content .customers-table thead th:nth-child(2),
.workspace-content .customers-table thead th:nth-child(3),
.workspace-content .customers-table tbody td:nth-child(1),
.workspace-content .customers-table tbody td:nth-child(2),
.workspace-content .customers-table tbody td:nth-child(3) {
  font-size: 11px !important;
  line-height: 1.4;
}

.workspace-content .table-wrap .entity-table.customers-table thead th:nth-child(1),
.workspace-content .table-wrap .entity-table.customers-table thead th:nth-child(2),
.workspace-content .table-wrap .entity-table.customers-table thead th:nth-child(3),
.workspace-content .table-wrap .entity-table.customers-table tbody td:nth-child(1),
.workspace-content .table-wrap .entity-table.customers-table tbody td:nth-child(2),
.workspace-content .table-wrap .entity-table.customers-table tbody td:nth-child(3) {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.workspace-content .table-wrap .entity-table.customers-table thead th:not(:first-child):not(:last-child),
.workspace-content .table-wrap .entity-table.customers-table tbody td:not(:first-child):not(:last-child) {
  text-align: center !important;
}

.workspace-content .table-wrap .entity-table.customers-table thead th:first-child,
.workspace-content .table-wrap .entity-table.customers-table tbody td:first-child,
.workspace-content .table-wrap .entity-table.customers-table thead th:last-child,
.workspace-content .table-wrap .entity-table.customers-table tbody td:last-child {
  text-align: left !important;
}

.workspace-content .customers-table td:last-child .inline-actions {
  justify-content: flex-start;
}
