/* =============================================
   Digital Music Tutors – Shared Stylesheet
   ============================================= */

/* Fonts are loaded via <link rel="stylesheet"> in each page's <head> (with preconnect)
   for faster, non-render-blocking delivery — replaces the old CSS @import. */

/* === Reset & Variables === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #234038;   /* forest green (brand ink) */
  --charcoal:#2D2D3A;
  --mid:     #6B7280;
  --light:   #F5F4F0;   /* warm stone */
  --border:  #E6E4DD;   /* warm line */
  --white:   #ffffff;
  --accent:      #C2A45E;  /* antique gold (brand accent) */
  --accent-soft: #D4BC82;  /* lighter gold for dark backgrounds */
  --serif:   'Playfair Display', Georgia, serif;  /* display headings */
  --sans:    'Lora', Georgia, serif;               /* body / UI text (serif throughout) */
  --max:     1040px;
  --radius-sm: 10px;   /* buttons, inputs, small controls, inner tiles */
  --radius:    12px;   /* cards & panels */
  --radius-lg: 16px;   /* feature cards */
  --shadow-sm: 0 6px 20px rgba(20,20,32,0.12);
  --shadow-md: 0 16px 40px rgba(20,20,32,0.10);
  --shadow-lg: 0 20px 60px rgba(20,20,32,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  font-weight:400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--black);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1.1em; color: var(--mid); }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 14px;
}

/* === Layout === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section--alt { background: var(--light); }
.section--dark { background: var(--black); color: var(--white); }

/* === Nav === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--black);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--charcoal); transform: translateY(-2px); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-cta { margin: 8px 24px 12px; border-radius: var(--radius-sm); }
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--black);
}
.btn-light:hover { background: var(--light); transform: translateY(-2px); }

/* === Hero === */
.hero {
  padding: 110px 0 90px;
  text-align: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead {
  font-size: 18px;
  color: var(--mid);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight:400;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Stats === */
.stats-row {
  display: flex;
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  margin-top: 56px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.05em;
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--black);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.3s;
}
.card:hover .card-icon { background: var(--black); color: white; }
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }

/* === Section header === */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; max-width: 560px; }
.section-header.center p { margin: 0 auto; }

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
}
.price-card.featured {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}
.price-duration {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.price-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.price-amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--black);
  margin: 16px 0 4px;
}
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--mid); font-family: var(--sans); }
.price-desc { font-size: 14px; color: var(--mid); margin-bottom: 24px; line-height: 1.6; }
.price-features { list-style: none; margin: 0 0 28px; }
.price-features li {
  font-size: 14px;
  color: var(--mid);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--light);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 6.5 11.5 13 5'/%3E%3C/svg%3E");
}

/* === FAQ === */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}
.faq-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-icon svg { width: 12px; height: 12px; stroke: var(--black); fill: none; stroke-width: 2.5; stroke-linecap: round; transition: transform 0.3s; }
.faq-item.open .faq-icon { background: var(--black); }
.faq-item.open .faq-icon svg { stroke: white; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 24px; font-size: 15px; line-height: 1.8; color: var(--mid); max-width: 700px; }

