/* ============================================================
   DOSIS — Account Hub, Practitioner, Partner page styles
   Loaded only on body.account-hub, body.practitioner, body.partner
   Complements the shared .legal-hero / .kicker / .lead system
   already defined in product.css
   ============================================================ */

/* ---------- Shared shell + hero CTAs ---------- */

body.account-hub .legal-hero,
body.practitioner .legal-hero,
body.partner .legal-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 148px 28px 32px;
}

/* Italic accent within the H1 — matches Cormorant italic style */
body.account-hub .legal-hero h1 em,
body.practitioner .legal-hero h1 em,
body.partner .legal-hero h1 em {
  font-style: italic;
  color: #2D4A3E;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

.acc-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------- Brand buttons (mirrors product page btn styles) ---------- */

.btn-brand {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
  border: 1px solid #1A2A22;
  background: #1A2A22;
  color: #F5F3EE;
}
.btn-brand:hover {
  background: #2D4A3E;
  border-color: #2D4A3E;
  color: #F5F3EE;
  transform: translateY(-1px);
}
.btn-brand-outline {
  background: transparent;
  color: #1A2A22;
  border-color: rgba(26, 42, 34, 0.4);
}
.btn-brand-outline:hover {
  background: #1A2A22;
  color: #F5F3EE;
  border-color: #1A2A22;
}

/* Reset native button chrome */
button.btn-brand { appearance: none; -webkit-appearance: none; font: inherit; box-shadow: none; text-shadow: none; }

/* ---------- Sign-in band ---------- */

.acc-signin-band {
  background: rgba(61, 122, 90, 0.05);
  border-top: 1px solid rgba(61, 122, 90, 0.14);
  border-bottom: 1px solid rgba(61, 122, 90, 0.14);
  padding: 26px 20px;
  text-align: center;
  font-family: 'Outfit', system-ui, sans-serif;
  color: #3A4940;
  font-size: 15px;
}
.acc-signin-band a {
  margin-left: 12px;
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #2D4A3E;
  text-decoration: none;
  border-bottom: 1px dashed #2D4A3E;
  padding-bottom: 2px;
}
.acc-signin-band a:hover { color: #1A2A22; border-bottom-color: #1A2A22; }

/* ---------- Shell + sections ---------- */

.acc-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 96px;
}
.acc-section {
  padding: 96px 0;
}
.acc-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  color: #1A2A22;
  margin: 0 0 20px;
  letter-spacing: 0;
}
.acc-section h2 em {
  font-style: italic;
  color: #2D4A3E;
}
.acc-section-center {
  text-align: center;
}
.acc-section .section-lead {
  max-width: 680px;
  color: #53645B;
  font-size: 17px;
  line-height: 1.72;
}
.acc-section-center .section-lead {
  margin: 20px auto 48px;
}

/* ---------- ACCOUNT HUB — 4 audience cards ---------- */

.acc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 980px) {
  .acc-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .acc-cards { grid-template-columns: 1fr; }
}

.acc-card {
  background: #FAF8F2;
  border: 1px solid #E8E1D0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
}
.acc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 122, 90, 0.3);
  box-shadow: 0 12px 30px -18px rgba(26, 42, 34, 0.2);
}
.acc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(61, 122, 90, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3D7A5A;
  margin-bottom: 6px;
}
.acc-card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.acc-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: #1A2A22;
  margin: 0;
  letter-spacing: 0;
}
.acc-card p {
  color: #53645B;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.acc-card-cta {
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #2D4A3E;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.acc-card-cta::after { content: '\2192'; }

/* Account hub help note */
.acc-help {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 22px 26px;
  background: rgba(61, 122, 90, 0.05);
  border: 1px dashed rgba(61, 122, 90, 0.3);
  border-radius: 12px;
  color: #3A4940;
  font-size: 14.5px;
  line-height: 1.65;
  text-align: center;
}
.acc-help a {
  color: #2D4A3E;
  text-decoration: underline;
  text-decoration-color: rgba(45, 74, 62, 0.35);
  text-underline-offset: 3px;
}

/* ---------- PRACTITIONER — two-track grid ---------- */

.acc-track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}
@media (max-width: 820px) { .acc-track-grid { grid-template-columns: 1fr; } }

