/* ============================================================
   Greyspace Financial, design system
   Plain CSS, no frameworks, no build step.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #121417;
  --body: #5b6170;
  --muted: #6b7280;
  --line: #e8e8ea;
  --line-soft: #ececef;
  --card: #f5f5f6;
  --navy: #1b2b4b;
  --white: #ffffff;

  --ok-bg: #e7f4ec;
  --ok-fg: #1f7a46;
  --wait-bg: #fbf1dc;
  --wait-fg: #8a5a00;

  --soft-panel: linear-gradient(135deg, #c9d4ea 0%, #e3e8f3 55%, #d4dcec 100%);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --frame: 1200px;
  --pad-x: 20px;
  --sec-y: 96px;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html,
body {
  overflow-x: clip;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

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

button { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 3. Focus + motion ---------- */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 4. Layout primitives ---------- */
.frame {
  max-width: var(--frame);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.section {
  padding-top: var(--sec-y);
  padding-bottom: var(--sec-y);
  border-top: 1px solid var(--line);
}

.section > .frame { padding-top: 0; padding-bottom: 0; }

/* ---------- 5. Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.h1 {
  font-weight: 300;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h2 {
  font-weight: 300;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 46ch;
}

.muted { color: var(--muted); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: #14213a; border-color: #14213a; }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: #cfd2d8; }

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover { background: #f0f1f3; border-color: #f0f1f3; }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover { border-color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 7. Section header ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.sec-head .h2 { margin-top: 0; }
.sec-head p {
  font-size: 15px;
  color: var(--body);
  max-width: 44ch;
}

/* ---------- 8. Heroes ---------- */
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 560px;
  background: #0e1524;
  isolation: isolate;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 22, 0.82) 0%, rgba(8, 12, 22, 0.55) 45%, rgba(8, 12, 22, 0.05) 100%);
  z-index: -1;
}
.hero-photo-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px;
  max-width: 640px;
}
.hero-photo .h1 { color: var(--white); }
.hero-photo p {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 16px;
  max-width: 44ch;
}

.hero-plain {
  padding-top: 96px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
}
.hero-plain .h1 { margin-top: 0; }
.hero-plain p {
  margin-top: 20px;
  font-size: 16px;
  color: var(--body);
  max-width: 52ch;
}
.hero-plain .btn-row { margin-top: 32px; }

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > * {
  padding: 32px 24px;
  border-left: 1px solid var(--line);
}
.stats > *:first-child { border-left: 0; }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat-num {
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- 10. Features (list + panel) ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.feature-list > li {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.feature-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.15s ease;
}
.feature-list button[aria-expanded="true"] { color: var(--ink); }
.feature-desc {
  display: none;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 44ch;
}
.feature-list button[aria-expanded="true"] + .feature-desc,
.feature-list button[aria-expanded="true"] .feature-desc { display: block; }
.feature-list .feature-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feature-panels { min-width: 0; }

/* ---------- 11. Tabs ---------- */
.tabs { margin-top: 8px; }
.tab-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tab-list button {
  position: relative;
  background: var(--white);
  border: 0;
  border-left: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.tab-list button:first-child { border-left: 0; }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-list button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}
.tab-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}
.tab-panels { margin-top: 24px; }

/* ---------- 12. Soft panel + product mock ---------- */
.panel-soft {
  background: var(--soft-panel);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 0;
}

.mock {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafafb;
}
.mock-dots { display: flex; gap: 5px; flex: none; }
.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3d5da;
  display: block;
}
.mock-url {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 240px;
}
.mock-side {
  border-right: 1px solid var(--line-soft);
  padding: 12px 10px;
  background: #fcfcfd;
}
.mock-side ul { list-style: none; margin: 0; padding: 0; }
.mock-side li {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 6px;
}
.mock-side li.is-active {
  background: #eef1f7;
  color: var(--ink);
  font-weight: 500;
}
.mock-main { padding: 14px; min-width: 0; }
.mock-main h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.mock-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.mock-table {
  width: 100%;
  min-width: 360px;
  font-size: 12px;
}
.mock-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.mock-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  white-space: nowrap;
}
.mock-table tr:last-child td { border-bottom: 0; }

/* ---------- 13. Badges ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef0f3;
  color: #4b5160;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge-wait { background: var(--wait-bg); color: var(--wait-fg); }
.badge-muted { background: #eef0f3; color: #4b5160; }

/* ---------- 14. Steps track ---------- */
.steps-track {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps-track li {
  position: relative;
  padding: 0 0 24px 28px;
  font-size: 14px;
  color: var(--muted);
}
.steps-track li:last-child { padding-bottom: 0; }
.steps-track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #cfd2d8;
  background: var(--white);
}
.steps-track li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.steps-track li:last-child::after { display: none; }
.steps-track li.is-done::before { background: var(--navy); border-color: var(--navy); }
.steps-track li.is-active::before { border-color: var(--navy); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 12px var(--navy); }
.steps-track li.is-active { color: var(--ink); font-weight: 500; }

/* ---------- 15. Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid transparent;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }
.card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.card-text {
  font-size: 14px;
  color: var(--body);
}
.card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ---------- 16. Quote ---------- */
.quote-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 720px;
}
.quote {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.quote-name {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 17. Duo / compare ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.compare-card.is-featured {
  background: var(--card);
  border-color: var(--line);
}
.compare-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.compare-card p { font-size: 14px; color: var(--body); }

/* ---------- 18. Dates ---------- */
.dates {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.dates li {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.dates .date-when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.dates .date-what { color: var(--ink); }

/* ---------- 19. Photo wide ---------- */
.photo-wide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  background: #e9ebef;
}
.photo-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- 20. CTA ---------- */
.cta {
  text-align: center;
  padding-top: var(--sec-y);
  padding-bottom: var(--sec-y);
}
.cta .h2 { margin-bottom: 16px; }
.cta p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--body);
}
.cta .btn-row { justify-content: center; }

/* ---------- 21. Contact ---------- */
.contact-rows {
  border-top: 1px solid var(--line);
}
.contact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-row dd { margin: 0; color: var(--ink); }

.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-slot {
  border: 1px dashed #cfd2d8;
  border-radius: var(--radius);
  background: var(--white);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.fs-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 22. Prose (legal) ---------- */
.prose {
  max-width: 720px;
}
.prose h2 {
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 14px;
}
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose li { font-size: 15px; color: var(--body); margin-bottom: 6px; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 23. Header / nav ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: relative;
  z-index: 20;
}
.site-header .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 16px var(--pad-x) 24px;
}
.mobile-menu ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
}
.mobile-menu .btn { width: 100%; }

/* ---------- 24. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .frame {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer a:hover { color: var(--ink); }

/* ---------- 25. Motion ---------- */
@keyframes gs-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.tab-panels > [data-panel],
.feature-panels > [data-feature-panel] {
  animation: gs-fade 0.25s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .tab-panels > [data-panel],
  .feature-panels > [data-feature-panel] { animation: none; }
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 900px) {
  :root { --sec-y: 64px; }

  .h1 { font-size: 38px; }
  .h2 { font-size: 30px; }

  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }

  .hero-photo { height: 520px; }
  .hero-photo-inner { padding: 24px; }

  .hero-plain { padding-top: 64px; padding-bottom: 48px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats > *:nth-child(3) { border-left: 0; }
  .stats > *:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-num { font-size: 36px; }

  .features { grid-template-columns: 1fr; gap: 32px; }

  .tab-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-list button { flex: 0 0 auto; }

  .panel-soft { padding: 20px; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-side {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    overflow-x: auto;
  }
  .mock-side ul { display: flex; gap: 4px; }
  .mock-side li { white-space: nowrap; }

  .cards { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }

  .dates li { grid-template-columns: 1fr auto; }
  .dates .date-when { grid-column: 1 / -1; }

  .contact-row { grid-template-columns: 1fr; gap: 6px; }

  .photo-wide { height: 240px; }

  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }

  .site-footer .frame { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .h1 { font-size: 34px; }
  .h2 { font-size: 28px; }
  .stat-num { font-size: 32px; }
  .quote-card { padding: 24px; }
  .quote { font-size: 16px; }
}

/* Header, footer and menu */
/* ============================================================
   Greyspace Financial, extra rules for header, footer, menu
   Only new rules. Load after styles.css.
   ============================================================ */

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header .frame.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 34px;
  width: auto;
}

/* ---------- Nav ---------- */
.site-header .nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s ease;
}

.site-header .nav-links a:hover {
  color: var(--ink);
}

.site-header .nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-portal {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s ease;
}

.nav-portal:hover {
  color: var(--ink);
}

/* ---------- Menu button ---------- */
.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

.menu-icon span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
}

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 8px var(--pad-x) 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.mobile-links li {
  border-bottom: 1px solid var(--line);
}

.mobile-links a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mobile-actions {
  display: grid;
  gap: 10px;
}

.mobile-actions .btn {
  width: 100%;
}

.mobile-phone {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-phone a {
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  max-width: 34ch;
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  overflow-wrap: anywhere;
}

.footer-col a {
  color: var(--body);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .brand img {
    height: 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .mobile-links a {
    font-size: 20px;
  }
}

/* Fixes after the browser check */
.site-footer .footer-col ul { display: block; }
.hero-photo::after {
  background: linear-gradient(90deg, rgba(8, 12, 22, 0.86) 0%, rgba(8, 12, 22, 0.66) 55%, rgba(8, 12, 22, 0.30) 100%);
}
@media (max-width: 600px) {
  .mock-table { min-width: 0; font-size: 11px; }
  .mock-table th, .mock-table td { padding: 7px 6px; }
  .mock-table th:first-child, .mock-table td:first-child { white-space: normal; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(8, 12, 22, 0.55) 0%, rgba(8, 12, 22, 0.85) 100%); }
}
/* Keep the Typeform embed inside its box instead of covering the page */
.form-slot { position: relative; transform: translateZ(0); overflow: hidden; }
.form-slot [data-tf-live] { position: relative; min-height: 520px; width: 100%; align-self: stretch; }

/* Clean look: no decorative grid lines on page sides, sections or header */
.frame { border-left: 0; border-right: 0; }
.section, .hero-plain, .site-footer { border-top: 0; }
.stats { border-top: 0; border-bottom: 0; }

/* Frosted glass nav bar */
.site-header {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

/* Services dropdown (DeepSeek) */
/* ============================================================
   Greyspace Financial, navigation dropdown rules
   Only new rules. Load after styles.css and the header/footer rules.
   ============================================================ */

/* ---------- Desktop: Services button ---------- */
.has-dropdown {
  position: relative;
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--body);
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-drop-btn:hover,
.nav-drop-btn[aria-expanded="true"] {
  color: var(--ink);
}

.nav-drop-btn .chev {
  flex: none;
  width: 10px;
  height: 10px;
  transition: transform 0.15s ease;
}

.nav-drop-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* ---------- Desktop: dropdown panel ---------- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  width: 300px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 20, 23, 0.10), 0 2px 6px rgba(18, 20, 23, 0.04);
}

.nav-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-list li + li {
  border-top: 1px solid var(--line-soft);
}

.nav-dropdown-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.nav-dropdown-list a:hover {
  background: rgba(18, 20, 23, 0.04);
}

