:root {
  color-scheme: dark;
  --night: var(--guidasha-night);
  --lowest: var(--guidasha-dark-surface-container-lowest);
  --surface: var(--guidasha-dark-surface);
  --container: var(--guidasha-dark-surface-container);
  --high: var(--guidasha-dark-surface-container-high);
  --text: var(--guidasha-soft-white);
  --secondary: var(--guidasha-text-secondary-dark);
  --muted: var(--guidasha-dark-muted-text);
  --divider: var(--guidasha-dark-divider);
  --periwinkle: var(--guidasha-periwinkle);
  --lavender: var(--guidasha-lavender);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--lowest); }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 16px/1.62 "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--lavender); outline-offset: 4px; }
p, h1, h2, h3 { margin-top: 0; }
p { color: var(--secondary); }

.shell { width: min(var(--max), calc(100vw - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--periwinkle);
  color: var(--guidasha-dark-on-primary);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 2; padding-top: 24px; }
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 13px 18px;
  border: 1px solid rgba(169, 180, 236, .16);
  border-radius: 999px;
  background: rgba(37, 46, 66, .72);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--secondary); font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .footer-links a:hover { color: var(--periwinkle); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-action {
  justify-self: end;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--periwinkle);
  color: var(--guidasha-dark-on-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.hero { min-height: 690px; padding-top: 125px; padding-bottom: 130px; }
.eyebrow, .section-index {
  margin-bottom: 22px;
  color: var(--periwinkle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, .option-card h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: -.03em; }
h1 { max-width: 940px; margin-bottom: 36px; font-size: clamp(4.1rem, 7.7vw, 7.25rem); line-height: .96; }
.method-page h1 { max-width: 100%; }
h1 em { color: var(--periwinkle); font-style: normal; }
.hero-lead { max-width: 770px; margin-bottom: 22px; color: var(--text); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.5; }
.hero-detail { max-width: 730px; font-size: 17px; }
.hero-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--periwinkle);
  color: var(--guidasha-dark-on-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--guidasha-dark-primary-hover); }
.quiet-link { color: var(--periwinkle); font-size: 13px; font-weight: 700; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding: 115px 0; background: var(--surface); }
.section-dark { background: var(--lowest); }
.editorial-grid { display: grid; grid-template-columns: minmax(170px, .38fr) minmax(0, 1fr); gap: 70px; }
.editorial-copy { max-width: 760px; }
h2 { margin-bottom: 30px; font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.02; }
.editorial-copy p { max-width: 720px; margin-bottom: 22px; font-size: 17px; line-height: 1.72; }
.editorial-copy .large-copy { color: var(--text); font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.5; }
.section-heading { max-width: 840px; margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 24px; }
.section-heading > p:last-child { max-width: 720px; margin-bottom: 0; font-size: 17px; }

.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card, .option-card { padding: 30px; border: 1px solid rgba(169, 180, 236, .1); border-radius: 20px; background: var(--container); }
.step-card { min-height: 255px; }
.step-card > span, .option-card > span { display: block; margin-bottom: 53px; color: var(--periwinkle); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.step-card h3 { margin-bottom: 12px; font-size: 19px; }
.step-card p, .option-card p { margin-bottom: 0; font-size: 15px; line-height: 1.65; }
.framework-note { max-width: 830px; margin: 42px 0 0; padding-top: 22px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 14px; line-height: 1.7; }
.framework-note a { color: var(--periwinkle); text-underline-offset: 3px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.option-card { min-height: 320px; }
.option-card h3 { max-width: 440px; margin-bottom: 20px; font-size: clamp(2.1rem, 3vw, 3rem); line-height: 1.05; }
.option-card p { max-width: 500px; }

.research-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.research-grid > div:last-child { max-width: 600px; }
.research-grid p { font-size: 17px; line-height: 1.72; }
.research-grid p a { color: var(--periwinkle); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-note { display: grid; gap: 7px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--divider); }
.source-note span { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.source-note a { color: var(--periwinkle); font-size: 13px; text-decoration: none; }
.source-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.care-note { margin-top: 36px; padding: 18px 0 0; border-top: 1px solid var(--divider); color: var(--muted); font-size: 13px !important; }

.next-section { background: var(--night); }
.next-panel { padding: clamp(32px, 5vw, 65px); border-radius: 24px; background: var(--container); }
.next-panel h2 { max-width: 850px; }
.next-panel > p:not(.section-index) { max-width: 690px; font-size: 17px; }
.next-panel .button { margin-top: 20px; }

.technique-note { max-width: 840px; }

.professional-hero { min-height: 610px; }
.professional-intro { max-width: 760px; }
.application-section { background: var(--lowest); }
.application-layout {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
}
.application-copy { position: sticky; top: 32px; }
.application-copy h2 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
.application-copy p { max-width: 500px; }
.application-divider {
  max-width: 500px;
  margin: 30px 0 22px;
  border: 0;
  border-top: 1px solid var(--divider);
}
.application-form {
  display: grid;
  gap: 9px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(169, 180, 236, .14);
  border-radius: 24px;
  background: var(--container);
}
.application-form label {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.application-form label span,
.field-help { color: var(--muted); font-weight: 400; }
.field-help {
  margin: 2px 0 4px;
  font-size: 11px;
  line-height: 1.55;
}
.application-form input,
.application-form textarea,
.application-form select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid rgba(169, 180, 236, .28);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.application-form input:hover,
.application-form textarea:hover,
.application-form select:hover { border-color: rgba(169, 180, 236, .45); }
.application-form textarea { min-height: 132px; resize: vertical; }
.application-form button {
  min-height: 52px;
  margin-top: 18px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--periwinkle);
  color: var(--guidasha-dark-on-primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.application-form button:hover:not(:disabled) { background: var(--guidasha-dark-primary-hover); transform: translateY(-1px); }
.application-form button:disabled { cursor: not-allowed; opacity: .56; }
.application-form small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.application-form small a { color: var(--periwinkle); text-underline-offset: 3px; }
.application-form .verification-note {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  color: var(--secondary);
  font-size: 13px;
}
.turnstile-wrap { min-height: 65px; margin-top: 16px; }
.form-status {
  min-height: 24px;
  margin: 9px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.55;
}
.form-status[data-state="success"] {
  position: relative;
  min-height: 0;
  margin-top: 16px;
  padding: 15px 18px 15px 50px;
  border: 1px solid rgba(143, 203, 170, .42);
  border-radius: 12px;
  background: rgba(143, 203, 170, .08);
  color: #d5eedf;
  font-size: 14px;
}
.form-status[data-state="success"]::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 17px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(143, 203, 170, .2);
  color: #8fcbaa;
  font-weight: 700;
  line-height: 1;
}
.form-status[data-state="success"]:focus { outline: 3px solid var(--lavender); outline-offset: 3px; }
.form-status[data-state="error"] { color: #f0b3b7; }
.application-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
}

.site-footer { padding: 42px 0; background: #141925; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a, .footer-inner > span { color: var(--muted); font-size: 12px; text-decoration: none; }

@media (max-width: 850px) {
  .hero { min-height: auto; padding-top: 105px; padding-bottom: 110px; }
  .editorial-grid, .research-grid { grid-template-columns: 1fr; gap: 25px; }
  .section { padding: 90px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 980px) {
  .site-nav { grid-template-columns: 1fr auto; row-gap: 9px; }
  .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid rgba(169, 180, 236, .12);
  }
  .nav-links a { white-space: nowrap; }
  .nav-action { grid-column: 2; grid-row: 1; }
  .application-layout { grid-template-columns: 1fr; gap: 34px; }
  .application-copy { position: static; }
}

@media (max-width: 640px) {
  .shell { width: calc(100vw - 28px); }
  .site-header { padding-top: 12px; }
  .site-nav { padding: 10px 13px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 5px 8px; font-size: 10px; }
  .nav-action { padding: 8px 11px; font-size: 11px; }
  .hero { padding-top: 85px; padding-bottom: 85px; }
  h1 { font-size: clamp(3.25rem, 13vw, 4.6rem); }
  h2 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .hero-lead { font-size: 1.22rem; }
  .hero-detail, .section-heading > p:last-child, .research-grid p { font-size: 16px; }
  .hero-links { align-items: flex-start; gap: 20px; flex-direction: column; }
  .section { padding: 76px 0; }
  .editorial-copy p { font-size: 16px; }
  .step-grid, .option-grid { grid-template-columns: 1fr; }
  .step-card, .option-card { min-height: auto; padding: 25px; }
  .step-card > span, .option-card > span { margin-bottom: 34px; }
  .next-panel { padding: 28px 22px; }
  .application-form { padding: 22px 18px; }
}

@media (max-width: 359px) {
  h1 { font-size: clamp(2.8rem, 13vw, 3.25rem); }
}

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