.aihkp-page {
  --navy-950: #0b1f33;
  --navy-800: #17354d;
  --emerald-700: #087c72;
  --emerald-600: #0a9486;
  --emerald-100: #e5f6f2;
  --ink: #1c2b36;
  --muted: #5f6d77;
  --line: #d8e2e6;
  --paper: #ffffff;
  --mist: #f4f8f8;
  --success: #047857;
  --shadow: 0 8px 24px rgba(11, 31, 51, 0.08);
  --radius: 8px;
}

.aihkp-page, .aihkp-page * {
  box-sizing: border-box;
}

.aihkp-page {
  background: var(--mist);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

body.aihkp-independent-page {
  margin: 0;
}

.aihkp-page button,
.aihkp-page a {
  font: inherit;
}

.aihkp-page button,
.aihkp-page summary,
.aihkp-page a {
  -webkit-tap-highlight-color: transparent;
}

.aihkp-page a {
  color: inherit;
}

.aihkp-skip-link {
  background: var(--paper);
  color: var(--navy-950);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}

.aihkp-skip-link:focus {
  top: 1rem;
}

.aihkp-section-shell {
  margin-inline: auto;
  max-width: 760px;
  padding-inline: 1.25rem;
}

.aihkp-hero {
  background: var(--navy-950);
  color: var(--paper);
  padding-bottom: 3.5rem;
  padding-top: 3.25rem;
}

.aihkp-hero__inner {
  margin-inline: auto;
  max-width: 760px;
  padding-inline: 1.25rem;
}

.aihkp-hero__content {
  min-width: 0;
}

.aihkp-hero__audience {
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.aihkp-hero__audience-lead {
  color: #d6e5eb;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.aihkp-hero__audience-focus {
  color: #f7ffff;
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  padding-bottom: 0.45rem;
  position: relative;
}

.aihkp-hero__audience-focus::after {
  background: var(--emerald-600);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 100%;
}

.aihkp-section-heading__eyebrow,
.aihkp-step-card__number {
  color: var(--emerald-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.aihkp-page h1,
.aihkp-page h2,
.aihkp-page h3 {
  color: var(--navy-950);
  line-height: 1.35;
}

.aihkp-page h1 {
  color: var(--paper);
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: 1rem;
}

.aihkp-page h2 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  margin-bottom: 0.75rem;
}

.aihkp-page h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.aihkp-hero__lead {
  color: #e9f0f4;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.aihkp-reassurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.aihkp-reassurance-list li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f6fbfc;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.aihkp-action-stack {
  display: grid;
  gap: 0.75rem;
  max-width: 440px;
}

.aihkp-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.aihkp-button:focus-visible,
.aihkp-text-button:focus-visible,
.aihkp-page summary:focus-visible,
.aihkp-js-lightbox-image:focus-visible,
.aihkp-image-lightbox__close:focus-visible {
  outline: 3px solid #f5b942;
  outline-offset: 3px;
}

.aihkp-button--primary {
  background: var(--emerald-600);
  color: var(--paper);
}

.aihkp-button--primary:hover {
  background: var(--emerald-700);
}

.aihkp-button--secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--navy-800);
}

.aihkp-button--soft {
  background: var(--emerald-100);
  border-color: #84cbbf;
  color: #06675f;
}

.aihkp-button--soft:hover {
  background: #d2eee8;
  border-color: var(--emerald-600);
}

.aihkp-button--soft:focus-visible {
  outline-color: var(--emerald-700);
}

.aihkp-hero .aihkp-button--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--paper);
}

.aihkp-button--small {
  justify-self: start;
  min-height: 44px;
}

.aihkp-copy-status,
.aihkp-link-status {
  color: var(--success);
  font-size: 0.9rem;
  margin: 0;
}

.aihkp-hero .aihkp-copy-status {
  color: #9cf2db;
}

.aihkp-hero__hint {
  color: #c8d4dc;
  font-size: 0.82rem;
  margin: 1rem 0 0;
}

.aihkp-hero__visual {
  margin: 1.25rem 0 1.4rem;
}

.aihkp-hero__visual-card {
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(11, 31, 51, 0.08);
  padding: 0.75rem;
}

.aihkp-hero__visual-image {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.aihkp-section {
  padding-block: 3.75rem;
}

.aihkp-section--tint {
  background: var(--emerald-100);
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - 760px) / 2));
}

.aihkp-section-heading {
  max-width: 620px;
}

.aihkp-section-heading > p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.aihkp-step-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.aihkp-step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.aihkp-step-card p,
.aihkp-disclosure__content p,
.aihkp-feedback__note {
  color: var(--muted);
}

