/* RetainMore — shared design system.
   Warm paper base with a deep teal accent, DM Serif Display / Inter / JetBrains Mono.
   Replaces an earlier dark + neon-green identity: that combination reads as developer-tool
   or fintech-dashboard, which works against trust with a non-technical clinic-owner audience,
   and it's a recognisable AI-generated-design cluster in its own right. Single-theme by
   choice, matching how the previous identity was also deliberately single-theme. */

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

:root {
  --ink: #F6F2E9;
  --ink-2: #FCFAF4;
  --ink-3: #FFFFFF;
  --rule: #E4DDC9;
  --muted: #9C927A;
  --mid: #6B6350;
  --pale: #4F4936;
  --off-white: #2B2618;
  --white: #171409;
  --signal: #0E5C4C;
  --signal-dim: rgba(14, 92, 76, 0.10);
  --signal-border: rgba(14, 92, 76, 0.32);
  --amber: #B5772A;
  --amber-dim: rgba(181, 119, 42, 0.12);
  --red: #B33B35;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--signal-dim); color: var(--off-white); }

/* ---- NAV ----
   No JS mobile menu — at narrow widths the bar wraps onto a second row instead of
   hiding links behind a toggle with no toggle wired up to open it. */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 16px 48px;
  background: rgba(246, 242, 233, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo { font-family: var(--font-display); font-size: 22px; color: var(--white); letter-spacing: -0.3px; text-decoration: none; }
.nav-logo span { color: var(--signal); }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; order: 3; flex-basis: 100%; justify-content: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--pale); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--off-white); }
.nav-cta {
  font-size: 13px; font-weight: 500; color: var(--ink); background: var(--signal);
  padding: 10px 22px; border-radius: 6px; text-decoration: none; letter-spacing: 0.01em;
  transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

@media (min-width: 640px) {
  .nav-links { order: 0; flex-basis: auto; gap: 36px; }
}
@media (max-width: 480px) {
  nav.site-nav { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

/* ---- generic layout ---- */
.section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-narrow { padding: 100px 48px; max-width: 820px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--signal);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px;
}
.section h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); line-height: 1.1;
  letter-spacing: -0.8px; color: var(--white); margin-bottom: 24px; text-wrap: balance;
}
.section-intro { font-size: 17px; color: var(--pale); max-width: 560px; line-height: 1.7; margin-bottom: 64px; }

@media (max-width: 900px) {
  .section, .section-narrow { padding: 72px 24px; }
}

/* ---- page hero (non-home pages) ---- */
.page-hero { padding: 160px 48px 80px; max-width: 1200px; margin: 0 auto; }
.page-hero .section-label { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5.5vw, 64px); line-height: 1.08;
  letter-spacing: -1.2px; color: var(--white); max-width: 780px; margin-bottom: 24px; text-wrap: balance;
}
.page-hero p { font-size: 18px; color: var(--pale); max-width: 560px; line-height: 1.7; }
@media (max-width: 900px) { .page-hero { padding: 130px 24px 60px; } }

/* ---- buttons ---- */
.btn-primary {
  font-size: 15px; font-weight: 500; color: var(--ink); background: var(--signal);
  padding: 16px 32px; border-radius: 8px; text-decoration: none; display: inline-block;
  transition: opacity 0.2s, transform 0.15s; border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  font-size: 15px; font-weight: 400; color: var(--pale); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--off-white); }
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ---- footer ---- */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 48px 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--rule); margin-bottom: 32px;
}
.footer-logo { font-family: var(--font-display); font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--signal); }
.footer-tagline { font-size: 14px; color: var(--mid); max-width: 320px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 16px; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--pale); text-decoration: none; margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--pale); }

/* ---- ticker ---- */
.ticker-wrap { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--ink-2); overflow: hidden; padding: 16px 0; }
.ticker { display: flex; gap: 0; animation: ticker 32s linear infinite; white-space: nowrap; width: max-content; }
.ticker-item { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 48px; display: flex; align-items: center; gap: 16px; }
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* ---- cards ---- */
.card-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; } }
.card { background: var(--ink-2); padding: 40px; position: relative; }
.card h3 { font-size: 17px; font-weight: 600; color: var(--off-white); margin-bottom: 10px; letter-spacing: -0.2px; }
.card p { font-size: 14px; color: var(--mid); line-height: 1.6; }
.card-icon { font-size: 24px; margin-bottom: 16px; display: block; }

