/* AfterCare Messages — landing: white base, color bands, skimmable visuals */

:root {
  --white: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.35);
  --coral: #ea580c;
  --coral-soft: #fff7ed;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --amber-band: #fffbeb;
  --mint-band: #ecfdf5;
  --slate-dark: #1e293b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: rgba(15, 23, 42, 0.08);
  --shadow-colored: rgba(13, 148, 136, 0.25);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Subtle texture on white (lighter than before) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* Header — white bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(120deg, var(--slate-dark) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  line-height: 1.3;
  max-width: 22rem;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-primary a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
  padding: 0 0.15rem;
}

.nav-primary a:not(.btn):hover {
  color: var(--teal-dark);
}

/* Nav CTA: must stay white on teal (override any link color) */
.nav-primary a.btn.btn-primary.btn-nav-cta {
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 16px var(--shadow-colored);
}

.nav-primary a.btn.btn-primary.btn-nav-cta:hover {
  color: #ffffff !important;
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.nav-primary a.btn.btn-primary.btn-nav-cta:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-block {
  width: 100%;
}

.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--shadow-colored);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--mint-band);
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(90deg, var(--coral), #fb923c);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-copy h1 .accent-text {
  color: var(--teal-dark);
  font-style: italic;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.lede-short {
  max-width: 38ch;
}

.scan-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.scan-line li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--mint-band);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero-note a {
  font-weight: 600;
}

/* Hero visual cluster */
.hero-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--slate-dark) 0%, #0f766e 48%, var(--violet) 100%);
  opacity: 0.95;
  box-shadow: 0 24px 48px rgba(30, 41, 59, 0.25);
}

.hero-stat {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.hero-stat--big {
  top: 12%;
  left: 8%;
  transform: rotate(-4deg);
}

.hero-stat--small {
  bottom: 14%;
  right: 6%;
  transform: rotate(3deg);
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}

.hero-visual-email {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--white) 40%, transparent);
  max-width: 90%;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-ico {
  flex-shrink: 0;
  color: var(--coral-soft);
}

@media (max-width: 900px) {
  .hero-visual {
    min-height: 240px;
    order: -1;
  }

  .hero-stat--big {
    left: 4%;
  }

  .hero-stat--small {
    right: 4%;
  }
}

/* Section rhythm */
section {
  position: relative;
  z-index: 1;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}

.band-tight {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.band-mint {
  background: var(--mint-band);
  border-block: 1px solid color-mix(in srgb, var(--teal) 15%, var(--line));
}

.band-lavender {
  background: var(--violet-soft);
  border-block: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line));
}

.band-amber {
  background: var(--amber-band);
  border-block: 1px solid color-mix(in srgb, #f59e0b 18%, var(--line));
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.section-deck {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Pain cards */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

.pain-card--visual {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 28px var(--shadow);
  border-left: 4px solid var(--coral);
}

.pain-card:nth-child(2).pain-card--visual {
  border-left-color: var(--violet);
}

.pain-card:nth-child(3).pain-card--visual {
  border-left-color: var(--teal);
}

.pain-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.pain-card:nth-child(2) .pain-ico {
  background: var(--violet-soft);
  color: var(--violet);
}

.pain-card:nth-child(3) .pain-ico {
  background: var(--mint-band);
  color: var(--teal-dark);
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.pain-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Outcome tiles */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .outcome-grid {
    grid-template-columns: 1fr;
  }
}

.outcome-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outcome-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--shadow);
}

.outcome-tile:nth-child(1) {
  border-top: 3px solid var(--teal);
}

.outcome-tile:nth-child(2) {
  border-top: 3px solid var(--violet);
}

.outcome-tile:nth-child(3) {
  border-top: 3px solid var(--coral);
}

.outcome-tile:nth-child(4) {
  border-top: 3px solid #0ea5e9;
}

.outcome-tile-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.outcome-tile-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.outcome-tile-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Steps */
.steps--visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .steps--visual {
    grid-template-columns: 1fr;
  }
}

.steps--visual .step-card {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line));
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow);
}

.step-big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.steps--visual .step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.steps--visual .step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Pricing cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 2px solid var(--line);
  position: relative;
}

.price-card--featured {
  border-color: var(--teal);
  box-shadow: 0 16px 40px var(--shadow-colored);
  transform: scale(1.02);
}

.price-card-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--coral), #fb923c);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.price-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.price-card-for {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.price-card-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.price-dollar {
  font-size: 1.25rem;
  vertical-align: super;
}

.price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.price-card-yearly {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--violet);
}

.price-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card-features li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.price-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.pricing-note {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.table-wrap--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.table-wrap--sr table {
  caption-side: top;
}

/* FAQ accordion */
.faq-accordion {
  max-width: 640px;
  margin: 0 auto;
}

.faq-details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
}

.faq-details summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-details summary::-webkit-details-marker {
  display: none;
}

.faq-details summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
}

.faq-details[open] summary::after {
  content: "−";
}

.faq-details p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

/* CTA */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
  background: linear-gradient(135deg, var(--slate-dark) 0%, #0f766e 55%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: min(1120px, 92vw);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cta-lead {
  margin: 0 auto 1.35rem;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--white) 88%, transparent);
  font-weight: 500;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-band .btn-primary:hover {
  background: var(--coral-soft);
  color: var(--coral);
  filter: none;
}

.cta-sub {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--white) 78%, transparent);
}

.cta-sub a {
  color: var(--white);
  font-weight: 600;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  background: var(--white);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  color: var(--ink);
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: right;
}

.footer-meta a {
  color: var(--teal-dark);
}

.footer-email {
  margin: 0 0 0.35rem;
}

.footer-copy {
  margin: 0;
}

@media (max-width: 600px) {
  .footer-meta {
    text-align: left;
  }

  .price-card--featured {
    transform: none;
  }
}

/* Mobile nav + sticky CTA */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
    max-width: none;
  }

  .nav-primary {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.2rem 0 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav-primary a {
    flex: 0 0 auto;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-primary .btn-nav-cta {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.65rem min(4vw, 1.25rem) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 36px var(--shadow);
  }

  .mobile-sticky-cta .btn-primary {
    color: #ffffff;
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}