/* === Blog === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 0;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--black); }
.blog-date { font-size: 11px; color: var(--mid); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 14px; flex: 1; }
.blog-link { font-size: 13px; font-weight: 600; color: var(--black); border-bottom: 1px solid var(--border); padding-bottom: 1px; margin-top: 16px; display: inline-block; transition: border-color 0.2s; }
.blog-link:hover { border-color: var(--black); }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.blog-meta .blog-date { margin-bottom: 0; }
.blog-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.blog-cat--guides { background: rgba(35,64,56,0.10); color: #234038; }
.blog-cat--tips { background: rgba(194,164,94,0.20); color: #7c6329; }
.blog-cat--tech { background: rgba(45,45,58,0.08); color: #2D2D3A; }
.rx-hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }
@media (max-width: 960px) { .rx-hero-photo { aspect-ratio: 16 / 10; } }

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 18px; }
.contact-info p { margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--mid);
}
.contact-detail svg { width: 18px; height: 18px; stroke: var(--black); fill: none; stroke-width: 2; flex-shrink: 0; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--black); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); padding: 20px; color: #166534; font-size: 15px; }

/* === Footer === */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 60px 0 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
/* Larger tap targets for footer links on mobile (accessibility) */
@media (max-width: 768px) {
  .footer-col ul li { margin-bottom: 2px; }
  .footer-col ul a { display: inline-block; padding: 9px 0; }
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Article/Blog post === */
.post-hero { padding: 80px 0 60px; }
.post-meta { font-size: 13px; color: var(--mid); margin-bottom: 20px; }
.post-body { max-width: 700px; }
.post-body h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.post-body h3 { margin: 28px 0 12px; }
.post-body p { font-size: 16px; color: var(--mid); margin-bottom: 18px; line-height: 1.8; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { font-size: 16px; color: var(--mid); margin-bottom: 8px; line-height: 1.7; }
.post-body strong { color: var(--black); font-weight: 600; }
.post-body a { color: var(--black); border-bottom: 1px solid var(--border); transition: border-color 0.2s; }
.post-body a:hover { border-color: var(--black); }
.post-body blockquote { margin: 24px 0; padding: 18px 24px; border-left: 3px solid var(--accent); background: var(--light); border-radius: 0 8px 8px 0; }
.post-body blockquote p { margin-bottom: 0; color: var(--charcoal); }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.post-body thead th { color: var(--black); font-weight: 600; border-bottom: 2px solid var(--border); }
.post-body td:first-child, .post-body th:first-child { color: var(--black); font-weight: 600; }
.post-body tbody td { color: var(--mid); }

/* === Page Hero (inner pages) === */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero .label { margin-bottom: 14px; }

/* === About === */
.founder-card {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
  margin-top: 60px;
}
.founder-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.founder-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.founder-role { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.founder-divider { width: 36px; height: 1px; background: rgba(255,255,255,0.2); margin-bottom: 28px; }
.founder-bio { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.founder-creds { display: flex; flex-direction: column; gap: 14px; }
.cred-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.cred-label { font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 5px; }
.cred-value { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* === Responsive === */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .founder-card { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .stats-row { gap: 28px; }
}

/* === Enhancements ============================================= */

/* Anchor links / in-page targets clear the sticky nav */
:target { scroll-margin-top: 84px; }
[id] { scroll-margin-top: 84px; }

/* Keyboard focus: visible ring for accessibility (mouse clicks unaffected) */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--dark :focus-visible,
footer :focus-visible { outline-color: var(--white); }

/* Contact form: touched-and-invalid fields + submit feedback */
.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid { border-color: #dc2626; }
.btn.is-sending { opacity: 0.65; cursor: default; }

/* Scroll-reveal — gated on `reveal-init` (set pre-paint by the head script),
   so elements only hide when JS + motion are both available. */
html.reveal-init .section-header,
html.reveal-init .stats-row,
html.reveal-init .card,
html.reveal-init .price-card,
html.reveal-init .blog-card,
html.reveal-init .tool-card,
html.reveal-init .cs-card,
html.reveal-init .founder-card,
html.reveal-init .faq-item,
html.reveal-init .contact-grid,
html.reveal-init .post-body {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
html.reveal-init .is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Sticky mobile call-to-action bar */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(20,20,32,0.12);
  }
  body.has-mobile-cta { padding-bottom: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   Redesign — editorial direction (steel-blue accent, 2026)
   Scoped under .rx-* so existing pages are untouched.
   ============================================================ */
.rx-wide { max-width: 1140px; margin: 0 auto; padding: 0 56px; }
.rx-section { padding: 84px 0; }

.rx-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.rx-eyebrow.inline { display: inline-flex; align-items: center; gap: 11px; }
.rx-eyebrow.inline::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.rx-eyebrow.soft { color: var(--accent-soft); }

/* Hero location pill */
.rx-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--light); border: 1px solid var(--border); color: var(--black); font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 8px 16px 8px 13px; border-radius: 999px; margin-top: 26px; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.rx-pill:hover { border-color: var(--accent); background: var(--white); transform: translateY(-1px); }
.rx-pill svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-pill .arrow { color: var(--accent); transition: transform 0.2s; }
.rx-pill:hover .arrow { transform: translateX(3px); }

.btn-accent { background: var(--accent); color: #234038; }
.btn-accent:hover { background: #a8863f; transform: translateY(-2px); }
.rx-link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--accent); transition: gap 0.2s; }
.rx-link:hover { gap: 13px; }

/* Equalizer mark */
.rx-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.rx-mark span { width: 5px; border-radius: 1px; background: var(--black); display: block; }
.rx-mark span:nth-child(1) { height: 100%; }
.rx-mark span:nth-child(2) { height: 60%; }
.rx-mark span:nth-child(3) { height: 100%; background: var(--accent); }
.rx-mark span:nth-child(4) { height: 60%; }

/* Branded monogram panel (stands in for a photo) */
.rx-monogram {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border); background: var(--light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px; padding: 40px;
}
.rx-monogram.ratio-45 { aspect-ratio: 4 / 5; }
.rx-monogram.ratio-34 { aspect-ratio: 3 / 4; }
.rx-monogram::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(20,20,32,0.022) 16px 17px);
}
.rx-monogram .rx-mark { height: 46px; }
.rx-monogram-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--black); }
.rx-monogram-sub { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); }

/* Hero */
.rx-hero { padding: 72px 0 0; }
.rx-hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 64px; align-items: center; }
.rx-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.015em; color: var(--black); margin-bottom: 24px; }
.rx-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.rx-hero .lead { font-size: 18px; line-height: 1.7; color: var(--mid); max-width: 470px; margin-bottom: 34px; }
.rx-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rx-hero-media { position: relative; }
.rx-float-card { position: absolute; left: -24px; bottom: 36px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; box-shadow: 0 18px 40px -18px rgba(20,20,32,0.4); max-width: 236px; }
.rx-float-card .lbl { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 7px; }
.rx-float-card .ttl { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--black); }
.rx-float-card .sub { font-size: 13px; color: var(--mid); margin-top: 6px; }

