/* ============================================================
   MedCounter — shared styles for content & policy pages
   Elevated system: Spectral serif display + Inter body,
   teal #0E7C66 brand on warm cream. Matches index.html.
   ============================================================ */
:root {
  --brand: #0e7c66;
  --brand-deep: #0a5a4b;
  --brand-darker: #073f35;
  --brand-soft: #e6f4f0;
  --brand-softer: #f3faf7;
  --amber: #e9a417;
  --amber-soft: #fbf0d4;
  --ink: #0f1a17;
  --ink-soft: #46524d;
  --ink-faint: #8a948f;
  --bg: #fdfcf8;
  --bg-warm: #f7f3ea;
  --surface: #ffffff;
  --line: #e7e2d6;
  --line-soft: #efece4;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 26, 23, 0.05), 0 1px 1px rgba(15, 26, 23, 0.03);
  --shadow-md: 0 10px 28px -10px rgba(15, 26, 23, 0.12), 0 3px 8px -4px rgba(15, 26, 23, 0.06);
  --shadow-lg: 0 30px 60px -22px rgba(10, 90, 75, 0.22), 0 12px 28px -14px rgba(15, 26, 23, 0.14);
  --radius: 18px;
  --maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand-soft); color: var(--brand-darker); }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .container { padding: 0 20px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(253, 252, 248, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; color: var(--ink);
  font-size: 19px; letter-spacing: -0.02em; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500;
  padding: 8px 13px; border-radius: 9px;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.nav-links a:hover { background: rgba(14,124,102,0.07); color: var(--ink); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  padding: 9px 17px !important; border-radius: 10px !important;
  box-shadow: var(--shadow-sm); transition: background 0.14s ease;
}
.nav-cta:hover { background: var(--brand-deep); text-decoration: none; }
.nav-login { font-weight: 600 !important; color: var(--brand-deep) !important; }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }
/* On phones only Log in + Get a pilot remain — shrink them so they fit on one row
   without wrapping (the !important matches the base rules' use of it). Below 360px even
   those don't fit beside the wordmark, so drop Log in (still reachable in the footer). */
@media (max-width: 480px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 29px; height: 29px; flex: 0 0 29px; }
  .nav-login { padding: 8px 9px !important; font-size: 14px; }
  .nav-cta { padding: 8px 13px !important; font-size: 13.5px; }
  .nav-cta svg { width: 13px; height: 13px; }
}
@media (max-width: 359px) {
  .nav-login { display: none !important; }
  .brand { font-size: 17px; }
  .nav-cta { padding: 9px 15px !important; font-size: 14px; }
}

/* ---------- Page hero ---------- */
main { padding-bottom: 0; }
.page-hero { padding: 56px 0 8px; }
@media (max-width: 560px) { .page-hero { padding: 40px 0 4px; } }
.prose { max-width: 760px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .prose { padding: 0 20px; } }
.eyebrow {
  display: inline-flex; align-items: center; white-space: nowrap; gap: 9px;
  font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--brand); opacity: 0.55; }
