:root {
  --bg: #f5f1eb;
  --bg-soft: #faf7f2;
  --surface: rgba(255, 253, 248, 0.86);
  --surface-strong: #fffdf8;
  --ink: #35372f;
  --muted: #77746b;
  --line: rgba(53, 55, 47, 0.14);
  --sage: #7c7f49;
  --sage-dark: #62653a;
  --sand: #d8d0c7;
  --clay: #e8bdc3;
  --danger: #915f59;
  --shadow: 0 28px 80px rgba(53, 55, 47, 0.12);
  --radius: 18px;
  --script: "Brush Script MT", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.public-app {
  min-height: 100vh;
}

.site-home {
  display: block;
  padding: clamp(16px, 3vw, 36px);
}

.intro-screen.site-home {
  display: block;
  padding: clamp(16px, 3vw, 36px);
}

.site-header,
.site-hero,
.site-section,
.site-footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.site-header {
  min-height: 62px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-header .brand-lockup strong,
.site-header .brand-lockup span,
.site-footer strong,
.site-footer span {
  display: block;
}

.site-header .brand-lockup span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5f5a51;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.site-hero {
  min-height: clamp(560px, 67vh, 680px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #eff0ed;
  isolation: isolate;
}

.site-hero .teacher-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  max-height: none;
}

.site-hero .teacher-photo::after {
  display: none;
}

.site-hero .teacher-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: right center;
}

.hero-content {
  width: min(570px, 52%);
  min-height: inherit;
  padding: clamp(34px, 6vw, 76px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(76px, 10vw, 126px);
  font-weight: 500;
  line-height: 0.82;
}

.hero-script {
  max-width: 550px;
  margin: 12px 0 22px;
  color: var(--sage-dark);
  font-family: var(--script);
  font-size: clamp(34px, 5vw, 57px);
  line-height: 0.98;
}

.hero-content .lead {
  max-width: 510px;
  color: #57534b;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.diagnostic-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-button.large {
  min-height: 56px;
  padding-inline: 24px;
  font-weight: 700;
}

.site-section {
  padding: clamp(70px, 9vw, 118px) 0;
}

.about-band {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section-heading-block .script-name {
  margin-top: 8px;
}

.about-copy p {
  color: #57534b;
  font-size: 18px;
  line-height: 1.7;
}

.about-copy p:first-child {
  color: var(--ink);
  font-weight: 650;
}

.approach-list {
  border-top: 1px solid var(--line);
}

.approach-list div {
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.approach-list strong {
  color: var(--sage-dark);
  font-size: 12px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(38px, 6vw, 66px);
}

.section-intro h2,
.diagnostics-band h2,
.final-cta h2 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
}

.section-intro > p:last-child,
.diagnostics-band > div > p:last-child,
.final-cta > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.formats-section {
  border-top: 1px solid var(--line);
}

.format-list {
  border-top: 1px solid var(--line);
}

.format-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 230px;
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}

.format-row.is-featured {
  border-color: rgba(69, 93, 73, 0.28);
  background: rgba(227, 235, 222, 0.48);
  box-shadow: 26px 0 0 rgba(227, 235, 222, 0.48), -26px 0 0 rgba(227, 235, 222, 0.48);
}

.format-number {
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 750;
}

.format-main h3 {
  margin: 4px 0 12px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.05;
}

.format-main > p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.format-aside {
  display: grid;
  gap: 7px;
}

.format-aside span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5b554c;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 12px;
}

.prices-section {
  border-top: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.price-card {
  min-width: 0;
  min-height: 470px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  color: #fff;
  border-color: transparent;
  background: var(--sage-dark);
}

.price-card-featured .eyebrow,
.price-card-featured li,
.price-card-featured .price-options span {
  color: rgba(255, 255, 255, 0.72);
}

.price-card h3 {
  margin: 5px 0 18px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.05;
}

.price-card ul {
  margin: 0 0 28px;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 9px;
  line-height: 1.45;
}

.price-options {
  margin-top: auto;
  border-top: 1px solid currentColor;
}

.price-options div {
  min-height: 68px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(98, 91, 78, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.price-card-featured .price-options div {
  border-color: rgba(255, 255, 255, 0.16);
}

.price-options span {
  color: var(--muted);
}

.price-options strong {
  text-align: right;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.05;
}

.price-card > a {
  width: 100%;
  margin-top: 22px;
}

.price-card-featured > a {
  color: var(--ink);
  background: #fffdf8;
}

.club-card {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 6vw, 80px);
}

.club-card .price-options,
.club-card > a {
  grid-column: 2;
}

.club-card ul {
  grid-column: 1;
  grid-row: 2 / span 2;
}

.price-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.diagnostics-band {
  padding-inline: clamp(26px, 6vw, 76px);
  border-radius: 8px;
  color: #fff;
  background: #25241f;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.diagnostics-band .eyebrow,
.diagnostics-band > div > p:last-child,
.diagnostics-band .legal-note {
  color: rgba(255, 255, 255, 0.62);
}

.diagnostics-band h2 {
  margin-bottom: 16px;
}

.diagnostics-band .primary-button {
  color: var(--ink);
  background: #fffdf8;
}

.diagnostics-band .ayurveda-link-button {
  margin-top: 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.legal-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
}

.final-cta {
  text-align: center;
  display: grid;
  justify-items: center;
}

.final-cta h2 {
  max-width: 900px;
}

.final-cta > a {
  margin-top: 18px;
}

.site-footer {
  min-height: 110px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
  margin-bottom: 4px;
}

.intro-screen,
.done-screen {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
  display: grid;
  align-content: space-between;
  gap: 36px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 760;
  background: linear-gradient(145deg, var(--sage), var(--sage-dark));
  box-shadow: 0 18px 34px rgba(69, 93, 73, 0.22);
}

.brand-row strong,
.brand-row span {
  display: block;
}

.brand-row span,
.eyebrow,
.item-date {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro-card {
  width: 100%;
  padding: clamp(24px, 6vw, 62px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.intro-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: stretch;
}

.teacher-photo {
  margin: 0;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
  position: relative;
}

.teacher-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(37, 36, 31, 0.16));
  pointer-events: none;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  display: block;
  object-fit: cover;
  object-position: center 15%;
}

.hero-title {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.hero-title span {
  display: block;
}

.hero-title em {
  display: block;
  color: var(--sage-dark);
  font-family: var(--script);
  font-size: clamp(34px, 5.4vw, 58px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.04;
  text-transform: lowercase;
  overflow-wrap: anywhere;
}

.about-teacher,
.work-flow,
.questionnaire-note {
  margin-top: 26px;
}

.about-teacher h2 {
  margin-bottom: 10px;
}

.script-name {
  color: var(--sage-dark);
  font-family: var(--script);
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 500;
  line-height: 0.95;
}

.about-teacher p,
.questionnaire-note p {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.flow-grid strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--sage-dark);
}

.flow-grid span {
  min-width: 0;
  color: #4f493f;
  line-height: 1.45;
}

.public-footer {
  display: flex;
  justify-content: flex-start;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.55;
}

.disclaimer,
.soft-warning,
.alert-panel {
  border: 1px solid rgba(156, 84, 72, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 242, 232, 0.76);
  color: #74473d;
  line-height: 1.5;
}

.disclaimer {
  max-width: 680px;
  margin: 28px 0;
  padding: 16px 18px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.admin-link {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  color: #fff;
  border-color: transparent;
  background: #25241f;
  box-shadow: 0 18px 34px rgba(37, 36, 31, 0.18);
}

.primary-button.large {
  min-height: 56px;
  padding-inline: 26px;
  font-weight: 700;
}

.ayurveda-link-button {
  min-height: 50px;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid rgba(69, 93, 73, 0.28);
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(238, 243, 233, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
}

.ayurveda-app {
  min-height: 100vh;
}

.ayurveda-welcome {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
  display: grid;
  align-content: space-between;
  gap: 36px;
}

.ayurveda-hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
}

.ayurveda-hero h1 {
  max-width: 720px;
}

.ayurveda-hero h1 em {
  display: block;
  color: var(--sage-dark);
  font-family: var(--script);
  font-size: 0.92em;
  font-weight: 500;
  font-style: normal;
  line-height: 1.08;
}

.ayurveda-start-card,
.result-card {
  min-width: 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ayurveda-start-card p {
  color: var(--muted);
  line-height: 1.6;
}

.leaf-seal {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #e4eadc;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.identity-fields {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.question-counter {
  min-width: 68px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-weight: 750;
}

.ayurveda-question-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ayurveda-choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.ayurveda-choice-group legend {
  width: 100%;
  margin-bottom: 24px;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 720;
  line-height: 1.2;
}

.ayurveda-options {
  display: grid;
  gap: 10px;
}

.ayurveda-option {
  display: block;
}

.ayurveda-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ayurveda-option span {
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #4f493f;
  line-height: 1.42;
}

.ayurveda-option span b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ece6da;
  display: grid;
  place-items: center;
  color: var(--sage-dark);
}

.ayurveda-option input:checked + span {
  border-color: rgba(69, 93, 73, 0.5);
  background: #f3f6ed;
  box-shadow: 0 0 0 3px rgba(113, 139, 116, 0.12);
}

.ayurveda-option input:checked + span b {
  color: #fff;
  background: var(--sage-dark);
}

.ayurveda-result {
  min-height: 100vh;
  padding: clamp(18px, 5vw, 56px);
  display: grid;
  place-items: center;
}

.result-card {
  width: min(760px, 100%);
}

.result-card h1 {
  color: var(--sage-dark);
}

.result-intro,
.result-note {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.result-note {
  margin: 28px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}

.dosha-chart {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.dosha-row div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dosha-row i,
.admin-dosha-grid i {
  height: 12px;
  border-radius: 999px;
  background: #e9e3d8;
  display: block;
  overflow: hidden;
}

.dosha-row b,
.admin-dosha-grid b {
  height: 100%;
  border-radius: inherit;
  display: block;
}

.vata { background: #7d92a5; }
.pitta { background: #bd8067; }
.kapha { background: #718b74; }

.filter-field {
  margin-bottom: 14px;
  display: grid;
  gap: 6px;
}

.filter-field span {
  color: var(--muted);
  font-size: 12px;
}

.filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
}

.mini-metrics .ayurveda-mini {
  color: var(--sage-dark);
  background: #e5ecdf;
}

.ayurveda-admin-card {
  margin-bottom: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.ayurveda-date {
  color: var(--muted);
  font-size: 12px;
}

.admin-dosha-grid {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-dosha-grid > div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-dosha-grid span,
.admin-dosha-grid strong {
  display: block;
}

.admin-dosha-grid strong {
  margin: 4px 0 9px;
  font-size: 21px;
}

.admin-dosha-grid i {
  height: 7px;
}

.ayurveda-answers summary {
  padding: 12px 0;
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 700;
}

.answer-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.answer-section h4 {
  margin: 0 0 12px;
}

.answer-section > div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.8fr);
  gap: 16px;
}

.answer-section span {
  color: var(--muted);
}

.answer-section strong {
  font-weight: 600;
}

.test-meta {
  margin: -10px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.ayurveda-question-card {
  min-height: 0;
}

.temporal-question {
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.temporal-question:first-child {
  padding-top: 0;
}

.temporal-question:last-child {
  border-bottom: 0;
}

.temporal-question legend {
  width: 100%;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
}

.temporal-question legend span {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  border-radius: 50%;
  color: var(--sage-dark);
  background: #e6ebdf;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  vertical-align: middle;
}

.temporal-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.temporal-options label {
  min-width: 0;
}

.temporal-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.temporal-options span {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #5d574d;
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
}

.temporal-options input:checked + span {
  color: #fff;
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  box-shadow: 0 7px 18px rgba(69, 93, 73, 0.18);
}

.result-card {
  width: min(980px, 100%);
}

.dual-result-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-part {
  min-width: 0;
  padding: 28px 28px 28px 0;
}

.result-part + .result-part {
  padding-right: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.result-part h2 {
  color: var(--sage-dark);
  font-size: clamp(30px, 4vw, 44px);
  overflow-wrap: anywhere;
}

.result-part > p:not(.eyebrow) {
  min-height: 154px;
  color: var(--muted);
  line-height: 1.65;
}

.result-part .dosha-chart {
  margin-top: 22px;
}

.balance-message {
  padding: 16px;
  border-radius: 14px;
  color: var(--sage-dark);
  background: #eef2e9;
  line-height: 1.5;
}

.result-recommendations {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.result-recommendations ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  line-height: 1.55;
}

.result-confidence {
  padding: 22px 0;
}

.result-confidence div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.result-confidence strong {
  color: var(--sage-dark);
  font-size: 24px;
}

.result-confidence p {
  margin: 6px 0 0;
  color: var(--muted);
}

.consultation-cta {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 18px;
  color: #fff;
  background: #455d49;
}

.consultation-cta h2 {
  max-width: 650px;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.1;
}

.consultation-cta p:not(.eyebrow) {
  max-width: 720px;
  line-height: 1.55;
  opacity: 0.82;
}

.consultation-cta .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.consultation-cta .primary-button {
  color: var(--ink);
  background: #fffdf8;
}

.save-status {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.save-status.is-synced {
  color: var(--sage-dark);
  background: #e7eee2;
}

.save-status.is-local {
  color: #765543;
  background: #f8eadf;
}

.admin-vikriti-title {
  margin: 4px 0 16px;
  color: var(--muted);
}

.metric-caption {
  margin: 14px 0 -8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-confidence {
  color: var(--muted);
  font-size: 13px;
}

.secondary-button,
.admin-link {
  color: var(--ink);
  background: var(--surface-strong);
}

.ghost-button {
  color: var(--muted);
  background: rgba(255, 253, 248, 0.52);
}

.ghost-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.danger-button {
  color: #fff;
  border-color: transparent;
  background: var(--danger);
}

.form-screen {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
}

.form-header,
.admin-header,
.detail-head,
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
  margin: 22px 0;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--clay));
  transition: width 220ms ease;
}

.question-card,
.client-detail,
.client-list-panel,
.content-section,
.trainer-notes,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.question-card {
  padding: clamp(18px, 4vw, 34px);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-stack {
  display: grid;
  gap: 18px;
}

.privacy-consent {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 189, 195, 0.28);
}

.privacy-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sage-dark);
}

.privacy-consent a,
.intake-consent a {
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}

.privacy-consent.has-error {
  border-color: var(--danger);
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.choice-group legend {
  color: #4a463d;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  outline: 0;
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 116px;
  padding: 13px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(69, 93, 73, 0.5);
  box-shadow: 0 0 0 4px rgba(113, 139, 116, 0.14);
}

.has-error input,
.has-error textarea {
  border-color: var(--danger);
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 10px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #585246;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.choice-pill input:checked + span {
  color: #fff;
  border-color: transparent;
  background: var(--sage-dark);
}

.yes-grid,
.range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 12px;
  align-items: center;
}

.range-row input {
  padding: 0;
  accent-color: var(--sage-dark);
}

.range-row output {
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0eadf;
  color: var(--sage-dark);
  font-weight: 760;
}

.soft-warning {
  margin-top: 18px;
  padding: 14px 16px;
}

.form-actions,
.done-actions,
.detail-actions,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions {
  justify-content: space-between;
  margin-top: 24px;
}

.done-card {
  justify-self: center;
  align-self: center;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.56);
  backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.admin-nav {
  display: grid;
}

.admin-nav a,
.admin-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.admin-nav a:hover,
.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.admin-main {
  min-width: 0;
  padding: clamp(18px, 4vw, 42px);
}

.summary-strip {
  display: flex;
  gap: 10px;
}

.summary-strip div {
  min-width: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.summary-strip strong,
.summary-strip span {
  display: block;
}

.summary-strip strong {
  font-size: 24px;
}

.summary-strip span {
  color: var(--muted);
  font-size: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.client-list-panel {
  padding: 18px;
  align-self: start;
}

.client-list {
  display: grid;
  gap: 10px;
}

.client-list-item {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.client-list-item strong {
  color: var(--ink);
  font-size: 18px;
}

.client-list-item.is-active {
  background: #fffdf8;
  border-color: rgba(69, 93, 73, 0.38);
  box-shadow: 0 16px 34px rgba(55, 49, 40, 0.1);
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.mini-metrics b,
.soft-tag {
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #efe9dc;
  color: #554d3f;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mini-metrics .danger {
  color: #fff;
  background: var(--danger);
}

.client-detail {
  padding: clamp(18px, 3vw, 28px);
  min-width: 0;
}

.detail-head {
  margin-bottom: 18px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.status-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.status-row button.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--sage-dark);
}

.alert-panel {
  padding: 16px;
  margin-bottom: 18px;
}

.alert-panel p {
  margin-bottom: 0;
}

.score-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.score-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.score-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.score-card span {
  color: var(--muted);
}

.score-card i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #ebe2d2;
  overflow: hidden;
  margin-top: 12px;
}

.score-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--clay));
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.content-section,
.trainer-notes {
  padding: 18px;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-tag {
  background: rgba(113, 139, 116, 0.16);
  color: var(--sage-dark);
  font-weight: 650;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.info-list div,
.text-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.info-list dt,
.text-row span {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
}

.text-row p {
  margin: 4px 0 0;
  line-height: 1.5;
}

.trainer-notes {
  margin-top: 6px;
  display: grid;
  gap: 12px;
}

.login-card {
  width: min(520px, 100%);
  padding: clamp(18px, 4vw, 30px);
  display: grid;
  gap: 14px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1060px) {
  .about-band {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .approach-list {
    grid-column: 1 / -1;
  }

  .format-row {
    grid-template-columns: 44px minmax(0, 1fr) 190px;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-nav {
    display: flex;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .intro-screen,
  .done-screen,
  .form-screen,
  .admin-main,
  .ayurveda-welcome,
  .ayurveda-result {
    padding: 16px;
  }

  .ayurveda-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ayurveda-start-card,
  .result-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .identity-fields,
  .admin-dosha-grid {
    grid-template-columns: 1fr;
  }

  .ayurveda-welcome {
    align-content: start;
    gap: 24px;
  }

  .ayurveda-welcome .brand-row {
    margin-bottom: 10px;
  }

  .ayurveda-test .form-header {
    flex-direction: row;
  }

  .ayurveda-test .form-header h1 {
    font-size: 34px;
  }

  .ayurveda-question-card {
    min-height: 0;
  }

  .ayurveda-choice-group legend {
    font-size: 23px;
  }

  .ayurveda-option span {
    min-height: 70px;
  }

  .answer-section > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .test-meta {
    display: grid;
    gap: 3px;
  }

  .temporal-question {
    padding: 20px 0;
  }

  .temporal-question legend {
    font-size: 16px;
  }

  .temporal-options {
    grid-template-columns: 1fr 1fr;
  }

  .temporal-options span {
    min-height: 48px;
    padding: 8px 7px;
    font-size: 12px;
  }

  .dual-result-grid {
    grid-template-columns: 1fr;
  }

  .result-part,
  .result-part + .result-part {
    padding: 24px 0;
    border-left: 0;
  }

  .result-part + .result-part {
    border-top: 1px solid var(--line);
  }

  .result-part > p:not(.eyebrow) {
    min-height: 0;
  }

  .consultation-cta .primary-button {
    width: 100%;
  }

  .intro-screen {
    gap: 18px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .teacher-photo {
    border-radius: 24px;
    max-height: 560px;
  }

  .teacher-photo img {
    min-height: 0;
    height: min(118vw, 540px);
    object-position: center 18%;
  }

  .intro-card,
  .question-card,
  .client-detail {
    border-radius: 24px;
  }

  .intro-card {
    padding: 22px 18px;
  }

  .hero-title {
    gap: 2px;
  }

  .hero-title em {
    font-size: clamp(30px, 12vw, 44px);
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .form-header,
  .admin-header,
  .detail-head,
  .admin-sidebar {
    flex-direction: column;
  }

  .field-grid,
  .yes-grid,
  .range-grid,
  .detail-grid,
  .score-panel {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    width: 100%;
    overflow-x: auto;
  }

  .detail-actions,
  .form-actions,
  .done-actions {
    width: 100%;
  }

  .detail-actions > *,
  .form-actions > *,
  .done-actions > * {
    flex: 1;
  }

  .choice-pill span {
    min-height: 40px;
  }

  .public-footer .admin-link {
    width: 100%;
  }

  .ayurveda-link-button,
  .ayurveda-start-card .primary-button {
    width: 100%;
  }

  .intro-screen.site-home {
    padding: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding-inline: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
    font-size: 12px;
  }

  .site-hero {
    min-height: 660px;
  }

  .site-hero .teacher-photo {
    max-height: none;
    border-radius: 0;
  }

  .site-hero .teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.44;
  }

  .hero-content {
    width: 100%;
    min-height: 660px;
    padding: 30px 22px;
    justify-content: flex-end;
  }

  .hero-content h1 {
    font-size: 86px;
  }

  .hero-script {
    max-width: 330px;
    font-size: 42px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
  }

  .hero-actions > * {
    width: 100%;
  }

  .site-section {
    padding-block: 72px;
  }

  .about-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-intro h2,
  .diagnostics-band h2,
  .final-cta h2 {
    font-size: 42px;
  }

  .format-row,
  .format-row.is-featured {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    box-shadow: none;
  }

  .format-row.is-featured {
    padding-inline: 14px;
  }

  .format-aside {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 0;
  }

  .club-card {
    grid-column: auto;
    display: flex;
  }

  .club-card .price-options,
  .club-card > a,
  .club-card ul {
    grid-column: auto;
    grid-row: auto;
  }

  .price-options div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .price-options strong {
    text-align: left;
  }

  .diagnostics-band {
    padding: 48px 22px;
    grid-template-columns: 1fr;
  }

  .diagnostic-actions {
    width: 100%;
    display: grid;
  }

  .diagnostic-actions > * {
    width: 100%;
  }

  .legal-note {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer .admin-link {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .admin-sidebar,
  .client-list-panel,
  .detail-actions,
  .status-row {
    display: none !important;
  }

  .admin-app,
  .admin-layout {
    display: block;
  }

  .admin-main {
    padding: 0;
  }

  .client-detail,
  .content-section,
  .trainer-notes,
  .score-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