/* Stat band */
.rx-statband { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 64px; }
.rx-statband > div { padding: 28px 22px; border-right: 1px solid var(--border); }
.rx-statband > div:last-child { border-right: none; }
.rx-statband .num { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1; color: var(--black); }
.rx-statband .lbl { font-size: 13.5px; color: var(--mid); margin-top: 9px; }

/* Approach */
.rx-approach-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.rx-approach-head h2 { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--black); }
.rx-approach-head p { font-size: 18px; line-height: 1.7; color: var(--mid); max-width: 520px; }
.rx-fourgrid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); }
.rx-fourgrid > div { padding: 32px 26px 36px; border-right: 1px solid var(--border); }
.rx-fourgrid > div:last-child { border-right: none; }
.rx-num { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--accent); margin-bottom: 30px; }
.rx-fourgrid h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--black); margin-bottom: 11px; }
.rx-fourgrid p { font-size: 14.5px; line-height: 1.6; color: var(--mid); }

/* Tutor */
.rx-tutor { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rx-tutor-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; padding: 84px 0; }
.rx-tutor h2 { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1; color: var(--black); margin-bottom: 22px; }
.rx-tutor p { font-size: 16px; line-height: 1.75; color: var(--mid); margin-bottom: 16px; }
.rx-credgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin: 30px 0; }
.rx-credgrid > div { background: var(--light); padding: 18px 20px; }
.rx-credgrid .lbl { font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 7px; }
.rx-credgrid .val { font-family: var(--serif); font-size: 15px; line-height: 1.4; color: var(--black); }

