/* Shared Figma-derived baseline and component styles. */
:root {
  --paper: #f6f7f2;
  --white: #ffffff;
  --ink: #27372f;
  --muted: #627168;
  --forest: #0b4f3c;
  --forest-2: var(--forest);
  --green: var(--forest);
  --forest-hover: #073d2f;
  --forest-rgb: 11, 79, 60;
  --accent: #c7dfab;
  --accent-hover: #d4e8bf;
  --accent-rgb: 199, 223, 171;
  --sage: #e8ede1;
  --sage-soft: var(--paper);
  --line: #dfe5dc;
  --orange: #f38a00;
  --danger-soft: #fff0eb;
  --danger: #d63e2e;
  --radius-card: 16px;
  --shadow-focus: 0 0 0 4px var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
  scrollbar-width: none;
  overflow-x: clip;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

p,
h1,
h2,
h3,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

fieldset {
  min-inline-size: 0;
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  box-shadow: var(--shadow-focus);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--white);
  color: var(--forest);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: var(--forest-hover);
}

.section-shell {
  width: 100%;
}

.section-title {
  color: var(--forest);
  font-family: Inter, Arial, sans-serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.section-lead {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.eyebrow {
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.desktop-only,
.desktop-only-section,
.desktop-only-inline,
.eyebrow-desktop,
.hero-lead-desktop,
.journey-title-desktop,
.journey-lead-desktop,
.pricing-title-desktop,
.pricing-lead-desktop,
.dashboard-title-desktop,
.dashboard-lead-desktop,
.role-title-desktop,
.faq-title-desktop,
.final-title-desktop,
.final-body-desktop,
.case-preview-desktop {
  display: none !important;
}

.mobile-only-inline {
  display: inline;
}

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  width: 100%;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 0 16px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(0.035em);
  color: var(--forest);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-name em {
  color: var(--green);
  font-style: normal;
}

.desktop-nav,
.header-actions {
  display: none;
}

.mobile-menu-control {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.menu-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  cursor: pointer;
}

.menu-button span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--forest);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 40;
  inset: 64px 0 0;
  background: rgba(5, 80, 50, 0.2);
  backdrop-filter: blur(3px);
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 16px 20px 24px;
  box-shadow: 0 14px 28px rgba(5, 80, 50, 0.12);
}

.mobile-menu nav > a:not(.button) {
  border-radius: 10px;
  padding: 13px 8px;
  color: var(--forest);
  font-weight: 700;
}

.mobile-menu .button {
  margin-top: 8px;
}

.landing-main {
  display: flex;
  flex-direction: column;
}

.section-order-hero { order: 1; }
.section-order-trust { order: 2; }
.section-order-anchor { order: 3; }
.section-order-support { order: 4; }
.section-order-journey { order: 5; }
.section-order-preparation { order: 6; }
.section-order-dashboard { order: 7; }
.section-order-role-map { order: 8; }
.section-order-pricing { order: 9; }
.section-order-faq { order: 10; }
.section-order-final { order: 11; }
.section-order-contact { order: 12; }

.anchor-marker {
  height: 0;
  scroll-margin-top: 16px;
}

.hero {
  min-height: 610px;
  background: var(--sage);
  padding: 32px 20px 27px;
}

.hero-grid {
  display: block;
}

.hero-copy .eyebrow {
  font-size: 10px;
}

.hero h1 {
  margin-top: 28px;
  color: var(--forest);
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 37px;
}

.hero-lead {
  margin-top: 52px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.role-clarity {
  display: none;
}

.hero-button {
  width: 100%;
  height: 50px;
  margin-top: 61px;
  font-size: 13px;
}

.microcopy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.case-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}

.case-preview-mobile {
  height: 168px;
  margin-top: 20px;
  padding: 12px 15px 16px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-header strong {
  font-size: 12px;
  line-height: 1.2;
}

.preview-header span {
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.mobile-preview-title {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.progress {
  overflow: hidden;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e7ece3;
}

.case-preview-mobile .progress {
  margin-top: 7px;
}

.progress span {
  display: block;
  width: var(--progress, 100%);
  height: 100%;
  transform-origin: left center;
  border-radius: inherit;
  background: var(--green);
}

.hero-photo,
.documents-photo {
  overflow: hidden;
  border-radius: 20px;
  background: var(--sage-soft);
}

.hero-photo img,
.documents-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="left"] {
  transform: translate3d(-28px, 0, 0);
}

.motion-ready [data-reveal="right"] {
  transform: translate3d(28px, 0, 0);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready .hero-visual .progress span {
  transform: scaleX(0);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 460ms;
}

.motion-ready .hero-visual.is-visible .progress span {
  transform: scaleX(1);
}

.info-card,
.journey-card,
.role-card,
.dashboard-card,
.faq-grid article,
.faq-accordion details {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.mobile-cost-teaser {
  display: grid;
  height: 52px;
  margin-top: 13px;
  grid-template-columns: 1fr 106px;
  align-items: center;
  border-radius: 10px;
  background: var(--sage);
  padding: 8px 12px;
}

.mobile-cost-teaser > span {
  display: grid;
  gap: 3px;
}

.mobile-cost-teaser strong {
  font-size: 10px;
  line-height: 1.3;
}

.mobile-cost-teaser > strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.mobile-cost-teaser small {
  color: var(--muted);
  font-size: 9px;
}

.trust {
  min-height: 286px;
  background: var(--white);
  padding: 28px 20px 19px;
}

.trust .section-title {
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.desktop-punctuation,
.trust-lead {
  display: none;
}

.trust-list {
  display: grid;
  margin-top: 24px;
}

.trust-list > div {
  display: grid;
  min-height: 48px;
  grid-template-columns: 8px 80px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
}

.trust-list img {
  width: 8px;
  height: 8px;
  margin-top: 6px;
}

.trust-list dt {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.trust-list dd {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.support-role {
  min-height: 586px;
  background: var(--white);
  padding: 40px 20px 31px;
}

.support-role .section-title {
  margin-top: 22px;
}

.support-role .section-lead {
  margin-top: 12px;
}

.medical-boundary {
  display: grid;
  min-height: 108px;
  margin-top: 31px;
  align-content: start;
  gap: 14px;
  border-radius: 16px;
  background: var(--forest);
  color: var(--white);
  padding: 16px;
}

.medical-boundary strong {
  font-size: 14px;
  line-height: 1.4;
}

.medical-boundary span {
  color: var(--sage);
  font-size: 11px;
  line-height: 1.5;
}

.compact-role-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.compact-role-list li {
  display: grid;
  min-height: 58px;
  grid-template-columns: 32px 120px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 8px 11px;
}

.compact-role-list li:nth-child(2) {
  border-color: transparent;
  background: var(--sage);
}

.compact-role-list strong {
  font-size: 12px;
  line-height: 1.3;
}

.compact-role-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.asset-number {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
}

.asset-number img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.asset-number b {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 10px;
  line-height: 1;
}

.asset-number.light b {
  color: var(--forest);
}

.journey {
  min-height: 930px;
  background: var(--sage);
  padding: 40px 20px 52px;
}

.journey .section-title {
  margin-top: 22px;
}

.journey .section-lead {
  margin-top: 8px;
}

.journey-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.journey-card {
  display: flex;
  min-height: 96px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 15px 13px;
}

.journey-card h3 {
  font-size: 14px;
  line-height: 1.35;
}

.journey-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.preparation {
  min-height: 650px;
  background: var(--white);
  padding: 40px 20px 48px;
}

.preparation .section-title {
  margin-top: 22px;
}

.preparation .section-lead {
  margin-top: 8px;
}

.safe-submit {
  min-height: 116px;
  margin-top: 28px;
  border-radius: 14px;
  background: var(--paper);
  padding: 16px;
}

.safe-submit strong {
  font-size: 13px;
  line-height: 1.4;
}

.safe-submit p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.preparation h3 {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.3;
}

.scope-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.scope-grid li {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 10px 11px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.asset-check {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.asset-check img {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
}

.asset-check:not(img) {
  position: relative;
}

.pricing {
  min-height: 670px;
  scroll-margin-top: 16px;
  background: var(--sage);
  padding: 40px 20px 25px;
}

.pricing .section-title {
  margin-top: 22px;
}

.pricing .section-lead {
  margin-top: 12px;
}

.pricing-button {
  width: 100%;
  height: 48px;
  margin-top: 30px;
  font-size: 13px;
}

.pricing-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.cost-panel {
  min-height: 318px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 15px;
}

.cost-panel h3 {
  font-size: 15px;
  line-height: 1.3;
}

.cost-panel ol {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cost-panel li {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 5px;
  font-size: 10px;
  font-weight: 500;
}

.cost-panel li:first-child {
  background: var(--sage);
}

.cost-panel .asset-number {
  width: 28px;
  height: 28px;
}

.dashboard {
  min-height: 860px;
  background: var(--paper);
  padding: 40px 20px 34px;
}

.dashboard .section-title {
  margin-top: 22px;
}

.dashboard .section-lead {
  margin-top: 8px;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.dashboard-card-mobile {
  min-height: 560px;
  margin-top: 35px;
  padding: 15px;
}

.dashboard-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-mobile-top strong {
  font-size: 15px;
}

.dashboard-mobile-top span {
  color: var(--muted);
  font-size: 9px;
}

.status-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.status-fix {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-ok {
  background: var(--sage);
  color: var(--forest);
}

.dashboard-card-mobile > .status-chip {
  margin-top: 18px;
}

.dashboard-card-mobile h3 {
  margin-top: 15px;
  font-size: 20px;
  line-height: 1.3;
}

.dashboard-card-mobile > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.review-meta {
  display: flex;
  min-height: 52px;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: var(--paper);
  padding: 12px;
  color: var(--muted);
  font-size: 9px;
}

.document-row {
  display: flex;
  min-height: 72px;
  margin-top: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 10px 12px;
}

.document-row > div:first-child {
  display: grid;
  gap: 8px;
}

.document-row strong {
  font-size: 11px;
}

.document-row small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.document-row-action > div:last-child {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.document-row button {
  min-width: 84px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-card-mobile .dashboard-note {
  margin-top: 24px;
  font-size: 8px;
}

.role-map {
  min-height: 610px;
  background: var(--white);
  padding: 40px 20px 52px;
}

.role-map .section-title {
  margin-top: 22px;
  font-size: 25px;
}

.role-cards {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.role-card {
  display: grid;
  min-height: 112px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px 13px;
}

.role-card-highlight {
  border-color: transparent;
  background: var(--sage);
}

.role-badge {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
}

.role-badge-person {
  background: #fff1d5;
  color: #a65b00;
}

.role-badge-support {
  background: var(--green);
  color: var(--white);
}

.role-badge-external {
  background: var(--sage);
  color: var(--forest);
}

.role-card h3 {
  font-size: 13px;
  line-height: 1.35;
}

.role-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.faq {
  min-height: 780px;
  scroll-margin-top: 16px;
  background: var(--white);
  padding: 40px 20px 41px;
}

.faq .section-title {
  margin-top: 22px;
}

.faq-accordion {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.faq-accordion details {
  overflow: clip;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.faq-accordion details[open] {
  min-height: 104px;
  background: var(--paper);
}

.faq-accordion summary {
  display: flex;
  min-height: 64px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 10px 14px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
}

.faq-accordion details > p {
  margin: -8px 48px 15px 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.faq-contact {
  margin-top: 82px;
  color: var(--muted);
  font-size: 9px;
}

.final-cta {
  min-height: 314px;
  background: var(--forest);
  color: var(--white);
  padding: 40px 20px 36px;
}

.final-cta .eyebrow,
.final-cta .section-title {
  color: var(--white);
}

.final-cta .section-title {
  margin-top: 22px;
  font-size: 24px;
  line-height: 1.4;
}

.final-body {
  color: var(--sage);
  font-size: 9px;
  line-height: 1.5;
}

.final-body-mobile {
  margin-top: -4px;
}

.final-cta .button {
  width: 100%;
  height: 48px;
  margin-top: 34px;
  font-size: 13px;
}

.contact {
  min-height: 222px;
  background: var(--paper);
  padding: 34px 20px 22px;
}

.contact h2 {
  font-size: 18px;
  line-height: 1.3;
}

.contact p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.contact .button {
  width: 100%;
  height: 48px;
  margin-top: 28px;
  font-size: 13px;
}

.contact small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}

.site-footer {
  min-height: 398px;
  background: var(--forest);
  color: var(--white);
  padding: 35px 20px 42px;
}

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

.footer-brand-lockup .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 24px;
  line-height: 1;
}

.footer-brand .brand-name em {
  color: #b9e493;
}

.footer-brand > strong {
  font-size: 24px;
  line-height: 1.2;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--sage);
  font-size: 9px;
  line-height: 1.5;
}

.footer-brand p + p {
  margin-top: 0;
}

.site-footer nav {
  display: grid;
  margin-top: 66px;
  grid-template-columns: repeat(3, max-content);
  gap: 16px 22px;
}

.site-footer nav button {
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}

.footer-legal {
  margin-top: 34px;
  color: var(--sage);
  font-size: 9px;
  line-height: 1.5;
}

.copyright {
  margin-top: 46px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: var(--forest);
  color: var(--white);
  padding: 13px 16px;
  box-shadow: 0 14px 36px rgba(5, 80, 50, 0.22);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* 会員登録画面 */
.registration-page {
  min-height: 100vh;
  background: var(--paper);
}

.registration-header {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 0 20px;
}

.registration-header .registration-nav,
.registration-header .login-action {
  display: none;
}

.registration-header .page-label {
  color: var(--muted);
  font-size: 12px;
}

.registration-layout {
  display: flex;
  min-height: 780px;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  padding: 22px 20px 30px;
}

.registration-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  border-radius: 14px;
  background: var(--sage);
  color: var(--forest);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
}

.registration-intro h1 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 37px;
}

.registration-intro > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.registration-value-points,
.registration-intro-note,
.registration-form > h2,
.registration-form > .form-intro {
  display: none;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-card {
  display: grid;
  gap: 13px;
  border: 1px solid #8a9386;
  border-radius: 18px;
  background: var(--white);
  padding: 14px 16px;
}

.consent-row {
  display: grid;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.consent-row input {
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  border: 2px solid var(--green);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}

.consent-row input:checked {
  background-color: var(--green);
  background-image: linear-gradient(45deg, transparent 46%, white 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 43%, white 43% 52%, transparent 52%);
}

.consent-row label {
  display: grid;
  cursor: pointer;
}

.consent-row strong {
  font-size: 13px;
  line-height: 1.45;
}

.consent-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.field {
  display: grid;
  min-height: 62px;
  gap: 4px;
  border: 1px solid #8a9386;
  border-radius: 12px;
  background: var(--white);
  padding: 8px 14px;
}

.field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 133, 0, 0.15);
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.field input::placeholder {
  color: var(--ink);
  opacity: 0.9;
}

.registration-info {
  display: grid;
  min-height: 56px;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-radius: 12px;
  background: var(--sage-soft);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.registration-info strong {
  color: var(--forest-2);
  font-size: 14px;
  text-align: center;
}

.registration-submit {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  font-size: 14px;
}

.registration-login {
  border: 0;
  background: transparent;
  color: var(--forest-2);
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.prototype-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.form-status {
  border-radius: 10px;
  background: var(--sage-soft);
  color: var(--forest);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .motion-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-ready .hero-visual .progress span {
    transform: none !important;
  }
}

/* Compact image-led landing page. */
.landing-main-compact {
  background: var(--paper);
}

.compact-hero {
  min-height: 660px;
  padding-bottom: 48px;
}

.compact-hero .hero-lead {
  margin-top: 24px;
  font-size: 15px;
}

.compact-hero .hero-button {
  margin-top: 28px;
}

.compact-hero .microcopy {
  max-width: 300px;
}

.hero-status-card {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 0;
  left: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
  box-shadow: 0 18px 42px rgba(5, 80, 50, 0.18);
  backdrop-filter: blur(12px);
}

.hero-status-card .status-chip {
  width: max-content;
}

.hero-status-card > strong {
  color: var(--forest);
  font-size: 16px;
}

.hero-status-card small {
  color: var(--muted);
  font-size: 9px;
}

.visual-flow,
.role-strip,
.compact-pricing,
.compact-faq {
  padding: 72px 20px;
}

.visual-flow {
  background: var(--white);
}

.compact-heading .section-title {
  margin-top: 16px;
  font-size: 33px;
}

.visual-flow-grid {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}

.flow-photos {
  position: relative;
  min-height: 430px;
}

.member-photo {
  overflow: hidden;
  width: calc(100% - 44px);
  height: 390px;
  border-radius: 24px;
  background: var(--sage);
  box-shadow: 0 20px 48px rgba(5, 80, 50, 0.14);
}

.member-photo img,
.flow-documents-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-documents-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 150px;
  border: 5px solid var(--white);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(5, 80, 50, 0.16);
}

.three-steps {
  display: grid;
  gap: 14px;
}

.three-steps li {
  display: grid;
  min-height: 106px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 17px;
}

.three-steps li > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-weight: 700;
}

.three-steps li:nth-child(2) > span {
  background: #fff1d5;
  color: #a65b00;
}

.three-steps h3 {
  color: var(--forest);
  font-size: 16px;
}

.three-steps p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.compact-dashboard {
  min-height: auto;
  padding-block: 72px;
}

.compact-dashboard .dashboard-copy .section-title {
  margin-top: 16px;
}

.compact-dashboard .section-lead {
  max-width: 360px;
  margin-top: 12px;
  font-size: 13px;
}

.compact-dashboard-card {
  min-height: 390px;
  margin-top: 32px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(5, 80, 50, 0.12);
}

.compact-dashboard-card > .status-chip {
  margin-top: 24px;
}

.compact-dashboard-card > h3 {
  margin-top: 14px;
  font-size: 22px;
}

.compact-dashboard-card > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.role-strip {
  background: var(--forest);
  color: var(--white);
}

.role-strip .section-title {
  color: var(--white);
}

.role-strip-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.role-strip-grid article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
}

.role-strip-grid article > span {
  color: #b9d49d;
  font-size: 10px;
  font-weight: 700;
}

.role-strip-grid h3 {
  margin-top: 6px;
  font-size: 16px;
}

.role-strip-grid p {
  margin-top: 3px;
  color: var(--sage);
  font-size: 11px;
}

.role-strip-grid .role-strip-highlight {
  border-color: transparent;
  background: var(--white);
  color: var(--forest);
}

.role-strip-grid .role-strip-highlight p {
  color: var(--muted);
}

.compact-pricing {
  background: var(--sage);
}

.compact-pricing .section-title {
  margin-top: 16px;
}

.compact-pricing-action {
  margin-top: 28px;
}

.compact-pricing-action p {
  color: var(--muted);
  font-size: 11px;
}

.compact-pricing-action .button {
  width: 100%;
  margin-top: 18px;
}

.compact-faq {
  min-height: auto;
  background: var(--white);
}

.compact-faq .section-title {
  margin-top: 16px;
}

.compact-faq-list {
  margin-top: 30px;
}

.compact-faq-list details[open] {
  min-height: 100px;
}

.compact-faq-list summary {
  font-size: 11px;
}

.compact-faq-list details > p {
  font-size: 10px;
}

.compact-final {
  min-height: 250px;
  text-align: center;
}

.compact-final .section-title {
  margin-top: 0;
}

.compact-final .button {
  width: 100%;
  margin-top: 30px;
}

/* Althera / MedVi-derived component grammar for the public landing page. */
body[data-page="landing"] {
  background: var(--paper);
}

.reference-header {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--forest);
  color: var(--white);
}

.reference-header .menu-button {
  background: rgba(255, 255, 255, 0.12);
}

.reference-header .menu-button span {
  background: var(--white);
}

.reference-header .mobile-menu-control {
  color: var(--sage);
}

.reference-header .brand-name {
  color: var(--white);
}

.reference-header .brand-name em {
  color: var(--accent);
}

.reference-header .desktop-nav a:hover,
.reference-header .desktop-nav a:focus-visible,
.reference-header .text-action:hover,
.reference-header .text-action:focus-visible {
  color: var(--accent);
}

.reference-header .brand-mark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.reference-button {
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
}

.reference-button:hover {
  background: var(--forest-hover);
}

.reference-header .reference-button,
.reference-hero .reference-button,
.reference-final .reference-button {
  background: var(--accent);
  color: var(--forest);
}

.reference-header .reference-button:hover,
.reference-hero .reference-button:hover,
.reference-final .reference-button:hover {
  background: var(--accent-hover);
}

.reference-main {
  overflow: clip;
}

.reference-kicker {
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.reference-hero {
  position: relative;
  min-height: 930px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(155, 204, 117, 0.12), transparent 30%),
    linear-gradient(145deg, #0a5938, #043923 72%);
  color: var(--white);
  padding: 54px 20px 44px;
}

.reference-hero::after {
  position: absolute;
  right: -18vw;
  bottom: 120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.reference-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.reference-hero .reference-kicker {
  color: #cce7b5;
}

.reference-hero h1 {
  margin-top: 22px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.reference-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.reference-portal-title h2 em {
  color: var(--forest);
  font-style: normal;
}

.reference-hero-copy > p:not(.reference-kicker) {
  margin-top: 22px;
  color: #e4eee8;
  font-size: 14px;
  line-height: 1.7;
}

.reference-hero-cta {
  min-height: 54px;
  margin-top: 26px;
  padding-inline: 28px;
}

.reference-hero-copy small {
  display: block;
  margin-top: 12px;
  color: #bbcec2;
  font-size: 9px;
}

.reference-card-rail {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 14px;
  margin: 58px -20px 0;
  overflow-x: auto;
  padding: 0 20px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reference-card-rail::-webkit-scrollbar {
  display: none;
}

.reference-card {
  overflow: hidden;
  width: 238px;
  flex: 0 0 238px;
  border: 10px solid var(--white);
  border-radius: 25px;
  background: var(--white);
  color: #1f2622;
  scroll-snap-align: center;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.2);
}

.reference-card img {
  width: 100%;
  height: 190px;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reference-card:nth-child(2) img {
  object-position: center 60%;
}

.reference-card:hover img {
  transform: scale(1.04);
}

.reference-card > div {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px 8px;
}

.reference-card strong {
  font-size: 14px;
}

.reference-card span {
  font-size: 22px;
}

.reference-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding-block: 17px;
}

.reference-ticker-track {
  display: flex;
  width: max-content;
  animation: referenceTicker 42s linear infinite;
}

.reference-ticker-group {
  display: flex;
  width: max-content;
  min-width: 100vw;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 38px;
  padding-inline: 19px;
}

.reference-ticker span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@keyframes referenceTicker {
  to { transform: translate3d(-50%, 0, 0); }
}

.reference-showcase,
.reference-steps,
.reference-portal,
.reference-boundary,
.reference-faq {
  padding: 76px 20px;
}

.reference-section-head h2,
.reference-portal-title h2,
.reference-final h2 {
  margin-top: 15px;
  color: var(--forest);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.reference-showcase {
  background: var(--paper);
}

.reference-showcase-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin-top: 38px;
  border-radius: 26px;
  background: var(--sage);
  box-shadow: 0 28px 70px rgba(5, 80, 50, 0.12);
}

.reference-showcase-media > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 67% center;
}

.reference-showcase-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  backdrop-filter: blur(14px);
}

.reference-showcase-panel h3 {
  margin-top: 13px;
  color: var(--forest);
  font-size: 21px;
  line-height: 1.35;
}

.reference-showcase-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.reference-showcase-panel .progress {
  margin-top: 16px;
}

.reference-dots {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 7px;
}

.reference-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.reference-dots i:first-child {
  background: var(--white);
}

.reference-steps {
  background: var(--paper);
  text-align: center;
}

.reference-steps-grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.reference-steps-grid li {
  position: relative;
  display: grid;
  justify-items: center;
}

.reference-step-icon {
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--forest-hover));
  box-shadow: 0 16px 34px rgba(var(--forest-rgb), 0.13);
}

.reference-step-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reference-steps-grid li > b {
  position: absolute;
  top: -2px;
  right: calc(50% - 64px);
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--forest-2);
  font-size: 10px;
}

.reference-steps-grid h3 {
  margin-top: 20px;
  color: var(--forest);
  font-size: 18px;
}

.reference-steps-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.reference-steps-cta {
  width: 100%;
  margin-top: 42px;
}

.reference-portal {
  background: var(--paper);
}

.reference-portal-title {
  text-align: center;
}

.reference-portal-grid {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

.reference-included,
.reference-portal-person,
.reference-dashboard-card {
  overflow: hidden;
  border-radius: 24px;
}

.reference-included {
  background: #eef5ea;
  padding-bottom: 22px;
}

.reference-included > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.reference-included h3 {
  margin: 22px 20px 0;
  color: var(--forest);
  font-size: 18px;
}

.reference-included ul {
  display: grid;
  gap: 10px;
  margin: 16px 20px 0;
}

.reference-included li {
  color: var(--muted);
  font-size: 12px;
}

.reference-portal-person {
  height: 420px;
  background: #e9f0e4;
}

.reference-portal-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-dashboard-card {
  min-height: 390px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(5, 80, 50, 0.12);
}

.reference-dashboard-card > .status-chip {
  margin-top: 22px;
}

.reference-dashboard-card > h3 {
  margin-top: 14px;
  font-size: 22px;
}

.reference-dashboard-card > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.reference-boundary {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(var(--accent-rgb), 0.18), transparent 29%),
    linear-gradient(145deg, var(--forest-hover) 0%, var(--forest) 100%);
  color: var(--white);
}

.reference-boundary::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.reference-boundary-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.reference-boundary-intro .reference-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9eccb;
}

.reference-boundary-intro .reference-kicker > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.reference-boundary-intro h2 {
  margin-top: 18px;
  color: var(--white);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.reference-boundary-intro h2 em {
  color: var(--accent);
  font-style: normal;
}

.reference-boundary-lead {
  max-width: 430px;
  margin-top: 22px;
  color: #dce9e1;
  font-size: 13px;
  line-height: 1.65;
}

.reference-boundary-patient {
  display: flex;
  max-width: 430px;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  padding: 17px;
  backdrop-filter: blur(12px);
}

.reference-boundary-patient > div {
  display: grid;
  gap: 3px;
}

.reference-boundary-patient div > span {
  color: #b9d9a4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reference-boundary-patient strong {
  font-size: 14px;
  line-height: 1.35;
}

.reference-boundary-patient p {
  color: #ccded3;
  font-size: 11px;
}

.reference-boundary-map {
  display: grid;
  align-content: center;
}

.boundary-role-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 24px;
  padding: 25px;
}

.boundary-role-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.boundary-role-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.boundary-role-label {
  width: max-content;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 800;
}

.boundary-role-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
}

.boundary-role-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.boundary-role-card h3 {
  margin-top: 20px;
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.boundary-role-card p {
  max-width: 390px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.boundary-support {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 24px 60px rgba(2, 35, 22, 0.24);
}

.boundary-support .boundary-role-label {
  background: rgba(var(--forest-rgb), 0.1);
}

.boundary-support .boundary-role-icon {
  background: var(--sage);
}

.boundary-clinical {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 24px 60px rgba(2, 35, 22, 0.18);
}

.boundary-clinical .boundary-role-label {
  background: var(--sage);
}

.boundary-clinical .boundary-role-icon {
  background: var(--forest);
  color: var(--accent);
}

.boundary-separator {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 11px;
  padding-inline: 18px;
}

.boundary-separator::before,
.boundary-separator::after {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.boundary-separator span {
  color: #b9d0c2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.boundary-patient-icon {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.reference-faq {
  min-height: auto;
  background: var(--paper);
}

.reference-faq .reference-section-head h2 {
  margin-top: 15px;
}

.reference-faq-list {
  margin-top: 34px;
}

.reference-final {
  position: relative;
  display: grid;
  min-height: 570px;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  padding: 36px 20px;
}

.reference-final > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.reference-final::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(var(--forest-rgb), 0.92) 82%);
  content: "";
}

.reference-final > div {
  position: relative;
  z-index: 2;
}

.reference-final .reference-kicker,
.reference-final h2 {
  color: var(--white);
}

.reference-final .button {
  width: 100%;
  margin-top: 24px;
}

.reference-final small {
  display: block;
  margin-top: 12px;
  color: #d5e4da;
  font-size: 9px;
  text-align: center;
}

.reference-whatsapp {
  background: var(--paper);
  padding: 60px 20px;
  text-align: center;
}

.reference-whatsapp-inner {
  max-width: 620px;
  margin: 0 auto;
}

.reference-whatsapp-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest-2);
  place-items: center;
}

.reference-whatsapp-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reference-whatsapp h2 {
  margin-top: 12px;
  color: var(--forest);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.reference-whatsapp h2 + p {
  max-width: 480px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.reference-whatsapp-button {
  gap: 9px;
  margin-top: 24px;
  background: var(--forest-2);
  color: var(--white);
}

.reference-whatsapp-button:hover {
  background: var(--forest-hover);
}

.reference-whatsapp-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reference-whatsapp small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.reference-footer {
  background: var(--forest);
}

@media (prefers-reduced-motion: reduce) {
  .reference-ticker-track {
    animation: none;
  }
}

/* Reference-derived motion: restrained entrances, carousels and image depth. */
.reference-header {
  position: sticky;
  top: 0;
  transition:
    background-color 500ms ease,
    box-shadow 500ms ease,
    backdrop-filter 500ms ease;
}

.reference-header.is-scrolled {
  background: rgba(var(--forest-rgb), 0.92);
  box-shadow: 0 12px 36px rgba(var(--forest-rgb), 0.18);
  backdrop-filter: blur(16px);
}

.reference-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(var(--forest-rgb), 0.18);
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease,
    transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reference-button::after {
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -45%;
  width: 28%;
  transform: rotate(18deg) translateX(-220%);
  background: rgba(255, 255, 255, 0.42);
  content: "";
  transition: transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reference-button:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(var(--forest-rgb), 0.28);
}

.reference-button:hover::after {
  transform: rotate(18deg) translateX(650%);
}

.reference-button:active {
  transform: translateY(0) scale(0.985);
}

.reference-button:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px var(--forest);
}

.reference-hero::before {
  position: absolute;
  top: -180px;
  left: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 204, 117, 0.16), transparent 68%);
  content: "";
}

body.motion-ready .reference-header {
  animation: referenceHeaderIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.motion-ready .reference-hero::before {
  animation: referenceGlowDrift 11s ease-in-out infinite alternate;
}

body.motion-ready .reference-hero::after {
  animation: referenceRingDrift 14s ease-in-out infinite alternate;
}

.motion-ready .reference-hero-copy.is-visible > * {
  opacity: 0;
  animation: referenceHeroLineIn 820ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.motion-ready .reference-hero-copy.is-visible > :nth-child(1) { animation-delay: 80ms; }
.motion-ready .reference-hero-copy.is-visible > :nth-child(2) { animation-delay: 150ms; }
.motion-ready .reference-hero-copy.is-visible > :nth-child(3) { animation-delay: 250ms; }
.motion-ready .reference-hero-copy.is-visible > :nth-child(4) { animation-delay: 350ms; }
.motion-ready .reference-hero-copy.is-visible > :nth-child(5) { animation-delay: 430ms; }

.reference-card {
  --card-angle: 0deg;
  transition:
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 500ms ease;
}

.reference-card:nth-child(1) { --card-angle: -1.5deg; }
.reference-card:nth-child(2) { --card-angle: 1deg; }
.reference-card:nth-child(3) { --card-angle: -0.75deg; }
.reference-card:nth-child(4) { --card-angle: 1.5deg; }

.motion-ready .reference-card[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 58px, 0) rotate(var(--card-angle)) scale(0.94);
}

.motion-ready .reference-card[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--card-angle)) scale(1);
}

.motion-ready .reference-card:nth-child(1) { --reveal-delay: 390ms; }
.motion-ready .reference-card:nth-child(2) { --reveal-delay: 490ms; }
.motion-ready .reference-card:nth-child(3) { --reveal-delay: 590ms; }
.motion-ready .reference-card:nth-child(4) { --reveal-delay: 690ms; }

.reference-card:hover,
.motion-ready .reference-card[data-reveal].is-visible:hover {
  transform: translate3d(0, -10px, 0) rotate(0deg) scale(1.015);
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.25);
}

.reference-ticker {
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.reference-ticker-track {
  will-change: transform;
}

.reference-ticker:hover .reference-ticker-track {
  animation-play-state: paused;
}

.motion-ready .reference-showcase-media > img,
.motion-ready .reference-portal-person > img,
.motion-ready .reference-final > img {
  opacity: 0.72;
  transform: translate3d(0, var(--motion-y, 0), 0) scale(1.12);
  transition:
    opacity 1200ms ease,
    transform 1500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.motion-ready .reference-showcase-media.is-motion-visible > img,
.motion-ready .reference-portal-grid.is-motion-visible .reference-portal-person > img,
.motion-ready .reference-final.is-motion-visible > img {
  opacity: 1;
  transform: translate3d(0, var(--motion-y, 0), 0) scale(1.055);
}

.motion-ready .reference-showcase-panel {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
}

.motion-ready .reference-showcase-media.is-motion-visible .reference-showcase-panel {
  animation: referencePanelIn 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 260ms forwards;
}

.motion-ready .reference-showcase-panel .progress span {
  transform: scaleX(0);
  transition: transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 720ms;
}

.motion-ready .reference-showcase-media.is-motion-visible .progress span {
  transform: scaleX(1);
}

.reference-dots i {
  animation: referenceDotPulse 4s ease-in-out infinite;
}

.reference-dots i:nth-child(2) { animation-delay: 1s; }
.reference-dots i:nth-child(3) { animation-delay: 2s; }
.reference-dots i:nth-child(4) { animation-delay: 3s; }

.reference-step-icon {
  position: relative;
  transition:
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 420ms ease;
}

.reference-step-icon::after {
  position: absolute;
  inset: -8px;
  transform: scale(0.82);
  border: 1px solid rgba(77, 177, 164, 0.35);
  border-radius: inherit;
  content: "";
  opacity: 0;
}

.motion-ready .reference-steps-grid li.is-visible .reference-step-icon {
  animation: referenceStepPop 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

.motion-ready .reference-steps-grid li.is-visible .reference-step-icon::after {
  animation: referenceStepRing 1600ms ease-out 480ms both;
}

.reference-steps-grid li:hover .reference-step-icon {
  transform: translateY(-7px) rotate(4deg);
  box-shadow: 0 24px 44px rgba(16, 109, 87, 0.2);
}

.reference-included,
.reference-dashboard-card,
.boundary-role-card,
.reference-boundary-patient {
  transition:
    transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 450ms ease,
    border-color 450ms ease;
}

.reference-included:hover,
.reference-dashboard-card:hover,
.boundary-role-card:hover,
.reference-boundary-patient:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(5, 80, 50, 0.16);
}

.motion-ready .reference-dashboard-card.is-visible .document-row {
  opacity: 0;
  animation: referenceRowIn 620ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.motion-ready .reference-dashboard-card.is-visible .document-row:nth-of-type(1) { animation-delay: 380ms; }
.motion-ready .reference-dashboard-card.is-visible .document-row:nth-of-type(2) { animation-delay: 500ms; }

.reference-faq-list details[open] > p,
.reference-faq-list details[open] > .faq-answer {
  animation: referenceFaqIn 360ms ease both;
}

.reference-faq-list summary .faq-icon {
  transition: transform 320ms ease;
}

.reference-faq-list details[open] summary .faq-icon {
  transform: rotate(180deg);
}

@keyframes referenceHeaderIn {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes referenceHeroLineIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes referenceGlowDrift {
  from { transform: translate3d(-18px, -8px, 0) scale(0.96); }
  to { transform: translate3d(42px, 34px, 0) scale(1.12); }
}

@keyframes referenceRingDrift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-46px, -34px, 0) rotate(14deg); }
}

@keyframes referencePanelIn {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes referenceDotPulse {
  0%, 18%, 100% { opacity: 0.5; transform: scale(1); }
  8% { opacity: 1; transform: scale(1.35); }
}

@keyframes referenceStepPop {
  0% { opacity: 0; transform: translateY(22px) scale(0.76); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes referenceStepRing {
  0% { opacity: 0; transform: scale(0.82); }
  35% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes referenceRowIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes referenceFaqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready .reference-header,
  body.motion-ready .reference-hero::before,
  body.motion-ready .reference-hero::after,
  .motion-ready .reference-hero-copy.is-visible > *,
  .motion-ready .reference-showcase-media.is-motion-visible .reference-showcase-panel,
  .reference-dots i,
  .motion-ready .reference-steps-grid li.is-visible .reference-step-icon,
  .motion-ready .reference-steps-grid li.is-visible .reference-step-icon::after,
  .motion-ready .reference-dashboard-card.is-visible .document-row,
  .reference-faq-list details[open] > p,
  .reference-faq-list details[open] > .faq-answer {
    animation: none;
  }

  .motion-ready [data-reveal],
  .motion-ready .reference-card[data-reveal],
  .motion-ready .reference-showcase-media > img,
  .motion-ready .reference-portal-person > img,
  .motion-ready .reference-final > img,
  .motion-ready .reference-showcase-panel,
  .motion-ready .reference-dashboard-card.is-visible .document-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* J-Vita icon system: one rounded line language across brand, status and flow. */
:root {
  --icon-stroke: 2.1;
}

.icon,
.status-icon,
.list-icon,
.info-icon,
.ticker-icon {
  display: block;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reference-header .brand-name,
.reference-header .brand-name em,
.reference-footer .brand-name,
.reference-footer .brand-name em {
  color: var(--white);
}

.reference-card-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: var(--green);
  transition: transform 240ms ease, color 240ms ease;
}

.reference-card-arrow .icon-arrow {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
}

.reference-card:hover .reference-card-arrow {
  transform: translateX(3px);
  color: var(--forest-2);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ticker-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke: var(--green);
  stroke-width: 1.8;
}

.reference-step-icon {
  background: linear-gradient(135deg, var(--forest-2), var(--forest));
  box-shadow: 0 16px 34px rgba(5, 80, 50, 0.18);
}

.reference-step-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--white);
  stroke-width: var(--icon-stroke);
}

.reference-step-icon::after {
  border-color: rgba(69, 133, 0, 0.34);
}

.reference-steps-grid li > b {
  border: 1px solid rgba(5, 80, 50, 0.1);
  box-shadow: 0 4px 12px rgba(5, 80, 50, 0.1);
  font-weight: 800;
}

.reference-steps-grid li:not(:last-child)::after {
  border-color: rgba(69, 133, 0, 0.34);
}

.status-chip {
  gap: 6px;
}

.status-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke: currentColor;
  stroke-width: 1.75;
}

.reference-included li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
}

.reference-included li::before {
  display: none;
}

.list-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: var(--green);
  padding: 3px;
  stroke: var(--white);
  stroke-width: 2.1;
}

.faq-icon {
  transform: none;
}

.faq-icon .icon-faq {
  width: 28px;
  height: 28px;
  overflow: visible;
  stroke-width: 1.8;
}

.faq-icon .icon-faq circle {
  fill: var(--sage);
  stroke: var(--green);
}

.faq-icon .icon-faq path {
  stroke: var(--green);
  transition: opacity 160ms ease;
}

.reference-faq-list details[open] .faq-icon .icon-faq circle {
  fill: var(--green);
  stroke: var(--green);
}

.reference-faq-list details[open] .faq-icon .icon-faq path {
  stroke: var(--white);
}

.reference-faq-list details[open] .faq-icon .faq-icon-vertical {
  opacity: 0;
}

.registration-info {
  grid-template-columns: 20px minmax(0, 1fr);
}

.info-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  stroke: var(--forest-2);
  stroke-width: 1.75;
}

@media (min-width: 768px) {
  .reference-step-icon svg {
    width: 46px;
    height: 46px;
  }
}

/* Simplified portal composition: one checklist beside one client-area preview. */
.reference-portal-simple {
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

.reference-portal-simple .reference-included {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--sage) 0%, var(--paper) 100%);
  box-shadow: 0 24px 60px rgba(13, 67, 43, 0.09);
  padding: 24px;
}

.reference-portal-simple .reference-included > img {
  display: none;
}

.reference-portal-simple .reference-included h3 {
  margin: 0;
  color: var(--forest);
  font-size: 20px;
  line-height: 1.3;
}

.reference-portal-simple .reference-included ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.reference-portal-simple .reference-included li {
  position: relative;
  min-height: 96px;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  padding: 17px 15px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 7px 18px rgba(20, 66, 43, 0.04);
}

.reference-portal-simple .reference-included li > .list-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  padding: 5px;
  stroke-width: 2.4;
}

.reference-portal-simple .reference-included li > span {
  display: grid;
  gap: 3px;
}

.reference-portal-simple .reference-included li strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.reference-portal-simple .reference-included li small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

@media (min-width: 560px) {
  .reference-portal-simple .reference-included ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.iphone-preview {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 393 / 852;
  justify-self: center;
  border: 1px solid #3b403e;
  border-radius: 52px;
  background: linear-gradient(145deg, #343a37, #0d100f 40%, #202522);
  box-shadow:
    0 36px 80px rgba(15, 45, 29, 0.22),
    0 10px 24px rgba(13, 27, 20, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  padding: 8px;
}

.iphone-side-button {
  position: absolute;
  left: -4px;
  width: 4px;
  border-radius: 3px 0 0 3px;
  background: #242a27;
}

.iphone-side-button-one { top: 118px; height: 28px; }
.iphone-side-button-two { top: 166px; height: 50px; }
.iphone-side-button-three { top: 229px; height: 50px; }

.iphone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: #f6f7f4;
  color: var(--ink);
}

.iphone-status-bar {
  position: relative;
  z-index: 3;
  display: grid;
  height: 40px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 10px 17px 0;
  background: var(--white);
}

.iphone-status-bar time {
  padding-left: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.iphone-dynamic-island {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 88px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050606;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.iphone-system-icons {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  color: #111513;
}

.iphone-signal {
  display: flex;
  height: 11px;
  align-items: flex-end;
  gap: 1.5px;
}

.iphone-signal i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: currentColor;
}

.iphone-signal i:nth-child(1) { height: 4px; }
.iphone-signal i:nth-child(2) { height: 6px; }
.iphone-signal i:nth-child(3) { height: 8px; }
.iphone-signal i:nth-child(4) { height: 10px; }

.iphone-wifi {
  position: relative;
  display: block;
  width: 15px;
  height: 11px;
}

.iphone-wifi i {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  border-top: 1.7px solid currentColor;
  border-radius: 50%;
}

.iphone-wifi i:first-child { top: 1px; width: 15px; height: 9px; }
.iphone-wifi i:nth-child(2) { top: 5px; width: 9px; height: 6px; }
.iphone-wifi b {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: currentColor;
}

.iphone-battery {
  position: relative;
  display: block;
  width: 20px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
}

.iphone-battery::before {
  position: absolute;
  inset: 1.5px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.iphone-battery::after {
  position: absolute;
  top: 2px;
  right: -3.5px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  content: "";
}

.iphone-app-header {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 0 16px;
}

.iphone-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iphone-app-brand img {
  width: 24px;
  height: 24px;
}

.iphone-app-brand strong {
  font-size: 14px;
  letter-spacing: -0.03em;
}

.iphone-app-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f1e4;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  place-items: center;
}

.iphone-app-body {
  height: calc(100% - 92px);
  overflow: hidden;
  padding: 14px 14px 30px;
}

.iphone-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7b827e;
  font-size: 8px;
}

.iphone-breadcrumb span::after {
  margin-left: 7px;
  content: "/";
}

.iphone-breadcrumb b {
  color: var(--forest);
  font-weight: 700;
}

.iphone-review-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: #fdecea;
  color: #b42318;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 700;
}

.iphone-review-status::before {
  display: grid;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "!";
  font-size: 8px;
  line-height: 1;
  place-items: center;
}

.iphone-app-body > h3 {
  margin-top: 12px;
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.iphone-review-lead {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.iphone-review-meta {
  display: grid;
  margin-top: 13px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 11px;
  background: var(--white);
  padding: 10px 12px;
}

.iphone-review-meta span {
  display: grid;
  gap: 3px;
}

.iphone-review-meta small {
  color: #888e8a;
  font-size: 7px;
}

.iphone-review-meta strong {
  color: #2d332f;
  font-size: 9px;
}

.iphone-review-meta span + span {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.iphone-document-list {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.iphone-document-card {
  position: relative;
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: 10px;
}

.iphone-document-card > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.iphone-document-card strong {
  font-size: 10px;
  line-height: 1.25;
}

.iphone-document-card small {
  max-width: 165px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.35;
}

.iphone-document-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  align-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.iphone-document-status.is-ok {
  background: var(--sage);
  color: var(--forest);
}

.iphone-document-status.is-fix {
  background: #fdecea;
  color: #b42318;
}

.iphone-document-card.is-action {
  min-height: 78px;
  padding-bottom: 9px;
}

.iphone-document-card button {
  position: absolute;
  right: 10px;
  bottom: 8px;
  min-width: 78px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.iphone-next-action {
  display: grid;
  gap: 4px;
  margin-top: 11px;
  border-radius: 11px;
  background: #eaf3e6;
  padding: 10px 12px;
}

.iphone-next-action span {
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.iphone-next-action strong {
  color: var(--forest);
  font-size: 9px;
  line-height: 1.35;
}

.iphone-disclaimer {
  margin-top: 9px;
  color: #777e79;
  font-size: 7px;
  line-height: 1.4;
}

.iphone-home-indicator {
  position: absolute;
  z-index: 4;
  bottom: 7px;
  left: 50%;
  width: 104px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111513;
}

/* Medical, image-led first view. */
.reference-hero {
  min-height: 780px;
  background: var(--forest);
}

.reference-hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.reference-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  transform: scale(1.01);
  animation: referenceHeroPhotoIn 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reference-hero::before {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(var(--forest-rgb), 0.9) 0%, rgba(var(--forest-rgb), 0.78) 58%, rgba(var(--forest-rgb), 0.94) 100%);
  animation: none !important;
}

.reference-hero::after {
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 190px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(var(--forest-rgb), 0.7));
  animation: none !important;
}

.reference-hero-copy {
  max-width: 640px;
  margin-inline: 0;
  padding-top: 42px;
  text-align: left;
}

.reference-hero .reference-kicker {
  color: #d9eccb;
}

.reference-hero h1 {
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.28);
}

.reference-hero-copy > p:not(.reference-kicker) {
  max-width: 570px;
  color: #f2f7f4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.reference-hero-copy small {
  color: #d3e0d8;
}

.reference-hero-points {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(var(--forest-rgb), 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.reference-hero-points li {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.reference-hero-points li:last-child {
  border-bottom: 0;
}

.reference-hero-points li > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--forest);
  font-size: 12px;
}

@keyframes referenceHeroPhotoIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  .reference-hero-photo img {
    animation: none;
  }
}

/* Large editorial FAQ: questions lead, answers stay easy to scan. */
.reference-faq-grid {
  display: block;
}

.reference-faq .reference-section-head {
  max-width: 1120px;
  margin-inline: auto;
}

.reference-faq .reference-section-head h2 {
  max-width: none;
  font-size: clamp(38px, 10vw, 52px);
  line-height: 1.08;
}

.reference-faq-list {
  max-width: 1120px;
  gap: 0;
  margin: 42px auto 0;
  border-top: 1px solid var(--line);
}

.reference-faq-list details,
.reference-faq-list details[open] {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.reference-faq-list summary {
  min-height: 82px;
  align-items: center;
  padding: 22px 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.reference-faq-list summary .faq-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.reference-faq-list details > p {
  max-width: 880px;
  margin: -6px 54px 25px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.reference-faq-list .faq-answer {
  max-width: 920px;
  margin: -6px 54px 30px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.reference-faq-list .faq-answer p + p {
  margin-top: 12px;
}

.reference-faq-list .faq-answer ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
  padding-left: 20px;
}

.reference-faq-list .faq-answer li::marker {
  color: var(--forest);
}

.faq-source-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  border-bottom: 1px solid var(--forest);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.faq-source-link::after {
  margin-left: 7px;
  content: "↗";
}
