/* Kami inner-page design tokens */
.kami-inner-redesign {
  --kami-brand-orange: #f39314;
  --kami-brand-amber: #f4ad0f;
  --kami-brand-blue: #0ba4dc;
  --kami-blue-deep: #075985;
  --kami-ink: #172033;
  --kami-text: #334155;
  --kami-text-muted: #52606d;
  --kami-warm: #fff9f2;
  --kami-cool: #f0f9fd;
  --kami-surface: #ffffff;
  --kami-border: #dde5ea;
  --kami-border-blue: #c7e6f0;
  --kami-shadow-sm: 0 4px 14px rgba(23, 32, 51, 0.06);
  --kami-shadow-md: 0 12px 36px rgba(23, 32, 51, 0.09);
  --kami-shadow-lg: 0 24px 64px rgba(7, 89, 133, 0.14);
  width: 100%;
  margin-top: -15px;
  color: var(--kami-ink);
  background: #f7fafb;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

/* Kami inner-page box model */
.kami-inner-redesign,
.kami-inner-redesign *,
.kami-inner-redesign *::before,
.kami-inner-redesign *::after {
  box-sizing: border-box;
}

/* Kami inner-page base elements */
.kami-inner-redesign h1,
.kami-inner-redesign h2,
.kami-inner-redesign h3,
.kami-inner-redesign p {
  margin-top: 0;
}

.kami-inner-redesign h1,
.kami-inner-redesign h2,
.kami-inner-redesign h3 {
  color: var(--kami-ink);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.14;
}

.kami-inner-redesign a {
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.kami-inner-redesign img {
  display: block;
  max-width: 100%;
}

/* Kami inner-page shared layout */
.kami-shell {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
}

.kami-section {
  position: relative;
}

.kami-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  color: var(--kami-blue-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kami-eyebrow > span {
  width: 28px;
  height: 3px;
  background: var(--kami-brand-orange);
  border-radius: 99px;
}

/* Kami inner-page actions */
.kami-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kami-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.kami-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.kami-button-primary {
  color: var(--kami-ink);
  background: linear-gradient(135deg, var(--kami-brand-orange), var(--kami-brand-amber));
  box-shadow: 0 10px 26px rgba(243, 147, 20, 0.22);
}

.kami-button-primary:hover {
  color: var(--kami-ink);
  box-shadow: 0 14px 30px rgba(243, 147, 20, 0.3);
}

.kami-button-superdoc {
  color: #ffffff;
  background: #149c91;
  box-shadow: 0 10px 26px rgba(20, 156, 145, 0.2);
}

.kami-button-superdoc:hover {
  color: #ffffff;
  background: #0f8279;
  box-shadow: 0 14px 30px rgba(20, 156, 145, 0.28);
}

.kami-button-secondary {
  color: var(--kami-blue-deep);
  background: #ffffff;
  border-color: var(--kami-blue-deep);
}

.kami-button-secondary:hover {
  color: #ffffff;
  background: var(--kami-blue-deep);
}

/* Kami inner-page hero */
.kami-hero {
  position: relative;
  padding: 86px 0 92px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9f2 0%, #ffffff 48%, #f0f9fd 100%);
  border-bottom: 1px solid var(--kami-border);
}

.kami-hero::before,
.kami-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.kami-hero::before {
  top: -170px;
  right: -90px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(11, 164, 220, 0.15), rgba(11, 164, 220, 0));
}

.kami-hero::after {
  bottom: -210px;
  left: -140px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(243, 147, 20, 0.15), rgba(243, 147, 20, 0));
}

.kami-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.kami-hero-copy h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 68px);
}

.kami-hero-lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--kami-text-muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.7;
}

.kami-hero-card {
  position: relative;
  min-height: 300px;
  padding: 36px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #075985, #0a6f9f);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px 30px 86px 30px;
  box-shadow: var(--kami-shadow-lg);
}

.kami-hero-card::after {
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 210px;
  height: 210px;
  content: "";
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.kami-hero-card-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 46px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kami-hero-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
}

