/* myguidancehub.com — mobile-first relief check */

:root {
  --red: #dc2626;
  --red-deep: #b91c1c;
  --red-soft: #fef2f2;
  --red-line: #fecaca;
  --ink: #111827;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f5f5f5;
  --panel: #ffffff;
  --info: #1e4a6e;
  --info-bg: #f0f5f9;
  --ok: #166534;
  --ok-bg: #f0fdf4;
  --foot: #111827;
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --tap: 3.5rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body.hub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red-deep);
}

img {
  max-width: 100%;
  height: auto;
}

.hub-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hub-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--red);
  color: #fff;
  z-index: 9999;
  border-radius: var(--radius-sm);
}

.hub-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 40% at 50% -10%, rgba(220, 38, 38, 0.07), transparent 60%),
    #f5f5f5;
}

.hub-main {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 4.5rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
}

.hub-quiz {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.15rem 1.4rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hub-quiz.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hub-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.hub-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.7rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}

.hub-lede {
  margin: 0 auto 1.35rem;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}

.hub-steps {
  margin: 0 0 1.25rem;
  text-align: center;
}

.hub-steps[hidden] {
  display: none !important;
}

.hub-steps__track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.hub-steps__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.hub-steps__label {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-stage {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.14s ease, transform 0.14s ease;
  text-align: center;
}

.hub-stage.is-swapping {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

/* Important notes — blue */
.hub-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--info-bg);
  border: 1px solid #d4e2ee;
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.95rem;
  margin: 0 auto 1.2rem;
  text-align: left;
}

.hub-note--soft {
  margin-top: 1rem;
  margin-bottom: 0;
}

.hub-note[hidden],
.hub-continue[hidden] {
  display: none !important;
}

.hub-note__mark {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--info);
  border-radius: 50%;
}

.hub-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 500;
  color: #334e66;
}

.hub-note p strong {
  font-weight: 700;
  color: var(--info);
}

.hub-note--focus {
  background: var(--info-bg);
  border-color: #d4e2ee;
}

.hub-note--focus .hub-note__mark {
  background: var(--info);
}

.hub-prompt {
  margin: 0 auto 1.15rem;
  max-width: 20rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.35rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  min-height: 2.6em;
}

.hub-choices {
  display: grid;
  gap: 0.7rem;
}

.hub-choice {
  width: 100%;
  min-height: var(--tap);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.hub-choice:active {
  transform: scale(0.985);
  background: var(--red-soft);
  border-color: var(--red);
}

.hub-choice.is-tapped,
.hub-choice.is-selected {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red-deep);
  box-shadow: 0 0 0 1px var(--red);
}

.hub-choice:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (hover: hover) {
  .hub-choice:hover {
    border-color: #f87171;
    background: #fffafa;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
  }
}

.hub-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap);
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.hub-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.hub-continue:not(:disabled):active {
  background: var(--red-deep);
  transform: scale(0.985);
}

.hub-loader {
  padding: 2.25rem 0.5rem 1.5rem;
  text-align: center;
  animation: hub-fade 0.35s ease both;
}

.hub-loader[hidden] {
  display: none !important;
}

.hub-loader__ring {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 3px solid var(--red-line);
  border-top-color: var(--red);
  animation: hub-spin 0.8s linear infinite;
}

.hub-loader__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.hub-loader__list {
  list-style: none;
  padding: 0;
  margin: 1.2rem auto 0;
  max-width: 16rem;
  text-align: left;
}

.hub-loader__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: #9ca3af;
  transition: color 0.25s ease;
}