h1 {
  font-family: var(--serif); font-size: 46px; font-weight: 600;
  letter-spacing: -0.018em; line-height: 1.08; margin: 0 0 14px; color: var(--ink);
}
@media (max-width: 560px) { h1 { font-size: 34px; } }
.updated {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; margin: 0 0 8px;
}
.updated::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Prose content ---------- */
.content { padding: 32px 0 88px; }
.content h2 {
  font-family: var(--serif); font-size: 25px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2; margin: 40px 0 12px; color: var(--ink);
}
.content h3 {
  font-size: 16px; font-weight: 700; letter-spacing: -0.005em;
  margin: 26px 0 8px; color: var(--brand-deep);
}
.content p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16.5px; }
.content p strong, .content li strong { color: var(--ink); font-weight: 600; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin: 0 0 8px; font-size: 16.5px; color: var(--ink-soft); }
.content a { color: var(--brand-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(10,90,75,0.35); }
.content a:hover { text-decoration-color: var(--brand-deep); }
.content .lead { font-size: 18.5px; color: var(--ink); margin-bottom: 22px; }
.content code {
  background: var(--brand-softer); color: var(--brand-deep);
  padding: 1px 6px; border-radius: 5px; font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Callout card for important notes */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--brand-softer); border: 1px solid var(--brand-soft);
  border-radius: 14px; padding: 18px 20px; margin: 0 0 22px;
}
.callout svg { width: 20px; height: 20px; flex: none; stroke: var(--brand-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.callout p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.callout p strong { color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px 28px; margin: 0 0 24px; box-shadow: var(--shadow-sm);
}
.contact-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.contact-row:last-child { border-bottom: 0; }
.contact-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; }
.contact-ico svg { width: 20px; height: 20px; stroke: var(--brand-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-row .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 3px; }
.contact-row .value { font-size: 16.5px; font-weight: 600; margin: 0; color: var(--ink); }
.contact-row .value a { color: var(--brand-deep); text-decoration: none; }
.contact-row .value a:hover { text-decoration: underline; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Pricing page ---------- */
.trial-hero {
  position: relative; overflow: hidden;
  background: var(--brand-deep);
  background-image:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.14), transparent 45%),
    radial-gradient(90% 90% at 0% 100%, rgba(233,164,23,0.20), transparent 50%);
  border-radius: 22px; padding: 44px 40px; margin: 4px 0 40px;
  color: #fff; text-align: center; box-shadow: var(--shadow-lg);
}
.trial-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 60%);
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 60%);
  pointer-events: none;
}
.trial-hero-badge {
  position: relative; display: inline-block;
  background: rgba(255,255,255,0.16); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 999px; padding: 6px 16px; margin: 0 0 16px;
}
.trial-hero-title { position: relative; font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; color: #fff; }
.trial-hero-sub { position: relative; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 540px; margin: 0 auto 24px; }
.trial-hero-cta {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-deep);
  font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 14px 30px; border-radius: 12px; transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.trial-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(0,0,0,0.4); text-decoration: none; }
.trial-hero-note { position: relative; font-size: 13px; color: rgba(255,255,255,0.72); margin: 14px 0 0; }
@media (max-width: 560px) { .trial-hero { padding: 34px 24px; } .trial-hero-title { font-size: 27px; } }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.plan-name { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-deep); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.plan-price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 2px; color: var(--ink); }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.plan-note { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.plan-note s { color: var(--ink-faint); }
.save-badge { display: inline-block; background: var(--amber-soft); color: #8a5a00; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; border-radius: 999px; padding: 3px 10px; }
.plan-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  text-decoration: none; padding: 12px 22px; border-radius: 11px;
  transition: background 0.15s ease; box-shadow: var(--shadow-sm);
}
.plan-cta:hover { background: var(--brand-deep); text-decoration: none; }
.plan-cta-note { font-size: 12.5px; color: var(--ink-faint); margin: 10px 0 0; }

.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink-soft); margin: 0; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%230a5a4b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/></svg>");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--brand-darker); color: rgba(255,255,255,0.7); padding: 56px 0 32px; margin-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; text-decoration: none; }
.footer-brand:hover { text-decoration: none; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-blurb { font-size: 14.5px; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,0.62); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); font-weight: 700; margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.78); font-size: 14.5px; font-weight: 500; padding: 5px 0; transition: color 0.14s ease; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 26px; font-size: 13px; }
.footer-bottom .legal { color: rgba(255,255,255,0.55); }
.social-links { display: inline-flex; align-items: center; gap: 10px; }
.social-links a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,0.08); transition: background 0.15s ease; }
.social-links a:hover { background: rgba(255,255,255,0.18); }
.social-links svg { width: 17px; height: 17px; fill: #fff; opacity: 0.9; }