.aihkp-image-placeholder {
  align-content: center;
  background: repeating-linear-gradient(135deg, #edf4f4, #edf4f4 10px, #e2eceb 10px, #e2eceb 20px);
  border: 1px dashed #8fa9a5;
  color: var(--navy-800);
  display: grid;
  font-size: 0.8rem;
  gap: 0.35rem;
  margin-top: 1.15rem;
  min-height: 250px;
  padding: 1rem;
  text-align: left;
}

.aihkp-image-placeholder strong {
  font-size: 0.95rem;
}

.aihkp-image-placeholder__label {
  color: var(--emerald-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.aihkp-step-image {
  margin: 1.15rem 0 0;
}

.aihkp-step-image img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.aihkp-js-lightbox-image {
  cursor: zoom-in;
  transition: filter 160ms ease;
}

.aihkp-js-lightbox-image:hover {
  filter: brightness(0.98);
}

.aihkp-image-zoom-hint {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0.7rem 0 0;
  text-align: center;
}

body.aihkp-is-lightbox-open {
  overflow: hidden;
}

.aihkp-image-lightbox {
  align-items: center;
  background: rgba(5, 19, 35, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.aihkp-image-lightbox[hidden] {
  display: none;
}

.aihkp-image-lightbox__backdrop {
  inset: 0;
  position: absolute;
}

.aihkp-image-lightbox__content {
  max-height: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.aihkp-image-lightbox__image {
  display: block;
  height: auto;
  max-height: min(var(--lightbox-natural-height, 100vh), calc(100vh - 2rem));
  max-width: min(var(--lightbox-natural-width, 100vw), calc(100vw - 2rem));
  object-fit: contain;
  width: auto;
}

.aihkp-image-lightbox__close {
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(5, 19, 35, 0.22);
  border-radius: 50%;
  color: var(--navy-800);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.5rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  width: 44px;
}

.aihkp-image-lightbox__close:hover {
  background: #e9f7f3;
}

.aihkp-app-links {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.aihkp-text-button {
  background: transparent;
  border: 0;
  color: var(--emerald-700);
  cursor: pointer;
  font-weight: 700;
  padding: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.aihkp-disclosure-group {
  display: grid;
  gap: 0.75rem;
}

.aihkp-disclosure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.aihkp-disclosure summary {
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  min-height: 56px;
  padding: 1rem 3rem 1rem 1rem;
  position: relative;
}

.aihkp-disclosure summary::-webkit-details-marker {
  display: none;
}

.aihkp-disclosure summary::after {
  color: var(--emerald-700);
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.aihkp-disclosure[open] summary::after {
  content: "−";
}

.aihkp-disclosure__content {
  border-top: 1px solid var(--line);
  padding: 1rem;
}

.aihkp-notice {
  background: #fff9e8;
  border-left: 3px solid #d9a514;
  color: #66501c !important;
  font-size: 0.88rem;
  padding: 0.75rem;
}

.aihkp-prompt-preview {
  background: #102d3f;
  color: #eaf5f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  max-height: 20rem;
  margin: 1rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.aihkp-prompt-copy-help {
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
}

.aihkp-feedback {
  padding-bottom: 3.75rem;
  padding-top: 3.75rem;
}

.aihkp-feedback .aihkp-button {
  margin-top: 1rem;
}

.aihkp-feedback__note {
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.aihkp-consultation {
  border-top: 1px solid var(--line);
  padding-bottom: 2rem;
  padding-top: 1.5rem;
}

.aihkp-consultation p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.aihkp-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  padding-bottom: 2rem;
  padding-top: 1.5rem;
}

.aihkp-footer p {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .aihkp-section-shell {
    padding-inline: 2rem;
  }

  .aihkp-hero {
    padding-bottom: 5rem;
    padding-top: 5rem;
  }

  .aihkp-hero__inner {
    padding-inline: 2rem;
  }

  .aihkp-hero__lead {
    font-size: 1.2rem;
  }

  .aihkp-hero__visual-card {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .aihkp-section {
    padding-block: 5rem;
  }

  .aihkp-section--tint {
    padding-inline: max(2rem, calc((100% - 760px) / 2));
  }

  .aihkp-step-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .aihkp-step-card {
    display: flex;
    flex-direction: column;
  }

  .aihkp-image-placeholder {
    margin-top: auto;
    min-height: 290px;
  }

  .aihkp-step-image {
    margin-top: auto;
  }

  .aihkp-image-lightbox {
    padding: 2rem;
  }

  .aihkp-image-lightbox__image {
    max-height: min(var(--lightbox-natural-height, 100vh), calc(100vh - 4rem));
    max-width: min(var(--lightbox-natural-width, 100vw), calc(100vw - 4rem));
  }

  .aihkp-disclosure__content {
    padding: 1.25rem;
  }

  .aihkp-prompt-preview {
    max-height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