/* ---- stat blocks ---- */
.stats { padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--ink); padding: 52px 48px; }
.stat-number { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 60px); color: var(--white); line-height: 1; margin-bottom: 12px; letter-spacing: -1.5px; }
.stat-number span { color: var(--signal); }
.stat-label { font-size: 14px; color: var(--mid); line-height: 1.5; max-width: 220px; }
.stat-source { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 10px; }
.stat-source a { color: var(--muted); }

/* ---- pill / badge ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; background: var(--signal); color: var(--ink); font-weight: 500; }
.pill.outline { background: transparent; border: 1px solid var(--signal-border); color: var(--signal); }

/* ---- FAQ / accordion ---- */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--off-white);
  font-family: var(--font-body); font-size: 17px; font-weight: 500; padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--signal); font-size: 20px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 26px; font-size: 15px; color: var(--pale); line-height: 1.7; max-width: 680px; }
.faq-q::-webkit-details-marker { display: none; }

/* ---- pricing tiers (shared between home preview + pricing page) ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 12px; padding: 40px 36px; position: relative; transition: border-color 0.25s; }
.tier:hover { border-color: var(--signal-border); }
.tier.featured { border-color: var(--signal-border); background: linear-gradient(135deg, var(--ink-2) 0%, rgba(14,92,76,0.05) 100%); }
.tier-badge { position: absolute; top: -12px; left: 36px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--ink); background: var(--signal); padding: 4px 12px; border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
.tier-name { font-family: var(--font-mono); font-size: 11px; color: var(--mid); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.tier-flagship { font-size: 13px; color: var(--signal); margin-bottom: 16px; }
.tier-price { font-family: var(--font-display); font-size: 42px; color: var(--white); letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.tier-price-sub { font-size: 13px; color: var(--mid); margin-bottom: 28px; }
.tier-divider { height: 1px; background: var(--rule); margin-bottom: 28px; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.tier-features li { font-size: 13px; color: var(--pale); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.tier-features li::before { content: '→'; color: var(--signal); flex-shrink: 0; font-size: 12px; margin-top: 1px; }
.tier-cta { display: block; text-align: center; padding: 13px; border-radius: 7px; font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.tier-cta.solid { background: var(--signal); color: var(--ink); }
.tier-cta.solid:hover { opacity: 0.88; }
.tier-cta.outline { border: 1px solid var(--rule); color: var(--pale); }
.tier-cta.outline:hover { border-color: var(--signal-border); color: var(--signal); }
.tier-note { font-size: 13px; color: var(--muted); margin-top: 24px; max-width: 640px; }

/* ---- workflow step cards ---- */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
@media (max-width: 900px) { .workflow { grid-template-columns: 1fr; gap: 16px; } }
.workflow-step { padding: 36px; background: var(--ink-3); border: 1px solid var(--rule); border-radius: 10px; transition: border-color 0.2s; }
.workflow-step:hover { border-color: var(--signal-border); }
.step-tag { font-family: var(--font-mono); font-size: 10px; color: var(--signal); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; display: block; }
.workflow-step h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 12px; letter-spacing: -0.2px; }
.workflow-step p { font-size: 13px; color: var(--mid); line-height: 1.65; }
.step-tag.amber { color: var(--amber); }

/* ---- comparison table ---- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13.5px; background: var(--ink-2); }
table.compare th, table.compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
table.compare thead th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); background: var(--ink-3); white-space: nowrap; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.yes { color: var(--signal); }
table.compare td.no { color: var(--muted); }
table.compare td.gap { color: var(--amber); font-weight: 500; }

/* ---- CTA band ---- */
.cta-band { padding: 100px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(14,92,76,0.05) 0%, transparent 65%); pointer-events: none; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -1px; color: var(--white); max-width: 700px; margin: 0 auto 20px; line-height: 1.1; position: relative; }
.cta-band p { font-size: 16px; color: var(--pale); max-width: 440px; margin: 0 auto 40px; line-height: 1.6; position: relative; }
.cta-note { margin-top: 20px; font-size: 13px; color: var(--muted); position: relative; }

/* ---- generic content blocks (about page etc) ---- */
.prose { max-width: 680px; }
.prose p { font-size: 16px; color: var(--pale); line-height: 1.8; margin-bottom: 22px; }
.prose h3 { font-family: var(--font-display); font-size: 24px; color: var(--white); margin: 40px 0 16px; letter-spacing: -0.3px; }
.prose strong { color: var(--off-white); font-weight: 600; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.byline-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--signal-dim); border: 1px solid var(--signal-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--signal); font-size: 18px; flex-shrink: 0; }
.byline-name { font-size: 14px; font-weight: 600; color: var(--off-white); }
.byline-role { font-size: 12px; color: var(--mid); }