.kami-hero-card p {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

/* Kami inner-page CMS rich text */
.kami-rich-text {
  color: var(--kami-text);
  font-size: 17px;
  line-height: 1.78;
}

.kami-rich-text p {
  margin-bottom: 20px;
}

.kami-rich-text h2,
.kami-rich-text h3 {
  margin-top: 34px;
  margin-bottom: 18px;
}

.kami-rich-text h2 {
  font-size: clamp(25px, 2vw, 34px);
}

.kami-rich-text h3 {
  font-size: clamp(21px, 1.7vw, 28px);
}

.kami-rich-text ul,
.kami-rich-text ol {
  display: grid;
  margin: 20px 0 28px;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.kami-rich-text li {
  position: relative;
  padding-left: 30px;
}

.kami-rich-text li::before {
  position: absolute;
  top: 0.66em;
  left: 4px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--kami-brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(243, 147, 20, 0.12);
}

.kami-rich-text a {
  color: var(--kami-blue-deep);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kami-rich-text img {
  max-width: 100% !important;
  height: auto !important;
}

/* Kami disorders introduction */
.kami-disorders-intro-section {
  padding: 96px 0 86px;
  background: #ffffff;
}

.kami-disorders-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.7fr);
  align-items: start;
  gap: 62px;
}

.kami-disorders-intro-copy {
  max-width: 760px;
}

.kami-disorders-intro-copy > p:first-child {
  color: var(--kami-ink);
  font-size: 20px;
  font-weight: 600;
}

.kami-disorders-intro-copy h2 {
  padding-top: 18px;
}

.kami-guidance-card {
  position: sticky;
  top: 24px;
  padding: 32px;
  background: linear-gradient(145deg, #fff9f2, #ffffff);
  border: 1px solid #f6d9b3;
  border-radius: 26px;
  box-shadow: var(--kami-shadow-md);
}

.kami-guidance-card h2 {
  margin-bottom: 16px;
  font-size: 29px;
}

.kami-guidance-card > p:not(.kami-eyebrow) {
  margin-bottom: 22px;
  color: var(--kami-text-muted);
}

.kami-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--kami-blue-deep);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.kami-text-link:hover {
  color: #034568;
}

/* Kami disorders native accordion */
.kami-disorders-list-section {
  padding: 92px 0 104px;
  background: linear-gradient(180deg, #f0f9fd, #f8fbfc);
}

.kami-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: end;
  margin-bottom: 42px;
  gap: 36px;
}

.kami-section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 46px);
}

.kami-section-heading > p {
  margin-bottom: 4px;
  color: var(--kami-text-muted);
}

.kami-disorders-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.kami-disorder-item {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--kami-border);
  border-radius: 20px;
  box-shadow: var(--kami-shadow-sm);
}

.kami-disorder-item[open] {
  border-color: #a9ddec;
  box-shadow: var(--kami-shadow-md);
}

.kami-disorder-item summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.kami-disorder-item summary::-webkit-details-marker {
  display: none;
}

.kami-disorder-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--kami-blue-deep);
  background: var(--kami-cool);
  border-radius: 15px;
  font-size: 13px;
  font-weight: 800;
}

.kami-disorder-title {
  color: var(--kami-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.kami-disorder-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  background: #fff9f2;
  border: 1px solid #f3d5ad;
  border-radius: 14px;
}

.kami-disorder-toggle::before,
.kami-disorder-toggle::after {
  position: absolute;
  top: 21px;
  left: 13px;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--kami-brand-orange);
  border-radius: 99px;
  transition: transform 180ms ease;
}

.kami-disorder-toggle::after {
  transform: rotate(90deg);
}

.kami-disorder-item[open] .kami-disorder-toggle::after {
  transform: rotate(0deg);
}

.kami-disorder-answer {
  padding: 8px 28px 30px 86px;
  border-top: 1px solid #edf2f4;
  font-size: 16px;
}

.kami-disorder-answer img {
  margin: 24px 0 !important;
  border-radius: 18px;
}

/* Kami therapy cards */
.kami-therapy-hero-card {
  background: linear-gradient(145deg, #e97700, #f39314);
}

.kami-therapy-section {
  padding: 92px 0 104px;
}

.kami-therapy-list {
  display: grid;
  gap: 28px;
}

.kami-therapy-card {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--kami-border);
  border-radius: 28px;
  box-shadow: var(--kami-shadow-sm);
}