.acc-track {
  background: #FAF8F2;
  border: 1px solid #E8E1D0;
  border-radius: 20px;
  padding: 48px 44px;
}
@media (max-width: 620px) { .acc-track { padding: 32px 24px; } }

.acc-track-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #3D7A5A;
  background: rgba(61, 122, 90, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.acc-track h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: #1A2A22;
  margin: 0 0 12px;
  line-height: 1.05;
}
.acc-track > p {
  color: #53645B;
  font-size: 15.5px;
  line-height: 1.72;
  margin-bottom: 28px;
}
.acc-track ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.acc-track ul li {
  padding: 12px 0 12px 26px;
  position: relative;
  border-bottom: 1px solid #ECE5D5;
  font-size: 15px;
  color: #3A4940;
}
.acc-track ul li:last-child { border-bottom: none; }
.acc-track ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3D7A5A;
  opacity: 0.65;
}

/* ---------- 3-up resource / partner-type cards ---------- */

.acc-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}
@media (max-width: 900px) { .acc-cards-3 { grid-template-columns: 1fr; } }

.acc-res-card {
  background: transparent;
  border: 1px solid #E8E1D0;
  border-radius: 16px;
  padding: 36px 28px;
}
.acc-res-num {
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  color: #3D7A5A;
  margin-bottom: 10px;
}
.acc-res-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: #1A2A22;
  margin: 0 0 12px;
}
.acc-res-card p {
  color: #53645B;
  font-size: 14.5px;
  line-height: 1.65;
}
.acc-res-cta {
  display: inline-block;
  margin-top: 18px;
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  color: #2D4A3E;
  text-decoration: none;
  border-bottom: 1px dashed #2D4A3E;
  text-transform: uppercase;
}

/* ---------- Six standards grid ---------- */

.acc-standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}
@media (max-width: 780px) { .acc-standards { grid-template-columns: 1fr; } }
.acc-standard {
  border-top: 1px solid #E8E1D0;
  padding-top: 24px;
}
.acc-standard h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #1A2A22;
  margin: 0 0 10px;
}
.acc-standard p {
  color: #53645B;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Referral panel ---------- */

.acc-referral {
  background: rgba(61, 122, 90, 0.05);
  border: 1px solid rgba(61, 122, 90, 0.2);
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  text-align: left;
}
@media (max-width: 820px) {
  .acc-referral { grid-template-columns: 1fr; padding: 36px 28px; }
}
.acc-referral h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #2D4A3E;
  margin: 0 0 12px;
}
.acc-referral-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: #3D7A5A;
  line-height: 1;
  margin: 20px 0 6px;
}
.acc-referral small {
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  color: #2D4A3E;
  text-transform: uppercase;
}
.acc-referral p {
  color: #3A4940;
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0 0;
}

/* ---------- Partner "terms we keep" ---------- */