.drop-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.drop-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Mobile: Services row + sub list ---------- */
.mobile-drop-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  padding: 14px 0;
  margin: 0;
  text-align: left;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
}

.mobile-drop-btn .chev {
  flex: none;
  width: 10px;
  height: 10px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.mobile-drop-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.mobile-sub {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
}

.mobile-sub li {
  border-bottom: 0;
}

.mobile-sub a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--body);
}

.mobile-sub a:hover {
  color: var(--ink);
}

/* ---------- Current page state ---------- */
.nav-links a.is-current,
.nav-drop-btn.is-current,
.mobile-links a.is-current,
.mobile-drop-btn.is-current,
.mobile-sub a.is-current {
  color: var(--ink);
}

.nav-links a.is-current,
.mobile-links a.is-current {
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-dropdown {
    display: none;
  }
}

@media (max-width: 420px) {
  .mobile-drop-btn {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drop-btn .chev,
  .mobile-drop-btn .chev {
    transition: none;
  }
}

/* Fixes after the browser check: readable Get Started in the phone menu, clearer dropdown over photos */
.mobile-menu .btn-primary { color: #fff; }
.nav-dropdown { background: rgba(255, 255, 255, 0.95); }

/* Desktop: nav links centered in the bar; logo left, Client Portal and Get Started right */
@media (min-width: 901px) {
  .site-header .frame.header-inner { position: relative; }
  .site-header .nav { flex: 1; justify-content: flex-end; }
  .site-header .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* Home: service tiles in place of the stats strip */
.svc-tile { display: block; color: inherit; text-decoration: none; transition: background-color 0.15s ease; }
.svc-tile:hover { background: rgba(18, 20, 23, 0.03); }
.svc-text { font-size: 20px; font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.svc-more { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.svc-more::after { content: " \2192"; }
@media (max-width: 600px) { .svc-tiles > * { padding: 24px 16px; } .svc-text { font-size: 17px; } }

/* No divider lines between items in the dropdowns, the phone menu and the feature lists */
.nav-dropdown-list li + li { border-top: 0; }
.mobile-menu li { border-bottom: 0; }
.mobile-sub { border-left: 0; }
.feature-list { border-top: 0; }
.feature-list > li { border-bottom: 0; }

/* Motion and polish (DeepSeek) */
/* ============================================================
   Greyspace Financial, motion and polish
   New rules only. Load after styles.css.
   ============================================================ */

/* ---------- 1. Learn more links ---------- */
.svc-more {
  transform-origin: left center;
  transition: transform 0.25s ease, color 0.25s ease;
}

.svc-more::after { content: none; }

.svc-tile {
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 20, 23, 0.06);
}

.svc-tile:hover .svc-more,
.svc-more:hover {
  transform: scale(1.08);
  color: #1d4ed8;
}

/* ---------- 2. Pinned step sections (desktop) ---------- */
[data-features].is-pinned,
[data-tabs].is-pinned {
  position: sticky;
  top: var(--pin-top, 88px);
}

.pin-space {
  width: 100%;
  pointer-events: none;
}

.pin-progress {
  position: relative;
  height: 2px;
  margin-top: 16px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.pin-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ---------- 3. Scroll-in reveals ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Images inside main sections (not in mocks, not the hero) */
main .section img[data-reveal-img] {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

main .section img[data-reveal-img].is-revealed {
  opacity: 1;
  transform: none;
}

/* Hero photo gentle zoom on load */
.hero-photo img {
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-photo img.is-zoomed {
  transform: scale(1);
}

/* Card hover lift */
.card,
.quote-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(18, 20, 23, 0.07);
}

/* ---------- 4. Reviews carousel ---------- */
.reviews-marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  max-width: 100%;
}

.rv-row {
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.rv-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: rv-scroll var(--rv-dur, 40s) linear infinite;
  will-change: transform;
}

.rv-row-rev .rv-track {
  animation-direction: reverse;
}

.rv-row:hover .rv-track,
.rv-row:active .rv-track {
  animation-play-state: paused;
}

@keyframes rv-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rv-card {
  flex: none;
  width: 300px;
  max-width: none;
  padding: 20px;
  margin: 0;
}

.rv-card .quote {
  font-size: 15px;
  line-height: 1.55;
}

.rv-card .quote-name {
  margin-top: 12px;
  font-size: 13px;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: #f5a524;
  flex: none;
}

@media (max-width: 600px) {
  .rv-card { width: 260px; }
}

/* ---------- 5. Reduced motion overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  main .section img[data-reveal-img] {
    transform: none !important;
    transition: opacity 0.4s ease !important;
  }

  [data-reveal].is-revealed,
  main .section img[data-reveal-img].is-revealed {
    transform: none !important;
  }

  .hero-photo img,
  .hero-photo img.is-zoomed {
    transform: none !important;
    transition: none !important;
  }

  .card:hover,
  .quote-card:hover,
  .svc-tile:hover {
    transform: none !important;
  }

  .rv-track {
    animation-duration: var(--rv-dur, 40s) !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
  }
}

/* Review cards keep their own height in the moving rows */
.rv-track { align-items: flex-start; }

/* Step sections: all steps shown, scroll highlight, pinned with header (DeepSeek) */
/* ============================================================
   Greyspace Financial, step sections
   Appended after styles.css. New rules only.
   ============================================================ */

/* ---------- Pinned frame ---------- */
.frame.is-pinned {
  position: sticky;
  top: var(--pin-top, 88px);
}

.pin-space {
  pointer-events: none;
}

.frame.is-pinned .sec-head {
  margin-bottom: 28px;
}

/* ---------- Features: all widths ---------- */
[data-features].steps-live .feature-desc {
  display: block;
  margin-top: 6px;
}

[data-features].steps-live .feature-list button {
  color: var(--ink);
}

[data-features].steps-live .feature-list > li {
  padding: 16px 0 16px 20px;
  position: relative;
  opacity: 0.38;
  transition: opacity 0.45s ease;
}

[data-features].steps-live .feature-list > li + li {
  border-top: 1px solid var(--line-soft);
}

[data-features].steps-live .feature-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s ease;
}

[data-features].steps-live .feature-list > li.is-step-active {
  opacity: 1;
}

[data-features].steps-live .feature-list > li.is-step-active::before {
  transform: scaleY(1);
}

[data-features].steps-live .feature-list > li:hover:not(.is-step-active) {
  opacity: 0.7;
}

[data-features].steps-live .feature-link {
  display: inline-block;
  margin-top: 8px;
}

/* ---------- Tabs: all widths ---------- */
[data-tabs].steps-live .tab-list button {
  opacity: 0.45;
  transition: opacity 0.45s ease, color 0.45s ease;
}

[data-tabs].steps-live .tab-list button.is-step-active {
  opacity: 1;
}

/* Underline grows in instead of popping in */
[data-tabs].steps-live .tab-list button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

[data-tabs].steps-live .tab-list button.is-step-active::after {
  transform: scaleX(1);
}

/* ---------- Phones: tabs stack vertically ---------- */
@media (max-width: 900px) {
  [data-tabs].steps-live .tab-list {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  [data-tabs].steps-live .tab-list button {
    flex: none;
    width: 100%;
    white-space: normal;
    text-align: left;
    padding: 14px 16px;
    border-left: 0;
  }

  [data-tabs].steps-live .tab-list button + button {
    border-top: 1px solid var(--line-soft);
  }

  [data-tabs].steps-live .tab-list button::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
    background: var(--navy);
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s ease;
  }

  [data-tabs].steps-live .tab-list button.is-step-active::after {
    transform: scaleY(1);
  }
}

/* ---------- Reduced motion: keep the dim/bright change, shorter ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-features].steps-live .feature-list > li {
    transition: opacity 0.2s ease !important;
  }

  [data-features].steps-live .feature-list > li::before {
    transition: transform 0.2s ease !important;
  }

  [data-tabs].steps-live .tab-list button {
    transition: opacity 0.2s ease !important, color 0.2s ease !important;
  }

  [data-tabs].steps-live .tab-list button::after {
    transition: transform 0.2s ease !important;
  }
}

/* Pinned on desktop: tighter step spacing so the header, the steps and the panel fit on one screen */
.frame.is-pinned [data-features].steps-live .feature-list > li { padding-top: 10px; padding-bottom: 10px; }
.frame.is-pinned [data-features].steps-live .feature-list > li::before { top: 10px; bottom: 10px; }
.frame.is-pinned [data-features].steps-live .feature-desc { margin-top: 4px; }
.frame.is-pinned [data-features].steps-live .feature-link { margin-top: 4px; }

/* Pinned long step lists (six steps): slightly smaller type and spacing so the header, steps and panel still fit */
.frame.is-pinned.is-tight .sec-head { margin-bottom: 20px; }
.frame.is-pinned.is-tight [data-features].steps-live .feature-list > li { padding-top: 7px; padding-bottom: 7px; }
.frame.is-pinned.is-tight [data-features].steps-live .feature-list > li::before { top: 7px; bottom: 7px; }
.frame.is-pinned.is-tight [data-features].steps-live .feature-list button { font-size: 16px; }
.frame.is-pinned.is-tight [data-features].steps-live .feature-desc { font-size: 14px; line-height: 1.45; max-width: none; margin-top: 2px; }


/* Phone fixes: fit, tap targets and small text at 390 and 375px (DeepSeek) */
/* ============================================================
   Greyspace Financial, phone fixes
   New rules only. Every rule sits inside a phone media query.
   Desktop is untouched.
   ============================================================ */

/* ---------- 1 and 2. Stacked date rows (WHY FRACTIONAL, due dates) ---------- */
@media (max-width: 600px) {
  .duo > .compare-card {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
  }

  .compare-card h3,
  .compare-card p {
    overflow-wrap: anywhere;
  }

  .dates li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
    padding: 14px 0;
  }

  .dates .date-when {
    grid-column: auto;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .dates .date-what {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dates .badge {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    width: auto;
    overflow-wrap: anywhere;
  }
}

/* ---------- 3. Portal mock windows fit at 375px ---------- */
@media (max-width: 600px) {
  .panel-soft {
    padding: 12px;
  }

  .mock {
    max-width: 100%;
    min-width: 0;
  }

  .mock-bar {
    gap: 8px;
    padding: 8px 10px;
  }

  .mock-url {
    font-size: 10px;
    padding: 3px 8px;
  }

  .mock-side {
    padding: 8px;
  }

  .mock-side ul {
    gap: 2px;
  }

  .mock-side li {
    font-size: 11px;
    padding: 5px 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mock-main {
    padding: 10px;
  }

  .mock-main h4 {
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .mock-scroll {
    overflow-x: visible;
  }

  .mock-table {
    min-width: 0;
    width: 100%;
    font-size: 11px;
    table-layout: auto;
  }

  .mock-table th,
  .mock-table td {
    padding: 6px 4px;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: break-word;
    vertical-align: top;
  }

  .mock-table th {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .mock-table th:first-child,
  .mock-table td:first-child {
    white-space: normal;
  }

  .mock-table .badge {
    font-size: 10px;
    padding: 2px 6px;
    white-space: normal;
  }

  .mock-table td:nth-child(3) {
    white-space: nowrap;
  }

  .mock-main .steps-track li {
    font-size: 12px;
    padding-left: 24px;
  }

  .mock-main .steps-track li::before {
    top: 3px;
    width: 10px;
    height: 10px;
  }

  .mock-main .steps-track li::after {
    left: 4px;
    top: 16px;
  }
}

/* ---------- 4. Refund stats stack in one column ---------- */
@media (max-width: 600px) {
  .compare-card .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-card .stats > * {
    border-left: 0;
    padding: 16px 0;
  }

  .compare-card .stats > * + * {
    border-top: 1px solid var(--line);
  }

  .compare-card .stats > *:first-child {
    padding-top: 4px;
  }

  .compare-card .stats > *:last-child {
    padding-bottom: 4px;
  }

  .compare-card .stat-label {
    margin-bottom: 8px;
  }

  .compare-card .stat-num {
    font-size: 28px;
    line-height: 1.1;
  }
}

/* ---------- 5. Footer uses the full content width, tappable links ---------- */
@media (max-width: 600px) {
  .site-footer {
    padding: 40px 0 24px;
  }

  .site-footer .frame {
    width: 100%;
    max-width: 100%;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .footer-top {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-brand,
  .footer-cols,
  .footer-col {
    min-width: 0;
    max-width: 100%;
  }

  .footer-line,
  .footer-note {
    max-width: none;
    overflow-wrap: anywhere;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 16px;
  }

  .footer-col li {
    margin-bottom: 0;
    overflow-wrap: anywhere;
  }

  .footer-col a {
    display: inline-block;
    min-height: 40px;
    padding: 9px 0;
    line-height: 1.4;
  }

  .footer-bottom {
    width: 100%;
    margin-top: 28px;
  }

  .footer-legal {
    gap: 0 20px;
  }

  .footer-legal li {
    display: flex;
  }

  .footer-legal a {
    display: inline-block;
    min-height: 40px;
    padding: 9px 0;
    line-height: 1.4;
  }
}

/* ---------- 6. Tap targets ---------- */
@media (max-width: 600px) {
  .btn {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
  }

  .feature-link {
    display: inline-block;
    min-height: 40px;
    padding: 9px 0;
    line-height: 1.4;
  }

  .contact-row dd a,
  .contact-row a {
    display: inline-block;
    min-height: 40px;
    padding: 9px 0;
    line-height: 1.4;
  }

  .mobile-phone a {
    display: inline-block;
    min-height: 40px;
    padding: 9px 0;
    line-height: 1.4;
  }

  .nav-portal {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* ---------- 7. Small text at 12px on phones ---------- */
@media (max-width: 600px) {
  .eyebrow,
  .stat-label,
  .footer-head,
  .card-num,
  .contact-row dt {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .badge {
    font-size: 12px;
    letter-spacing: 0;
  }

  .mock-table .badge {
    font-size: 10px;
  }
}

/* Phone: status steps inside a portal mock show at once, so none stays faded when its step panel opens out of view */
@media (max-width: 600px) {
  [data-feature-panel] .steps-track li[data-reveal],
  [data-panel] .steps-track li[data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Phone nav: pinned bar, menu opens in view while scrolled (DeepSeek) */
/* ============================================================
   Greyspace Financial, phone navigation
   Every rule sits inside a phone media query. Desktop is untouched.
   ============================================================ */

@media (max-width: 900px) {
  /* ---------- 1. Fixed top bar ---------- */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }

  /* ---------- 2. Reserve the space the fixed bar no longer takes ---------- */
  body {
    padding-top: var(--hdr-h, 64px);
  }

  html {
    scroll-padding-top: calc(var(--hdr-h, 64px) + 12px);
  }

  /* ---------- 3. Menu panel scrolls inside itself ---------- */
  #mobile-menu,
  .mobile-menu {
    max-height: calc(100dvh - var(--hdr-h, 64px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* ---------- 4. Scroll lock lives on html, never on body ---------- */
  html.menu-open {
    overflow: hidden;
  }
}


/* Home portal mocks: animated tax status, advisory charts, document folders (DeepSeek) */
/* =========================================================
   Animated portal mockups (panels 2, 3, 4)
   All class names start with "am-".
   ========================================================= */

/* ---------- Shared ---------- */
.am-tax,
.am-adv,
.am-docs {
  min-width: 0;
}

/* ---------- Panel 2: Tax status ---------- */
.am-tax-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  flex-wrap: wrap;
}

.am-tax-status-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.am-tax-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  transition: opacity 0.25s ease;
}

.am-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.am-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 4px;
  min-width: 0;
}

/* connector line behind the dots */
.am-step::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e3e6ec;
  z-index: 0;
}

.am-step:last-child::before {
  display: none;
}

/* filled portion of the connector */
.am-step::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--navy);
  z-index: 1;
  transition: width 0.5s ease;
}

.am-step.is-done::after,
.am-step.is-active::after {
  width: 100%;
}

.am-step:last-child::after {
  display: none;
}

.am-step-dot {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #d7dbe3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.am-step-check {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.am-step.is-done .am-step-dot {
  background: var(--navy);
  border-color: var(--navy);
}

.am-step.is-done .am-step-check {
  opacity: 1;
  transform: scale(1);
}

.am-step.is-active .am-step-dot {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(27, 43, 75, 0.35);
  animation: am-pulse 1.6s ease-out infinite;
}

.am-step.is-active .am-step-check {
  opacity: 0;
}

.am-step-label {
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
  transition: color 0.3s ease;
  overflow-wrap: anywhere;
}

.am-step.is-done .am-step-label {
  color: #4b5160;
}

.am-step.is-active .am-step-label {
  color: var(--ink);
  font-weight: 500;
}

@keyframes am-pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 43, 75, 0.32); }
  70% { box-shadow: 0 0 0 7px rgba(27, 43, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 43, 75, 0); }
}

.am-tax-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #5b6170;
}

/* ---------- Panel 3: Advisory charts ---------- */
.am-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.am-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #ececef;
  border-radius: 10px;
  background: #fafbfc;
  min-width: 0;
}

.am-tile-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-tile-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.am-tile-note {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.3;
}

.am-tile-up {
  color: #1f7a46;
}

.am-chart {
  border: 1px solid #ececef;
  border-radius: 10px;
  background: var(--white);
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  min-width: 0;
}

.am-chart:last-child {
  margin-bottom: 0;
}

.am-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.am-chart-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}

.am-legend {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.am-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6b7280;
}

.am-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.am-legend-budget {
  background: #c9d4ea;
}

.am-legend-actual {
  background: var(--navy);
}

.am-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 110px;
}

.am-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  min-width: 0;
}

.am-bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
  width: 100%;
}

.am-bar {
  display: block;
  width: 42%;
  max-width: 14px;
  height: 0;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.am-bar-budget {
  background: #c9d4ea;
}

.am-bar-actual {
  background: var(--navy);
}

.am-bar-label {
  font-size: 10px;
  color: #6b7280;
  line-height: 1;
}

.am-line-wrap {
  width: 100%;
  height: 96px;
}

.am-line {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--navy);
  overflow: visible;
}

.am-line-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s ease;
}

/* ---------- Panel 4: Documents ---------- */
.am-folders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.am-folder {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #ececef;
  border-radius: 10px;
  background: #fafbfc;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
  min-width: 0;
}

.am-folder.is-in {
  opacity: 1;
  transform: none;
}

.am-folder.is-open {
  border-color: var(--navy);
  background: #eef2f9;
}

.am-folder-icon {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #e9edf5;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.am-folder-icon svg {
  width: 15px;
  height: 15px;
}

.am-folder-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.am-folder-count {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.3;
}

.am-filelist {
  border: 1px solid #ececef;
  border-radius: 10px;
  background: var(--white);
  padding: 4px 10px;
  min-height: 40px;
  margin-bottom: 10px;
}

.am-files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.am-files li {
  font-size: 11px;
  color: #4b5160;
  padding: 6px 0;
  border-bottom: 1px solid #f0f1f4;
  overflow-wrap: anywhere;
  animation: am-slide-in 0.35s ease both;
}

.am-files li:last-child {
  border-bottom: 0;
}

.am-files li:nth-child(2) {
  animation-delay: 0.06s;
}

.am-files li:nth-child(3) {
  animation-delay: 0.12s;
}

@keyframes am-slide-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.am-docs-foot {
  display: flex;
  justify-content: flex-end;
}

.am-upload {
  font-size: 12px;
  padding: 6px 12px;
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .am-tax-status {
    margin-bottom: 12px;
  }

  .am-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .am-step {
    padding: 0 2px;
    gap: 6px;
  }

  .am-step::before,
  .am-step::after {
    top: 8px;
  }

  .am-step-dot {
    width: 18px;
    height: 18px;
  }

  .am-step-check {
    width: 10px;
    height: 10px;
  }

  .am-step-label {
    font-size: 10px;
    line-height: 1.25;
  }

  .am-tax-note {
    font-size: 11px;
    margin-top: 12px;
  }

  .am-tiles {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .am-tile {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 8px 10px;
  }

  .am-tile-label {
    flex: 1 1 auto;
  }

  .am-tile-value {
    font-size: 15px;
    flex: 0 0 auto;
  }

  .am-tile-note {
    flex: 1 1 100%;
  }

  .am-bars {
    height: 96px;
    gap: 4px;
  }

  .am-bar-pair {
    gap: 2px;
  }

  .am-line-wrap {
    height: 80px;
  }

  .am-folders {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .am-folder {
    padding: 8px 10px;
  }

  .am-files li {
    font-size: 11px;
  }
}

/* ---------- Reduced motion: finished state, no motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .am-step.is-active .am-step-dot {
    animation: none;
    box-shadow: none;
  }

  .am-step::after {
    transition: none;
  }

  .am-step-dot,
  .am-step-check,
  .am-step-label,
  .am-tax-pill {
    transition: none;
  }

  .am-bar {
    transition: none;
  }

  .am-line-path {
    transition: none;
  }

  .am-folder {
    transition: none;
  }

  .am-files li {
    animation: none;
  }
}


/* Step sections: one constant panel height, tidy step row (DeepSeek) */
/* ============================================================
   Greyspace Financial, constant step heights
   New rules only. Load after styles.css.
   No HTML changes. No renames. No removals.
   ============================================================ */

/* ---------- 1. Tab blocks: one constant height for the panel box ---------- */
[data-tabs] .tab-panels {
  height: var(--steps-h, auto);
  min-height: var(--steps-h, 0);
  display: block;
}

/* Panels sit at the top of the box, never stretched or centered */
[data-tabs] .tab-panels > [data-panel] {
  align-self: start;
  vertical-align: top;
}

/* The intro line at the top of each panel shares one height in the block */
[data-tabs] .tab-panels > [data-panel] > p:first-of-type {
  min-height: var(--steps-intro-h, 0);
  margin-bottom: 20px;
}

/* ---------- 2. Feature blocks: one constant height for the panel box ---------- */
[data-features] .feature-panels {
  min-height: var(--steps-h, 0);
  height: auto;
  display: block;
}

[data-features] .feature-panels > [data-feature-panel] {
  align-self: start;
  vertical-align: top;
}

/* ---------- 3. Scale the mock down a little inside step blocks ---------- */
[data-tabs] .panel-soft,
[data-features] .panel-soft {
  padding: 24px;
}

[data-tabs] .mock,
[data-features] .mock {
  font-size: 12px;
}

[data-tabs] .mock-table,
[data-features] .mock-table {
  font-size: 12px;
}

[data-tabs] .mock-table th,
[data-features] .mock-table th {
  font-size: 11px;
}

[data-tabs] .mock-table td,
[data-features] .mock-table td {
  font-size: 12px;
}

[data-tabs] .mock-side li,
[data-features] .mock-side li {
  font-size: 12px;
}

[data-tabs] .mock-main h4,
[data-features] .mock-main h4 {
  font-size: 12px;
}

[data-tabs] .mock-url,
[data-features] .mock-url {
  font-size: 10px;
}

[data-tabs] .badge,
[data-features] .badge {
  font-size: 11px;
}

/* ---------- 4. Section header right before a tab block: align to the heading bottom ---------- */
.sec-head:has(+ .tabs),
.sec-head:has(+ [data-tabs]) {
  align-items: end;
}

.sec-head:has(+ .tabs) > p,
.sec-head:has(+ [data-tabs]) > p {
  align-self: end;
  margin-bottom: 0;
  padding-bottom: 2px;
}

/* ---------- 5. Desktop tabs: equal widths, centered label and number, full width underline ---------- */
@media (min-width: 901px) {
  [data-tabs] .tab-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
  }

  [data-tabs] .tab-list button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    padding: 16px 12px;
  }

  [data-tabs] .tab-list button .tab-num {
    margin-left: 0;
    flex: none;
    line-height: 1;
  }

  /* Active underline spans the full width of its button */
  [data-tabs] .tab-list button[aria-selected="true"]::after {
    left: 0;
    right: 0;
  }

  [data-tabs].steps-live .tab-list button::after {
    left: 0;
    right: 0;
  }
}

/* ---------- 6. Phones: stacked rows, equal height, number on one line, mark centered ---------- */
@media (max-width: 900px) {
  [data-tabs] .tab-list {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  [data-tabs] .tab-list button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
    border-left: 0;
  }

  [data-tabs] .tab-list button + button {
    border-top: 1px solid var(--line-soft);
  }

  [data-tabs] .tab-list button .tab-num {
    margin-left: 0;
    flex: none;
    line-height: 1;
  }

  /* Small progress mark on the left, vertically centered on the label */
  [data-tabs] .tab-list button::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 2px;
    height: 60%;
    background: var(--navy);
    border-radius: 2px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    transition: transform 0.45s ease;
  }

  [data-tabs] .tab-list button[aria-selected="true"]::after {
    transform: translateY(-50%) scaleY(1);
  }

  [data-tabs].steps-live .tab-list button::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 2px;
    height: 60%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }

  [data-tabs].steps-live .tab-list button.is-step-active::after {
    transform: translateY(-50%) scaleY(1);
  }

  /* Phones: tighter soft panel padding */
  [data-tabs] .panel-soft,
  [data-features] .panel-soft {
    padding: 14px;
  }

  /* Keep mock text at 11px or larger on phones */
  [data-tabs] .mock-table th,
  [data-features] .mock-table th {
    font-size: 11px;
  }

  [data-tabs] .mock-table td,
  [data-features] .mock-table td {
    font-size: 11px;
  }

  [data-tabs] .mock-side li,
  [data-features] .mock-side li {
    font-size: 11px;
  }

  [data-tabs] .mock-main h4,
  [data-features] .mock-main h4 {
    font-size: 12px;
  }

  [data-tabs] .badge,
  [data-features] .badge {
    font-size: 11px;
  }
}