.kami-therapy-card:nth-child(even) {
  background: linear-gradient(145deg, #ffffff, #f7fcfe);
  border-color: var(--kami-border-blue);
}

.kami-therapy-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--kami-brand-orange), var(--kami-brand-amber));
  border-radius: 0 0 0 99px;
}

.kami-therapy-card-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 30px;
  gap: 22px;
}

.kami-therapy-card-header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: var(--kami-blue-deep);
  background: var(--kami-cool);
  border: 1px solid var(--kami-border-blue);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
}

.kami-therapy-card-header h2 {
  max-width: 920px;
  margin: 4px 0 0;
  font-size: clamp(27px, 2.6vw, 40px);
}

.kami-therapy-body {
  display: flow-root;
  max-width: none;
}

.kami-therapy-body > div {
  margin-bottom: 18px;
}

.kami-therapy-body img {
  float: right !important;
  width: min(340px, 42%) !important;
  height: auto !important;
  margin: 2px 0 28px 36px !important;
  border: 8px solid #ffffff !important;
  border-radius: 22px;
  box-shadow: var(--kami-shadow-md);
}

.kami-therapy-body strong {
  color: var(--kami-ink);
}

/* Kami pricing presentation */
.kami-pricing-hero-card {
  color: var(--kami-ink);
  background: linear-gradient(145deg, #ffe5ba, #f39314);
}

.kami-pricing-hero-card .kami-hero-card-label,
.kami-pricing-hero-card strong,
.kami-pricing-hero-card p {
  color: var(--kami-ink);
}

.kami-pricing-hero-card .kami-hero-card-label {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
}

.kami-pricing-section {
  padding: 92px 0 110px;
}

.kami-pricing-card {
  max-width: 1080px;
  padding: clamp(28px, 5vw, 64px);
  background: #ffffff;
  border: 1px solid var(--kami-border);
  border-radius: 30px;
  box-shadow: var(--kami-shadow-md);
}

.kami-pricing-card > ul {
  margin-bottom: 58px;
}

.kami-pricing-card > ul:first-of-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kami-pricing-card > ul:first-of-type li {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 24px 26px 24px 54px;
  color: var(--kami-ink);
  background: linear-gradient(145deg, #fff9f2, #ffffff);
  border: 1px solid #f3d5ad;
  border-radius: 20px;
  font-weight: 700;
}

.kami-pricing-card > ul:first-of-type li::before {
  top: 35px;
  left: 26px;
}

.kami-pricing-card .orange_18 {
  display: block;
  margin-top: 8px;
  color: #9a4a00;
  font-size: 19px;
  font-weight: 800;
}

.kami-pricing-card > h2,
.kami-pricing-card > h3,
.kami-pricing-card > h3 > .gray_20 {
  color: var(--kami-ink);
}

.kami-pricing-card > h2 {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--kami-border);
}

.kami-pricing-card > h2:first-of-type {
  margin-top: 10px;
}

.kami-pricing-card > h3 {
  margin-top: 52px;
  font-size: 27px;
}

.kami-pricing-card > ul:not(:first-of-type) {
  padding: 28px 30px;
  background: var(--kami-cool);
  border: 1px solid var(--kami-border-blue);
  border-radius: 22px;
}

.kami-pricing-card > ol {
  margin-top: 26px;
  padding: 30px;
  background: linear-gradient(145deg, #fff9f2, #ffffff);
  border: 1px solid #f3d5ad;
  border-radius: 22px;
}

.kami-pricing-card > ol li {
  margin-bottom: 20px;
}

.kami-pricing-card > ol li:last-child {
  margin-bottom: 0;
}

.kami-pricing-card .orange_24 {
  color: #9a4a00;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
}

/* Kami booking card */
.kami-booking-section {
  padding: 0 0 104px;
}

.kami-booking-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(210px, 0.46fr);
  align-items: center;
  padding: 30px 34px;
  gap: 30px;
  background: #ffffff;
  border: 1px solid var(--kami-border);
  border-radius: 28px;
  box-shadow: var(--kami-shadow-md);
}

.kami-booking-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--kami-border);
  border-radius: 22px;
}