.acc-terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}
@media (max-width: 820px) { .acc-terms-grid { grid-template-columns: 1fr; } }
.acc-term {
  padding: 24px 0;
  border-top: 1px solid #E8E1D0;
}
.acc-term h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #1A2A22;
  margin: 0 0 8px;
}
.acc-term p {
  color: #53645B;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Application form ---------- */

.acc-apply {
  background: #FAF8F2;
  border: 1px solid #E8E1D0;
  border-radius: 20px;
  padding: 56px 48px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 620px) { .acc-apply { padding: 36px 24px; } }
.acc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
@media (max-width: 620px) { .acc-form-grid { grid-template-columns: 1fr; } }
.acc-form-grid .form-row-wide { grid-column: 1 / -1; }
.acc-apply label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #3D7A5A;
  margin-bottom: 6px;
}
.acc-apply input,
.acc-apply select,
.acc-apply textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DDD4C4;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #1A2A22;
  box-sizing: border-box;
}
.acc-apply input:focus,
.acc-apply select:focus,
.acc-apply textarea:focus {
  outline: none;
  border-color: #3D7A5A;
  box-shadow: 0 0 0 3px rgba(61, 122, 90, 0.08);
}
.acc-apply textarea {
  min-height: 140px;
  resize: vertical;
}
.acc-submit-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.acc-submit-alt {
  font-family: 'DM Mono', monospace;
  font-size:12px;
  letter-spacing: 1.8px;
  color: #53645B;
  text-transform: uppercase;
}
.acc-submit-alt a {
  color: #2D4A3E;
  border-bottom: 1px dashed #2D4A3E;
  text-decoration: none;
}
.acc-fine {
  font-size: 12.5px;
  color: #53645B;
  margin-top: 20px;
  line-height: 1.55;
}
.acc-fine a {
  color: #2D4A3E;
  border-bottom: 1px dashed #2D4A3E;
  text-decoration: none;
}

/* ---------- Success / error notice at the top of the form ---------- */

.acc-notice {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 22px 28px;
  border-radius: 14px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.acc-notice-success {
  background: rgba(61, 122, 90, 0.08);
  border: 1px solid rgba(61, 122, 90, 0.22);
  color: #1A2A22;
}
.acc-notice-error {
  background: rgba(184, 95, 95, 0.08);
  border: 1px solid rgba(184, 95, 95, 0.28);
  color: #1A2A22;
}
.acc-notice a {
  color: #2D4A3E;
  border-bottom: 1px dashed #2D4A3E;
  text-decoration: none;
}

/* ============================================================
   v63.1 — Brand ambience layer for /account/, /practitioner/, /partner/
   ============================================================ */

/* ---------- HERO ORBS (matches .phero-orb pattern) ---------- */

.aap-hero {
  position: relative;
  overflow: hidden;
}

.aap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: aapOrbFade 1.8s ease-out .1s forwards, aapOrbFloat 22s infinite ease-in-out;
}

@keyframes aapOrbFade {
  to { opacity: 1; }
}
@keyframes aapOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -16px); }
}

/* Account hub — sage + peach + violet-lite (welcoming) */
body.account-hub .aap-orb-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(122,191,176,.32), transparent 70%);
  top: -140px; left: -120px;
}
body.account-hub .aap-orb-b {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(240,200,160,.24), transparent 70%);
  top: 30%; right: -120px;
  animation-delay: -7s, -4s;
}
body.account-hub .aap-orb-c {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(184,160,212,.18), transparent 70%);
  bottom: -160px; left: 30%;
  animation-delay: -12s, -8s;
}

/* Practitioner — sage + clinical warm (clean, credible) */
body.practitioner .aap-orb-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(122,191,176,.36), transparent 70%);
  top: -160px; left: -140px;
}
body.practitioner .aap-orb-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(180,200,180,.22), transparent 70%);
  bottom: -120px; right: 8%;
  animation-delay: -8s, -6s;
}
body.practitioner .aap-orb-c {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(240,200,160,.18), transparent 70%);
  top: 20%; right: -80px;
  animation-delay: -14s, -3s;
}

/* Partner — warm + sage + peach (curated, hospitable) */
body.partner .aap-orb-a {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,200,160,.28), transparent 70%);
  top: -140px; left: -100px;
}
body.partner .aap-orb-b {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(122,191,176,.28), transparent 70%);
  bottom: -140px; right: -100px;
  animation-delay: -9s, -5s;
}
body.partner .aap-orb-c {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(184,160,212,.16), transparent 70%);
  top: 40%; right: 20%;
  animation-delay: -15s, -7s;
}

/* Keep the H1/lead above the orbs */
.aap-hero > .reveal,
.aap-hero > .lh-bgimg {
  position: relative;
  z-index: 2;
}
.aap-hero > .lh-bgimg { z-index: 1; }

/* Reduced motion — freeze the float */
@media (prefers-reduced-motion: reduce) {
  .aap-orb { animation: none; opacity: 1; }
}