.hub-loader__dot {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hub-loader__item.is-active {
  color: var(--ink);
  font-weight: 600;
}

.hub-loader__item.is-active .hub-loader__dot {
  border-color: var(--red);
  border-top-color: transparent;
  animation: hub-spin 0.7s linear infinite;
}

.hub-loader__item.is-done {
  color: var(--ink);
}

.hub-loader__item.is-done .hub-loader__dot {
  border-color: var(--red);
  background: var(--red);
  animation: none;
}

.hub-loader__item.is-done .hub-loader__dot::after {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 0.06rem;
  width: 0.24rem;
  height: 0.44rem;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

@keyframes hub-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hub-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hub-call-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(52, 211, 153, 0.45),
      0 10px 28px rgba(16, 185, 129, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 0 0 12px rgba(52, 211, 153, 0),
      0 14px 32px rgba(16, 185, 129, 0.45);
  }
}

.hub-outcome {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0f3d2e;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1rem 2rem;
  padding-top: calc(1.15rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  animation: hub-fade 0.4s ease both;
}

.hub-outcome[hidden] {
  display: none !important;
}

.hub-outcome__panel {
  max-width: 26rem;
  margin: 0 auto;
  background: #f7f4ef;
  border-radius: 22px;
  padding: 1.6rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.hub-outcome__badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #d8f3e7;
  color: #0f5c45;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-outcome__title {
  margin: 0 0 0.35rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.4rem, 10vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  text-align: center;
}

.hub-outcome__sub {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0f5c45;
}

.hub-outcome__lead {
  margin: 0 auto 1.25rem;
  max-width: 20rem;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: #4b5563;
}

.hub-outcome__lead strong {
  color: #0f5c45;
  font-weight: 700;
}

.hub-outcome__call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
  text-align: center;
  text-decoration: none;
  background: #34d399;
  color: #06261c;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 1.2rem 1.25rem;
  border-radius: 999px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin: 0 0 0.95rem;
  animation: hub-call-glow 2.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.hub-outcome__call:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
}

@media (hover: hover) {
  .hub-outcome__call:hover {
    background: #2dd4a0;
  }
}

.hub-outcome__call:active {
  background: #10b981;
  animation: none;
  transform: scale(0.98);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hub-outcome__call,
  .hub-quiz,
  .hub-loader,
  .hub-outcome {
    animation: none;
  }

  .hub-quiz.is-in {
    opacity: 1;
    transform: none;
  }

  .hub-outcome__call {
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
  }
}

.hub-outcome__urgency {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
}

.hub-outcome__ref-id {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.hub-outcome__ref-id strong {
  color: #374151;
  font-weight: 700;
}

.hub-outcome__next {
  border-top: 1px solid #e5e0d8;
  padding-top: 1.15rem;
  text-align: left;
}

.hub-outcome__next-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  text-align: center;
}

.hub-outcome__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hub-outcome__step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

.hub-outcome__step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0f5c45;
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.hub-outcome__step strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.15rem;
}

.hub-outcome__step div span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6b7280;
}

.hub-outcome__fine {
  margin: 1.15rem 0 0;
  font-size: 0.65rem;
  line-height: 1.45;
  color: #9ca3af;
  text-align: center;
}

.hub-outcome__fine a {
  color: #0f5c45;
  font-weight: 600;
}

.hub-foot {
  width: 100%;
  padding: 1.5rem 1.15rem 1.75rem;
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--foot);
  color: rgba(255, 255, 255, 0.72);
}

.hub-foot__inner {
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
}

.hub-foot__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hub-foot__phone {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.hub-foot__phone a {
  color: #fca5a5;
  font-weight: 600;
  text-decoration: none;
}

.hub-foot__legal {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.hub-foot__legal a {
  color: #fca5a5;
  font-weight: 600;
}

.hub-foot__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.hub-foot__nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
}

.hub-foot__meta {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}

/* Legal pages */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-main {
  display: flex;
  gap: 1rem;
}

.nav-main a {
  font-size: 0.9rem;
  color: var(--red-deep);
  text-decoration: none;
  font-weight: 600;
}

.legal-page {
  padding: 1.75rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--red-deep);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--foot);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin: 0;
}

body:not(.hub) {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}