/* ---------- 7. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-tabs] .tab-list button::after,
  [data-tabs].steps-live .tab-list button::after {
    transition: none !important;
  }
}

/* Step and feature panels: the picture card fills the fixed height, so it is the same size on every step (desktop) */
@media (min-width: 901px) {
  [data-tabs] .tab-panels > [data-panel]:not([hidden]),
  [data-features] .feature-panels > [data-feature-panel]:not([hidden]) {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  [data-features] .feature-panels > [data-feature-panel]:not([hidden]) { min-height: var(--steps-h, 0); }
  [data-tabs] .tab-panels > [data-panel] > .panel-soft,
  [data-features] .feature-panels > [data-feature-panel] > .panel-soft {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  [data-tabs] .panel-soft > .mock,
  [data-features] .panel-soft > .mock { flex: 1 1 auto; }
}

/* Home "Your return, start to finish": short fixed picture, same size on every step */
.steps-short .tab-panels > [data-panel] > .panel-soft {
  height: 320px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.steps-short .tab-panels > [data-panel] > .panel-soft > .mock {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 900px) {
  .steps-short .tab-panels > [data-panel] > .panel-soft { height: 240px; }
}
/* Short step blocks: the panel keeps its own height instead of stretching to the box */
.steps-short .tab-panels > [data-panel]:not([hidden]) { height: auto; }

/* Section headers: the right-hand line sits on the heading's bottom line, at the right edge (desktop); stacks under it on phones */
@media (min-width: 901px) {
  .sec-head:has(> p) { align-items: end; }
  .sec-head > p {
    justify-self: end;
    width: 100%;
    max-width: 44ch;
    margin: 0;
    padding-bottom: 4px;
  }
}
@media (max-width: 900px) {
  .sec-head > p { justify-self: start; margin: 0; max-width: 44ch; }
}

/* Footer: the firm line under the logo, smaller */
.footer-line { font-size: 12px; color: var(--muted); }


/* Real CPAs section (home) and Better than the old way portal carousel (tax) (DeepSeek) */
/* ============================================================
   Greyspace, alive sections (CPA + Better than the old way)
   All selectors use a gs- class.
   ============================================================ */

/* ---------- SECTION A: Real CPAs on staff ---------- */

.gs-cpa .gs-cpa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.gs-cpa .gs-cpa-media {
  position: relative;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #dfe3ea;
}

.gs-cpa .gs-cpa-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.82) saturate(0.9);
  transform: scale(1.06);
}

.gs-cpa .gs-cpa-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.12);
}