/* Pricing */
.rx-pricegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin-top: 48px; }
.rx-price { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 36px 30px; }
.rx-price .dur { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.rx-price h3 { font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--black); margin-bottom: 14px; }
.rx-price .amt { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.rx-price .amt b { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--black); }
.rx-price .amt span { font-size: 14px; color: var(--mid); }
.rx-price > p { font-size: 14.5px; line-height: 1.6; color: var(--mid); margin-bottom: 26px; min-height: 42px; }
.rx-price.featured { background: var(--black); border-color: var(--black); position: relative; box-shadow: 0 24px 50px -22px rgba(20,20,32,0.5); }
.rx-price.featured h3, .rx-price.featured .amt b { color: #fff; }
.rx-price.featured .dur { color: rgba(255,255,255,0.55); }
.rx-price.featured .amt span, .rx-price.featured > p { color: rgba(255,255,255,0.6); }
.rx-badge { position: absolute; top: -11px; left: 30px; background: var(--accent); color: #234038; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* Dark section (practice) */
.rx-dark { background: var(--black); color: #EDEAE2; }
.rx-dark-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: end; margin-bottom: 44px; }
.rx-dark h2 { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.12; color: #fff; }
.rx-dark .intro { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.6); max-width: 500px; }
.rx-dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rx-dark-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 30px 28px; }
.rx-dark-card .num { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--accent-soft); margin-bottom: 26px; }
.rx-dark-card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: #fff; margin-bottom: 10px; }
.rx-dark-card p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.6); }

/* Blog cards */
.rx-blog-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; gap: 24px; }
.rx-blog-head h2 { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--black); }
.rx-bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rx-blogcard img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 18px; display: block; }
.rx-blogcard .date { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); font-weight: 600; margin-bottom: 10px; }
.rx-blogcard h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--black); margin-bottom: 10px; transition: color 0.2s; }
.rx-blogcard:hover h3 { color: var(--accent); }
.rx-blogcard p { font-size: 14.5px; line-height: 1.6; color: var(--mid); }

/* Final CTA card */
.rx-cta { background: var(--black); color: var(--white); border-radius: 12px; padding: 76px 40px; text-align: center; }
.rx-cta h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 50px); line-height: 1.05; color: #fff; margin-bottom: 18px; }
.rx-cta p { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 34px; }

/* Reveal targets for the redesign blocks */
html.reveal-init .rx-hero-grid,
html.reveal-init .rx-statband,
html.reveal-init .rx-approach-head,
html.reveal-init .rx-fourgrid,
html.reveal-init .rx-tutor-grid,
html.reveal-init .rx-pricegrid,
html.reveal-init .rx-dark-grid,
html.reveal-init .rx-bloggrid,
html.reveal-init .rx-cta {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 960px) {
  .rx-wide { padding: 0 24px; }
  .rx-section { padding: 60px 0; }
  .rx-hero { padding: 48px 0 0; }
  .rx-hero-grid, .rx-tutor-grid, .rx-approach-head, .rx-dark-head { grid-template-columns: 1fr; gap: 36px; }
  .rx-tutor-grid { padding: 60px 0; }
  .rx-fourgrid, .rx-dark-grid, .rx-bloggrid { grid-template-columns: 1fr 1fr; }
  .rx-fourgrid > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .rx-fourgrid > div:nth-child(even) { border-right: none; }
  .rx-fourgrid > div:nth-child(1), .rx-fourgrid > div:nth-child(2) { border-bottom: 1px solid var(--border); }
  .rx-pricegrid { grid-template-columns: 1fr; }
  .rx-float-card { position: static; margin-top: 16px; max-width: none; left: auto; bottom: auto; }
  .rx-hero-media .rx-monogram.ratio-45 { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .rx-statband { grid-template-columns: 1fr 1fr; }
  .rx-statband > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .rx-statband > div:nth-child(2) { border-right: none; }
  .rx-statband > div:nth-child(1), .rx-statband > div:nth-child(2) { border-bottom: 1px solid var(--border); }
  .rx-statband > div:nth-child(4) { border-right: none; }
  .rx-fourgrid, .rx-dark-grid, .rx-bloggrid { grid-template-columns: 1fr; }
  .rx-fourgrid > div { border-right: none !important; border-bottom: 1px solid var(--border); }
  .rx-fourgrid > div:last-child { border-bottom: none; }
  .rx-cta { padding: 56px 26px; }
  .rx-statband .num { font-size: 34px; }
}

/* === Nav logo mark === */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-mark-img { height: 30px; width: auto; display: block; }
.nav-logo-full { height: 30px; width: auto; display: block; }
.nav-login a, a.nav-login { color: var(--black) !important; font-weight: 600; }
a.nav-login:hover { color: #12241d !important; }
.nav-mark { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.nav-mark span { width: 4px; border-radius: 1px; background: var(--black); display: block; }
.nav-mark span:nth-child(1) { height: 18px; }
.nav-mark span:nth-child(2) { height: 11px; }
.nav-mark span:nth-child(3) { height: 18px; background: var(--accent); }
.nav-mark span:nth-child(4) { height: 11px; }

/* === Inner-page hero upgrade (applies to existing .page-hero) === */
.page-hero .label { color: var(--accent); }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.01em; }
.page-hero h1 em { color: var(--accent); font-weight: 500; }
.rx-hero-actions.start { justify-content: flex-start; margin-top: 30px; }

/* === Inner-page components === */
.rx-center { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.rx-center .rx-eyebrow { display: inline-block; }
.rx-center h2 { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--black); margin-bottom: 14px; }
.rx-center p { font-size: 17px; line-height: 1.6; color: var(--mid); }

.rx-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rx-feature-grid > div { background: var(--white); padding: 34px 30px; }
.rx-feature-grid h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--black); margin-bottom: 11px; }
.rx-feature-grid p { font-size: 14.5px; line-height: 1.6; color: var(--mid); }

