/* CallCatch marketing site — shared with index + legal/support pages */
:root {
  --brand-navy: #115293;
  --brand-teal: #269896;
  --bg-deep: #071a2d;
  --bg-mid: #0d2a42;
  --bg: #0a2038;
  --surface: rgba(17, 82, 147, 0.18);
  --surface-border: rgba(38, 152, 150, 0.22);
  --text: #e8f0f8;
  --text-muted: #8fb4cc;
  --accent: var(--brand-teal);
  --accent-dim: rgba(38, 152, 150, 0.12);
  --accent-glow: rgba(38, 152, 150, 0.08);
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(17, 82, 147, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, var(--accent-glow) 0%, transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg) 42%, var(--bg-mid) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 82, 147, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 82, 147, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(17, 82, 147, 0.25);
  background: rgba(7, 26, 45, 0.65);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* App sets mcr_logged_in on parent domain — swap guest CTAs for Dashboard (see js/nav-auth.js) */
.nav-auth-user {
  display: none;
}

body.logged-in .nav-auth-guest {
  display: none;
}

body.logged-in .nav-auth-user {
  display: inline-flex;
}

.cta-auth-user {
  display: none;
}

body.logged-in .cta-auth-guest {
  display: none;
}

body.logged-in .cta-auth-user {
  display: flex;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* ——— Landing (home) ——— */
body.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.home .wrap {
  text-align: center;
  max-width: 42rem;
  width: 100%;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-teal);
  background: var(--accent-dim);
  border: 1px solid rgba(38, 152, 150, 0.28);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.logo {
  margin: 0 auto 1.25rem;
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  max-width: min(100%, 210px);
  height: auto;
  margin-inline: auto;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.25rem;
}

.cta-row a,
.hiw-cta-row a {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-row a:hover,
.hiw-cta-row a:hover {
  transform: translateY(-1px);
}

.cta-primary {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #1e7a78 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(38, 152, 150, 0.35);
}

.cta-primary:hover {
  color: #fff;
  box-shadow: 0 6px 24px rgba(38, 152, 150, 0.45);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(38, 152, 150, 0.45);
}

.cta-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.demo {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 32px rgba(7, 26, 45, 0.35);
}

.demo p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.demo .phone {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.demo .phone a {
  color: var(--accent);
  text-decoration: none;
}

.demo .phone a:hover {
  text-decoration: underline;
}

.demo-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.demo-steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(38, 152, 150, 0.45);
}

.step-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.step-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.step-text a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.9;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(17, 82, 147, 0.25);
  text-align: left;
}

/* How it works */
.how-section {
  margin-top: 3.5rem;
  width: 100%;
  max-width: 52rem;
  text-align: left;
}

.how-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.how-section .how-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.how-diagram {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 32px rgba(7, 26, 45, 0.35);
}

.how-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

/* ——— Inner pages ——— */
.page-main {
  padding: 2rem 1.5rem 3rem;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

.page-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.page-main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-main p,
.page-main li {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.page-main ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.page-main a {
  color: var(--accent);
}

.page-main .lead {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.page-main .updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.phone-big {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 1rem 0;
}

.phone-big a {
  color: var(--accent);
  text-decoration: none;
}

.phone-big a:hover {
  text-decoration: underline;
}

.callout-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--surface-border);
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(17, 82, 147, 0.2);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(17, 82, 147, 0.2);
}

.site-footer-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

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

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

/* ——— How it Works page ——— */
.hiw-main {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 4rem;
}

.hiw-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.hiw-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(17, 82, 147, 0.2);
}

.hiw-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hiw-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.hiw-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
}

.hiw-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-inline: auto;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.75rem;
  max-width: 42rem;
  margin-inline: auto;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.benefit-check {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(38, 152, 150, 0.15);
  border: 1px solid rgba(38, 152, 150, 0.4);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.setup-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
  max-width: 42rem;
  margin-inline: auto;
}

.setup-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.setup-steps .step-text em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.hiw-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.hiw-contact {
  text-align: center;
}

.hiw-contact p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.hiw-contact p a {
  color: var(--accent);
  text-decoration: none;
}

.hiw-contact p a:hover {
  text-decoration: underline;
}