.gs-cpa .gs-cpa-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gs-cpa .gs-cpa-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gs-cpa .gs-cpa-card-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.gs-cpa .gs-cpa-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.gs-cpa .gs-cpa-card-state {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gs-cpa .gs-cpa-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 3em;
}

.gs-cpa .gs-cpa-sent {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gs-cpa .gs-cpa-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gs-cpa .gs-cpa-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gs-cpa .gs-cpa-stat-num {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.gs-cpa .gs-cpa-stat-phrase {
  font-size: 20px;
  line-height: 1.25;
}

.gs-cpa .gs-cpa-stat-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

.gs-cpa .gs-cpa-note {
  margin: 32px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 60ch;
}

/* Motion (only when script adds .gs-on) */
.gs-cpa.gs-on .gs-cpa-stat {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gs-cpa.gs-on .gs-cpa-stat.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- SECTION B: Better than the old way ---------- */

.gs-better .gs-better-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.gs-better .gs-better-head .sec-head {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.gs-better .gs-better-arrows {
  display: flex;
  gap: 8px;
  flex: none;
  padding-top: 4px;
}

.gs-better .gs-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-better .gs-arrow:hover {
  border-color: #cfd2d8;
  background: var(--card);
}

.gs-better .gs-arrow svg {
  width: 16px;
  height: 16px;
}

.gs-better .gs-better-box {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gs-better .gs-better-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.gs-better .gs-tab {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}

.gs-better .gs-tab:last-child {
  border-bottom: 0;
}

.gs-better .gs-tab:hover {
  background: var(--card);
}

.gs-better .gs-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
}

.gs-better .gs-tab-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.gs-better .gs-tab-line,
.gs-better .gs-tab-old {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

.gs-better .gs-tab-line {
  color: var(--body);
}

.gs-better .gs-tab-old {
  color: var(--muted);
}

.gs-better .gs-tab[aria-selected="true"] .gs-tab-line,
.gs-better .gs-tab[aria-selected="true"] .gs-tab-old {
  display: block;
}

.gs-better .gs-tab-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--ink);
  opacity: 0;
}

.gs-better .gs-tab[aria-selected="true"] .gs-tab-progress {
  opacity: 1;
}

.gs-better .gs-better-panels {
  position: relative;
  min-width: 0;
  background: var(--soft-panel);
  padding: 24px;
}

.gs-better .gs-panel {
  height: 440px;
  min-width: 0;
}

.gs-better .gs-panel[hidden] {
  display: none;
}

.gs-better.gs-on .gs-panel {
  animation: gs-fade 0.35s ease both;
}

@keyframes gs-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Portal mock */
.gs-better .gs-portal {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.gs-better .gs-portal-side {
  background: #121826;
  color: #c7cdd9;
  padding: 14px 10px;
  min-width: 0;
  overflow: hidden;
}

.gs-better .gs-portal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.gs-better .gs-portal-logo {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--white);
  color: #121826;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gs-better .gs-portal-brand-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.gs-better .gs-portal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-better .gs-portal-menu li {
  font-size: 12px;
  padding: 7px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-better .gs-portal-menu li.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.gs-better .gs-portal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.gs-better .gs-portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}

.gs-better .gs-portal-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.gs-better .gs-portal-new {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
}

.gs-better .gs-portal-body {
  padding: 16px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}

/* Screen 1: Schedule */
.gs-better .gs-sched-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.gs-better .gs-sched-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.gs-better .gs-sched-service {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-better .gs-sched-service.is-pick {
  border-color: var(--navy);
  background: #eef1f7;
}

.gs-better .gs-sched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gs-better .gs-cal-month {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.gs-better .gs-cal-days,
.gs-better .gs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.gs-better .gs-cal-days span {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.gs-better .gs-cal-day {
  font-size: 11px;
  text-align: center;
  padding: 4px 0;
  border-radius: 4px;
  color: var(--ink);
}

.gs-better .gs-cal-day.is-muted {
  color: #b6bac2;
}

.gs-better .gs-cal-day.is-pick {
  background: var(--navy);
  color: var(--white);
}

.gs-better .gs-times {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gs-better .gs-time {
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-better .gs-time.is-pick {
  border-color: var(--navy);
  background: #eef1f7;
}

.gs-better .gs-sched-done {
  margin: 14px 0 0;
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ok-bg);
  color: var(--ok-fg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gs-better .gs-sched-done.is-on {
  opacity: 1;
}

/* Screen 2: Messages */
.gs-better .gs-msgs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gs-better .gs-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.gs-better .gs-msg-row-client {
  justify-content: flex-end;
}

.gs-better .gs-msg-avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gs-better .gs-msg-bubble {
  max-width: 78%;
  background:var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.gs-better .gs-msg-bubble-client {
  background: #eef1f7;
  border-color: #dde3ee;
}

.gs-better .gs-msg-from {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.gs-better .gs-msg-time {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.gs-better .gs-msg-bubble p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--body);
  overflow-wrap: anywhere;
}

.gs-better .gs-msg-row[data-gs-msg-reply] {
  opacity: 1;
}

.gs-better.gs-on .gs-msg-row[data-gs-msg-reply] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gs-better.gs-on .gs-msg-row[data-gs-msg-reply].is-on {
  opacity: 1;
}

/* Screen 3: Tax Status */
.gs-better .gs-status-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.gs-better .gs-status-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-better .gs-status-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 18px 0;
  font-size: 12px;
  color: var(--muted);
}

.gs-better .gs-status-step:last-child {
  padding-bottom: 0;
}

.gs-better .gs-status-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.gs-better .gs-status-step:last-child::before {
  display: none;
}

.gs-better .gs-status-dot {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gs-better .gs-status-dot svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gs-better .gs-status-step.is-done .gs-status-dot {
  background: var(--ok-fg);
  border-color: var(--ok-fg);
}

.gs-better .gs-status-step.is-done .gs-status-dot svg {
  opacity: 1;
}

.gs-better .gs-status-step.is-done .gs-status-label {
  color: var(--ink);
}

.gs-better .gs-status-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ok-bg);
  color: var(--ok-fg);
  opacity: 1;
}

.gs-better.gs-on .gs-status-note {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gs-better.gs-on .gs-status-note.is-on {
  opacity: 1;
}

/* Screen 4: Files */
.gs-better .gs-files {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.gs-better .gs-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.gs-better .gs-file-row:last-child {
  border-bottom: 0;
}

.gs-better .gs-file-name {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.gs-better .gs-file-date {
  flex: none;
  color: var(--muted);
  font-size: 11px;
}

.gs-better.gs-on .gs-file-row {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gs-better.gs-on .gs-file-row.is-in {
  opacity: 1;
  transform: none;
}

/* Dots (phones) */
.gs-better .gs-better-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  padding-top: 14px;
}

.gs-better .gs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b6bac2;
  transition: background 0.2s ease;
}

.gs-better .gs-dot.is-active {
  background: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .gs-cpa .gs-cpa-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gs-cpa .gs-cpa-media {
    height: 300px;
  }

  .gs-better .gs-better-box {
    grid-template-columns: 1fr;
  }

  .gs-better .gs-better-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gs-better .gs-panel {
    height: 400px;
  }

  .gs-better .gs-better-panels {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .gs-cpa .gs-cpa-stats {
    grid-template-columns: 1fr;
  }

  .gs-cpa .gs-cpa-stat-num {
    font-size: 34px;
  }

  .gs-cpa .gs-cpa-stat-phrase {
    font-size: 18px;
  }

  .gs-cpa .gs-cpa-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .gs-better .gs-better-head {
    flex-direction: column;
    gap: 16px;
  }

  .gs-better .gs-better-arrows {
    align-self: flex-end;
    padding-top: 0;
  }

  .gs-better .gs-portal {
    grid-template-columns: 1fr;
  }

  .gs-better .gs-portal-side {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
  }

  .gs-better .gs-portal-brand {
    padding: 0;
    margin: 0;
    border-bottom: 0;
    flex: none;
  }

  .gs-better .gs-portal-brand-name {
    display: none;
  }

  .gs-better .gs-portal-menu {
    display: flex;
    gap: 4px;
  }

  .gs-better .gs-portal-menu li {
    padding: 5px 8px;
    font-size: 11px;
  }

  .gs-better .gs-portal-menu li:not(.is-active) {
    display: none;
  }

  .gs-better .gs-sched-services,
  .gs-better .gs-sched-grid {
    grid-template-columns: 1fr;
  }

  .gs-better .gs-msg-bubble {
    max-width: 88%;
  }

  .gs-better .gs-better-dots {
    display: flex;
  }
}

@media (max-width: 375px) {
  .gs-better .gs-portal-body {
    padding: 12px;
  }

  .gs-better .gs-file-row {
    font-size: 11px;
    padding: 9px 10px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .gs-cpa.gs-on .gs-cpa-stat,
  .gs-better.gs-on .gs-panel,
  .gs-better.gs-on .gs-file-row,
  .gs-better.gs-on .gs-msg-row[data-gs-msg-reply],
  .gs-better.gs-on .gs-status-note {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .gs-better .gs-tab-progress {
    transition: none !important;
  }
}


/* Site-wide pass: sharper blues, card motion, phone card carousels (DeepSeek) */
/* ============================================================
   Greyspace Financial: motion and color layer
   Appended after styles.css. Every rule is scoped to .gs-pop,
   which pop.js adds as its first action. Without the script the
   site renders exactly as before.
   ============================================================ */

:root {
  --gs-blue: #1d4ed8;
  --gs-blue-bright: #2563eb;
  --gs-sky: #3b82f6;
  --gs-blue-soft: #eaf1ff;
  --gs-blue-line: #c7d7fe;
}

/* ---------- 1. Sharper blues ---------- */

.gs-pop .btn-primary {
  background: #0b0f19;
  border-color: transparent;
  color: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gs-pop .btn-primary:hover {
  background: #1f2937;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.gs-pop .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.gs-pop .card-icon {
  background: var(--gs-blue-soft);
  border: 1px solid var(--gs-blue-line);
  color: var(--gs-blue);
}

.gs-pop .card-icon svg {
  color: var(--gs-blue);
}

.gs-pop .card-num,
.gs-pop .stat-label {
  color: var(--gs-blue);
}

.gs-pop .stat-num {
  color: var(--navy);
  background: linear-gradient(135deg, var(--navy) 0%, var(--gs-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gs-pop .gs-cpa-stat-num {
  color: var(--navy);
  background: linear-gradient(135deg, var(--navy) 0%, var(--gs-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gs-pop .feature-list button[aria-expanded="true"] {
  color: var(--ink);
}
/* the active step already has its own bar on the li; just make it blue */
.gs-pop [data-features].steps-live .feature-list > li::before { background: var(--gs-blue); }

.gs-pop .feature-list button[aria-expanded="true"] .feature-link,
.gs-pop .feature-list .feature-link:hover,
.gs-pop .svc-more:hover {
  color: var(--gs-blue);
}

.gs-pop .tab-list button[aria-selected="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 0 var(--gs-blue);
}

.gs-pop .panel-soft {
  background: linear-gradient(135deg, #b9c9e8 0%, #dbe4f6 55%, #c6d4ee 100%);
}

.gs-pop .card,
.gs-pop .compare-card,
.gs-pop .svc-tile,
.gs-pop .quote-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gs-pop .card:hover,
.gs-pop .compare-card:hover,
.gs-pop .svc-tile:hover,
.gs-pop .quote-card:hover {
  border-color: var(--gs-blue-line);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.1);
}

/* Blue rule under section headings, drawn in on reveal */

.gs-pop .sec-head .h2 {
  position: relative;
  padding-bottom: 14px;
}

.gs-pop .sec-head .h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--gs-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gs-pop .sec-head.is-revealed .h2::after {
  transform: scaleX(1);
}

/* ---------- 2. Motion on every card section ---------- */

.gs-pop .card,
.gs-pop .compare-card,
.gs-pop .svc-tile,
.gs-pop .stats > * {
  position: relative;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.gs-pop .card.is-revealed,
.gs-pop .compare-card.is-revealed,
.gs-pop .svc-tile.is-revealed,
.gs-pop .stats > *.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gs-pop .card::before,
.gs-pop .compare-card::before,
.gs-pop .svc-tile::before,
.gs-pop .stats > *::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gs-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
  pointer-events: none;
}

.gs-pop .card.is-revealed::before,
.gs-pop .compare-card.is-revealed::before,
.gs-pop .svc-tile.is-revealed::before,
.gs-pop .stats > *.is-revealed::before {
  transform: scaleX(1);
}

.gs-pop .card-icon {
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.gs-pop .card.is-revealed .card-icon {
  animation: gs-icon-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.gs-pop .card:hover .card-icon {
  animation: gs-icon-float 2.4s ease-in-out infinite;
}

/* Slow continuous zoom on the hero photo, after the load zoom */

.gs-pop .hero-photo img {
  animation: gs-hero-drift 20s ease-in-out infinite alternate;
}

/* Slow shimmer on the soft product panels */

.gs-pop .panel-soft {
  background-size: 220% 220%;
  animation: gs-panel-shimmer 14s ease-in-out infinite alternate;
}

@keyframes gs-icon-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes gs-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes gs-hero-drift {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

@keyframes gs-panel-shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ---------- 3. Phone carousels ---------- */

@media (max-width: 600px) {
  .gs-pop .cards.gs-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .gs-pop .cards.gs-carousel::-webkit-scrollbar {
    display: none;
  }

  .gs-pop .cards.gs-carousel > .card {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
  }

  .gs-pop .gs-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .gs-pop .gs-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d3d6dd;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
  }

  .gs-pop .gs-dots button.is-active {
    width: 20px;
    background: var(--gs-blue);
  }

  .gs-pop .gs-dots button:focus-visible {
    outline: 2px solid var(--gs-blue);
    outline-offset: 2px;
  }
}

/* ---------- Reduced motion: finished states ---------- */

@media (prefers-reduced-motion: reduce) {
  .gs-pop .card,
  .gs-pop .compare-card,
  .gs-pop .svc-tile,
  .gs-pop .stats > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gs-pop .card::before,
  .gs-pop .compare-card::before,
  .gs-pop .svc-tile::before,
  .gs-pop .stats > *::before {
    transform: scaleX(1);
    transition: none;
  }

  .gs-pop .sec-head .h2::after {
    transform: scaleX(1);
    transition: none;
  }

  .gs-pop .card.is-revealed .card-icon,
  .gs-pop .card:hover .card-icon {
    animation: none;
  }

  .gs-pop .hero-photo img {
    animation: none;
    transform: none;
  }

  .gs-pop .panel-soft {
    animation: none;
    background-size: auto;
  }

  .gs-pop .btn-primary:hover {
    transform: none;
  }
}


/* One portal look in a browser frame, skeleton screens, photo card carousels (DeepSeek) */
/* ============================================================
   Greyspace portal shell, skeleton screens and photo rail
   New rules only. Appended after styles.css.
   ============================================================ */

/* ---------- A. Browser frame ---------- */
.gs-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 400px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.gs-shell-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: #f4f5f7;
  border-bottom: 1px solid var(--line-soft);
}

.gs-shell-dots {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gs-shell-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5e7eb;
}

.gs-shell-url {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 320px;
  margin: 0 auto;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

/* ---------- Portal inside the shell ---------- */
.gs-shell .gs-portal {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  background: var(--white);
  overflow: hidden;
}

.gs-shell .gs-portal-side {
  min-width: 0;
  overflow: hidden;
  padding: 14px 10px;
  background: #121826;
  color: #c7cdd9;
}

.gs-shell .gs-portal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gs-shell .gs-portal-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--white);
  color: #121826;
  font-size: 12px;
  font-weight: 500;
}

.gs-shell .gs-portal-brand-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.gs-shell .gs-portal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-shell .gs-portal-menu li {
  padding: 7px 8px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-shell .gs-portal-menu li.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.gs-shell .gs-portal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.gs-shell .gs-portal-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.gs-shell .gs-portal-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.gs-shell .gs-portal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

/* ---------- Shell inside the existing .gs-better panel ---------- */
.gs-better .gs-shell {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gs-better .gs-shell .gs-portal {
  border: 0;
  border-radius: 0;
}

/* ---------- C. Skeleton primitives ---------- */
.gs-portal-body .sk-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #eceef2;
  background-image: linear-gradient(
    90deg,
    #eceef2 0%,
    #f4f6f9 50%,
    #eceef2 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: gs-sk-shimmer 4.5s ease-in-out infinite;
}

.gs-portal-body .sk-bar.is-w90 { width: 90%; }
.gs-portal-body .sk-bar.is-w80 { width: 80%; }
.gs-portal-body .sk-bar.is-w70 { width: 70%; }
.gs-portal-body .sk-bar.is-w60 { width: 60%; }
.gs-portal-body .sk-bar.is-w50 { width: 50%; }
.gs-portal-body .sk-bar.is-w40 { width: 40%; }
.gs-portal-body .sk-bar.is-w30 { width: 30%; }
.gs-portal-body .sk-bar.is-w20 { width: 20%; }

.gs-portal-body .sk-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.gs-portal-body .sk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gs-portal-body .sk-label {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
}

.gs-portal-body .sk-muted {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.gs-portal-body .sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--white);
  background: #0b0f19;
  border: 0;
  border-radius: 6px;
  white-space: nowrap;
}

.gs-portal-body .sk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}

.gs-portal-body .sk-avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e3e7ee;
}

.gs-portal-body .sk-avatar.is-dark {
  background: #121826;
}

/* ---------- Messages ---------- */
.gs-portal-body .sk-msgs {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.gs-portal-body .sk-msgs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid var(--line-soft);
}

.gs-portal-body .sk-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 8px;
  min-width: 0;
}

.gs-portal-body .sk-conv.is-active {
  background: #f4f5f7;
}

.gs-portal-body .sk-conv .sk-stack {
  flex: 1 1 auto;
  gap: 5px;
}

.gs-portal-body .sk-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.gs-portal-body .sk-bubble {
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f5f7;
  border: 1px solid var(--line-soft);
}

.gs-portal-body .sk-bubble.is-client {
  align-self: flex-end;
  background: #121826;
  border-color: #121826;
}

.gs-portal-body .sk-bubble.is-client .sk-bar {
  background: rgba(255, 255, 255, 0.28);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.22) 100%
  );
}

.gs-portal-body .sk-bubble .sk-stack {
  gap: 6px;
}

.gs-portal-body .sk-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.gs-portal-body .sk-compose .sk-bar {
  flex: 1 1 auto;
  height: 22px;
  border-radius: 6px;
  background: #f4f5f7;
  background-image: none;
  animation: none;
}

/* ---------- Files ---------- */
.gs-portal-body .sk-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}

.gs-portal-body .sk-crumb .sk-bar {
  width: 60px;
}

.gs-portal-body .sk-files {
  display: flex;
  flex-direction: column;
}

.gs-portal-body .sk-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}

.gs-portal-body .sk-file:last-child {
  border-bottom: 0;
}

.gs-portal-body .sk-file-icon {
  flex: none;
  width: 16px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid #c3c9d4;
  background: var(--white);
}

.gs-portal-body .sk-file-icon.is-folder {
  border-radius: 2px 3px 3px 3px;
  background: #eef1f7;
  border-color: #c3c9d4;
}

.gs-portal-body .sk-file .sk-stack {
  flex: 1 1 auto;
  gap: 5px;
}

/* ---------- Forms ---------- */
.gs-portal-body .sk-form {
  max-width: 320px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.gs-portal-body .sk-form-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.gs-portal-body .sk-progress {
  height: 6px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eceef2;
  overflow: hidden;
}

.gs-portal-body .sk-progress span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: 999px;
  background: var(--navy);
}

.gs-portal-body .sk-field {
  margin-bottom: 12px;
}

.gs-portal-body .sk-field .sk-bar {
  width: 40%;
  margin-bottom: 6px;
}

.gs-portal-body .sk-input {
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

/* ---------- Schedule ---------- */
.gs-portal-body .sk-sched {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.gs-portal-body .sk-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gs-portal-body .sk-service {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gs-portal-body .sk-service.is-pick {
  border-color: var(--navy);
  background: #eef1f7;
}

.gs-portal-body .sk-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.gs-portal-body .sk-day {
  height: 26px;
  border-radius: 5px;
  background: #f4f5f7;
}

.gs-portal-body .sk-day.is-pick {
  background: var(--navy);
}

.gs-portal-body .sk-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gs-portal-body .sk-time {
  padding: 5px 10px;
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gs-portal-body .sk-time.is-pick {
  border-color: var(--navy);
  background: #eef1f7;
}

/* ---------- Help Desk ---------- */
.gs-portal-body .sk-requests {
  display: flex;
  flex-direction: column;
}

.gs-portal-body .sk-request {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}

.gs-portal-body .sk-request:last-child {
  border-bottom: 0;
}

.gs-portal-body .sk-request .sk-stack {
  flex: 1 1 auto;
  gap: 6px;
}

.gs-portal-body .sk-pill {
  flex: none;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.5;
  border-radius: 999px;
  white-space: nowrap;
}

.gs-portal-body .sk-pill.is-open {
  background: #e8eefc;
  color: #1d4ed8;
}

.gs-portal-body .sk-pill.is-answered {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.gs-portal-body .sk-pill.is-closed {
  background: #f0f1f3;
  color: var(--muted);
}

/* ---------- Tax Status ---------- */
.gs-portal-body .sk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-portal-body .sk-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 14px 0;
  min-width: 0;
}

.gs-portal-body .sk-step:last-child {
  padding-bottom: 0;
}

.gs-portal-body .sk-step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.gs-portal-body .sk-step:last-child::before {
  display: none;
}

.gs-portal-body .sk-dot {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
}

.gs-portal-body .sk-step.is-done .sk-dot {
  border-color: var(--navy);
  background: var(--navy);
}

.gs-portal-body .sk-step.is-now .sk-dot {
  border: 2px solid #1d4ed8;
  background: var(--white);
  animation: gs-sk-pulse 2.4s ease-in-out infinite;
}

.gs-portal-body .sk-step .sk-stack {
  flex: 1 1 auto;
  gap: 5px;
  padding-top: 1px;
}

.gs-portal-body .sk-step .sk-bar {
  width: 55%;
}

/* ---------- Keyframes ---------- */
@keyframes gs-sk-shimmer {
  0% { background-position: 120% 0; }
  55% { background-position: -20% 0; }
  100% { background-position: -20% 0; }
}

@keyframes gs-sk-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.28); }
  50% { box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10); }
}

/* ---------- D. Photo rail ---------- */
.gs-rail {
  min-width: 0;
}

.gs-rail-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gs-rail-track::-webkit-scrollbar {
  display: none;
}

.gs-photo-card {
  flex: 0 0 30%;
  min-width: 260px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gs-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.gs-photo-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f7;
}

.gs-photo-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gs-photo-card:hover .gs-photo-img img {
  transform: scale(1.04);
}

.gs-photo-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
}

.gs-photo-body {
  padding: 18px;
}

.gs-photo-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.gs-photo-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.gs-rail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.gs-rail-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  order: -1;
}

.gs-rail-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d3d6dd;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.gs-rail-dots button.is-active {
  width: 18px;
  background: #0b0f19;
}

.gs-rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-rail-btn:hover {
  border-color: #c9ccd4;
  background: #fafafb;
}

.gs-rail-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.gs-rail-btn:focus-visible,
.gs-rail-dots button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gs-photo-card {
    flex-basis: 42%;
  }
}

@media (max-width: 600px) {
  .gs-shell {
    height: 360px;
  }

  .gs-shell-url {
    max-width: 100%;
    font-size: 10px;
    padding: 3px 8px;
  }

  .gs-shell .gs-portal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .gs-shell .gs-portal-side {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }

  .gs-shell .gs-portal-brand {
    flex: none;
    padding: 0 10px 0 0;
    margin: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .gs-shell .gs-portal-brand-name {
    display: none;
  }

  .gs-shell .gs-portal-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }

  .gs-shell .gs-portal-menu li {
    padding: 5px 8px;
    font-size: 11px;
  }

  .gs-portal-body .sk-msgs {
    grid-template-columns: 1fr;
  }

  .gs-portal-body .sk-msgs-list {
    display: none;
  }

  .gs-photo-card {
    flex-basis: 84%;
    min-width: 0;
  }

  .gs-rail-dots {
    order: 0;
  }

  .gs-rail-nav {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-portal-body .sk-bar {
    animation: none;
    background-image: none;
  }

  .gs-portal-body .sk-step.is-now .sk-dot {
    animation: none;
  }

  .gs-rail-track {
    scroll-behavior: auto;
  }

  .gs-photo-card,
  .gs-photo-img img,
  .gs-rail-dots button {
    transition: none;
  }

  .gs-photo-card:hover {
    transform: none;
  }

  .gs-photo-card:hover .gs-photo-img img {
    transform: none;
  }
}

/* Small fixes: rail arrows sit together at the right on desktop; url in the site font */
.gs-rail-nav { justify-content: flex-start; }
.gs-rail-dots { margin-right: auto; }
.gs-shell-url { font-family: inherit; }
@media (max-width: 600px) {
  .gs-rail-nav { justify-content: space-between; }
  .gs-rail-dots { margin-right: 0; }
}

/* Round 2: blue top line sits flush. Square top corners, rounded bottom,
   and the line covers the card's own top border. */
html.gs-pop .card,
html.gs-pop .compare-card,
html.gs-pop .svc-tile,
html.gs-pop .stats > * {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
html.gs-pop .card::before,
html.gs-pop .compare-card::before,
html.gs-pop .svc-tile::before,
html.gs-pop .stats > *::before {
  top: -1px;
  left: -1px;
  right: -1px;
}

/* Round 2: chat bubbles read as real messages, not dots. */
.gs-portal-body .sk-bubble { width: 74%; max-width: 74%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; }
.gs-portal-body .sk-bubble.is-client { width: 64%; border-radius: 14px 14px 4px 14px; }
.gs-portal-body .sk-bubble .sk-stack { display: flex; flex-direction: column; width: 100%; }
.gs-portal-body .sk-bubble .sk-bar { display: block; height: 7px; }

/* Round 2: feature panels hug the portal frame, less dead space. */
@media (min-width: 901px) {
  [data-features] .feature-panels > [data-feature-panel] > .panel-soft { flex: 0 0 auto; padding: 20px; }
  [data-features] .feature-panels > [data-feature-panel]:not([hidden]) { justify-content: flex-start; }
  [data-features] .feature-panels { min-height: 0; }
}
@media (max-width: 900px) {
  .features[data-features] { gap: 16px; }
  [data-features] .panel-soft { padding: 14px; }
}

/* Round 2: phone portal menu shows whole words, active one first, soft fade at the edge. */
@media (max-width: 600px) {
  .gs-shell .gs-portal-menu {
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  .gs-shell .gs-portal-menu li {
    flex: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }
  .gs-shell .gs-portal-menu li.is-active { order: -1; }
}


/* Round 2: advisory comparison, refund and dates timeline, deliverable cards (DeepSeek) */
/* ============================================================
   Round 2: compare, refund, docs
   All selectors start with .gs-r2
   ============================================================ */

/* ---------- Shared ---------- */
.gs-r2-compare,
.gs-r2-refund,
.gs-r2-docs {
  --gs-r2-blue: var(--gs-blue, #2f5bd0);
  --gs-r2-ink: var(--ink, #121417);
  --gs-r2-muted: var(--muted, #6b7280);
  --gs-r2-line: var(--line, #e8e8ea);
  --gs-r2-line-soft: var(--line-soft, #ececef);
  --gs-r2-soft: linear-gradient(135deg, #c9d4ea 0%, #e3e8f3 55%, #d4dcec 100%);
  color: var(--gs-r2-ink);
  font-family: var(--font, "Inter Tight", system-ui, sans-serif);
}

/* ============================================================
   1. COMPARE
   ============================================================ */
.gs-r2-compare {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gs-r2-line);
}

.gs-r2-compare-head,
.gs-r2-compare-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gs-r2-line);
}

.gs-r2-compare-head {
  padding: 14px 0;
}

.gs-r2-compare-col {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gs-r2-muted);
}

.gs-r2-compare-col-us {
  color: var(--gs-r2-blue);
}

.gs-r2-compare-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--gs-r2-ink);
  padding-top: 2px;
}

.gs-r2-compare-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gs-r2-compare-bar {
  height: 10px;
  width: 0;
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gs-r2-compare-bar-hire {
  background: #d7d9df;
}

.gs-r2-compare-bar-us {
  background: var(--gs-r2-blue);
}

.gs-r2-compare.is-in .gs-r2-w100 { width: 100%; }
.gs-r2-compare.is-in .gs-r2-w70  { width: 70%; }
.gs-r2-compare.is-in .gs-r2-w40  { width: 40%; }
.gs-r2-compare.is-in .gs-r2-w30  { width: 30%; }

.gs-r2-compare-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gs-r2-muted);
}

/* ============================================================
   2. REFUND
   ============================================================ */
.gs-r2-refund {
  display: grid;
  gap: 48px;
}

.gs-r2-refund-part {
  display: grid;
  gap: 12px;
}

.gs-r2-refund-h {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--gs-r2-ink);
}

.gs-r2-refund-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gs-r2-muted);
}

/* Refund bars */
.gs-r2-refund-bars {
  display: grid;
  gap: 18px;
  margin: 12px 0 8px;
}

.gs-r2-refund-bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 16px;
  align-items: center;
}

.gs-r2-refund-bar-label {
  font-size: 14px;
  color: var(--gs-r2-ink);
}

.gs-r2-refund-track {
  height: 10px;
  background: var(--gs-r2-line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.gs-r2-refund-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gs-r2-refund-bar-us {
  background: var(--gs-r2-blue);
}

.gs-r2-refund-bar-paper {
  background: #c9ccd4;
}

.gs-r2-refund.is-in .gs-r2-w100 { width: 100%; }
.gs-r2-refund.is-in .gs-r2-w30  { width: 30%; }

.gs-r2-refund-bar-value {
  font-size: 13px;
  color: var(--gs-r2-muted);
  text-align: right;
}

/* Timeline */
.gs-r2-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.gs-r2-timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--gs-r2-line);
  transition: width 1.4s ease;
}

.gs-r2-refund.is-in .gs-r2-timeline::before {
  width: 100%;
}

.gs-r2-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  min-width: 0;
}

.gs-r2-timeline-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white, #fff);
  border: 2px solid var(--gs-r2-blue);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.gs-r2-refund.is-in .gs-r2-timeline-dot {
  transform: scale(1);
}

.gs-r2-timeline-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--gs-r2-ink);
}

.gs-r2-timeline-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gs-r2-muted);
  overflow-wrap: anywhere;
}

/* ============================================================
   3. DOCS
   ============================================================ */
.gs-r2-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gs-r2-doc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--gs-r2-soft);
  border-radius: var(--radius-lg, 16px);
  min-height: 220px;
}

.gs-r2-doc-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 200px;
  padding: 18px 16px;
  background: var(--white, #fff);
  border: 1px solid var(--gs-r2-line-soft);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease;
}

.gs-r2-doc:nth-child(even) .gs-r2-doc-sheet {
  transform: rotate(1.2deg);
}

.gs-r2-doc-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gs-r2-ink);
}