.rx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.rx-steps .step-num { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 18px; }
.rx-steps h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--black); margin-bottom: 10px; }
.rx-steps p { font-size: 14.5px; line-height: 1.6; color: var(--mid); }

.rx-ctaband { background: var(--black); color: #fff; text-align: center; }
.rx-ctaband .inner { max-width: 1140px; margin: 0 auto; padding: 84px 56px; }
.rx-ctaband h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); color: #fff; margin-bottom: 16px; }
.rx-ctaband p { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 30px; }

html.reveal-init .rx-feature-grid,
html.reveal-init .rx-steps,
html.reveal-init .rx-center {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 960px) {
  .rx-feature-grid { grid-template-columns: 1fr 1fr; }
  .rx-steps { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .rx-ctaband .inner { padding: 60px 24px; }
}
@media (max-width: 560px) {
  .rx-feature-grid { grid-template-columns: 1fr; }
  .rx-steps { grid-template-columns: 1fr; }
}

/* === About: hero stat row + dark founder card === */
.rx-statrow { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 44px; }
.rx-statrow .num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--black); line-height: 1; }
.rx-statrow .lbl { font-size: 13px; color: var(--mid); margin-top: 8px; }

.rx-founder { background: var(--black); border-radius: 14px; padding: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.rx-founder-tag { display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.18); padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }
.rx-founder-name { font-family: var(--serif); font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.rx-founder-role { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 8px; }
.rx-founder-bio { font-size: 15.5px; line-height: 1.8; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.rx-darkcreds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.rx-darkcred { border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 16px 18px; }
.rx-darkcred .lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 6px; }
.rx-darkcred .val { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.45; }

.rx-monogram.dark { background: #2C5045; border-color: rgba(255,255,255,0.12); }
.rx-monogram.dark::after { background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.04) 16px 17px); }
.rx-monogram.dark .rx-monogram-name { color: #fff; }
.rx-monogram.dark .rx-monogram-sub { color: rgba(255,255,255,0.4); }
.rx-monogram.dark .rx-mark span { background: rgba(255,255,255,0.85); }
.rx-monogram.dark .rx-mark span:nth-child(3) { background: var(--accent-soft); }

/* === Separate bordered cards (3-up) === */
.rx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rx-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.rx-card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--black); margin-bottom: 11px; }
.rx-card p { font-size: 14.5px; line-height: 1.6; color: var(--mid); }