/* ---------- SECTION AMBIENCE — subtle repeating gradient depth ---------- */

body.account-hub .acc-shell,
body.practitioner .acc-shell,
body.partner .acc-shell {
  position: relative;
}
body.account-hub .acc-shell::before,
body.practitioner .acc-shell::before,
body.partner .acc-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 720px 380px at 15% 20%, rgba(122,191,176,.06), transparent 65%),
    radial-gradient(ellipse 640px 360px at 90% 65%, rgba(240,200,160,.05), transparent 65%),
    radial-gradient(ellipse 520px 320px at 20% 90%, rgba(184,160,212,.05), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.acc-shell > * {
  position: relative;
  z-index: 1;
}

/* ---------- ORNAMENTAL SECTION DIVIDER (between .acc-section blocks) ---------- */

.acc-section + .acc-section {
  position: relative;
}
.acc-section + .acc-section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,42,34,.16) 30%, rgba(61,122,90,.4) 50%, rgba(26,42,34,.16) 70%, transparent);
}
.acc-section + .acc-section::after {
  content: '';
  display: block;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border: 1px solid rgba(61,122,90,.55);
  border-radius: 50%;
  background: #F5F3EE;
  z-index: 1;
}

/* ---------- REFERRAL PANEL — layer a soft radial glow ---------- */

.acc-referral {
  position: relative;
  overflow: hidden;
}
.acc-referral::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(122,191,176,.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(240,200,160,.14), transparent 55%);
  pointer-events: none;
}
.acc-referral > * {
  position: relative;
  z-index: 1;
}

/* ---------- SIGN-IN BAND — very subtle horizontal gradient ---------- */

.acc-signin-band {
  background: linear-gradient(90deg,
    rgba(61,122,90,.04) 0%,
    rgba(61,122,90,.08) 50%,
    rgba(61,122,90,.04) 100%
  );
}

/* ---------- ACC-TRACK — subtle edge glow to differentiate the two lanes ---------- */

body.practitioner .acc-track:first-child {
  background: linear-gradient(135deg, #FAF8F2 0%, #F5F1E4 100%);
}
body.practitioner .acc-track:last-child {
  background: linear-gradient(135deg, #FAF8F2 0%, #F1EEE0 100%);
}

/* Hover: subtle sage border pulse */
.acc-track {
  transition: border-color .3s ease, box-shadow .3s ease;
}
.acc-track:hover {
  border-color: rgba(61,122,90,.35);
  box-shadow: 0 12px 40px -20px rgba(26,42,34,.16);
}

/* ---------- STANDARDS GRID — subtle vertical accent bar on hover ---------- */

.acc-standard {
  position: relative;
  transition: transform .22s ease;
}
.acc-standard::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 2px;
  background: #3D7A5A;
  transition: width .28s ease;
}
.acc-standard:hover::before {
  width: 40px;
}

/* ---------- RESOURCE CARDS — slight lift on hover ---------- */

.acc-res-card {
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.acc-res-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61,122,90,.3);
  background: rgba(122,191,176,.03);
}

/* ---------- FORM CARD — subtle inner top glow ---------- */

.acc-apply {
  position: relative;
  overflow: hidden;
}
.acc-apply::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61,122,90,.4), transparent);
}
.acc-apply > * { position: relative; }

/* ---------- OVERLAY: dark-corner vignette on the hero backdrop ---------- */

.aap-hero .lh-bgimg {
  opacity: .28;
}
.aap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(245,243,238,.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   v63.2 — Force .reveal visible on the new pages.
   The IntersectionObserver that toggles opacity via .in-view
   doesn't fire before paint on shortcode-rendered templates,
   so text stays at opacity:0 forever. Override it here.
   ============================================================ */

body.account-hub .reveal,
body.practitioner .reveal,
body.partner .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Preserve the initial fade-in for orbs only */
body.account-hub .aap-orb,
body.practitioner .aap-orb,
body.partner .aap-orb {
  opacity: 1 !important;
}