.kami-booking-logo img {
  width: 76px;
  height: auto;
}

.kami-booking-copy h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 2.5vw, 39px);
}

.kami-booking-actions {
  display: grid;
  gap: 10px;
}

/* Kami inner-page focus states */
.kami-inner-redesign a:focus-visible,
.kami-inner-redesign summary:focus-visible {
  outline: 3px solid var(--kami-blue-deep);
  outline-offset: 4px;
}

/* Kami inner-page tablet layout */
@media (max-width: 1050px) {
  .kami-hero-grid,
  .kami-disorders-intro-grid {
    grid-template-columns: 1fr;
  }

  .kami-hero-card {
    width: min(100%, 520px);
    min-height: 250px;
  }

  .kami-guidance-card {
    position: static;
  }

  .kami-booking-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .kami-booking-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kami inner-page compact layout */
@media (max-width: 780px) {
  .kami-shell {
    width: min(calc(100% - 36px), 1240px);
  }

  .kami-hero {
    padding: 66px 0 70px;
  }

  .kami-hero-grid {
    gap: 40px;
  }

  .kami-hero-copy h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .kami-disorders-intro-section,
  .kami-disorders-list-section,
  .kami-therapy-section,
  .kami-pricing-section {
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .kami-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kami-disorders-accordion {
    grid-template-columns: 1fr;
  }

  .kami-therapy-body img {
    float: none !important;
    width: min(100%, 440px) !important;
    margin: 8px auto 28px !important;
  }

  .kami-pricing-card > ul:first-of-type {
    grid-template-columns: 1fr;
  }
}

/* Kami inner-page mobile layout */
@media (max-width: 560px) {
  .kami-shell {
    width: min(calc(100% - 28px), 1240px);
  }

  .kami-hero {
    padding: 54px 0 58px;
  }

  .kami-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kami-actions .kami-button {
    width: 100%;
    min-height: 52px;
  }

  .kami-hero-card {
    min-height: 232px;
    padding: 28px;
    border-radius: 24px 24px 64px 24px;
  }

  .kami-hero-card-label {
    margin-bottom: 34px;
  }

  .kami-hero-card strong {
    font-size: 26px;
  }

  .kami-guidance-card,
  .kami-pricing-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .kami-disorder-item summary {
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    min-height: 76px;
    padding: 12px 13px;
    gap: 11px;
  }

  .kami-disorder-number {
    width: 44px;
    height: 44px;
  }

  .kami-disorder-title {
    font-size: 15px;
  }

  .kami-disorder-toggle {
    width: 40px;
    height: 40px;
  }

  .kami-disorder-toggle::before,
  .kami-disorder-toggle::after {
    top: 19px;
    left: 11px;
  }

  .kami-disorder-answer {
    padding: 20px 18px 26px;
  }

  .kami-therapy-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .kami-therapy-card-header {
    grid-template-columns: 50px minmax(0, 1fr);
    margin-bottom: 24px;
    gap: 14px;
  }

  .kami-therapy-card-header > span {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .kami-therapy-card-header h2 {
    font-size: 25px;
  }

  .kami-therapy-body {
    font-size: 16px;
  }

  .kami-pricing-card > ul:first-of-type li {
    min-height: 0;
    padding: 22px 18px 22px 48px;
  }

  .kami-pricing-card > ul:first-of-type li::before {
    top: 32px;
    left: 22px;
  }

  .kami-booking-card {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    text-align: center;
  }

  .kami-booking-logo {
    margin-inline: auto;
  }

  .kami-booking-copy .kami-eyebrow {
    justify-content: center;
  }

  .kami-booking-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .kami-booking-actions .kami-button {
    min-height: 52px;
  }
}

/* Kami inner-page reduced motion */
@media (prefers-reduced-motion: reduce) {
  .kami-inner-redesign a,
  .kami-disorder-toggle::before,
  .kami-disorder-toggle::after {
    transition-duration: 0.01ms;
  }

  .kami-button:hover {
    transform: none;
  }
}