/* === Pricing: feature lists, band, step list === */
.rx-feat { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; padding-top: 19px; border-top: 1px solid var(--border); }
.rx-feat > div { display: flex; gap: 10px; font-size: 14px; color: var(--charcoal); }
.rx-feat > div span { color: var(--accent); }
.rx-price.featured .rx-feat { border-top-color: rgba(255,255,255,0.12); }
.rx-price.featured .rx-feat > div { color: rgba(255,255,255,0.8); }
.rx-price.featured .rx-feat > div span { color: var(--accent-soft); }

.rx-band { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.rx-band .inner { max-width: 700px; margin: 0 auto; padding: 72px 56px; }
.rx-band h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; color: var(--black); margin-bottom: 16px; }
.rx-band p { font-size: 17px; line-height: 1.65; color: var(--mid); margin-bottom: 32px; }

.rx-steplist { display: flex; flex-direction: column; }
.rx-steplist > div { display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.rx-steplist > div:last-child { border-bottom: none; }
.rx-steplist .n { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--accent); min-width: 44px; line-height: 1; }
.rx-steplist h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--black); margin-bottom: 7px; }
.rx-steplist p { font-size: 15px; line-height: 1.65; color: var(--mid); }

/* === Practice: 2-up tool grid === */
.rx-toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rx-tool { border: 1px solid var(--border); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; background: var(--white); transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; }
.rx-tool:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--black); }
.rx-tool .meta { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.rx-tool h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--black); margin-bottom: 12px; }
.rx-tool p { font-size: 15px; line-height: 1.65; color: var(--mid); margin-bottom: 26px; flex: 1; }

/* === Contact: form card === */
.rx-formcard { border: 1px solid var(--border); border-radius: 12px; padding: 40px; }

/* === Testimonials carousel === */
.rx-carousel { position: relative; max-width: 720px; margin: 0 auto; outline: none; }
.rx-carousel-viewport { overflow: hidden; }
.rx-carousel-track { display: flex; transition: transform 0.5s ease; }
.rx-slide { flex: 0 0 100%; min-width: 100%; display: flex; }
.rx-quote { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 40px 30px; display: flex; flex-direction: column; width: 100%; }
.rx-quote .qmark { font-family: var(--serif); font-size: 50px; line-height: 0.5; color: var(--accent); margin-bottom: 22px; }
.rx-quote blockquote { margin: 0; flex: 1; }
.rx-quote blockquote p { font-size: 15px; line-height: 1.8; color: var(--charcoal); margin-bottom: 14px; }
.rx-quote blockquote p:last-child { margin-bottom: 0; }
.rx-quote figcaption { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.rx-quote cite { font-style: normal; font-size: 13px; color: var(--mid); }
.rx-quote cite b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 2px; }

.rx-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--black); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, box-shadow 0.2s; z-index: 2; }
.rx-carousel-btn:hover { border-color: var(--black); box-shadow: var(--shadow-sm); }
.rx-carousel-btn.prev { left: -22px; }
.rx-carousel-btn.next { right: -22px; }
.rx-carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.rx-carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.rx-carousel-dots button[aria-selected="true"] { background: var(--accent); width: 24px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .rx-carousel-track { transition: none; } }
@media (max-width: 620px) {
  .rx-carousel-btn.prev { left: 6px; }
  .rx-carousel-btn.next { right: 6px; }
  .rx-quote { padding: 32px 22px 26px; }
}

/* === FAQ: open toggle uses accent === */
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); }

html.reveal-init .rx-founder,
html.reveal-init .rx-cards,
html.reveal-init .rx-steplist,
html.reveal-init .rx-toolgrid,
html.reveal-init .rx-carousel {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 960px) {
  .rx-founder { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .rx-cards { grid-template-columns: 1fr; }
  .rx-toolgrid { grid-template-columns: 1fr; }
  .rx-band .inner { padding: 56px 24px; }
  .rx-chester-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}
@media (max-width: 560px) {
  .rx-darkcreds { grid-template-columns: 1fr; }
  .rx-statrow { gap: 32px; }
}