/* Placeholder bars */
.gs-r2-doc-line {
  height: 6px;
  border-radius: 999px;
  background: var(--gs-r2-line-soft);
}

.gs-r2-doc-line-50 { width: 50%; }
.gs-r2-doc-line-60 { width: 60%; }
.gs-r2-doc-line-65 { width: 65%; }
.gs-r2-doc-line-70 { width: 70%; }
.gs-r2-doc-line-55 { width: 55%; }
.gs-r2-doc-line-75 { width: 75%; }
.gs-r2-doc-line-80 { width: 80%; }

/* 1. Bar chart */
.gs-r2-doc-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  padding-top: 4px;
}

.gs-r2-doc-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--gs-r2-blue);
  opacity: 0.85;
}

.gs-r2-doc-h40 { height: 40%; }
.gs-r2-doc-h45 { height: 45%; }
.gs-r2-doc-h50 { height: 50%; }
.gs-r2-doc-h55 { height: 55%; }
.gs-r2-doc-h60 { height: 60%; }
.gs-r2-doc-h70 { height: 70%; }
.gs-r2-doc-h80 { height: 80%; }
.gs-r2-doc-h85 { height: 85%; }

.gs-r2-doc-total {
  height: 2px;
  width: 100%;
  background: var(--gs-r2-ink);
  opacity: 0.5;
  border-radius: 2px;
}

