/* Desktop-only layout: loaded at 768px and above. */

@media (min-width: 768px) {
  html {
    scroll-padding-top: 26px;
  }

  body {
    font-size: 16px;
  }

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

  .desktop-only,
  .desktop-only-section,
  .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: block !important;
  }

  .desktop-only-inline {
    display: inline !important;
  }

  .site-header {
    height: 88px;
    border-bottom: 0;
    padding: 16px 6.111vw;
  }

  .brand {
    font-size: 26px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .desktop-nav {
    position: absolute;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    gap: 34px;
    color: var(--muted);
    font-size: 14px;
  }

  .desktop-nav a,
  .text-action {
    border-radius: 6px;
    padding: 4px;
  }

  .desktop-nav a:hover,
  .text-action:hover {
    color: var(--forest);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .text-action {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }

  .header-cta {
    min-height: 56px;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 16px;
  }

  .mobile-menu-control,
  .mobile-menu {
    display: none !important;
  }

  .landing-main {
    display: flex;
  }

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

  .section-shell {
    max-width: 1264px;
    margin-inline: auto;
  }

  .section-title {
    font-size: 36px;
    line-height: 1.45;
  }

  .section-lead {
    font-size: 16px;
    line-height: 1.45;
  }

  .eyebrow {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero {
    min-height: 690px;
    padding: 72px 6.111vw;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 650px) 500px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

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

  .hero h1 {
    margin: 0;
    font-size: 50px;
    line-height: 1.45;
  }

  .hero-lead {
    max-width: 620px;
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
  }

  .role-clarity {
    display: flex;
    width: min(622px, 100%);
    min-height: 44px;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-button {
    width: auto;
    min-height: 56px;
    margin: 0;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 16px;
  }

  .microcopy {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .case-preview-desktop {
    width: 500px;
    height: 510px;
    padding: 28px;
  }

  .case-preview-desktop .preview-header strong {
    font-size: 16px;
  }

  .case-preview-desktop .preview-header span {
    background: transparent;
    padding: 0;
    font-size: 12px;
  }

  .preview-label {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .case-preview-desktop .progress {
    height: 12px;
    margin-top: 18px;
    border-radius: 6px;
    background: var(--sage-soft);
  }

  .preview-panel {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    border-radius: 16px;
    background: var(--sage-soft);
    padding: 16px 18px;
  }

  .preview-panel-highlight {
    background: var(--sage);
  }

  .preview-panel strong {
    font-size: 15px;
  }

  .preview-panel span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }

  .preview-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
  }

  .trust {
    min-height: 430px;
    padding: 84px 6.111vw;
  }

  .trust .section-title {
    color: var(--forest);
    font-family: "Noto Serif JP", serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.45;
  }

  .desktop-punctuation {
    display: inline;
  }

  .trust-lead {
    display: block;
    margin-top: 8px;
  }

  .trust-cards {
    display: grid !important;
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .info-card {
    min-height: 129px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 24px;
  }

  .info-card h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .info-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
  }

  .journey {
    min-height: 553px;
    background: var(--sage-soft);
    padding: 84px 6.111vw;
  }

  .journey .section-title {
    margin: 0;
  }

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

  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
  }

  .journey-card {
    min-height: 107px;
    border-radius: 8px;
    padding: 24px;
  }

  .journey-card h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .journey-card p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
  }

  .pricing {
    min-height: 552px;
    background: var(--white);
    padding: 88px 6.111vw;
  }

  .pricing .section-title,
  .pricing .section-lead {
    margin: 0;
  }

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

  .pricing-cards {
    display: grid !important;
    margin-top: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .pricing-cards .info-card {
    min-height: 129px;
  }

  .pricing-summary {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
  }

  .pricing-button {
    width: auto;
    min-height: 56px;
    margin-top: 18px;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 16px;
  }

  .dashboard {
    min-height: 604px;
    background: var(--sage);
    padding: 87px 6.111vw;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: 560px 560px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .dashboard .section-title,
  .dashboard .section-lead {
    margin: 0;
  }

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

  .dashboard-features {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .dashboard-card-desktop {
    display: grid !important;
    width: 560px;
    min-height: 426px;
    align-content: start;
    gap: 12px;
    padding: 24px;
  }

  .dashboard-brand {
    font-size: 16px;
  }

  .dashboard-card-desktop > div {
    display: grid;
    min-height: 106px;
    align-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 24px;
  }

  .dashboard-card-desktop > div strong {
    font-size: 24px;
  }

  .dashboard-card-desktop > div span {
    color: var(--muted);
    font-size: 16px;
  }

  .documents {
    min-height: 443px;
    background: var(--sage-soft);
    padding: 84px 6.111vw;
  }

  .document-flow-cards {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .document-flow-cards .info-card {
    min-height: 129px;
  }

  .document-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
  }

  .role-map {
    min-height: 467px;
    padding: 84px 6.111vw;
  }

  .role-map .section-title {
    margin: 0;
    font-size: 36px;
  }

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

  .role-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
  }

  .role-card {
    display: block;
    min-height: 129px;
    border-radius: 8px;
    background: var(--white);
    padding: 24px;
  }

  .role-card-highlight {
    border-color: var(--line);
  }

  .role-badge {
    display: none;
  }

  .role-card h3 {
    font-size: 24px;
  }

  .role-card p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
  }

  .role-note {
    margin-top: 18px;
    font-size: 12px;
    font-weight: 700;
  }

  .faq {
    min-height: 808px;
    background: var(--sage-soft);
    padding: 96px 6.111vw;
  }

  .faq .section-title {
    margin: 8px 0 0;
  }

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

  .faq-grid {
    display: grid !important;
    margin-top: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .faq-grid article {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 24px;
  }

  .faq-grid h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  .faq-grid p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }

  .final-cta {
    min-height: 433px;
    background: var(--sage);
    color: var(--forest);
    padding: 92px 6.111vw;
    text-align: center;
  }

  .final-cta .section-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .final-cta .section-title {
    margin: 0;
    color: var(--forest);
    font-size: 36px;
    line-height: 1.45;
  }

  .final-body {
    max-width: 800px;
    margin-top: 18px;
    color: var(--forest);
    font-size: 16px;
    line-height: 1.45;
  }

  .final-cta .button {
    width: auto;
    min-height: 56px;
    margin-top: 22px;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 16px;
  }

  .final-cta .microcopy {
    margin-top: 18px;
    color: var(--forest);
  }

  .site-footer {
    min-height: 322px;
    padding: 64px 6.111vw 52px;
  }

  .footer-top {
    display: grid;
    max-width: 1264px;
    margin-inline: auto;
    grid-template-columns: 1fr 600px;
    gap: 48px;
  }

  .footer-brand .brand-name,
  .footer-brand > strong {
    font-size: 28px;
  }

  .footer-brand p {
    margin-top: 14px;
    font-size: 12px;
  }

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

  .site-footer nav {
    display: grid;
    margin-top: 0;
    grid-template-columns: repeat(3, max-content);
    align-content: start;
    justify-content: end;
    gap: 20px 54px;
  }

  .site-footer nav button {
    font-size: 14px;
    font-weight: 700;
  }

  .footer-legal,
  .copyright {
    max-width: 1264px;
    margin-inline: auto;
  }

  .footer-legal {
    margin-top: 34px;
    font-size: 11px;
  }

  .copyright {
    margin-top: 34px;
    font-size: 10px;
  }

  .toast {
    right: 28px;
    bottom: 28px;
    left: auto;
    width: min(420px, calc(100vw - 56px));
    font-size: 13px;
  }

  /* 会員登録画面：ウェブ */
  .registration-header {
    height: 80px;
    border-bottom: 1px solid var(--line);
    padding: 0 64px;
  }

  .registration-header .brand {
    width: 160px;
    font-size: 24px;
  }

  .registration-header .page-label {
    display: none;
  }

  .registration-header .registration-nav {
    position: absolute;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
  }

  .registration-header .login-action {
    display: block;
    width: 220px;
    border: 0;
    background: transparent;
    color: var(--forest-2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
  }

  .registration-layout {
    display: grid;
    min-height: 944px;
    grid-template-columns: 500px 660px;
    align-items: start;
    gap: 64px;
    padding: 56px max(5vw, calc((100vw - 1296px) / 2));
  }

  .registration-intro {
    min-height: 660px;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--sage);
    padding: 48px;
  }

  .step-chip {
    min-height: 50px;
    border-radius: 16px;
    background: var(--white);
    padding: 6px 12px;
  }

  .registration-intro h1 {
    font-size: 38px;
    line-height: 52px;
  }

  .registration-intro > p {
    font-size: 16px;
    line-height: 26px;
  }

  .registration-value-points {
    display: grid;
    gap: 14px;
    margin-top: 2px;
  }

  .registration-value-points li {
    display: grid;
    min-height: 64px;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    background: var(--white);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
  }

  .registration-value-points .asset-number {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--green);
  }

  .registration-value-points .asset-number b {
    font-size: 10px;
  }

  .registration-intro-note {
    display: block;
    margin-top: 0;
    color: var(--forest) !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  .registration-form {
    position: relative;
    min-height: 570px;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    padding: 34px 44px;
  }

  .registration-form > h2 {
    display: block;
    font-size: 30px;
    line-height: 42px;
  }

  .registration-form > .form-intro {
    display: block;
    margin-top: -6px;
    color: var(--muted);
    font-size: 12px;
  }

  .consent-card {
    gap: 14px;
    border: 0;
    border-radius: 16px;
    background: var(--sage-soft);
    padding: 16px 18px;
  }

  .consent-row {
    background: var(--white);
  }

  .field {
    min-height: 67px;
    padding: 10px 16px;
  }

  .registration-info {
    display: none;
  }

  .registration-submit {
    height: 56px;
    border-radius: 28px;
    font-size: 15px;
  }

  .registration-login {
    font-size: 12px;
  }

  .prototype-note {
    position: absolute;
    right: 44px;
    bottom: -28px;
    left: 44px;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .hero-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-preview-desktop,
  .dashboard-card-desktop {
    width: 100%;
  }

  .registration-layout {
    grid-template-columns: minmax(360px, 500px) minmax(520px, 660px);
    gap: 32px;
    padding-inline: 32px;
  }
}

.hero {
  min-height: 720px;
}

.hero-grid {
  grid-template-columns: minmax(0, 620px) minmax(480px, 560px);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 530px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 56px;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(5, 80, 50, 0.16);
}

.hero-photo img {
  object-position: 61% center;
  animation: heroImageDrift 16s ease-in-out infinite alternate;
}

.case-preview-desktop {
  position: absolute;
  z-index: 2;
  right: -12px;
  bottom: 0;
  width: 382px;
  height: auto;
  min-height: 324px;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 62px rgba(5, 80, 50, 0.2);
}

.case-preview-desktop .preview-label,
.case-preview-desktop .progress,
.case-preview-desktop .preview-panel {
  margin-top: 12px;
}

.case-preview-desktop .preview-panel {
  padding: 12px 14px;
}

.case-preview-desktop .preview-note {
  margin-top: 12px;
}

.documents {
  min-height: 568px;
  padding-block: 72px;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.documents-photo {
  height: 390px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(5, 80, 50, 0.14);
}

.documents-photo img {
  object-position: 50% 55%;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.documents-photo:hover img {
  transform: scale(1.035);
}

.documents-copy .section-lead {
  margin-top: 10px;
}

.documents-copy .document-flow-cards {
  margin-top: 20px;
}

.documents-copy .info-card {
  min-height: 154px;
  padding: 20px;
}

.info-card:hover,
.journey-card:hover,
.role-card:hover,
.faq-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(69, 133, 0, 0.34);
  box-shadow: 0 16px 34px rgba(5, 80, 50, 0.09);
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  }

  .case-preview-desktop {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .documents-layout {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
  }
}

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

/* Compact image-led landing page. */
.compact-hero {
  min-height: 640px;
  padding-block: 58px;
}

.compact-hero .hero-grid {
  grid-template-columns: minmax(380px, 0.86fr) minmax(520px, 1.14fr);
  gap: 56px;
}

.compact-hero .hero-copy {
  gap: 16px;
}

.compact-hero h1 {
  font-size: 48px;
  line-height: 1.32;
}

.compact-hero .hero-lead {
  margin-top: 0;
  font-size: 19px;
}

.compact-hero .hero-button {
  width: auto;
  min-width: 220px;
  margin-top: 14px;
  border-radius: 999px;
}

.compact-hero .hero-visual {
  min-height: 500px;
  margin-top: 0;
}

.compact-hero .hero-photo {
  height: 500px;
  border-radius: 28px;
}

.compact-hero .hero-photo img {
  object-position: 62% center;
}

.hero-status-card {
  right: auto;
  bottom: 28px;
  left: -42px;
  width: 340px;
  padding: 20px;
  border-radius: 20px;
}

.hero-status-card > strong {
  font-size: 18px;
}

.hero-status-card small {
  font-size: 11px;
}

.visual-flow,
.role-strip,
.compact-pricing,
.compact-faq {
  padding: 92px 6.111vw;
}

.compact-heading {
  text-align: center;
}

.compact-heading .section-title {
  margin-top: 12px;
  font-size: 44px;
}

.visual-flow-grid {
  grid-template-columns: minmax(420px, 1.1fr) minmax(370px, 0.9fr);
  align-items: center;
  gap: 88px;
  margin-top: 58px;
}

.flow-photos {
  min-height: 540px;
}

.member-photo {
  width: 76%;
  height: 520px;
  border-radius: 30px;
}

.member-photo img {
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.member-photo:hover img {
  transform: scale(1.025);
}

.flow-documents-photo {
  width: 46%;
  height: 235px;
  border-width: 8px;
  border-radius: 24px;
}

.three-steps {
  gap: 18px;
}

.three-steps li {
  min-height: 122px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.three-steps li:hover {
  transform: translateX(6px);
  border-color: rgba(69, 133, 0, 0.32);
  box-shadow: 0 16px 34px rgba(5, 80, 50, 0.08);
}

.three-steps li > span {
  width: 58px;
  height: 58px;
  font-size: 15px;
}

.three-steps h3 {
  font-size: 20px;
}

.three-steps p {
  font-size: 14px;
}

.compact-dashboard {
  min-height: auto;
  padding: 96px 6.111vw;
}

.compact-dashboard .dashboard-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 80px;
}

.compact-dashboard .dashboard-copy .section-title {
  margin-top: 14px;
  font-size: 44px;
}

.compact-dashboard .section-lead {
  margin-top: 18px;
  font-size: 16px;
}

.compact-dashboard-card {
  min-height: 420px;
  margin-top: 0;
  padding: 30px;
  border-radius: 24px;
}

.compact-dashboard-card .dashboard-mobile-top strong {
  font-size: 20px;
}

.compact-dashboard-card .dashboard-mobile-top span {
  font-size: 12px;
}

.compact-dashboard-card > h3 {
  font-size: 28px;
}

.compact-dashboard-card > p {
  font-size: 14px;
}

.compact-dashboard-card .document-row {
  min-height: 82px;
  padding: 16px 18px;
}

.compact-dashboard-card .document-row strong {
  font-size: 14px;
}

.compact-dashboard-card .document-row small {
  font-size: 11px;
}

.role-strip .section-title {
  text-align: center;
}

.role-strip-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.role-strip-grid article {
  min-height: 150px;
  padding: 26px;
}

.role-strip-grid article > span {
  font-size: 12px;
}

.role-strip-grid h3 {
  font-size: 20px;
}

.role-strip-grid p {
  font-size: 14px;
}

.compact-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 72px;
}

.compact-pricing .section-title {
  margin-top: 12px;
  font-size: 40px;
}

.compact-pricing-action {
  margin-top: 0;
}

.compact-pricing-action p {
  font-size: 14px;
}

.compact-pricing-action .button {
  width: auto;
  min-width: 250px;
  margin-top: 22px;
  border-radius: 999px;
}

.faq-compact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(500px, 1.35fr);
  gap: 80px;
}

.compact-faq .section-title {
  margin-top: 12px;
  font-size: 42px;
}

.compact-faq-list {
  margin-top: 0;
}

.compact-faq-list summary {
  align-items: center;
  padding: 18px 20px;
  font-size: 14px;
}

.compact-faq-list details > p {
  margin: -4px 62px 20px 20px;
  font-size: 13px;
}

.compact-final {
  min-height: 280px;
  padding-block: 70px;
}

.compact-final .section-title {
  font-size: 38px;
}

.compact-final .button {
  width: auto;
  min-width: 260px;
  margin-top: 30px;
  border-radius: 999px;
}

/* Althera / MedVi-derived landing layout. */
.reference-header {
  height: 80px;
  padding-inline: 6.111vw;
}

.reference-header .desktop-nav {
  color: #dce8e0;
}

.reference-header .text-action {
  color: var(--white);
}

.reference-header .header-cta {
  min-height: 48px;
  padding: 12px 22px;
}

.reference-kicker {
  font-size: 13px;
}

.reference-hero {
  min-height: 760px;
  padding: 55px 6.111vw 44px;
}

.reference-hero-copy {
  max-width: 960px;
}

.reference-hero h1 {
  margin-top: 18px;
  font-size: clamp(62px, 5.3vw, 78px);
  line-height: 1.08;
}

.reference-hero-copy > p:not(.reference-kicker) {
  margin-top: 22px;
  font-size: 17px;
}

.reference-hero-cta {
  margin-top: 22px;
  font-size: 15px;
}

.reference-card-rail {
  display: grid;
  max-width: 1040px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 46px auto 0;
  overflow: visible;
  padding: 0;
}

.reference-card {
  width: auto;
  min-width: 0;
  border-width: 9px;
  border-radius: 24px;
}

.reference-card img {
  height: 160px;
}

.reference-card > div {
  min-height: 60px;
  padding-inline: 12px;
}

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

.reference-ticker {
  padding-block: 17px;
}

.reference-ticker-group {
  gap: 46px;
  padding-inline: 23px;
}

.reference-ticker span {
  font-size: 12px;
}

.reference-showcase,
.reference-steps,
.reference-portal,
.reference-boundary,
.reference-faq {
  padding: 102px 6.111vw;
}

.reference-section-head h2,
.reference-portal-title h2,
.reference-final h2 {
  margin-top: 13px;
  font-size: 48px;
  line-height: 1.22;
}

.reference-showcase .reference-section-head {
  text-align: center;
}

.reference-showcase .reference-section-head h2 br {
  display: none;
}

.reference-showcase-media {
  min-height: 620px;
  margin-top: 52px;
  border-radius: 34px;
}

.reference-showcase-media > img {
  height: 620px;
  object-position: 64% center;
}

.reference-showcase-panel {
  right: auto;
  bottom: 34px;
  left: 34px;
  width: 430px;
  padding: 26px;
  border-radius: 24px;
}

.reference-showcase-panel h3 {
  font-size: 28px;
}

.reference-showcase-panel p {
  font-size: 13px;
}

.reference-dots {
  top: 28px;
  right: 30px;
}

.reference-dots i {
  width: 9px;
  height: 9px;
}

.reference-steps .reference-section-head {
  text-align: center;
}

.reference-steps-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 62px;
}

.reference-steps-grid li:not(:last-child)::after {
  position: absolute;
  top: 49px;
  left: calc(50% + 68px);
  width: calc(100% - 136px);
  border-top: 2px dashed #c6d8d0;
  content: "";
}

.reference-step-icon {
  width: 114px;
  height: 114px;
}

.reference-steps-grid li > b {
  right: calc(50% - 75px);
}

.reference-steps-grid h3 {
  margin-top: 24px;
  font-size: 20px;
}

.reference-steps-grid p {
  font-size: 13px;
}

.reference-steps-cta {
  width: auto;
  min-width: 260px;
  margin-top: 54px;
}

.reference-portal-title h2 {
  font-size: 62px;
}

.reference-portal-grid {
  grid-template-columns: minmax(270px, 0.76fr) minmax(290px, 0.82fr) minmax(390px, 1.22fr);
  align-items: stretch;
  gap: 22px;
  margin-top: 58px;
}

.reference-included,
.reference-portal-person,
.reference-dashboard-card {
  min-height: 570px;
  border-radius: 28px;
}

.reference-included > img {
  height: 310px;
}

.reference-included h3 {
  margin: 28px 26px 0;
  font-size: 20px;
}

.reference-included ul {
  margin-inline: 26px;
}

.reference-included li {
  font-size: 13px;
}

.reference-portal-person {
  height: 570px;
}

.reference-dashboard-card {
  padding: 30px;
}

.reference-dashboard-card .dashboard-mobile-top strong {
  font-size: 20px;
}

.reference-dashboard-card .dashboard-mobile-top span {
  font-size: 11px;
}

.reference-dashboard-card > h3 {
  font-size: 29px;
}

.reference-dashboard-card > p {
  font-size: 13px;
}

.reference-dashboard-card .document-row {
  min-height: 92px;
  margin-top: 18px;
  padding: 18px;
}

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

.reference-dashboard-card .document-row small {
  font-size: 11px;
}

.reference-boundary {
  padding-block: 104px;
}

.reference-boundary-layout {
  grid-template-columns: minmax(350px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(64px, 7vw, 118px);
}

.reference-boundary-intro h2 {
  max-width: 590px;
  font-size: clamp(48px, 4vw, 62px);
}

.reference-boundary-lead {
  font-size: 15px;
}

.reference-boundary-patient {
  margin-top: 34px;
  padding: 19px;
}

.reference-boundary-patient strong {
  font-size: 15px;
}

.reference-boundary-map {
  width: 100%;
  max-width: 640px;
  justify-self: end;
}

.boundary-role-card {
  min-height: 184px;
  border-radius: 28px;
  padding: 30px 32px;
}

.boundary-role-card h3 {
  margin-top: 22px;
  font-size: 32px;
}

.boundary-role-card p {
  font-size: 14px;
}

.boundary-role-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.boundary-role-icon svg {
  width: 24px;
  height: 24px;
}

.boundary-separator {
  height: 44px;
}

.reference-faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(520px, 1.35fr);
  gap: 88px;
}

.reference-faq-list {
  margin-top: 0;
}

.reference-faq-list summary {
  align-items: center;
  padding: 18px 20px;
  font-size: 14px;
}

.reference-faq-list details > p {
  margin: -4px 62px 20px 20px;
  font-size: 13px;
}

.reference-final {
  min-height: 560px;
  align-items: center;
  padding: 70px 6.111vw;
}

.reference-final > img {
  right: 0;
  left: auto;
  width: 58%;
  object-position: 50% 25%;
}

.reference-final::after {
  background: linear-gradient(90deg, #055032 0%, #055032 40%, rgba(5, 80, 50, 0.82) 58%, rgba(5, 80, 50, 0.06) 100%);
}

.reference-final > div {
  width: 44%;
  max-width: 560px;
}

.reference-final h2 {
  font-size: 48px;
}

.reference-final .button {
  width: auto;
  min-width: 260px;
  margin-top: 30px;
}

.reference-final small {
  width: 260px;
  font-size: 10px;
}

.reference-whatsapp {
  padding: 76px 6.111vw;
}

.reference-whatsapp-icon {
  width: 60px;
  height: 60px;
}

.reference-whatsapp h2 {
  font-size: 38px;
}

.reference-whatsapp h2 + p {
  font-size: 14px;
}

.reference-whatsapp-button {
  min-width: 230px;
}

/* Desktop motion pacing follows the broad, slow reference-site rhythm. */
.motion-ready .reference-steps-grid li:not(:last-child)::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms;
}

.motion-ready .reference-steps-grid li.is-visible:not(:last-child)::after {
  transform: scaleX(1);
}

.reference-card-rail:hover .reference-card:not(:hover) {
  opacity: 0.82;
  transform: scale(0.985) rotate(var(--card-angle));
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reference-steps-grid li:not(:last-child)::after {
    transform: none;
    transition: none;
  }
}

/* The portal pairs concise benefits with a Figma-derived iPhone client-area screen. */
.reference-portal {
  height: 760px;
  overflow: hidden;
  padding-top: 46px;
  padding-bottom: 0;
}

.reference-portal .section-shell {
  width: min(100%, 1230px);
  margin-inline: auto;
}

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

.reference-portal .reference-portal-title h2 {
  max-width: none;
  font-size: clamp(42px, 3.25vw, 58px);
  line-height: 1.12;
  white-space: nowrap;
}

.reference-portal-grid.reference-portal-simple {
  width: min(100%, 1120px);
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 410px);
  align-items: start;
  gap: clamp(76px, 8vw, 138px);
  margin-top: 76px;
  margin-inline: auto;
}

.reference-portal-simple .reference-included {
  min-height: 0;
  padding: 28px;
}

.reference-portal-simple .reference-included h3 {
  margin: 0;
  font-size: 24px;
}

.reference-portal-simple .reference-included ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.reference-portal-simple .reference-included li {
  min-height: 110px;
}

.reference-portal-simple .reference-included li strong {
  font-size: 16px;
}

.reference-portal-simple .reference-included li small {
  font-size: 11px;
}

.reference-portal-simple .iphone-preview {
  width: min(100%, 410px);
}

@media (max-width: 1120px) {
  .reference-portal {
    height: 720px;
  }

  .reference-portal .reference-portal-title h2 {
    white-space: normal;
  }

  .reference-portal-grid.reference-portal-simple {
    grid-template-columns: minmax(330px, 1fr) minmax(350px, 390px);
    gap: 56px;
  }
}

/* Desktop first view: full-width medical photography with a focused value proposition. */
.reference-hero {
  min-height: 710px;
  padding: 0 6.111vw 44px;
}

.reference-hero-photo img {
  object-position: center center;
}

.reference-hero::before {
  background: linear-gradient(90deg, rgba(var(--forest-rgb), 0.97) 0%, rgba(var(--forest-rgb), 0.88) 31%, rgba(var(--forest-rgb), 0.45) 55%, rgba(var(--forest-rgb), 0.08) 78%);
}

.reference-hero-copy {
  max-width: 720px;
  padding-top: 112px;
}

.reference-hero h1 {
  max-width: 720px;
  margin-top: 20px;
  font-size: clamp(52px, 4.3vw, 68px);
  line-height: 1.06;
}

.reference-hero-copy > p:not(.reference-kicker) {
  max-width: 630px;
  margin-top: 24px;
  font-size: 17px;
}

.reference-hero-points {
  position: relative;
  z-index: 3;
  bottom: auto;
  left: auto;
  display: flex;
  width: min(820px, 100%);
  margin: 36px 0 0;
  border-radius: 999px;
}

.reference-hero-points li {
  min-height: 54px;
  flex: 1;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  padding-inline: 18px;
  font-size: 13px;
}

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

@media (min-width: 901px) and (max-width: 1120px) {
  .reference-boundary-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 44px;
  }

  .reference-boundary-intro h2 {
    font-size: 44px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .reference-header .desktop-nav,
  .reference-header .header-actions {
    display: none;
  }

  .reference-header .mobile-menu-control {
    display: flex !important;
    color: #dce8e0;
  }

  .mobile-menu:not([hidden]) {
    display: block !important;
    top: 80px;
  }

  .reference-boundary-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .reference-boundary-intro {
    max-width: 650px;
  }

  .reference-boundary-map {
    max-width: none;
    justify-self: stretch;
  }
}

/* Full-width FAQ rhythm inspired by established import-service pages. */
.reference-faq {
  padding-block: 112px 124px;
}

.reference-faq-grid {
  display: block;
}

.reference-faq .reference-section-head h2 {
  margin-top: 14px;
  font-size: clamp(54px, 4.5vw, 72px);
  line-height: 1.04;
}

.reference-faq-list {
  width: min(100%, 1120px);
  margin-top: 58px;
}

.reference-faq-list summary {
  min-height: 96px;
  padding: 28px 10px;
  font-size: clamp(23px, 1.7vw, 28px);
  line-height: 1.25;
}

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

.reference-faq-list details > p {
  max-width: 930px;
  margin: -4px 72px 32px 10px;
  font-size: 16px;
  line-height: 1.75;
}

.reference-faq-list .faq-answer {
  max-width: 930px;
  margin: -4px 72px 36px 10px;
  font-size: 16px;
  line-height: 1.75;
}

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

.reference-faq-list .faq-answer ul {
  gap: 7px;
  margin-block: 15px 18px;
  padding-left: 22px;
}

.faq-source-link {
  font-size: 13px;
}