/* 2 and 6. Checklist */
.gs-r2-doc-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-r2-doc-check-box {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--gs-r2-blue);
  border-radius: 2px;
}

.gs-r2-doc-check .gs-r2-doc-line {
  flex: 1;
}

/* 3. Quarterly rows */
.gs-r2-doc-qrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-r2-doc-q {
  flex: 0 0 20px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 10px;
  color: var(--gs-r2-muted);
}

.gs-r2-doc-qbar {
  height: 6px;
  border-radius: 999px;
  background: var(--gs-r2-line-soft);
}

.gs-r2-doc-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gs-r2-line);
}

.gs-r2-doc-dot-on {
  background: var(--gs-r2-blue);
}

/* 4 and 5. Two columns */
.gs-r2-doc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 0;
}

.gs-r2-doc-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 72px;
}

.gs-r2-doc-col-label {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gs-r2-muted);
}

.gs-r2-doc-col-bar {
  width: 100%;
  border-radius: 3px;
  background: var(--gs-r2-blue);
  opacity: 0.8;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .gs-r2-docs {
    grid-template-columns: repeat(2, 1fr);
  }

  .gs-r2-timeline {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 28px;
  }

  .gs-r2-timeline::before {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Compare stacks */
  .gs-r2-compare-head {
    display: none;
  }

  .gs-r2-compare-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .gs-r2-compare-label {
    font-size: 14px;
  }

  .gs-r2-compare-track {
    gap: 6px;
  }

  /* Refund */
  .gs-r2-refund {
    gap: 36px;
  }

  .gs-r2-refund-h {
    font-size: 19px;
  }

  .gs-r2-refund-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gs-r2-refund-bar-value {
    text-align: left;
  }

  /* Timeline vertical */
  .gs-r2-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 20px;
  }

  .gs-r2-timeline::before {
    display: block;
    top: 0;
    left: 4px;
    width: 1px;
    height: 0;
    transition: height 1.4s ease;
  }

  .gs-r2-refund.is-in .gs-r2-timeline::before {
    width: 1px;
    height: 100%;
  }

  .gs-r2-timeline-item {
    padding: 0 0 22px 0;
  }

  .gs-r2-timeline-dot {
    left: -20px;
    top: 3px;
  }

  /* Docs one column */
  .gs-r2-docs {
    grid-template-columns: 1fr;
  }

  .gs-r2-doc {
    min-height: 200px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .gs-r2-compare-bar,
  .gs-r2-refund-bar,
  .gs-r2-timeline::before,
  .gs-r2-timeline-dot,
  .gs-r2-doc-sheet {
    transition: none !important;
  }

  .gs-r2-compare-bar,
  .gs-r2-refund-bar {
    width: 100%;
  }

  .gs-r2-compare .gs-r2-w70  { width: 70%; }
  .gs-r2-compare .gs-r2-w40  { width: 40%; }
  .gs-r2-compare .gs-r2-w30  { width: 30%; }
  .gs-r2-refund .gs-r2-w30   { width: 30%; }

  .gs-r2-timeline::before {
    width: 100%;
  }

  .gs-r2-timeline-dot {
    transform: scale(1);
  }

  @media (max-width: 600px) {
    .gs-r2-timeline::before {
      width: 1px;
      height: 100%;
    }
  }
}

/* Round 2 fix: deliverable sheets fill the card's picture area. */
.gs-r2-thumb {
  --gs-r2-soft: linear-gradient(135deg, #c9d4ea 0%, #e3e8f3 55%, #d4dcec 100%);
  --gs-r2-blue: var(--gs-blue, #2f5bd0);
  --gs-r2-ink: var(--ink, #121417);
  --gs-r2-muted: var(--muted, #6b7280);
  --gs-r2-line: var(--line, #e8e8ea);
  --gs-r2-line-soft: var(--line-soft, #ececef);
  aspect-ratio: 4 / 3;
}
.gs-r2-thumb .gs-r2-doc { height: 100%; min-height: 0; border-radius: 0; box-sizing: border-box; }
/* Column heads read as plain words, not small labels. */
.gs-r2-compare .gs-r2-compare-col { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 15px; }
.gs-r2-refund .btn { display: inline-flex; width: auto; align-self: flex-start; justify-self: start; }
@media (max-width: 600px) { .gs-r2-refund .btn { width: 100%; justify-content: center; } }

/* Menu fix: page text no longer shows behind the open menu. Frosted panel fills the screen. */
.nav-dropdown {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@media (max-width: 900px) {
  html.menu-open .site-header {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .mobile-menu:not([hidden]) {
    height: calc(100dvh - var(--hdr-h, 64px));
    background: transparent;
  }
}

/* Phone menu: smaller Menu button and tighter, smaller menu items. */
@media (max-width: 900px) {
  .site-header .menu-btn { padding: 6px 10px; font-size: 13px; gap: 6px; min-height: 0; height: 34px; border-radius: 8px; }
  .site-header .menu-icon { width: 14px; height: 10px; gap: 3px; }
  .mobile-menu .mobile-links a,
  .mobile-menu .mobile-drop-btn { font-size: 18px; padding: 10px 0; }
  .mobile-menu .mobile-sub a { font-size: 15px; padding: 8px 0; }
  .mobile-menu .mobile-actions .btn { min-height: 44px; padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
}

/* Footer bottom: copyright and legal links centered on every screen size. */
.footer-bottom { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
.footer-bottom p { margin: 0; }
.footer-legal { justify-content: center; }
@media (max-width: 900px) { .footer-bottom { align-items: center; } }

/* Phone: the CPA chat card keeps its full height while the message types, so nothing jumps or clips. */
@media (max-width: 600px) {
  .gs-cpa .gs-cpa-media { height: 320px; }
  .gs-cpa .gs-cpa-msg { min-height: 6em; }
}


/* Round 4: old way vs Greyspace rows, phone refund card, Resources, articles, calculators (DeepSeek) */
/* Round 4 polish. Every selector is scoped to .gs-r4, .gs-way or .gs-ways. */

/* ---------- a) Tax page: Better than the old way tabs ---------- */

.gs-better .gs-tab .gs-ways {
  display: none;
}

.gs-better .gs-tab[aria-selected="true"] .gs-ways {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.gs-better .gs-tab .gs-way {
  display: grid;
  grid-template-columns: 8px auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.gs-better .gs-tab .gs-way-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  align-self: center;
  flex: none;
}

.gs-better .gs-tab .gs-way-label {
  font-weight: 500;
  white-space: nowrap;
}

.gs-better .gs-tab .gs-way-text {
  min-width: 0;
}

.gs-better .gs-tab .gs-way-new .gs-way-dot {
  background: var(--gs-blue, #1b2b4b);
}

.gs-better .gs-tab .gs-way-new .gs-way-label {
  color: var(--gs-blue, #1b2b4b);
}

.gs-better .gs-tab .gs-way-new .gs-way-text {
  color: var(--ink);
}

.gs-better .gs-tab .gs-way-old .gs-way-dot {
  background: #c3c7cf;
}

.gs-better .gs-tab .gs-way-old .gs-way-label,
.gs-better .gs-tab .gs-way-old .gs-way-text {
  color: var(--muted);
}

.gs-better .gs-tab[aria-selected="true"] .gs-way {
  animation: gs-r4-way-in 0.3s ease both;
}

.gs-better .gs-tab[aria-selected="true"] .gs-way-old {
  animation-delay: 0.06s;
}

@keyframes gs-r4-way-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- b) Tax page refunds: phone card ---------- */

.gs-r4-refund-card {
  display: none;
}

@media (max-width: 600px) {
  .gs-r2-refund-bars {
    display: none;
  }

  .gs-r4-refund-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    overflow: hidden;
  }

  .gs-r4-refund-card .gs-r4-refund-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
  }

  .gs-r4-refund-card .gs-r4-refund-row + .gs-r4-refund-row {
    border-top: 1px solid var(--line-soft);
  }

  .gs-r4-refund-card .gs-r4-refund-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
  }

  .gs-r4-refund-card .gs-r4-refund-row:first-child .gs-r4-refund-dot {
    background: var(--gs-blue, #1b2b4b);
  }

  .gs-r4-refund-card .gs-r4-refund-row:last-child .gs-r4-refund-dot {
    background: #c3c7cf;
  }

  .gs-r4-refund-card .gs-r4-refund-method {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    color: var(--ink);
  }

  .gs-r4-refund-card .gs-r4-refund-time {
    flex: none;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-align: right;
  }
}

/* ---------- c) Refund CTA block ---------- */

.gs-r4-refund-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gs-r4-refund-cta:hover {
  background: #1d2026;
}

.gs-r4-refund-cta:focus-visible {
  outline: 2px solid var(--gs-blue, #1b2b4b);
  outline-offset: 3px;
}

.gs-r4-refund-cta .gs-r4-refund-cta-text {
  min-width: 0;
}

.gs-r4-refund-cta .gs-r4-refund-cta-title {
  display: block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
}

.gs-r4-refund-cta .gs-r4-refund-cta-sub {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #c7cdd9;
}

.gs-r4-refund-cta .gs-r4-refund-cta-arrow {
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
  transition: transform 0.2s ease;
}

.gs-r4-refund-cta:hover .gs-r4-refund-cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .gs-r4-refund-cta {
    padding: 22px;
    gap: 16px;
  }

  .gs-r4-refund-cta .gs-r4-refund-cta-title {
    font-size: 20px;
  }
}

/* ---------- d) Article pages ---------- */

.gs-r4-article .gs-r4-article-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.gs-r4-article .gs-r4-back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
}

.gs-r4-article .gs-r4-back:hover {
  color: var(--ink);
}

.gs-r4-article .gs-r4-back:focus-visible {
  outline: 2px solid var(--gs-blue, #1b2b4b);
  outline-offset: 3px;
  border-radius: 4px;
}

.gs-r4-article .gs-r4-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  margin-bottom: 16px;
}

.gs-r4-article .gs-r4-article-title {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
}

.gs-r4-article .gs-r4-article-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

.gs-r4-article .gs-r4-article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 32px;
}

.gs-r4-article .gs-r4-article-body h2 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 40px 0 12px;
}

.gs-r4-article .gs-r4-article-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 16px;
}

.gs-r4-article .gs-r4-article-body ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.gs-r4-article .gs-r4-article-body ul li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 8px;
}

.gs-r4-article .gs-r4-article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gs-blue, #1b2b4b);
}

.gs-r4-article .gs-r4-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.gs-r4-article .gs-r4-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

.gs-r4-article .gs-r4-table th,
.gs-r4-article .gs-r4-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
}

.gs-r4-article .gs-r4-table th {
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
}

.gs-r4-article .gs-r4-table tr:last-child td {
  border-bottom: none;
}

.gs-r4-article .gs-r4-table td.gs-r4-num,
.gs-r4-article .gs-r4-table th.gs-r4-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gs-r4-article .gs-r4-source {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 32px 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

.gs-r4-article .gs-r4-source a {
  color: var(--gs-blue, #1b2b4b);
}

.gs-r4-article .gs-r4-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 600px) {
  .gs-r4-article .gs-r4-article-title {
    font-size: 32px;
  }

  .gs-r4-article .gs-r4-article-lead {
    font-size: 17px;
  }

  .gs-r4-article .gs-r4-article-body h2 {
    font-size: 22px;
  }
}

/* ---------- Calculators shared pieces ---------- */

.gs-r4-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gs-r4-calc {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}

.gs-r4-calc h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 16px;
}

.gs-r4-field {
  display: block;
  margin-bottom: 14px;
  min-width: 0;
}

.gs-r4-field label,
.gs-r4-field .gs-r4-field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.gs-r4-field input,
.gs-r4-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-sizing: border-box;
}

.gs-r4-field input:focus,
.gs-r4-field select:focus {
  outline: 2px solid var(--gs-blue, #1b2b4b);
  outline-offset: 1px;
}

.gs-r4-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gs-r4-result {
  background: linear-gradient(135deg, #eef1f7 0%, #e3e8f3 100%);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 8px;
}

.gs-r4-result .gs-r4-big {
  display: block;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.gs-r4-result .gs-r4-line {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 4px;
}

.gs-r4-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}

@media (max-width: 600px) {
  .gs-r4-calc-grid {
    grid-template-columns: 1fr;
  }

  .gs-r4-row {
    grid-template-columns: 1fr;
  }

  .gs-r4-calc {
    padding: 20px;
  }
}

/* ---------- Resources page ---------- */

.gs-r4-big-btn {
  display: inline-block;
  margin: 8px 0 24px;
}

.gs-r4-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.gs-r4-filter {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gs-r4-filter:hover {
  color: var(--ink);
  border-color: #d6d8dd;
}

.gs-r4-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.gs-r4-filter:focus-visible {
  outline: 2px solid var(--gs-blue, #1b2b4b);
  outline-offset: 2px;
}

.gs-r4-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gs-r4-article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gs-r4-article-card:hover {
  background: var(--white);
  border-color: var(--line);
}

.gs-r4-article-card:focus-visible {
  outline: 2px solid var(--gs-blue, #1b2b4b);
  outline-offset: 2px;
}

.gs-r4-article-card .gs-r4-pill {
  align-self: flex-start;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}

.gs-r4-article-card .gs-r4-card-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.gs-r4-article-card .gs-r4-card-line {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  flex: 1 1 auto;
}

.gs-r4-article-card .gs-r4-card-read {
  font-size: 13px;
  color: var(--gs-blue, #1b2b4b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gs-r4-article-card .gs-r4-card-read span {
  transition: transform 0.15s ease;
}

.gs-r4-article-card:hover .gs-r4-card-read span {
  transform: translateX(3px);
}

.gs-r4-article-card[hidden] {
  display: none;
}

.gs-r4-calc-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.gs-r4-calc-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.gs-r4-calc-link:hover .gs-r4-calc-name {
  color: var(--gs-blue, #1b2b4b);
}

.gs-r4-calc-link:focus-visible {
  outline: 2px solid var(--gs-blue, #1b2b4b);
  outline-offset: 2px;
  border-radius: 4px;
}

.gs-r4-calc-link .gs-r4-calc-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.15s ease;
}

.gs-r4-calc-link .gs-r4-calc-line {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* Reveal on scroll */

[data-gs-r4] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-gs-r4].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .gs-r4-articles {
    grid-template-columns: 1fr;
  }

  .gs-r4-calc-links {
    grid-template-columns: 1fr;
  }

  .gs-r4-calc-link {
    flex-direction: column;
    gap: 4px;
  }

  .gs-r4-calc-link .gs-r4-calc-line {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-better .gs-tab[aria-selected="true"] .gs-way {
    animation: none;
  }

  .gs-r4-refund-cta,
  .gs-r4-refund-cta .gs-r4-refund-cta-arrow,
  .gs-r4-filter,
  .gs-r4-article-card,
  .gs-r4-article-card .gs-r4-card-read span,
  .gs-r4-calc-link .gs-r4-calc-name,
  [data-gs-r4] {
    transition: none;
  }

  [data-gs-r4] {
    opacity: 1;
    transform: none;
  }
}

/* Resources: the "What you need" box always shows; filter chips stay on one line on phones. */
.gs-r4-need { border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; background: var(--white); margin: 16px 0; }
.gs-r4-need h3 { font-size: 18px; font-weight: 400; margin: 0 0 10px; }
.gs-r4-need ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 15px; line-height: 1.7; }
@media (max-width: 600px) {
  .gs-r4-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; }
  .gs-r4-filters::-webkit-scrollbar { display: none; }
  .gs-r4-filter { flex: 0 0 auto; }
}

/* One calculator per page: back button, single card, carousel of the others */
.hero-plain .gs-calc-back-wrap { margin: 0 0 24px; }
.gs-calc-back { gap: 8px; }
.gs-calc-solo { max-width: 640px; }
.gs-calc-solo .gs-r4-calc { padding: 28px; }
.gs-calc-one { padding-top: 0; }
.gs-calc-rail .gs-calc-rail-card { flex: 0 0 30%; min-width: 240px; scroll-snap-align: start; }
@media (max-width: 600px) {
  .gs-calc-solo .gs-r4-calc { padding: 20px; }
  .gs-calc-rail .gs-calc-rail-card { flex-basis: 82%; min-width: 0; }
}

/* Rounded chevrons in place of arrows (Open, Read, Back, Learn more) */
.gs-chev { width: 0.8em; height: 0.8em; flex: 0 0 auto; display: inline-block; vertical-align: -0.05em; }
.gs-chev-wrap { display: inline-flex; align-items: center; }
.svc-more::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 6px;
  vertical-align: -0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gs-r4-article .gs-r4-back { display: flex; width: fit-content; align-items: center; gap: 6px; }

/* Services and Resources dropdowns: same frosted glass as the nav bar.
   The nav bar's blur moves to a layer behind it, so the dropdowns can blur the page under them too. */
@media (min-width: 901px) {
  .site-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
  .nav-dropdown {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
}
