:root {
  color-scheme: light;
  --ink: #30382d;
  --muted: #747967;
  --line: rgba(79, 87, 68, 0.22);
  --paper: #f2efe2;
  --panel: #fbfaf4;
  --mint: #4f5744;
  --mint-dark: #30382d;
  --coral: #e88267;
  --gold: #d7b96e;
  --sky: #b9dbe3;
  --leaf: #d9ddc9;
  --shadow: 0 24px 70px rgba(48, 56, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    linear-gradient(180deg, #fffaf2 0%, #eff8f3 44%, #f8fbff 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 242, 0.88);
  border-bottom: 1px solid rgba(217, 228, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: var(--mint);
  box-shadow: 0 10px 24px rgba(31, 157, 136, 0.24);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover,
.nav-button:hover {
  color: var(--mint-dark);
}

.nav-button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: block;
  width: 58px;
  height: 54px;
  place-items: center;
  border: 0;
  background: var(--mint-dark);
  cursor: pointer;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 80%);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(23, 33, 31, 0.38);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(86vw, 430px);
  min-height: 100vh;
  padding: 22px;
  background: #fff;
  box-shadow: -24px 0 70px rgba(23, 33, 31, 0.18);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.menu-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: #f3f6f4;
  border-radius: 10px;
  cursor: pointer;
  font-size: 28px;
}

.menu-primary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  border-radius: 999px;
  color: #fff;
  background: #84559c;
  font-weight: 900;
}

.mobile-menu-links {
  display: grid;
}

.mobile-menu-links a {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 8vw, 94px) clamp(18px, 6vw, 82px) 42px;
  align-items: center;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: var(--mint);
  box-shadow: 0 14px 28px rgba(31, 157, 136, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.wide {
  width: 100%;
}

.header-action {
  min-height: 42px;
}


.section {
  padding: 78px clamp(18px, 6vw, 82px);
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px clamp(18px, 6vw, 82px) 76px;
  background: #fff;
}

.landing-stats div {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.landing-stats strong {
  color: var(--mint);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.landing-stats span {
  color: var(--muted);
  font-weight: 800;
}

.result-cta {
  min-width: min(100%, 360px);
  flex: 1 1 360px;
  white-space: nowrap;
}

.landing-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 64px clamp(18px, 6vw, 82px);
  background: linear-gradient(135deg, #17211f, #126f63);
  color: #fff;
}

.landing-custom .eyebrow,
.landing-custom p {
  color: #cfeee7;
}

.landing-custom h2 {
  max-width: 840px;
}

.type-preview {
  background: linear-gradient(180deg, #fff, #f3faf7);
}

.preview-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.preview-grid article,
.package-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.06);
}

.preview-grid span {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  background: var(--mint);
  font-weight: 900;
}

.preview-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.preview-grid p,
.package-grid p,
.package-grid li {
  color: var(--muted);
  line-height: 1.65;
}

.package-section {
  background: #fffaf2;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-grid h3 {
  font-size: 24px;
}

.package-grid ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.featured-package {
  border-color: rgba(31, 157, 136, 0.45) !important;
  background: linear-gradient(180deg, #fff, #eefaf6) !important;
  transform: translateY(-8px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.intro-grid .section-heading {
  grid-column: 1 / -1;
}

.intro-grid article,
.type-card,
.quiz-card,
.test-panel,
.conversion-card,
.result-hero,
.result-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.06);
}

.intro-grid article {
  padding: 22px;
}

.intro-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--mint-dark);
  font-size: 18px;
}

.intro-grid p,
.test-panel p,
.conversion p,
.result-block p {
  color: var(--muted);
  line-height: 1.75;
}

.app-section {
  background: linear-gradient(180deg, rgba(217, 239, 228, 0.54), rgba(191, 231, 242, 0.32));
}

.test-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.test-panel,
.quiz-card {
  padding: clamp(22px, 4vw, 34px);
}

.test-panel {
  position: static;
}

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

.scale-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
}

.scale-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
}

.note {
  border-left: 4px solid var(--gold);
  padding: 12px 0 12px 14px;
}

.progress-wrap {
  margin-bottom: 28px;
}

.progress-wrap span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8f0ed;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--coral));
  transition: width 0.25s ease;
}

.profile-form h2,
.question-view h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 16px;
}

input:focus,
select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(31, 157, 136, 0.12);
}

input.invalid,
select.invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.14);
}

.form-error {
  min-height: 24px;
  margin: -6px 0 16px;
  color: #c94f35;
  font-weight: 800;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.question-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--mint-dark);
  background: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.option strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: #eff6f3;
}

.option.selected {
  border-color: var(--mint);
  background: #eefaf6;
  box-shadow: 0 0 0 4px rgba(31, 157, 136, 0.1);
}

.option.selected strong {
  color: #fff;
  background: var(--mint);
}

.quiz-actions {
  justify-content: space-between;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.type-card {
  padding: 18px;
}

.type-card .code {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 6px 9px;
  color: #fff;
  background: var(--mint);
  font-weight: 900;
}

.type-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.type-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.conversion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  background: #17211f;
  color: #fff;
}

.conversion .eyebrow,
.conversion p {
  color: #bfe7f2;
}

.conversion-card {
  padding: 24px;
  color: var(--ink);
}

.conversion-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.4;
}

.conversion-card p {
  color: var(--muted);
  line-height: 1.7;
}

.result-view {
  display: grid;
  gap: 16px;
  scroll-margin-top: 88px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, #fff, #eefaf6);
}

.result-code {
  color: var(--mint-dark);
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 900;
  line-height: 1;
}

.result-hero h2 {
  margin: 10px 0;
}

.result-avatar {
  display: grid;
  min-height: 220px;
  width: 100%;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(246, 200, 76, 0.36), rgba(191, 231, 242, 0.58)),
    #fff;
  overflow: hidden;
  padding: 18px;
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  color: var(--mint-dark);
}

.result-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
}

.result-avatar.image-avatar {
  background: #fffdf8;
}

.result-block {
  padding: 24px;
}

.result-block h3 {
  margin-bottom: 10px;
}

.dimension-list {
  display: grid;
  gap: 12px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 80px;
  gap: 12px;
  align-items: center;
}

.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8f0ed;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--coral);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--leaf);
  color: var(--mint-dark);
  font-weight: 800;
}

.prompt-box {
  border: 1px dashed rgba(31, 157, 136, 0.5);
  border-radius: 14px;
  padding: 16px;
  background: #f6fffb;
  color: var(--muted);
  line-height: 1.75;
}

.custom-order {
  border-color: rgba(255, 122, 89, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(238, 250, 246, 0.96));
}

.custom-order h3 {
  color: var(--mint-dark);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.custom-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.custom-item strong {
  display: block;
  margin-bottom: 8px;
}

.custom-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 26px clamp(18px, 6vw, 82px);
  color: var(--muted);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1000px) {
  .test-shell,
  .conversion {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .test-panel {
    position: static;
  }

  .intro-grid,
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-stats,
  .landing-custom {
    grid-template-columns: 1fr 1fr;
  }

  .landing-custom .button {
    width: 100%;
  }

  .preview-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    background: linear-gradient(180deg, #fffaf2 0%, #eef8f3 38%, #f7fbff 100%);
  }

  .site-header {
    align-items: center;
    padding: 10px 14px;
    gap: 10px;
  }

  .top-nav {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  .hero,
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    padding: 24px 14px 42px;
  }

  .landing-stats strong {
    font-size: 34px;
  }

  .landing-stats span {
    font-size: 13px;
  }

  .landing-custom {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 38px 14px;
  }

  .landing-custom .button {
    width: 100%;
  }

  .preview-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .featured-package {
    transform: none;
  }

  .button {
    min-height: 50px;
    width: 100%;
    border-radius: 10px;
    padding: 0 16px;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .app-section {
    padding-top: 28px;
  }

  .test-shell {
    gap: 14px;
  }

  .quiz-card,
  .test-panel,
  .result-hero,
  .result-block,
  .intro-grid article,
  .conversion-card {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(23, 33, 31, 0.06);
  }

  .quiz-card,
  .test-panel {
    padding: 18px;
  }

  .progress-wrap {
    margin-bottom: 20px;
  }

  .profile-form h2,
  .question-view h2 {
    font-size: 25px;
    line-height: 1.22;
  }

  .form-grid {
    gap: 12px;
    margin: 18px 0;
  }

  label {
    gap: 7px;
    font-size: 13px;
  }

  input,
  select {
    min-height: 52px;
    border-radius: 11px;
  }

  .question-meta {
    gap: 8px;
    margin-bottom: 14px;
  }

  .question-meta span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .options {
    gap: 10px;
    margin-top: 18px;
  }

  .option {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 64px;
    border-radius: 12px;
    padding: 12px;
    line-height: 1.45;
  }

  .option strong {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .quiz-actions .button {
    min-width: 0;
  }

  .result-cta {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .intro-grid,
  .type-grid,
  .form-grid,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .dimension-row {
    grid-template-columns: 1fr;
  }

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

  .scale-list {
    gap: 8px;
    margin: 18px 0;
  }

  .scale-list span {
    padding: 9px 10px;
    font-size: 14px;
  }

  .result-hero,
  .result-block {
    padding: 18px;
  }

  .result-code {
    font-size: 46px;
  }

  .result-avatar {
    min-height: 104px;
    font-size: 42px;
    border-radius: 14px;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-list span {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .prompt-box {
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
  }

  .custom-item {
    padding: 14px;
  }

  .conversion {
    gap: 18px;
  }

  .conversion-card {
    padding: 18px;
  }

  .conversion-card strong {
    font-size: 19px;
  }

  .site-footer {
    display: grid;
    padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 30px;
  }

  .quiz-card,
  .test-panel,
  .result-hero,
  .result-block {
    padding: 15px;
  }

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

/* Mobile-first Petti questionnaire */
.test-page {
  background: #fff7ed;
  color: #2f2a26;
}

.test-page .site-header {
  max-width: 430px;
  margin: 0 auto;
  border-bottom: 0;
  background: rgba(255, 247, 237, 0.94);
}

.mobile-test-shell {
  width: min(100%, 430px);
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 14px 16px 104px;
}

.test-progress-panel {
  margin-bottom: 16px;
}

.test-progress-panel p {
  margin: 0 0 6px;
  color: #2f2a26;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.test-progress-panel span {
  display: block;
  margin-bottom: 12px;
  color: #7a6f66;
  font-size: 13px;
  font-weight: 800;
}

.test-page .progress-track {
  height: 8px;
  background: rgba(201, 205, 210, 0.45);
}

.test-page .progress-track span {
  background: #f4b183;
}

.mobile-quiz-card {
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #fff;
  box-shadow: none;
}

.mobile-quiz-card .profile-form h2,
.mobile-quiz-card .question-view h2 {
  margin: 0;
  color: #2f2a26;
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: 0;
}

.mobile-quiz-card .profile-form {
  padding: 20px;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-card {
  border-radius: 22px;
  padding: 18px;
  background: #fff;
}

.mobile-quiz-card .profile-form h2 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.2;
}

.test-page .form-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

.test-page label {
  color: #7a6f66;
  font-size: 13px;
}

.test-page input,
.test-page select {
  min-height: 52px;
  border-color: #eadfd2;
  border-radius: 14px;
  color: #2f2a26;
  background: #fffdf9;
}

.question-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #2f6f5e;
  background: #f1f8f4;
}

.question-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.test-page .question-meta {
  gap: 8px;
  margin-bottom: 14px;
}

.test-page .question-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #7a6f66;
  background: #f7f1e9;
  font-size: 12px;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
  color: #7a6f66;
  font-size: 13px;
  font-weight: 800;
}

.scale-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0;
}

.option-dot {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.option-dot span {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid #c9cdd2;
  border-radius: 999px;
  background: #fff;
  transition: inherit;
}

.option-dot.strong span {
  width: 30px;
  height: 30px;
}

.option-dot.medium span {
  width: 27px;
  height: 27px;
}

.option-dot.agree span {
  border-color: #2f6f5e;
}

.option-dot.agree.light span {
  border-color: #a8d5ba;
}

.option-dot.disagree span {
  border-color: #8b5e9f;
}

.option-dot.disagree.light span {
  border-color: #d8c7e0;
}

.option-dot.neutral span {
  border-color: #c9cdd2;
}

.option-dot.selected {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 10px rgba(47, 42, 38, 0.14));
}

.option-dot.selected.agree span {
  background: #2f6f5e;
  box-shadow: 0 0 0 4px rgba(47, 111, 94, 0.13);
}

.option-dot.selected.agree.light span {
  background: #a8d5ba;
}

.option-dot.selected.disagree span {
  background: #8b5e9f;
  box-shadow: 0 0 0 4px rgba(139, 94, 159, 0.13);
}

.option-dot.selected.disagree.light span {
  background: #d8c7e0;
}

.option-dot.selected.neutral span {
  background: #c9cdd2;
  box-shadow: 0 0 0 4px rgba(201, 205, 210, 0.22);
}

.mobile-bottom-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
  width: min(100%, 430px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 247, 237, 0.94);
  border-top: 1px solid rgba(234, 223, 210, 0.9);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.mobile-bottom-actions[hidden] {
  display: none;
}

.mobile-bottom-actions .button {
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
}

.test-page .button.primary {
  background: #2f6f5e;
  box-shadow: 0 10px 22px rgba(47, 111, 94, 0.18);
}

.test-page .button.secondary {
  border-color: #eadfd2;
  color: #2f2a26;
  background: #fffdf9;
}

.test-page .test-panel,
.test-page .intro-grid,
.test-page .conversion {
  display: none;
}

@media (min-width: 700px) {
  .test-page {
    display: block;
  }

  .mobile-test-shell {
    padding-top: 24px;
  }
}

@media (max-width: 360px) {
  .mobile-test-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mobile-quiz-card {
    padding: 0;
  }

  .question-card,
  .mobile-quiz-card .profile-form {
    padding: 16px;
  }

  .option-dot {
    width: 32px;
    height: 34px;
  }

  .option-dot span {
    width: 22px;
    height: 22px;
  }

  .option-dot.strong span {
    width: 28px;
    height: 28px;
  }

  .option-dot.medium span {
    width: 25px;
    height: 25px;
  }
}

/* Mobile-first warm homepage */
.home-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 213, 186, 0.26), transparent 28%),
    #fff7ed;
  color: #2f2a26;
}

.home-page .home-header {
  max-width: 430px;
  margin: 0 auto;
  background: rgba(255, 247, 237, 0.94);
}

.home-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 18px 190px;
}

.home-hero {
  display: grid;
  gap: 22px;
}

.home-page .hero-copy {
  display: block;
  max-width: none;
  text-align: left;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 18px;
  border: 1px solid #dce9df;
  border-radius: 999px;
  padding: 8px 13px;
  color: #2f6f5e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.mini-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: transparent;
  background:
    radial-gradient(circle at 50% 60%, #2f6f5e 0 4px, transparent 5px),
    radial-gradient(circle at 32% 35%, #2f6f5e 0 2px, transparent 3px),
    radial-gradient(circle at 50% 28%, #2f6f5e 0 2px, transparent 3px),
    radial-gradient(circle at 68% 35%, #2f6f5e 0 2px, transparent 3px),
    #eff8f3;
}

.home-page h1 {
  margin: 0 0 18px;
  color: #2f2a26;
  font-size: clamp(38px, 12vw, 56px);
  line-height: 1.05;
}

.home-page h1 span {
  color: #1f7b68;
}

.home-page .hero-subtitle {
  margin-bottom: 22px;
  color: #7a6f66;
  font-size: 15px;
  line-height: 1.8;
}

.home-page .hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.home-page .button {
  min-height: 54px;
  border-radius: 14px;
  font-size: 16px;
}

.home-page .button.primary {
  background: #21977f;
  box-shadow: 0 16px 30px rgba(33, 151, 127, 0.18);
}

.home-page .button.secondary {
  border-color: #e5d8c6;
  background: rgba(255, 255, 255, 0.78);
}

.parent-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #7a6f66;
  font-size: 13px;
}

.parent-proof p {
  margin: 0;
}

.avatar-stack {
  display: flex;
}

.avatar-slot {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid #fff7ed;
  border-radius: 999px !important;
}

.avatar-slot:first-child {
  margin-left: 0;
}

.image-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(168, 213, 186, 0.28), rgba(255, 255, 255, 0.72)),
    #fffdf8;
}

.image-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-100%);
}

.image-slot span {
  position: absolute;
  inset: auto 10px 10px;
  color: #9a8f84;
  font-size: 12px;
  font-weight: 800;
}

.image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-icon-slot img,
.process-image-slot img,
.product-image-slot img {
  object-fit: contain;
  padding: 6px;
}

.process-image-slot img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  padding: 0;
}

.hero-pet-slot img {
  object-fit: cover;
}

.hero-test-slot img {
  object-fit: contain;
  padding: 12px;
}

.mini-photo-slot img,
.mini-avatar-slot img {
  object-fit: cover;
}

.hero-media {
  position: relative;
  min-height: 350px;
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 66% 28%, rgba(168, 213, 186, 0.58), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 244, 229, 0.8));
}

.hero-pet-slot {
  width: 100%;
  height: 260px;
  border-radius: 999px 999px 28px 28px;
}

.transform-strip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-photo-slot,
.mini-avatar-slot {
  width: 82px;
  height: 92px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(47, 42, 38, 0.1);
}

.mini-avatar-slot {
  border-radius: 999px;
}

.transform-arrow,
.plus {
  color: #8abd78;
  font-size: 28px;
  font-weight: 900;
}

.notice-card,
.process-card,
.deliverable-card {
  border: 1px solid #eadfce;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.notice-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
}

.notice-card p {
  margin: 0;
  color: #7a6f66;
  font-size: 14px;
  line-height: 1.7;
}

.notice-card strong {
  color: #2f2a26;
}

.line-icon {
  width: 42px;
  height: 42px;
  border: 2px solid #6c9a55;
  border-radius: 14px;
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feature-grid article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  justify-items: center;
  text-align: center;
  border: 1px solid #eadfce;
  border-radius: 22px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.feature-icon-slot {
  width: 96px;
  height: 96px;
  border-radius: 999px;
}

.feature-grid h2,
.process-card h2,
.deliverables h2 {
  margin: 0 0 6px;
  color: #2f2a26;
  font-size: 22px;
  line-height: 1.2;
}

.feature-grid p,
.process-grid p,
.deliverables p {
  margin: 0;
  color: #7a6f66;
  font-size: 14px;
  line-height: 1.55;
}

.process-card {
  margin-top: 22px;
  padding: 18px;
}

.process-card h2,
.deliverables h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.process-grid {
  display: grid;
  gap: 14px;
}

.process-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
  border: 1px solid #eadfce;
  border-radius: 18px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.68);
  min-height: 238px;
}

.step-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #21977f;
  font-weight: 900;
  transform: translateX(-50%);
}

.process-image-slot {
  display: flex;
  width: 108px;
  height: 108px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fff6 0%, #fff9ef 100%);
  border: 1px solid rgba(220, 196, 160, 0.65);
}

.process-grid h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.deliverables {
  margin-top: 22px;
}

.deliverable-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px 14px 24px;
}

.deliverable-card article {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.product-image-slot {
  width: 150px;
  height: 126px;
  border-radius: 20px;
}

.deliverable-card p {
  color: #6f655c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.deliverable-card .plus {
  align-self: center;
  margin-top: 42px;
}

.sticky-home-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 18;
  display: grid;
  gap: 8px;
  width: min(100%, 430px);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -12px 34px rgba(47, 42, 38, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.sticky-home-cta .button {
  width: 100%;
}

.sticky-home-cta p {
  margin: 0;
  color: #9a8f84;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 390px) {
  .feature-icon-slot {
    width: 82px;
    height: 82px;
  }

  .process-image-slot {
    width: 96px;
    height: 96px;
  }

  .process-image-slot img {
    width: 86px;
    height: 86px;
  }

  .product-image-slot {
    width: 104px;
    height: 92px;
  }

  .deliverable-card {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .plus {
    font-size: 22px;
  }
}

@media (min-width: 760px) {
  .home-shell,
  .home-page .home-header,
  .sticky-home-cta {
    width: min(100%, 960px);
    max-width: 960px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
  }

  .home-page .hero-actions {
    grid-template-columns: 180px 180px;
  }

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

  .feature-grid article {
    grid-template-columns: 1fr;
  }

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

  .process-grid article {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Petti start form polish */
.test-start-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 177, 131, 0.18), transparent 24%),
    radial-gradient(circle at 94% 20%, rgba(231, 244, 236, 0.72), transparent 28%),
    linear-gradient(180deg, rgba(255, 247, 237, 0.82), rgba(255, 250, 244, 0.94)),
    url("./public/images/test/测试页背景.png") center top / cover no-repeat,
    linear-gradient(180deg, #fff7ed 0%, #fffaf4 70%, #fff7ed 100%);
}

.test-start-page::before,
.test-start-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  opacity: 0.5;
}

.test-start-page::before {
  right: -48px;
  top: 96px;
  width: 160px;
  height: 220px;
  border-radius: 999px 0 0 999px;
  background: rgba(231, 244, 236, 0.72);
}

.test-start-page::after {
  left: -60px;
  bottom: -70px;
  width: 230px;
  height: 150px;
  border-radius: 50%;
  background: rgba(231, 244, 236, 0.9);
}

.test-start-page .test-header {
  width: min(100%, 430px);
  padding: 24px 26px 10px;
  background: transparent;
}

.test-start-page .brand-mark {
  overflow: hidden;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(47, 125, 99, 0.18);
}

.test-start-page .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.test-start-page .brand strong {
  color: #2f2a26;
  font-size: 22px;
}

.test-start-page .brand small {
  color: #7a6f66;
  font-size: 15px;
}

.test-start-page .menu-button {
  display: grid;
  width: 58px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #126f63;
  box-shadow: none;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 80%);
}

.test-start-page .menu-button span {
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.test-start-page .mobile-test-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 20px 20px 44px;
}

.test-start-page .test-progress-panel {
  margin: 4px 0 24px;
}

.test-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-start-page .test-title {
  margin: 0;
  color: #3a2418;
  font-size: clamp(30px, 10vw, 36px);
  font-weight: 900;
  line-height: 1.12;
}

.title-paw {
  display: inline-grid;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 62%, #2f7d63 0 4px, transparent 5px),
    radial-gradient(circle at 33% 38%, #2f7d63 0 2px, transparent 3px),
    radial-gradient(circle at 50% 30%, #2f7d63 0 2px, transparent 3px),
    radial-gradient(circle at 67% 38%, #2f7d63 0 2px, transparent 3px),
    rgba(231, 244, 236, 0.86);
  box-shadow: 0 8px 18px rgba(47, 125, 99, 0.12);
}

.test-start-page .test-subtitle {
  margin: 10px 0 18px;
  color: #7a6f66;
  font-size: 18px;
  line-height: 1.5;
}

.test-start-page .progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(232, 216, 196, 0.72);
}

.test-start-page .progress-track span {
  background: #2f7d63;
}

.test-start-page .pet-info-card {
  position: relative;
  border: 0;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(70, 45, 20, 0.08);
  backdrop-filter: blur(10px);
}

.test-start-page .mobile-quiz-card .profile-form {
  padding: 24px 24px 22px;
}

.pet-card-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 6px;
  align-items: start;
  min-height: 128px;
  margin-bottom: 2px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  border-radius: 999px;
  padding: 9px 16px;
  color: #2f7d63;
  background: #e7f4ec;
  font-size: 15px;
  font-weight: 900;
}

.card-title {
  margin: 0;
  color: #3a2418;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.16;
}

.pet-hero-image {
  align-self: start;
  width: 136px;
  height: 136px;
  object-fit: contain;
  transform: translate(2px, 10px);
}

.pet-info-form {
  display: grid;
  gap: 16px;
  margin: 4px 0 18px;
  border-radius: 26px;
  padding: 18px 18px 20px;
  background: rgba(255, 252, 248, 0.88);
  box-shadow: inset 0 0 0 1px rgba(232, 216, 196, 0.55);
}

.test-start-page .form-group {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 7px 14px;
  align-items: center;
  color: #2f2a26;
}

.field-name-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.test-start-page .form-group::before {
  content: none;
}

.field-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #fff9ef;
  box-shadow: 0 8px 20px rgba(70, 45, 20, 0.08);
}

.field-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.test-start-page .form-label {
  grid-column: 2;
  color: #3a2418;
  font-size: 16px;
  font-weight: 900;
}

.test-start-page .form-control {
  grid-column: 2;
  width: 100%;
  height: 52px;
  border: 1px solid #e8d8c4;
  border-radius: 16px;
  padding: 0 16px;
  color: #2f2a26;
  background: #fffcf8;
  font-size: 16px;
}

.test-start-page .form-control:focus {
  border-color: #2f7d63;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 125, 99, 0.12);
}

.test-start-page .start-test-button {
  height: 58px;
  width: fit-content;
  min-width: 188px;
  margin-left: auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f7d63 0%, #176b57 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(47, 125, 99, 0.25);
}

@media (max-width: 380px) {
  .test-start-page .test-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .test-start-page .mobile-test-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pet-card-heading {
    grid-template-columns: minmax(0, 1fr) 92px;
    min-height: 118px;
  }

  .card-title {
    font-size: 30px;
  }

  .pet-hero-image {
    width: 106px;
    height: 106px;
  }

  .pet-info-form {
    padding: 16px;
  }
}

/* Mobile-first Petti type atlas */
.types-page {
  min-height: 100vh;
  color: #2f2a26;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 246, 0.98) 48%, #fff7ed 100%),
    #fff7ed;
}

.types-page .home-header {
  max-width: 430px;
  margin: 0 auto;
  background: rgba(255, 247, 237, 0.94);
}

.types-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 16px 46px;
}

.types-hero-card {
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.types-hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1916 / 821;
  object-fit: cover;
  object-position: center;
  transform: scale(1.075);
}

.academy-switch {
  margin-top: 24px;
}

.academy-switch h2,
.types-section-head h2 {
  margin: 0;
  color: #2f2a26;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.academy-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
  margin-right: -6px;
  margin-left: -6px;
}

.academy-tab {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  color: #3a2418;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.academy-tab img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.09);
}

.academy-tab.is-active {
  box-shadow:
    0 0 0 2px #2f7d63,
    0 12px 28px rgba(47, 125, 99, 0.16);
  transform: translateY(-1px);
}

.academy-panel {
  margin-top: 24px;
  border: 1px solid #eadfce;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(70, 45, 20, 0.07);
}

.academy-banner {
  display: block;
  width: 100%;
  aspect-ratio: 2172 / 724;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
}

.academy-summary {
  display: grid;
  gap: 12px;
  padding: 13px 4px 2px;
}

.academy-summary p {
  margin: 0 0 4px;
  color: #7a6f66;
  font-size: 12px;
  font-weight: 800;
}

.academy-summary h2 {
  margin: 0;
  color: #2f2a26;
  font-size: 22px;
  line-height: 1.2;
}

.academy-summary-tags,
.type-tags,
.type-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.academy-summary-tags span,
.type-tags span,
.type-detail-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #eadfce;
  border-radius: 9px;
  padding: 0 8px;
  color: #6f655c;
  background: rgba(255, 253, 248, 0.88);
  font-size: 11px;
  font-weight: 800;
}

.academy-types {
  margin-top: 24px;
}

.types-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.types-section-head span {
  flex: 0 0 auto;
  color: #7a6f66;
  font-size: 14px;
  font-weight: 800;
}

.personality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.personality-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
  min-height: 262px;
  border: 1px solid #eadfce;
  border-radius: 20px;
  padding: 8px 8px 10px;
  color: #2f2a26;
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(70, 45, 20, 0.06);
  cursor: pointer;
}

.personality-card[hidden] {
  display: none;
}

.type-thumb {
  position: relative;
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
  border: 1px solid #f0dcc8;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(255, 246, 232, 0.95)),
    #fff6e8;
}

.type-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}

.personality-card-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  min-width: 0;
  padding: 0 2px;
}

.type-code {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin: 0 0 6px;
  border-radius: 999px;
  padding: 0 8px;
  color: #a86425;
  background: #fff3e5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.personality-card h3 {
  width: 100%;
  margin: 0 0 8px;
  color: #2f2a26;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.type-tags {
  gap: 5px;
  margin-bottom: 10px;
}

.type-tags span {
  min-height: 22px;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 10px;
}

.type-view {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 2px;
  color: #3a2418;
  font-size: 13px;
  font-weight: 900;
}

.type-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(47, 42, 38, 0.36);
}

.type-detail-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 39;
  width: min(100%, 430px);
  max-height: 88vh;
  overflow: auto;
  border-radius: 28px 28px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  background: #fffdf8;
  box-shadow: 0 -18px 48px rgba(47, 42, 38, 0.22);
  transform: translateX(-50%);
}

.type-detail-close {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  margin-left: auto;
  place-items: center;
  border: 1px solid #eadfce;
  border-radius: 999px;
  color: #2f2a26;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.type-detail-sheet img {
  display: block;
  width: 100%;
  max-height: 56vh;
  margin-top: 8px;
  border: 1px solid #f0dcc8;
  border-radius: 22px;
  object-fit: contain;
  background: #fff6e8;
}

.type-detail-copy {
  padding: 16px 4px 0;
}

.type-detail-copy p {
  margin: 0;
}

#typeDetailCode {
  color: #a86425;
  font-size: 13px;
  font-weight: 900;
}

.type-detail-copy h2 {
  margin: 6px 0 8px;
  color: #2f2a26;
  font-size: 25px;
  line-height: 1.16;
}

#typeDetailQuote {
  color: #7a6f66;
  font-size: 14px;
  line-height: 1.65;
}

.type-detail-tags {
  margin-top: 12px;
}

.types-page.modal-open {
  overflow: hidden;
}

@media (max-width: 380px) {
  .types-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .academy-tabs {
    gap: 5px;
    margin-right: -4px;
    margin-left: -4px;
  }

  .academy-tab {
    padding: 0;
  }

  .academy-tab img {
    width: 100%;
    height: 100%;
  }

  .personality-card {
    gap: 8px;
    min-height: 248px;
    padding: 8px;
  }

  .personality-card h3 {
    font-size: 16px;
  }

  .type-tags span {
    font-size: 9px;
  }
}

/* PETTI package showcase */
body.packages-showcase-page {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: #ece9e3;
}

body.packages-showcase-page,
body.packages-showcase-page button,
body.packages-showcase-page input {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

.package-app-shell {
  width: min(100vw, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  color: #151515;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(25, 20, 16, 0.14);
}

.package-loading {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #8b8279;
  font-size: 15px;
}

.packages-home-view,
.packages-detail-view {
  width: 100%;
  min-height: 100dvh;
  background: #ffffff;
}

.package-page-header {
  position: sticky;
  top: 0;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid rgba(217, 228, 223, 0.72);
  backdrop-filter: blur(18px);
}

.package-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.package-brand strong {
  color: #2f2a26;
  font-size: 15px;
}

.package-brand small {
  color: #7a6f66;
  font-size: 11px;
}

.package-menu-toggle {
  width: 52px;
  height: 48px;
}

.package-menu-backdrop {
  z-index: 38;
}

.package-mobile-menu {
  right: max(0px, calc((100vw - 480px) / 2));
  z-index: 40;
}

.package-mini-header {
  position: relative;
  top: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px 12px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.package-search-form {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #f5f5f5;
  border: 1px solid transparent;
}

.package-search-form:focus-within {
  border-color: #111111;
  background: #ffffff;
}

.package-search-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #9b9b9b;
  flex: 0 0 auto;
}

.package-search-icon svg,
.package-icon-button svg,
.package-detail-actions svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.package-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #171717;
  background: transparent;
  font-size: 15px;
}

.package-search-form input::placeholder {
  color: #9c9c9c;
}

.package-home-main {
  min-height: calc(100dvh - 67px);
  display: flex;
  flex-direction: column;
  background: #fffaf2;
}

.package-hero-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: #fffaf2;
}

.package-hero-track {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.package-hero-track::-webkit-scrollbar,
.package-detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.package-hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: center;
  background: #fffaf2;
}

.package-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.package-hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(42, 29, 19, 0.45));
  pointer-events: none;
}

.package-hero-meta {
  position: absolute;
  left: 18px;
  bottom: 82px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.package-hero-meta span {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.package-hero-meta strong {
  font-size: 30px;
  line-height: 1.1;
}

.package-hero-meta small {
  font-size: 14px;
  opacity: 0.92;
}

.package-hero-cta {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: min(260px, calc(100% - 88px));
  min-height: 54px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #ffffff;
  background: rgba(34, 24, 17, 0.2);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.package-hero-count {
  position: absolute;
  right: 14px;
  bottom: 94px;
  z-index: 3;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 20, 20, 0.28);
  text-align: center;
  font-size: 13px;
}

.package-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  display: flex;
  max-width: calc(100% - 28px);
  gap: 5px;
  transform: translateX(-50%);
}

.package-hero-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.18s ease, background 0.18s ease;
}

.package-hero-dots span.is-active {
  width: 22px;
  background: #ffffff;
}

.package-product-strip {
  position: relative;
  overflow: hidden;
  padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
  color: var(--strip-text, #fff8f2);
  background: linear-gradient(180deg, var(--strip-bg, #60452f), var(--strip-deep, #4b2f42));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 16% -18%, rgba(255, 255, 255, 0.18), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--strip-bg, #60452f) 78%, #ffffff 22%) 0%, var(--strip-bg, #60452f) 46%, color-mix(in srgb, var(--strip-deep, #4b2f42) 92%, #000000 8%) 100%);
}

.package-product-strip::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: -16px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.package-strip-brief {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 0 18px 10px;
}

.package-strip-brief span {
  width: max-content;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: color-mix(in srgb, var(--strip-accent, #f1b69d) 88%, #ffffff 12%);
  font-size: 12px;
  font-weight: 900;
}

.package-strip-brief strong {
  color: var(--strip-text, #ffffff);
  font-size: 20px;
  line-height: 1.25;
}

.package-strip-brief small {
  color: var(--strip-muted, rgba(255, 255, 255, 0.72));
  font-size: 12px;
  line-height: 1.35;
}

.package-product-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px;
  scroll-snap-type: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.package-product-row::-webkit-scrollbar {
  display: none;
}

.package-product-card {
  flex: 0 0 112px;
  min-height: 154px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  color: var(--strip-text, #ffffff);
  background: var(--strip-panel, #8a5b73);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    color-mix(in srgb, var(--strip-panel, #8a5b73) 62%, var(--strip-deep, #4b2f42));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.11);
  text-align: left;
  cursor: pointer;
  transition: flex-basis 0.26s ease, background 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
}

.package-product-strip.is-hero-scroll-syncing .package-product-card {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.package-product-card--active {
  flex-basis: min(360px, calc(100vw - 92px));
  grid-template-columns: 122px minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 14px;
  padding: 12px 14px 12px 10px;
  background: var(--strip-panel, #8a5b73);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 46%),
    color-mix(in srgb, var(--strip-panel, #8a5b73) 84%, #ffffff 16%);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.15);
}

.package-product-card--compact {
  justify-items: center;
}

.package-product-card--compact .package-product-copy {
  display: none;
}

.package-product-card--active .package-preview-code {
  display: none;
}

.package-product-art {
  display: grid;
  min-width: 0;
  width: 100%;
  height: 120px;
  place-items: center;
  background: transparent;
}

.package-product-card--active .package-product-art {
  height: 130px;
}

.package-product-art img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(20, 16, 14, 0.22));
}

.package-product-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.package-product-kicker {
  color: var(--strip-accent, #f1b69d);
  font-size: 12px;
  font-weight: 800;
}

.package-product-copy strong {
  display: block;
  color: var(--strip-text, #ffffff);
  font-size: 17px;
  line-height: 1.35;
}

.package-product-price {
  color: var(--strip-text, #ffffff);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.package-product-tags,
.package-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.package-product-tags span,
.package-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--strip-muted, rgba(255, 255, 255, 0.72));
  font-size: 11px;
}

.package-preview-code {
  color: var(--strip-text, #ffffff);
  font-size: 12px;
  font-weight: 900;
}

.package-detail-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.package-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  color: #111111;
  background: transparent;
  cursor: pointer;
}

.package-icon-button svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

.package-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-detail-scroll {
  min-height: calc(100dvh - 67px);
  padding-bottom: env(safe-area-inset-bottom);
  background: #f5f5f5;
}

.package-detail-gallery {
  position: relative;
  background: #ffffff;
}

.package-detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.package-detail-gallery-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  scroll-snap-align: center;
  background: #f0ece6;
}

.package-detail-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-detail-gallery-slide.is-contain img {
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
}

.package-detail-gallery-slide figcaption {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 12px;
}

.package-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  font-size: 13px;
}

.package-detail-info {
  margin-top: 10px;
  padding: 26px 20px 24px;
  background: #ffffff;
}

.package-detail-code {
  margin: 0 0 12px;
  color: #868686;
  font-size: 14px;
  font-weight: 800;
}

.package-detail-info h1 {
  margin: 0;
  color: #111111;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: 0;
}

.package-detail-info p:not(.package-detail-code) {
  margin: 14px 0 0;
  color: #969696;
  font-size: 16px;
  line-height: 1.55;
}

.package-detail-info strong {
  display: block;
  margin-top: 18px;
  color: #111111;
  font-size: 40px;
  line-height: 1;
}

.package-detail-tags {
  margin-top: 16px;
}

.package-detail-tags span {
  border-color: #e5e0d9;
  color: #6e6258;
  background: #fbfaf8;
}

.package-detail-long {
  display: grid;
  gap: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  background: #ffffff;
}

.package-detail-long h2 {
  margin: 0;
  padding: 20px 18px 14px;
  color: #111111;
  font-size: 24px;
  line-height: 1.2;
}

.package-long-image {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.package-long-image figcaption {
  display: none;
}

.package-long-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 430px) {
  .package-app-shell {
    width: 100vw;
    box-shadow: none;
  }

  .package-hero-shell {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .package-product-card {
    flex-basis: 108px;
  }

  .package-product-card--active {
    flex-basis: calc(100vw - 92px);
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .package-product-copy strong {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .package-mini-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .package-product-card {
    flex-basis: 96px;
    gap: 10px;
  }

  .package-product-card--active {
    flex-basis: calc(100vw - 82px);
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .package-product-art {
    height: 112px;
  }

  .package-hero-meta strong {
    font-size: 26px;
  }
}

/* Shared mobile top bar: keep Logo and menu fixed across pages */
.home-page .home-header,
.types-page .home-header,
.test-start-page .test-header,
.packages-showcase-page .package-page-header {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 75px;
  margin: 0 auto;
  padding: 10px 14px;
  background: rgba(255, 247, 237, 0.94);
  border-bottom: 1px solid rgba(217, 228, 223, 0.8);
}

.home-page .home-header .brand,
.types-page .home-header .brand,
.test-start-page .test-header .brand,
.packages-showcase-page .package-page-header .brand {
  gap: 10px;
}

.home-page .home-header .brand-mark,
.types-page .home-header .brand-mark,
.test-start-page .test-header .brand-mark,
.packages-showcase-page .package-page-header .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.home-page .home-header .brand strong,
.types-page .home-header .brand strong,
.test-start-page .test-header .brand strong,
.packages-showcase-page .package-page-header .brand strong {
  color: #2f2a26;
  font-size: 15px;
}

.home-page .home-header .brand small,
.types-page .home-header .brand small,
.test-start-page .test-header .brand small,
.packages-showcase-page .package-page-header .brand small {
  color: #7a6f66;
  font-size: 12px;
}

.home-page .home-header .menu-toggle,
.types-page .home-header .menu-toggle,
.test-start-page .test-header .menu-toggle,
.packages-showcase-page .package-page-header .menu-toggle {
  display: block;
  width: 58px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #126f63;
  box-shadow: none;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 80%);
}

.home-page .home-header .menu-toggle span,
.types-page .home-header .menu-toggle span,
.test-start-page .test-header .menu-toggle span,
.packages-showcase-page .package-page-header .menu-toggle span {
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

/* PETTI IP package editorial */
body.packages-showcase-page {
  --package-cream: #f2efe2;
  --package-paper: #fbfaf4;
  --package-ink: #4f5744;
  --package-ink-deep: #30382d;
  --package-sage: #87917a;
  --package-sage-soft: #d9ddc9;
  --package-blue: #b9dbe3;
  --package-coral: #e88267;
  --package-line: rgba(79, 87, 68, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 34%),
    #dcd8cc;
}

.packages-showcase-page .package-app-shell {
  width: min(100vw, 480px);
  color: var(--package-ink-deep);
  background: var(--package-cream);
}

.packages-editorial {
  min-height: 100dvh;
  background: var(--package-cream);
}

.packages-showcase-page .package-page-header {
  width: 100%;
  max-width: none;
  min-height: 72px;
  padding: max(9px, env(safe-area-inset-top)) 16px 9px;
  background: rgba(246, 243, 232, 0.94);
  border-bottom-color: rgba(79, 87, 68, 0.12);
}

.packages-showcase-page .package-page-header .brand strong {
  color: var(--package-ink-deep);
}

.packages-showcase-page .package-page-header .brand small {
  color: #7c826f;
}

.packages-showcase-page .package-page-header .menu-toggle {
  background: var(--package-ink);
}

.package-full-poster {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #eeecdf;
}

.package-full-poster img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.package-contact {
  width: 100%;
  padding: 0 16px 36px;
  background: #eeecdf;
}

.package-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 20px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(79, 87, 68, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(248, 244, 230, 0.92)),
    rgba(255, 252, 244, 0.92);
  box-shadow: 0 16px 34px rgba(63, 70, 52, 0.08);
}

.package-contact-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.package-contact-logo {
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(221, 211, 187, 0.42), 0 10px 24px rgba(63, 70, 52, 0.08);
  object-fit: contain;
}

.package-contact-brand-copy {
  min-width: 0;
}

.package-contact-copy h2 {
  margin: 0;
  color: var(--package-ink-deep);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
}

.package-contact-eyebrow {
  margin: 0 0 6px;
  color: #9b8458;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.package-contact-tagline {
  margin: 6px 0 0;
  color: #7d735e;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.package-contact-lead,
.package-contact-note {
  margin: 10px 0 0;
  color: var(--package-muted);
  font-size: 14px;
  line-height: 1.7;
}

.package-contact-note {
  color: #8a816f;
  font-size: 12px;
}

.package-contact-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.package-contact-qr img {
  display: block;
  width: 156px;
  height: 156px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(221, 211, 187, 0.42), 0 10px 24px rgba(63, 70, 52, 0.08);
}

.package-contact-qr figcaption {
  color: var(--package-muted);
  font-size: 12px;
  text-align: center;
}

.package-story-toggle {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid rgba(79, 87, 68, 0.1);
  padding: 8px 16px 12px;
  color: #777d6c;
  background: var(--package-paper);
  font-size: 14px;
  cursor: pointer;
}

.package-story-toggle svg {
  width: 24px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s ease;
}

.package-story-toggle[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

.packages-showcase-page .package-contact {
  background: #eeecdf;
}

@media (max-width: 640px) {
  .package-contact {
    padding: 0 12px 28px;
  }

  .package-contact-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .package-contact-brand {
    gap: 12px;
  }

  .package-contact-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .package-contact-qr img {
    width: 138px;
    height: 138px;
  }
}

.package-story[hidden] {
  display: none;
}

.package-story {
  overflow: hidden;
  background:
    linear-gradient(rgba(79, 87, 68, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 87, 68, 0.045) 1px, transparent 1px),
    var(--package-cream);
  background-size: 26px 26px;
}

.package-story-hero,
.package-story-section {
  position: relative;
}

.package-story-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #e9e8dc;
}

.package-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-story-media--hero {
  height: clamp(590px, 145vw, 696px);
}

.package-story-media--hero img {
  object-position: center top;
}

.package-story-media--hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(242, 239, 226, 0.88));
  pointer-events: none;
}

.package-story-intro {
  position: relative;
  z-index: 2;
  margin: -42px 18px 0;
  border: 1px solid rgba(79, 87, 68, 0.18);
  border-radius: 26px 26px 10px 10px;
  padding: 30px 24px 26px;
  background:
    radial-gradient(circle at 90% 12%, rgba(185, 219, 227, 0.52), transparent 24%),
    var(--package-paper);
  box-shadow: 0 22px 48px rgba(73, 76, 61, 0.13);
}

.package-story-eyebrow,
.package-story-heading > span {
  display: block;
  margin: 0 0 12px;
  color: #7c846f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.package-story-intro h1,
.package-story-heading h2,
.package-story-cta h2 {
  margin: 0;
  color: var(--package-ink-deep);
  font-size: clamp(31px, 8.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.package-story-intro > p:not(.package-story-eyebrow),
.package-story-heading p {
  margin: 18px 0 0;
  color: #747967;
  font-size: 15px;
  line-height: 1.8;
}

.package-story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.package-story-chips span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(79, 87, 68, 0.2);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--package-ink);
  background: rgba(217, 221, 201, 0.38);
  font-size: 12px;
  font-weight: 800;
}

.package-story-section {
  padding: 72px 18px 24px;
}

.package-story-heading {
  padding: 0 8px 24px;
}

.package-story-heading h2 {
  max-width: 360px;
  font-size: clamp(30px, 8vw, 38px);
}

.package-story-media--series {
  height: clamp(790px, 195vw, 936px);
  border: 1px solid rgba(79, 87, 68, 0.24);
  border-radius: 38px 38px 14px 14px;
  box-shadow: 0 18px 44px rgba(74, 79, 64, 0.13);
}

.package-story-media--series img {
  object-position: center 47%;
}

.package-story-media--series::before,
.package-story-media--scene::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 28px 28px 8px 8px;
  pointer-events: none;
}

.package-story-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 36px 18px 0;
  border-top: 1px solid var(--package-line);
  border-bottom: 1px solid var(--package-line);
  padding: 24px 8px;
}

.package-story-note-index {
  color: var(--package-coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.package-story-note strong {
  display: block;
  color: var(--package-ink-deep);
  font-size: 19px;
  line-height: 1.35;
}

.package-story-note p {
  margin: 10px 0 0;
  color: #7c806f;
  font-size: 14px;
  line-height: 1.75;
}

.package-story-scene {
  margin-top: 72px;
  padding-top: 46px;
  padding-bottom: 38px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.52), transparent 24%),
    var(--package-blue);
}

.package-story-heading--light > span {
  color: rgba(48, 56, 45, 0.62);
}

.package-story-heading--light p {
  color: rgba(48, 56, 45, 0.72);
}

.package-story-media--scene {
  height: clamp(680px, 162vw, 778px);
  border-radius: 34px 34px 12px 12px;
  box-shadow: 0 20px 52px rgba(47, 71, 75, 0.18);
}

.package-story-media--scene img {
  object-position: center bottom;
}

.package-story-process {
  padding: 76px 26px 70px;
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 130, 103, 0.12), transparent 24%),
    var(--package-paper);
}

.package-story-process .package-story-heading {
  padding: 0 0 30px;
}

.package-story-process ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-story-process li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--package-line);
  padding: 22px 0;
}

.package-story-process li:last-child {
  border-bottom: 1px solid var(--package-line);
}

.package-story-process li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--package-paper);
  background: var(--package-ink);
  font-size: 12px;
  font-weight: 900;
}

.package-story-process strong {
  display: block;
  color: var(--package-ink-deep);
  font-size: 18px;
  line-height: 1.35;
}

.package-story-process li p {
  margin: 7px 0 0;
  color: #7d8172;
  font-size: 14px;
  line-height: 1.65;
}

.package-story-cta {
  position: relative;
  overflow: hidden;
  padding: 64px 26px calc(54px + env(safe-area-inset-bottom));
  color: #f7f4e8;
  background:
    radial-gradient(circle at 85% 5%, rgba(185, 219, 227, 0.26), transparent 26%),
    linear-gradient(145deg, #4f5744, #30382d);
}

.package-story-cta::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: 28px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(247, 244, 232, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(247, 244, 232, 0.04),
    0 0 0 38px rgba(247, 244, 232, 0.025);
}

.package-story-cta > * {
  position: relative;
  z-index: 1;
}

.package-story-cta > p {
  margin: 0 0 14px;
  color: #d7ddc8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.package-story-cta h2 {
  max-width: 350px;
  color: #f8f5e9;
}

.package-story-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  border-radius: 999px;
  padding: 0 20px 0 24px;
  color: var(--package-ink-deep);
  background: #f7f3e5;
  box-shadow: 0 16px 30px rgba(21, 27, 21, 0.2);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.package-story-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.package-story-cta small {
  display: block;
  margin-top: 16px;
  color: rgba(247, 244, 232, 0.58);
  font-size: 11px;
}

@media (hover: hover) {
  .package-story-toggle:hover {
    color: var(--package-ink-deep);
    background: #ffffff;
  }

  .package-story-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(21, 27, 21, 0.26);
  }
}

@media (max-width: 380px) {
  .package-story-intro {
    margin-right: 12px;
    margin-left: 12px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .package-story-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .package-story-heading {
    padding-right: 6px;
    padding-left: 6px;
  }

  .package-story-note {
    grid-template-columns: 1fr;
    margin-right: 12px;
    margin-left: 12px;
  }

  .package-story-process,
  .package-story-cta {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-story-toggle svg,
  .package-story-button {
    transition: none;
  }
}

/* Unified PETTI Pawsona palette */
body,
.home-page,
.test-page,
.test-start-page,
.types-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(185, 219, 227, 0.24), transparent 27%),
    radial-gradient(circle at 94% 22%, rgba(217, 221, 201, 0.54), transparent 28%),
    linear-gradient(180deg, #f2efe2 0%, #f8f6ec 52%, #eeecdf 100%);
}

.site-header,
.home-page .home-header,
.test-page .site-header,
.test-start-page .test-header,
.types-page .home-header,
.packages-showcase-page .package-page-header {
  background: rgba(242, 239, 226, 0.94);
  border-bottom-color: rgba(79, 87, 68, 0.14);
}

.brand strong,
.home-page .home-header .brand strong,
.test-start-page .brand strong,
.types-page .home-header .brand strong {
  color: var(--ink);
}

.brand small,
.home-page .home-header .brand small,
.test-start-page .brand small,
.types-page .home-header .brand small {
  color: var(--muted);
}

.brand-mark {
  background: var(--mint);
  box-shadow: 0 10px 24px rgba(79, 87, 68, 0.2);
}

.menu-toggle,
.home-page .home-header .menu-toggle,
.types-page .home-header .menu-toggle,
.test-start-page .test-header .menu-toggle,
.test-start-page .menu-button {
  background: var(--mint);
}

.menu-backdrop,
.type-detail-backdrop {
  background: rgba(48, 56, 45, 0.42);
}

.mobile-menu {
  background: var(--panel);
  box-shadow: -24px 0 70px rgba(48, 56, 45, 0.2);
}

.mobile-menu-head,
.mobile-menu-links a {
  border-color: var(--line);
}

.menu-close {
  color: var(--ink);
  background: var(--leaf);
}

.menu-primary {
  color: #fbfaf4;
  background: var(--mint);
}

.button.primary,
.home-page .button.primary,
.test-page .button.primary,
.test-start-page .start-test-button {
  color: #fbfaf4;
  background: linear-gradient(135deg, #59624d 0%, #3f483a 100%);
  box-shadow: 0 14px 28px rgba(79, 87, 68, 0.22);
}

.button.secondary,
.home-page .button.secondary,
.test-page .button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(251, 250, 244, 0.9);
}

.home-page .hero-pill {
  border-color: rgba(79, 87, 68, 0.2);
  color: var(--mint);
  background: rgba(251, 250, 244, 0.82);
}

.mini-icon,
.title-paw {
  background:
    radial-gradient(circle at 50% 60%, #4f5744 0 4px, transparent 5px),
    radial-gradient(circle at 32% 35%, #4f5744 0 2px, transparent 3px),
    radial-gradient(circle at 50% 28%, #4f5744 0 2px, transparent 3px),
    radial-gradient(circle at 68% 35%, #4f5744 0 2px, transparent 3px),
    rgba(217, 221, 201, 0.72);
  box-shadow: 0 8px 18px rgba(79, 87, 68, 0.1);
}

.mini-icon {
  background: #fff url("./public/images/test/title-paw-custom.png") center / cover no-repeat;
}

.home-page h1,
.home-page .notice-card strong,
.home-page .feature-grid h2,
.home-page .process-card h2,
.home-page .deliverables h2,
.home-page .process-grid h3 {
  color: var(--ink);
}

.home-page h1 span {
  color: var(--mint);
}

.home-page .hero-subtitle,
.home-page .parent-proof,
.home-page .notice-card p,
.home-page .feature-grid p,
.home-page .process-grid p,
.home-page .deliverables p,
.sticky-home-cta p {
  color: var(--muted);
}

.image-slot,
.notice-card,
.process-card,
.deliverable-card,
.feature-grid article,
.process-grid article {
  border-color: var(--line);
  background: rgba(251, 250, 244, 0.84);
}

.image-slot {
  background:
    linear-gradient(135deg, rgba(217, 221, 201, 0.56), rgba(251, 250, 244, 0.8)),
    var(--panel);
}

.hero-media {
  background:
    radial-gradient(circle at 66% 28%, rgba(217, 221, 201, 0.8), transparent 35%),
    linear-gradient(135deg, rgba(251, 250, 244, 0.82), rgba(185, 219, 227, 0.34));
}

.transform-arrow,
.plus {
  color: var(--mint);
}

.line-icon {
  border-color: var(--mint);
}

.step-badge {
  color: var(--panel);
  background: var(--mint);
}

.process-image-slot {
  border-color: rgba(79, 87, 68, 0.18);
  background: linear-gradient(180deg, #f8f6ec 0%, #e8eadc 100%);
}

.sticky-home-cta {
  background: rgba(242, 239, 226, 0.94);
  box-shadow: 0 -12px 34px rgba(48, 56, 45, 0.12);
}

.deliverable-card article {
  min-width: 0;
}

.product-image-slot {
  width: 100%;
  max-width: 150px;
}

.test-start-page::before {
  background: rgba(185, 219, 227, 0.42);
}

.test-start-page::after {
  background: rgba(217, 221, 201, 0.72);
}

.test-start-page .test-title,
.test-progress-panel p,
.mobile-quiz-card .profile-form h2,
.mobile-quiz-card .question-view h2,
.card-title,
.test-start-page .form-label {
  color: var(--ink);
}

.test-start-page .test-subtitle,
.test-progress-panel span,
.test-page label,
.scale-ends {
  color: var(--muted);
}

.test-page .progress-track,
.test-start-page .progress-track,
.progress-track,
.meter {
  background: rgba(79, 87, 68, 0.14);
}

.test-page .progress-track span,
.test-start-page .progress-track span,
.progress-track span {
  background: linear-gradient(90deg, var(--mint), var(--coral));
}

.mobile-quiz-card,
.question-card,
.test-start-page .pet-info-card,
.result-hero,
.result-block,
.custom-item {
  border-color: var(--line);
  background: rgba(251, 250, 244, 0.94);
  box-shadow: 0 18px 44px rgba(48, 56, 45, 0.08);
}

.pet-info-form {
  background: rgba(242, 239, 226, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card-badge,
.question-card-icon,
.test-page .question-meta span,
.question-meta span,
.tag-list span {
  color: var(--mint);
  background: var(--leaf);
}

.field-icon {
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(48, 56, 45, 0.08);
}

.test-page input,
.test-page select,
.test-start-page .form-control,
input,
select {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}

.test-start-page .form-control:focus,
input:focus,
select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(79, 87, 68, 0.14);
}

input.invalid,
select.invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 130, 103, 0.16);
}

.form-error {
  color: #b65745;
}

.option,
.scale-list span {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}

.option strong {
  color: var(--muted);
  background: var(--paper);
}

.option.selected {
  border-color: var(--mint);
  background: rgba(217, 221, 201, 0.54);
  box-shadow: 0 0 0 4px rgba(79, 87, 68, 0.1);
}

.option.selected strong,
.scale-list b {
  color: var(--panel);
  background: var(--mint);
}

.option-dot span {
  border-color: rgba(79, 87, 68, 0.28);
  background: var(--panel);
}

.option-dot.agree span {
  border-color: var(--mint);
}

.option-dot.agree.light span {
  border-color: #9aa58c;
}

.option-dot.disagree span {
  border-color: var(--coral);
}

.option-dot.disagree.light span {
  border-color: #e7b4a6;
}

.option-dot.neutral span {
  border-color: var(--sky);
}

.option-dot.selected.agree span {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(79, 87, 68, 0.14);
}

.option-dot.selected.agree.light span {
  background: #9aa58c;
}

.option-dot.selected.disagree span {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 130, 103, 0.14);
}

.option-dot.selected.disagree.light span {
  background: #e7b4a6;
}

.option-dot.selected.neutral span {
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(185, 219, 227, 0.28);
}

.mobile-bottom-actions {
  border-top-color: var(--line);
  background: rgba(242, 239, 226, 0.95);
}

.result-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(185, 219, 227, 0.48), transparent 30%),
    linear-gradient(135deg, var(--panel), #e7e9db);
}

.result-code,
.custom-order h3 {
  color: var(--mint);
}

.result-avatar {
  color: var(--mint);
  background:
    linear-gradient(135deg, rgba(217, 221, 201, 0.72), rgba(185, 219, 227, 0.62)),
    var(--panel);
}

.result-avatar.image-avatar {
  background: var(--panel);
}

.meter span {
  background: var(--coral);
}

.prompt-box {
  border-color: rgba(79, 87, 68, 0.5);
  color: var(--muted);
  background: rgba(217, 221, 201, 0.34);
}

.custom-order {
  border-color: rgba(232, 130, 103, 0.4);
  background: linear-gradient(135deg, rgba(251, 250, 244, 0.98), rgba(217, 221, 201, 0.5));
}

.types-page .academy-switch h2,
.types-page .types-section-head h2,
.academy-summary h2,
.personality-card h3,
.type-detail-copy h2,
.type-view {
  color: var(--ink);
}

.types-section-head span,
.academy-summary p,
#typeDetailQuote {
  color: var(--muted);
}

.academy-tab.is-active {
  box-shadow:
    0 0 0 2px var(--mint),
    0 12px 28px rgba(79, 87, 68, 0.18);
}

.academy-panel,
.personality-card,
.type-detail-sheet {
  border-color: var(--line);
  background: rgba(251, 250, 244, 0.92);
  box-shadow: 0 16px 38px rgba(48, 56, 45, 0.08);
}

.type-thumb,
.type-detail-sheet img {
  border-color: rgba(79, 87, 68, 0.18);
  background:
    linear-gradient(180deg, rgba(251, 250, 244, 0.86), rgba(217, 221, 201, 0.46)),
    var(--paper);
}

.academy-summary-tags span,
.type-tags span,
.type-detail-tags span {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(242, 239, 226, 0.88);
}

.type-code,
#typeDetailCode {
  color: #b65745;
}

.type-code {
  background: rgba(232, 130, 103, 0.16);
}

.type-detail-close {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(242, 239, 226, 0.94);
}

.site-footer {
  color: var(--muted);
  background: var(--panel);
}

/* Match the homepage canvas to the 480px package page */
body.home-page {
  min-height: 100dvh;
  background: #dcd8cc;
}

.home-page .home-header,
.home-page .home-shell,
.home-page .sticky-home-cta {
  width: min(100vw, 480px);
  max-width: 480px;
  margin-right: auto;
  margin-left: auto;
}

.home-page .home-header {
  box-shadow: 0 -10px 60px rgba(48, 56, 45, 0.12);
}

.home-page .home-shell {
  padding: 18px 18px 190px;
  background:
    radial-gradient(circle at 10% 0%, rgba(185, 219, 227, 0.24), transparent 27%),
    radial-gradient(circle at 94% 22%, rgba(217, 221, 201, 0.54), transparent 28%),
    linear-gradient(180deg, #f2efe2 0%, #f8f6ec 52%, #eeecdf 100%);
  box-shadow: 0 24px 60px rgba(48, 56, 45, 0.14);
}

.home-page .home-hero,
.home-page .feature-grid,
.home-page .process-grid {
  grid-template-columns: 1fr;
}

.home-page .hero-actions {
  grid-template-columns: 1fr;
}

.home-page .deliverable-card {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.home-page .deliverable-card--results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 480px) {
  .home-page .home-header,
  .home-page .home-shell {
    box-shadow: none;
  }
}

/* Reference-inspired PETTI homepage */
body.home-page {
  --home-teal: #489bb0;
  --home-teal-deep: #347f95;
  --home-purple: #8f65a1;
  --home-purple-dark: #765187;
  --home-ink: #25333a;
  --home-muted: #65747a;
  min-height: 100dvh;
  color: var(--home-ink);
  background: #ece9e0;
}

.home-page .home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100%, 1200px);
  max-width: 1200px;
  min-height: 86px;
  margin: 0 auto;
  padding: 12px clamp(22px, 5vw, 62px);
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(37, 51, 58, 0.08);
  backdrop-filter: blur(16px);
}

.home-page .brand {
  gap: 12px;
}

.home-page .brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 26%, transparent 27%),
    conic-gradient(from -18deg, #e4af40, #70aa72, #4aa0b4, #8d67a3, #df8b59, #e4af40);
  box-shadow: none;
}

.home-page .brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 5px dotted #fff;
  border-radius: 50%;
}

.home-page .brand-mark img {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin: auto;
  filter: brightness(0) saturate(100%) invert(26%) sepia(15%) saturate(649%) hue-rotate(156deg) brightness(88%);
}

.home-page .brand strong {
  color: #28333e;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.home-page .brand small {
  margin-top: 1px;
  color: #7b8790;
  font-size: 12px;
  letter-spacing: 0.14em;
}

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

.header-types-link {
  color: #66727b;
  font-size: 14px;
  font-weight: 800;
}

.header-types-link:hover {
  color: var(--home-teal-deep);
}

.home-page .home-header .menu-toggle {
  width: 66px;
  height: 62px;
  background: var(--home-teal);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 78%);
}

.home-page .home-header .menu-toggle span {
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: #fff;
}

.home-page .home-shell {
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #f8f5ed;
  box-shadow: 0 24px 70px rgba(37, 51, 58, 0.15);
}

.home-page .home-hero {
  position: relative;
  display: block;
  min-height: 865px;
  padding: 118px clamp(54px, 8vw, 112px) 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.09), transparent 22%),
    linear-gradient(145deg, #4ca2b7 0%, #4598ae 58%, #3e8fa7 100%);
  clip-path: polygon(0 3%, 20% 4.6%, 42% 2.8%, 62% 4.4%, 79% 2.6%, 100% 4.2%, 100% 100%, 0 100%);
}

.home-page .home-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: 80px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(255, 255, 255, 0.025),
    0 0 0 124px rgba(255, 255, 255, 0.018);
}

.home-page .hero-copy {
  position: relative;
  z-index: 4;
  display: block;
  max-width: 900px;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-page .home-hero h1 {
  max-width: 930px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(44px, 5.9vw, 72px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-page .home-hero .hero-subtitle {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.75;
}

.home-page .home-hero .hero-actions {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 24px;
  margin: 34px 0 0;
}

.home-page .home-hero .button.primary,
.home-page .home-final-cta .button.primary {
  min-width: 272px;
  min-height: 68px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #9a70aa 0%, #845a96 100%);
  box-shadow: 0 18px 36px rgba(68, 42, 79, 0.24);
  font-size: 20px;
}

.home-page .home-hero .button.primary:hover,
.home-page .home-final-cta .button.primary:hover {
  background: linear-gradient(135deg, #a47ab3 0%, #765087 100%);
  transform: translateY(-2px);
}

.button-arrow {
  margin-left: 14px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.hero-text-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-facts span {
  position: relative;
}

.hero-facts span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  transform: translateY(-50%);
}

.hero-facts strong {
  color: #fff;
  font-size: 18px;
}

.hero-world {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 315px;
}

.world-ground {
  position: absolute;
  right: -3%;
  bottom: -60px;
  left: -3%;
  height: 250px;
  background: #fbfaf5;
  clip-path: polygon(0 32%, 11% 23%, 23% 30%, 36% 14%, 49% 27%, 65% 11%, 82% 28%, 100% 17%, 100% 100%, 0 100%);
}

.world-mountain {
  position: absolute;
  bottom: 128px;
  width: 0;
  height: 0;
  border-right: 130px solid transparent;
  border-bottom: 145px solid #7ab4c3;
  border-left: 130px solid transparent;
  filter: drop-shadow(74px 28px 0 rgba(111, 169, 185, 0.82));
}

.world-mountain::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45px;
  width: 0;
  height: 0;
  border-right: 45px solid transparent;
  border-bottom: 50px solid rgba(255, 255, 255, 0.66);
  border-left: 45px solid transparent;
}

.world-mountain--back {
  left: 4%;
  opacity: 0.55;
  transform: scale(0.72);
  transform-origin: bottom;
}

.world-mountain--front {
  right: 3%;
  border-right-width: 165px;
  border-bottom-width: 185px;
  border-left-width: 165px;
  border-bottom-color: #78b3c3;
  opacity: 0.84;
}

.world-cloud {
  position: absolute;
  width: 82px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.world-cloud::before,
.world-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.world-cloud::before {
  left: 12px;
  width: 34px;
  height: 34px;
}

.world-cloud::after {
  right: 12px;
  width: 45px;
  height: 45px;
}

.world-cloud--one {
  top: 18px;
  left: 12%;
}

.world-cloud--two {
  top: 68px;
  right: 15%;
  transform: scale(0.72);
}

.world-tree {
  position: absolute;
  z-index: 2;
  bottom: 104px;
  width: 10px;
  height: 66px;
  border-radius: 5px;
  background: #6c786c;
}

.world-tree::before,
.world-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 34px solid transparent;
  border-bottom: 62px solid #338a72;
  border-left: 34px solid transparent;
  transform: translateX(-50%);
}

.world-tree::before {
  top: -62px;
}

.world-tree::after {
  top: -34px;
  border-right-width: 27px;
  border-bottom-width: 49px;
  border-left-width: 27px;
  border-bottom-color: #3d9a7c;
}

.world-tree--one {
  left: 7%;
  transform: scale(0.72);
}

.world-tree--two {
  left: 28%;
  bottom: 126px;
  transform: scale(0.54);
}

.world-tree--three {
  right: 27%;
  bottom: 123px;
  transform: scale(0.62);
}

.world-tree--four {
  right: 7%;
  transform: scale(0.78);
}

.world-camp {
  position: absolute;
  bottom: 70px;
  left: 50%;
  z-index: 5;
  width: 64px;
  height: 52px;
  transform: translateX(-50%);
}

.world-camp span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 60% 10% 60% 50%;
  background: #f3c33e;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 26px rgba(250, 205, 67, 0.55);
}

.world-camp span:nth-child(2) {
  width: 24px;
  height: 24px;
  background: #f28a46;
}

.world-camp span:nth-child(3) {
  bottom: -5px;
  width: 58px;
  height: 7px;
  border-radius: 999px;
  background: #6a5548;
  box-shadow: none;
  transform: translateX(-50%) rotate(-8deg);
}

.world-dog {
  position: absolute;
  z-index: 6;
  width: 148px;
  margin: 0;
  text-align: center;
}

.world-dog img {
  display: block;
  width: 148px;
  height: 148px;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 48% 52% 46% 54%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(37, 51, 58, 0.18);
}

.world-dog figcaption {
  display: inline-block;
  margin-top: -9px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #3d5962;
  background: #fff;
  box-shadow: 0 7px 16px rgba(37, 51, 58, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.world-dog--one {
  bottom: 20px;
  left: 10%;
  transform: rotate(-4deg);
}

.world-dog--two {
  bottom: 43px;
  left: 29%;
  transform: rotate(3deg);
}

.world-dog--three {
  right: 29%;
  bottom: 36px;
  transform: rotate(-2deg);
}

.world-dog--four {
  right: 10%;
  bottom: 14px;
  transform: rotate(4deg);
}

.home-intro {
  padding: 92px clamp(34px, 7vw, 88px) 98px;
  text-align: center;
  background: #f8f5ed;
}

.section-eyebrow {
  margin: 0 0 14px;
  color: var(--home-teal-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.home-intro > h2,
.result-preview h2,
.home-final-cta h2 {
  max-width: 760px;
  margin: 0 auto 16px;
  color: var(--home-ink);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 0 auto;
  color: var(--home-muted);
  font-size: 17px;
}

.home-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 52px;
}

.home-page .feature-grid article {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(57, 87, 96, 0.12);
  border-radius: 32px;
  padding: 30px;
  text-align: left;
  background: #fff;
  box-shadow: 0 18px 42px rgba(48, 74, 82, 0.08);
}

.home-page .feature-grid article:nth-child(2) {
  background: #eef7f8;
}

.home-page .feature-grid article:nth-child(3) {
  background: #f4eef6;
}

.feature-number {
  color: rgba(55, 99, 111, 0.35);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
}

.home-page .feature-icon-slot {
  width: 152px;
  height: 152px;
  align-self: center;
  margin: 18px 0 22px;
  border: 0;
  border-radius: 50%;
  background: #fbfaf5;
}

.home-page .feature-icon-slot img {
  padding: 4px;
  object-fit: cover;
}

.home-page .feature-grid h3 {
  margin: 0 0 10px;
  color: var(--home-ink);
  font-size: 22px;
}

.home-page .feature-grid p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}

.result-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 60px;
  align-items: center;
  margin: 0 clamp(34px, 7vw, 88px);
  border-radius: 38px;
  padding: clamp(44px, 7vw, 78px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.16), transparent 30%),
    var(--home-teal);
}

.result-preview-copy {
  color: #fff;
}

.result-preview .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.result-preview h2 {
  margin-right: 0;
  margin-left: 0;
  color: #fff;
  font-size: clamp(32px, 4.3vw, 50px);
}

.result-preview-copy > p:not(.section-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.result-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  padding-bottom: 8px;
  color: #fff;
  font-weight: 900;
}

.result-preview-art {
  position: relative;
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.28);
  border-radius: 50% 50% 38% 62%;
  overflow: hidden;
  background: #fff;
  transform: rotate(2deg);
  box-shadow: 0 26px 50px rgba(24, 75, 88, 0.25);
}

.result-preview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-notice {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 42px clamp(34px, 7vw, 88px) 0;
  border: 1px solid rgba(57, 87, 96, 0.14);
  border-radius: 20px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
}

.home-notice p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.7;
}

.notice-paw {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background:
    radial-gradient(circle at 50% 62%, var(--home-teal) 0 6px, transparent 7px),
    radial-gradient(circle at 30% 35%, var(--home-teal) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 27%, var(--home-teal) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 35%, var(--home-teal) 0 3px, transparent 4px),
    #e7f3f5;
}

.home-final-cta {
  padding: 90px 24px 108px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 110%, rgba(143, 101, 161, 0.16), transparent 34%),
    #f8f5ed;
}

.home-final-cta > p {
  margin: 0 0 10px;
  color: var(--home-purple);
  font-weight: 900;
}

.home-final-cta h2 {
  margin-bottom: 30px;
}

.home-final-cta .button.primary {
  min-width: 250px;
}

@media (max-width: 820px) {
  .home-page .home-header {
    min-height: 74px;
    padding: 9px 18px;
  }

  .home-page .brand-mark {
    width: 44px;
    height: 44px;
  }

  .home-page .brand strong {
    font-size: 22px;
  }

  .home-page .brand small {
    font-size: 10px;
  }

  .header-types-link {
    display: none;
  }

  .home-page .home-header .menu-toggle {
    width: 58px;
    height: 56px;
  }

  .home-page .home-hero {
    min-height: 920px;
    padding: 84px 30px 0;
    clip-path: polygon(0 1.6%, 24% 3%, 48% 1.8%, 73% 3.2%, 100% 1.9%, 100% 100%, 0 100%);
  }

  .home-page .home-hero h1 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .home-page .home-hero .hero-subtitle {
    font-size: 17px;
  }

  .home-page .home-hero .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .home-page .home-hero .button.primary {
    min-width: min(100%, 300px);
  }

  .hero-facts {
    gap: 10px 22px;
  }

  .hero-world {
    height: 300px;
  }

  .world-dog {
    width: 126px;
  }

  .world-dog img {
    width: 126px;
    height: 126px;
  }

  .world-dog--one {
    left: 3%;
  }

  .world-dog--two {
    left: 27%;
    bottom: 54px;
  }

  .world-dog--three {
    right: 27%;
    bottom: 45px;
  }

  .world-dog--four {
    right: 3%;
  }

  .world-camp {
    display: none;
  }

  .home-page .feature-grid,
  .result-preview {
    grid-template-columns: 1fr;
  }

  .home-page .feature-grid {
    gap: 16px;
  }

  .home-page .feature-grid article {
    min-height: 0;
  }

  .result-preview {
    gap: 38px;
  }

  .result-preview-art {
    width: min(100%, 400px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body.home-page {
    background: #fff;
  }

  .home-page .home-shell,
  .home-page .home-header {
    width: 100%;
    box-shadow: none;
  }

  .home-page .home-hero {
    min-height: 850px;
    padding: 72px 22px 0;
  }

  .hero-kicker {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .home-page .home-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 10.4vw, 46px);
    line-height: 1.2;
  }

  .home-page .home-hero .hero-subtitle {
    font-size: 16px;
    line-height: 1.72;
  }

  .home-page .home-hero .button.primary {
    min-height: 60px;
    font-size: 17px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 8px;
    margin-top: 22px;
    font-size: 11px;
  }

  .hero-facts span {
    display: grid;
    gap: 2px;
  }

  .hero-facts span + span::before {
    display: none;
  }

  .hero-facts strong {
    font-size: 17px;
  }

  .hero-world {
    height: 260px;
  }

  .world-ground {
    height: 205px;
  }

  .world-mountain {
    bottom: 100px;
    transform: scale(0.52);
  }

  .world-mountain--front {
    right: -22%;
  }

  .world-tree {
    bottom: 70px;
    transform: scale(0.45);
  }

  .world-tree--two,
  .world-tree--three {
    display: none;
  }

  .world-dog {
    width: 96px;
  }

  .world-dog img {
    width: 96px;
    height: 96px;
    border-width: 5px;
  }

  .world-dog figcaption {
    max-width: 92px;
    padding: 5px 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .world-dog--one {
    bottom: 18px;
    left: 1%;
  }

  .world-dog--two {
    bottom: 48px;
    left: 25%;
  }

  .world-dog--three {
    right: 25%;
    bottom: 40px;
  }

  .world-dog--four {
    right: 1%;
    bottom: 14px;
  }

  .home-intro {
    padding: 68px 18px 72px;
  }

  .home-intro > h2,
  .result-preview h2,
  .home-final-cta h2 {
    font-size: 34px;
  }

  .home-page .feature-grid {
    margin-top: 36px;
  }

  .home-page .feature-grid article {
    border-radius: 24px;
    padding: 24px;
  }

  .home-page .feature-icon-slot {
    width: 132px;
    height: 132px;
  }

  .result-preview {
    gap: 30px;
    margin: 0 18px;
    border-radius: 28px;
    padding: 36px 24px;
  }

  .home-notice {
    align-items: flex-start;
    margin: 28px 18px 0;
    padding: 16px;
  }

  .home-final-cta {
    padding: 70px 22px 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Homepage hero: figure 1 layout with the supplied figure 2 artwork */
.header-globe {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.header-globe > span {
  position: relative;
  width: 31px;
  height: 31px;
  border: 4px solid #657078;
  border-radius: 50%;
}

.header-globe > span::before,
.header-globe > span::after {
  content: "";
  position: absolute;
  inset: 3px 7px;
  border: 2px solid #657078;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.header-globe > span::after {
  inset: 11px -3px auto;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: #657078;
}

.home-page .home-hero {
  position: relative;
  min-height: 0;
  aspect-ratio: 1257 / 1676;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #c3c5ae;
  clip-path: none;
}

.home-page .home-hero::after {
  display: none;
}

.hero-world-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home-page .home-hero .hero-copy {
  position: absolute;
  top: 20%;
  left: clamp(52px, 8vw, 102px);
  z-index: 3;
  width: min(82%, 960px);
  max-width: none;
  text-align: left;
}

.home-page .home-hero h1 {
  max-width: 970px;
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(52px, 6.3vw, 78px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 12px rgba(75, 79, 65, 0.16);
}

.home-page .home-hero .hero-subtitle {
  max-width: 940px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(22px, 2.65vw, 32px);
  line-height: 1.75;
  text-shadow: 0 2px 8px rgba(75, 79, 65, 0.14);
}

.home-page .home-hero .hero-actions {
  display: block;
  margin-top: 48px;
}

.home-page .home-hero .button.primary {
  min-width: 330px;
  min-height: 82px;
  padding: 0 42px;
  font-size: 25px;
}

.home-page .home-hero .button-arrow {
  margin-left: 24px;
  font-size: 38px;
}

@media (max-width: 820px) {
  .home-page .home-hero {
    aspect-ratio: 1257 / 1676;
    min-height: 0;
    padding: 0;
    clip-path: none;
  }

  .home-page .home-hero .hero-copy {
    top: 20%;
    left: 7%;
    width: 86%;
  }

  .home-page .home-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 7.8vw, 52px);
  }

  .home-page .home-hero .hero-subtitle {
    max-width: 90%;
    font-size: clamp(16px, 3.4vw, 23px);
    line-height: 1.68;
  }

  .home-page .home-hero .hero-actions {
    display: block;
    margin-top: 26px;
  }

  .home-page .home-hero .button.primary {
    min-width: 250px;
    min-height: 62px;
    padding: 0 30px;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .home-page .home-hero {
    min-height: 0;
    padding: 0;
  }

  .home-page .home-hero .hero-copy {
    top: 19%;
    left: 6%;
    width: 88%;
  }

  .home-page .home-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(27px, 8vw, 35px);
    line-height: 1.18;
  }

  .home-page .home-hero .hero-subtitle {
    max-width: 100%;
    font-size: clamp(13px, 3.7vw, 17px);
    line-height: 1.58;
  }

  .home-page .home-hero .hero-actions {
    margin-top: 18px;
  }

  .home-page .home-hero .button.primary {
    min-width: 190px;
    min-height: 52px;
    padding: 0 24px;
    font-size: 16px;
  }

  .home-page .home-hero .button-arrow {
    margin-left: 14px;
    font-size: 27px;
  }
}

/* Match the IP customization page's 480px app canvas */
body.home-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 34%),
    #dcd8cc;
}

.home-page .home-header,
.home-page .home-shell {
  width: min(100vw, 480px);
  max-width: 480px;
  margin-right: auto;
  margin-left: auto;
}

.home-page .home-header {
  min-height: 72px;
  padding: max(9px, env(safe-area-inset-top)) 16px 9px;
}

.home-page .brand-mark {
  width: 42px;
  height: 42px;
}

.home-page .brand strong {
  font-size: 20px;
}

.home-page .brand small {
  font-size: 10px;
}

.home-page .home-header .menu-toggle {
  width: 58px;
  height: 54px;
}

.home-page .mobile-menu {
  right: max(0px, calc((100vw - 480px) / 2));
}

.home-page .home-shell {
  box-shadow: 0 20px 60px rgba(25, 20, 16, 0.14);
}

.home-page .home-hero {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1257 / 1676;
}

.home-page .home-hero .hero-copy {
  top: 19%;
  left: 6%;
  width: 88%;
}

.home-page .home-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 7.4vw, 35px);
  line-height: 1.18;
}

.home-page .home-hero .hero-subtitle {
  max-width: 100%;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.58;
}

.home-page .home-hero .hero-actions {
  margin-top: 18px;
}

.home-page .home-hero .button.primary {
  min-width: 190px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.home-page .home-hero .button-arrow {
  margin-left: 14px;
  font-size: 27px;
}

.home-intro {
  padding: 68px 18px 72px;
}

.home-intro > h2,
.result-preview h2,
.home-final-cta h2 {
  font-size: 34px;
}

.home-page .feature-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.home-page .feature-grid article {
  min-height: 0;
  border-radius: 24px;
  padding: 24px;
}

.home-page .feature-icon-slot {
  width: 132px;
  height: 132px;
}

.result-preview {
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 0 18px;
  border-radius: 28px;
  padding: 36px 24px;
}

.result-preview-art {
  width: min(100%, 400px);
  justify-self: center;
}

.home-notice {
  align-items: flex-start;
  margin: 28px 18px 0;
  padding: 16px;
}

.home-final-cta {
  padding: 70px 22px 86px;
}

@media (max-width: 480px) {
  .home-page .home-shell,
  .home-page .home-header {
    box-shadow: none;
  }
}

/* Keep the homepage story in the hero's sage, cream and plum palette */
.home-page .home-shell,
.home-intro,
.home-final-cta {
  background: #f4f1e8;
}

.home-page .section-eyebrow {
  color: #7b8068;
}

.home-page .feature-grid article,
.home-page .feature-grid article:nth-child(2),
.home-page .feature-grid article:nth-child(3) {
  border-color: rgba(91, 96, 75, 0.14);
  background: #fbf9f2;
  box-shadow: 0 16px 36px rgba(81, 84, 66, 0.08);
}

.home-page .feature-grid article:nth-child(2) {
  background: #e7e8d9;
}

.home-page .feature-grid article:nth-child(3) {
  background: #efe8ef;
}

.home-page .feature-number {
  color: rgba(105, 111, 87, 0.42);
}

.home-page .feature-icon-slot {
  background: #f7f3e8;
}

.home-page .result-preview {
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #aeb39a 0%, #929b7f 100%);
  box-shadow: 0 20px 42px rgba(81, 84, 66, 0.14);
}

.home-page .result-preview .section-eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.home-page .result-preview-art {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 44px rgba(69, 73, 55, 0.22);
}

.acrylic-preview {
  display: grid;
  gap: 0;
  margin: 18px;
  overflow: hidden;
  border: 1px solid rgba(91, 96, 75, 0.14);
  border-radius: 28px;
  background: #fbf9f2;
  box-shadow: 0 16px 36px rgba(81, 84, 66, 0.08);
}

.acrylic-preview-art {
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: #e6e4d3;
}

.acrylic-preview-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acrylic-preview-copy {
  padding: 28px 24px 30px;
}

.acrylic-preview-copy h2 {
  margin: 0 0 13px;
  color: var(--home-ink);
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.acrylic-preview-copy > p:not(.section-eyebrow) {
  margin: 0;
  color: #68705d;
  font-size: 14px;
  line-height: 1.75;
}

.acrylic-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  border-bottom: 1px solid #7f608c;
  padding-bottom: 6px;
  color: #7f608c;
  font-size: 15px;
  font-weight: 900;
}

.home-page .home-notice {
  border-color: rgba(91, 96, 75, 0.16);
  background: #fbf9f2;
}

.home-page .notice-paw {
  background: #fff url("./public/images/test/title-paw-custom.png") center / cover no-repeat;
  font-size: 0;
}

.home-page .home-final-cta {
  background:
    radial-gradient(circle at 50% 110%, rgba(143, 101, 161, 0.13), transparent 34%),
    #f4f1e8;
}

/* Full-width rectangular artwork for the three homepage steps */
.home-page .feature-grid article,
.home-page .feature-grid article:nth-child(2),
.home-page .feature-grid article:nth-child(3) {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
}

.home-page .feature-number {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  display: grid;
  min-width: 38px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 10px;
  color: #626952;
  background: rgba(251, 249, 242, 0.88);
  box-shadow: 0 6px 16px rgba(66, 70, 54, 0.1);
  backdrop-filter: blur(8px);
}

.home-page .feature-icon-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f7f3e8;
}

.home-page .feature-grid article:nth-child(2) .feature-icon-slot {
  background: #e7e8d9;
}

.home-page .feature-grid article:nth-child(3) .feature-icon-slot {
  background: #efe8ef;
}

.home-page .feature-icon-slot img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center 43%;
}

.home-page .feature-grid article:nth-child(3) .feature-icon-slot img {
  object-position: center 48%;
}

.home-page .feature-grid h3 {
  width: 100%;
  margin: 22px 0 9px;
  padding: 0 24px;
}

.home-page .feature-grid p {
  width: 100%;
  margin: 0;
  padding: 0 24px 26px;
}

/* Compact text-only homepage steps */
.home-page .feature-grid article,
.home-page .feature-grid article:nth-child(2),
.home-page .feature-grid article:nth-child(3) {
  min-height: 0;
  padding: 24px 24px 26px 78px;
}

.home-page .feature-number {
  top: 24px;
  left: 22px;
  min-width: 38px;
  height: 30px;
  border-color: rgba(105, 111, 87, 0.18);
  color: #6f755f;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.home-page .feature-grid h3 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 20px;
}

.home-page .feature-grid p {
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* Four-academy acrylic keychain carousel */
.home-page .acrylic-preview-art {
  position: relative;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
}

.acrylic-slides {
  position: absolute;
  inset: 0;
}

.acrylic-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.acrylic-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-page .acrylic-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acrylic-slide figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(54, 58, 46, 0.48);
  box-shadow: 0 8px 18px rgba(42, 45, 35, 0.16);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.acrylic-dots {
  position: absolute;
  bottom: 20px;
  left: 16px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.acrylic-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 4px rgba(42, 45, 35, 0.16);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.acrylic-dots button.is-active {
  width: 24px;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .acrylic-slide,
  .acrylic-dots button {
    transition: none;
  }
}

.home-page .feature-grid article.feature-card--linked {
  padding: 0;
}

.feature-card-link {
  position: relative;
  display: block;
  min-height: 0;
  padding: 24px 24px 26px 78px;
  border-radius: inherit;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-card-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.feature-card-link:focus-visible {
  outline: 3px solid rgba(127, 96, 140, 0.42);
  outline-offset: -4px;
}

.feature-card-link h3 span {
  display: inline-block;
  margin-left: 5px;
  color: #7f608c;
  transition: transform 0.2s ease;
}

.feature-card-link:hover h3 span {
  transform: translateX(4px);
}

/* Align the homepage top bar with the IP customization page */
.home-page .home-header {
  background: rgba(246, 243, 232, 0.96);
  border-bottom-color: rgba(79, 87, 68, 0.12);
}

.home-page .brand-mark {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 8px 18px rgba(79, 87, 68, 0.16);
}

.home-page .brand-mark::before {
  display: none;
}

.home-page .brand-mark img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  filter: none;
}

.home-page .brand strong {
  color: #30382d;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.home-page .brand small {
  margin-top: 3px;
  color: #7c826f;
  font-size: 11px;
  letter-spacing: 0;
}

.home-page .header-globe > span {
  border-color: #69725b;
}

.home-page .header-globe > span::before {
  border-right-color: #69725b;
  border-left-color: #69725b;
}

.home-page .header-globe > span::after {
  background: #69725b;
}

.home-page .home-header .menu-toggle {
  background: #d87955;
}

.home-page .home-header .menu-toggle:hover {
  background: #c86d4d;
}

/* Warm terracotta accent against the sage homepage palette */
.home-page {
  --home-purple: #d87955;
  --home-purple-dark: #bd6244;
}

.home-page .home-hero .button.primary,
.home-page .home-final-cta .button.primary {
  background: linear-gradient(135deg, #e18a64 0%, #c86d4d 100%);
  box-shadow: 0 18px 36px rgba(151, 78, 51, 0.24);
}

.home-page .home-hero .button.primary:hover,
.home-page .home-final-cta .button.primary:hover {
  background: linear-gradient(135deg, #e99670 0%, #b95d40 100%);
}

.home-page .feature-grid article:nth-child(3) {
  background: #f3e4dc;
}

.home-page .feature-card-link:focus-visible {
  outline-color: rgba(200, 109, 77, 0.44);
}

.home-page .feature-card-link h3 span,
.home-page .acrylic-link,
.home-page .home-final-cta > p {
  color: #c86d4d;
}

.home-page .acrylic-link {
  border-bottom-color: #c86d4d;
}

.home-page .home-final-cta {
  background:
    radial-gradient(circle at 50% 110%, rgba(216, 121, 85, 0.15), transparent 34%),
    #f4f1e8;
}

/* White navigation and a softer coral contrast for the sage palette */
.home-page .home-header {
  background: #ffffff;
  border-bottom-color: rgba(79, 87, 68, 0.1);
}

.home-page {
  --home-purple: #df7d78;
  --home-purple-dark: #c96663;
}

.home-page .home-header .menu-toggle {
  background: #df7d78;
}

.home-page .home-header .menu-toggle:hover {
  background: #c96663;
}

.home-page .home-hero .button.primary,
.home-page .home-final-cta .button.primary {
  background: linear-gradient(135deg, #e9908a 0%, #d66f6b 100%);
  box-shadow: 0 18px 36px rgba(153, 73, 70, 0.22);
}

.home-page .home-hero .button.primary:hover,
.home-page .home-final-cta .button.primary:hover {
  background: linear-gradient(135deg, #ee9d97 0%, #c85f5c 100%);
}

.home-page .feature-grid article:nth-child(3) {
  background: #f5e4e1;
}

.home-page .feature-card-link:focus-visible {
  outline-color: rgba(214, 111, 107, 0.42);
}

.home-page .feature-card-link h3 span,
.home-page .acrylic-link,
.home-page .home-final-cta > p {
  color: #d66f6b;
}

.home-page .acrylic-link {
  border-bottom-color: #d66f6b;
}

.home-page .home-final-cta {
  background:
    radial-gradient(circle at 50% 110%, rgba(223, 125, 120, 0.14), transparent 34%),
    #f4f1e8;
}

/* Sage green with a muted honey-gold contrast */
.home-page {
  --home-purple: #d4a44d;
  --home-purple-dark: #b98232;
}

.home-page .home-header .menu-toggle {
  background: #d4a44d;
}

.home-page .home-header .menu-toggle:hover {
  background: #b98232;
}

.home-page .home-hero .button.primary,
.home-page .home-final-cta .button.primary {
  background: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  box-shadow: 0 18px 36px rgba(135, 94, 31, 0.22);
}

.home-page .home-hero .button.primary:hover,
.home-page .home-final-cta .button.primary:hover {
  background: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
}

.home-page .feature-grid article:nth-child(3) {
  background: #f3e8ca;
}

.home-page .feature-card-link:focus-visible {
  outline-color: rgba(195, 141, 55, 0.42);
}

.home-page .feature-card-link h3 span,
.home-page .acrylic-link,
.home-page .home-final-cta > p {
  color: #b98232;
}

.home-page .acrylic-link {
  border-bottom-color: #b98232;
}

.home-page .home-final-cta {
  background:
    radial-gradient(circle at 50% 110%, rgba(212, 164, 77, 0.16), transparent 34%),
    #f4f1e8;
}

/* Test page: landscape-led start screen coordinated with the homepage */
.test-page {
  --test-sage: #747e65;
  --test-sage-dark: #354030;
  --test-sage-soft: #c7cbb6;
  --test-cream: #f7f3e9;
  --test-gold: #d4a44d;
  background: #e8e7df;
}

.test-page .test-header {
  width: min(100%, 480px);
  margin: 0 auto;
  background: #fff;
  border-bottom-color: rgba(79, 87, 68, 0.1);
}

.test-page .test-header .menu-toggle {
  background: var(--test-gold);
}

.test-page .test-header .menu-toggle:hover {
  background: #b98232;
}

.test-page .mobile-test-shell {
  width: min(100%, 480px);
  max-width: 480px;
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 0 0 64px;
  overflow: hidden;
  background: var(--test-cream);
  box-shadow: 0 0 34px rgba(54, 61, 48, 0.09);
}

.test-page .test-progress-panel {
  position: relative;
  min-height: 310px;
  margin: 0;
  padding: 38px 32px 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(180deg, #faf8f1 0%, #f2eee2 100%);
  box-shadow: none;
  isolation: isolate;
}

.test-page .test-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 330px;
}

.test-page .test-title-row {
  justify-content: flex-start;
  gap: 12px;
}

.test-page .test-title {
  color: var(--test-sage-dark);
  font-size: clamp(30px, 7vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.test-page .title-paw {
  width: 42px;
  height: 42px;
  background: #fff url("./public/images/test/title-paw-custom.png") center / cover no-repeat;
}

.test-page .test-subtitle {
  margin-top: 12px;
  color: #77796f;
  font-size: 15px;
}

.test-page .progress-track {
  width: 170px;
  margin-top: 17px;
  background: rgba(116, 126, 101, 0.18);
}

.test-page .progress-track span {
  background: linear-gradient(90deg, var(--test-gold), #e1bd6f);
}

.test-hero-landscape {
  position: absolute;
  z-index: 1;
  inset: 84px 0 0;
  overflow: hidden;
}

.test-hero-landscape::before {
  position: absolute;
  right: -10%;
  bottom: -40px;
  left: -10%;
  height: 138px;
  border-radius: 50% 50% 0 0;
  background: #d8d9c8;
  content: "";
}

.test-hero-landscape::after {
  position: absolute;
  right: -6%;
  bottom: -50px;
  left: -6%;
  height: 118px;
  border-radius: 52% 48% 0 0;
  background: #c3c8ad;
  content: "";
}

.test-mountain {
  position: absolute;
  bottom: 72px;
  width: 190px;
  height: 140px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.test-mountain::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.34);
  clip-path: polygon(50% 0, 72% 45%, 57% 37%, 48% 55%, 37% 35%, 23% 62%, 0 100%);
  content: "";
}

.test-mountain--back {
  right: -12px;
  bottom: 79px;
  width: 240px;
  height: 166px;
  background: #d6d5c3;
}

.test-mountain--front {
  left: 82px;
  bottom: 64px;
  width: 210px;
  height: 128px;
  background: #c9cbb8;
}

.test-tree {
  position: absolute;
  z-index: 2;
  bottom: 64px;
  width: 34px;
  height: 78px;
  background: #7d8965;
  clip-path: polygon(50% 0, 81% 38%, 68% 38%, 94% 74%, 61% 74%, 61% 100%, 39% 100%, 39% 74%, 6% 74%, 32% 38%, 19% 38%);
}

.test-tree--one {
  left: 18px;
  transform: scale(0.78);
}

.test-tree--two {
  left: 66px;
  bottom: 58px;
  transform: scale(1.06);
}

.test-tree--three {
  right: 156px;
  bottom: 70px;
  transform: scale(0.62);
}

.test-tree--four {
  right: 14px;
  bottom: 62px;
  transform: scale(0.92);
}

.test-landscape-dog {
  position: absolute;
  z-index: 3;
  right: 40px;
  bottom: 25px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  object-fit: contain;
  clip-path: circle(47% at 50% 50%);
  mix-blend-mode: multiply;
  filter: saturate(0.9) drop-shadow(0 10px 10px rgba(65, 71, 57, 0.11));
}

.test-page .pet-info-card {
  position: relative;
  z-index: 5;
  width: auto;
  margin: 0;
  padding: 36px 26px 0;
  border: 0;
  border-radius: 0;
  background: var(--test-cream);
  box-shadow: none;
}

.test-page .pet-card-heading {
  display: block;
  margin-bottom: 24px;
  text-align: left;
}

.test-page .card-badge {
  display: inline-flex;
  width: auto;
  min-height: 34px;
  align-items: center;
  margin: 0 0 14px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e4e5d5;
  color: var(--test-sage-dark);
  font-size: 14px;
  font-weight: 800;
}

.test-page .card-title {
  color: var(--test-sage-dark);
  font-size: 28px;
  line-height: 1.22;
}

.test-page .pet-card-description {
  margin: 10px 0 0;
  color: #88887e;
  font-size: 13px;
  line-height: 1.7;
}

.test-page .pet-info-form {
  gap: 0;
  padding: 15px 18px;
  border: 1px solid rgba(101, 109, 88, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(69, 73, 61, 0.08);
}

.test-page .pet-info-form .form-group {
  display: grid;
  grid-template-columns: 48px 88px minmax(0, 1fr);
  min-height: 74px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(101, 109, 88, 0.1);
}

.test-page .pet-info-form .form-group:last-child {
  border-bottom: 0;
}

.test-page .pet-info-form .field-icon {
  grid-column: 1;
  grid-row: 1;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbf5e4 0%, #f0dfb7 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 8px 18px rgba(86, 70, 38, 0.08);
}

.test-page .pet-info-form .field-icon img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(82, 67, 38, 0.08);
}

.test-page .pet-info-form .form-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--test-sage-dark);
  font-size: 14px;
  font-weight: 800;
}

.test-page .pet-info-form .form-control {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(105, 114, 91, 0.18);
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.72);
  color: #4f5549;
  font-size: 13px;
}

.test-page .pet-info-form .form-control:focus {
  border-color: var(--test-gold);
  box-shadow: 0 0 0 3px rgba(212, 164, 77, 0.15);
}

.test-page .start-test-button {
  width: min(100%, 300px);
  min-height: 58px;
  margin: 28px auto 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #8d987c 0%, #727e63 100%);
  box-shadow: 0 12px 24px rgba(75, 87, 65, 0.2);
  font-size: 17px;
}

.test-page .start-test-button:hover {
  background: linear-gradient(135deg, #9ca78b 0%, #667258 100%);
}

.test-page .question-card,
.test-page .result-card {
  border-color: rgba(101, 109, 88, 0.13);
  box-shadow: 0 12px 28px rgba(69, 73, 61, 0.08);
}

.test-page .scale-button.selected {
  border-color: var(--test-gold);
  box-shadow: 0 0 0 3px rgba(212, 164, 77, 0.15);
}

.test-page:has(#profileForm.hidden) .test-progress-panel {
  min-height: 168px;
  padding-top: 28px;
}

.test-page:has(#profileForm.hidden) .test-hero-landscape {
  opacity: 0.38;
  transform: translateY(74px);
}

.test-page:has(#profileForm.hidden) .test-landscape-dog {
  display: none;
}

.test-page:has(#profileForm.hidden) .pet-info-card {
  padding-top: 24px;
}

@media (max-width: 420px) {
  .test-page .test-progress-panel {
    min-height: 292px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .test-page .test-title {
    font-size: 29px;
  }

  .test-page .test-subtitle {
    max-width: 245px;
    font-size: 14px;
  }

  .test-landscape-dog {
    right: 24px;
    width: 126px;
    height: 126px;
  }

  .test-page .pet-info-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .test-page .pet-info-form {
    padding-right: 12px;
    padding-left: 12px;
  }

  .test-page .pet-info-form .form-group {
    grid-template-columns: 42px 78px minmax(0, 1fr);
    gap: 7px;
  }

  .test-page .pet-info-form .field-icon {
    width: 38px;
    height: 38px;
  }

  .test-page .pet-info-form .form-label {
    font-size: 13px;
  }

  .test-page .pet-info-form .form-control {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }
}

/* Type hero uses the full quiet landscape, without the right-side poster */
.types-page .types-hero-art {
  display: none;
}

.types-page .types-hero-copy {
  width: min(86%, 390px);
  padding-right: 24px;
}

.types-page .types-hero-copy > p:not(.types-hero-badge) {
  max-width: 330px;
}

.types-page .types-hero-copy > span {
  max-width: 300px;
}

.types-page .types-mountain--left {
  left: -24px;
}

.types-page .types-mountain--middle {
  left: 142px;
}

.types-page .types-mountain--right {
  right: -22px;
}

/* Shared CTA system based on the homepage button */
.test-page .button.primary,
.types-page .button.primary,
.packages-showcase-page .button.primary,
.packages-showcase-page .package-hero-cta,
.packages-showcase-page .package-story-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #fffdf8;
  background: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  box-shadow: 0 18px 36px rgba(135, 94, 31, 0.22);
  font-size: 16px;
  font-weight: 900;
}

.test-page .button.primary:hover,
.types-page .button.primary:hover,
.packages-showcase-page .button.primary:hover,
.packages-showcase-page .package-hero-cta:hover,
.packages-showcase-page .package-story-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
  transform: translateY(-2px);
}

.test-page .button.secondary,
.types-page .button.secondary,
.packages-showcase-page .button.secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 130, 50, 0.34);
  border-radius: 999px;
  padding: 0 22px;
  color: #9a6b27;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(135, 94, 31, 0.08);
  font-size: 15px;
  font-weight: 900;
}

.test-page .button.secondary:hover,
.types-page .button.secondary:hover,
.packages-showcase-page .button.secondary:hover {
  border-color: #d4a44d;
  color: #80591f;
  background: #f8edcf;
  transform: translateY(-2px);
}

.types-page .type-view {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 999px;
  padding: 0 16px;
  color: #fffdf8;
  background: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  box-shadow: 0 8px 18px rgba(135, 94, 31, 0.15);
}

.types-page .personality-card:hover .type-view {
  background: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
}

.result-actions .button {
  border-radius: 999px;
}

@media (max-width: 420px) {
  .types-page .types-hero-copy {
    width: 88%;
    padding-right: 18px;
  }

  .types-page .types-mountain--middle {
    left: 116px;
  }
}

/* Shared honey-gold accents, matching the homepage CTA */
.home-page,
.test-page,
.types-page,
.packages-showcase-page {
  --petti-gold: #d4a44d;
  --petti-gold-dark: #b98232;
  --petti-gold-light: #f3e8ca;
  --petti-gold-gradient: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  --petti-gold-gradient-hover: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
}

/* Test page primary actions now use the exact homepage button treatment */
.test-page .button.primary.start-test-button,
.test-page .mobile-bottom-actions .button.primary {
  color: #fffdf8;
  background: var(--petti-gold-gradient);
  box-shadow: 0 16px 30px rgba(135, 94, 31, 0.23);
}

.test-page .button.primary.start-test-button:hover,
.test-page .mobile-bottom-actions .button.primary:hover {
  background: var(--petti-gold-gradient-hover);
}

.test-page .start-test-button:focus-visible,
.test-page .mobile-bottom-actions .button.primary:focus-visible {
  outline: 3px solid rgba(212, 164, 77, 0.34);
  outline-offset: 3px;
}

.test-page .card-badge,
.test-page .field-icon {
  background: linear-gradient(135deg, #f7f0dc, var(--petti-gold-light));
}

.test-page .pet-info-form .form-control:focus,
.test-page .scale-button.selected {
  border-color: var(--petti-gold);
  box-shadow: 0 0 0 3px rgba(212, 164, 77, 0.15);
}

/* Type atlas: consistent gold for selections, codes and detail actions */
.types-page .types-hero-badge,
.types-page .academy-summary-eyebrow,
.types-page .types-section-head span,
.types-page .type-view,
.types-page #typeDetailCode {
  color: var(--petti-gold-dark);
}

.types-page .academy-tab.is-active {
  box-shadow:
    0 0 0 2px var(--petti-gold-dark),
    0 12px 25px rgba(134, 91, 30, 0.16);
}

.types-page .academy-summary-tags span,
.types-page .type-tags span,
.types-page .type-detail-tags span,
.types-page .type-code {
  border-color: rgba(212, 164, 77, 0.28);
  color: var(--petti-gold-dark);
  background: var(--petti-gold-light);
}

.types-page .type-detail-close:focus-visible,
.types-page .personality-card:focus-visible {
  outline: 3px solid rgba(212, 164, 77, 0.36);
  outline-offset: 3px;
}

/* Package page: restrained gold details around the product poster */
.packages-showcase-page .package-page-header {
  border-bottom-color: rgba(212, 164, 77, 0.28);
}

.packages-showcase-page .package-full-poster {
  border-top: 3px solid var(--petti-gold);
}

.packages-showcase-page .mobile-menu-links a[aria-current="page"] {
  color: var(--petti-gold-dark);
  background: rgba(212, 164, 77, 0.1);
}

/* A shorter test start flow: key information fits much closer to one screen */
.test-start-page .test-progress-panel {
  min-height: 232px;
  padding-top: 28px;
}

.test-start-page .test-hero-landscape {
  top: 62px;
  transform: translateY(20px);
}

.test-start-page .test-mountain--back {
  bottom: 68px;
  height: 138px;
}

.test-start-page .test-mountain--front {
  bottom: 58px;
  height: 106px;
}

.test-start-page .test-tree {
  bottom: 52px;
  height: 66px;
}

.test-start-page .test-landscape-dog {
  right: 30px;
  bottom: 9px;
  width: 132px;
  height: 132px;
}

.test-start-page .pet-info-card {
  padding-top: 22px;
  padding-bottom: 0;
}

.test-start-page .mobile-quiz-card .profile-form {
  padding: 0;
}

.test-start-page .pet-card-heading {
  margin-bottom: 15px;
}

.test-start-page .card-badge {
  min-height: 29px;
  margin-bottom: 9px;
  padding-right: 13px;
  padding-left: 13px;
  font-size: 12px;
}

.test-start-page .card-title {
  font-size: 25px;
}

.test-start-page .pet-card-description {
  margin-top: 6px;
  line-height: 1.5;
}

.test-start-page .pet-info-form {
  margin: 0;
  padding: 8px 14px;
  border-radius: 16px;
}

.test-start-page .pet-info-form .form-group {
  min-height: 61px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.test-start-page .pet-info-form .field-icon {
  width: 46px;
  height: 46px;
}

.test-start-page .pet-info-form .field-icon img {
  width: 36px;
  height: 36px;
}

.test-start-page .pet-info-form .form-control {
  height: 42px;
}

.test-start-page .start-test-button {
  min-height: 52px;
  margin-top: 14px;
}

.test-start-page .form-error:empty {
  display: none;
}

.test-start-page .form-error:not(:empty) {
  min-height: 0;
  margin: 10px 0 0;
  font-size: 12px;
}

/* Type atlas restyled as a warm editorial field guide */
.types-page {
  background: #e8e7df;
}

.types-page .types-shell {
  width: min(100vw, 480px);
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 48px;
  color: #30382d;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, #f7f3e9 0%, #f2efe4 100%);
  box-shadow: 0 20px 60px rgba(25, 20, 16, 0.1);
}

.types-page .types-hero-card {
  position: relative;
  min-height: 306px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(160deg, #faf7ef 0%, #eee9db 100%);
}

.types-page .types-hero-card::before,
.types-page .types-hero-card::after {
  position: absolute;
  right: -8%;
  bottom: -38px;
  left: -8%;
  height: 122px;
  border-radius: 50% 50% 0 0;
  background: rgba(199, 203, 182, 0.66);
  content: "";
}

.types-page .types-hero-card::after {
  bottom: -62px;
  height: 112px;
  background: rgba(169, 178, 146, 0.5);
}

.types-hero-copy {
  position: relative;
  z-index: 3;
  width: 61%;
  padding: 34px 0 30px 28px;
}

.types-hero-badge {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  margin: 0 0 27px;
  border: 1px solid rgba(185, 130, 50, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  color: #9a6d2c;
  background: rgba(255, 251, 241, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.types-hero-copy h1 {
  margin: 0;
  color: #3b4434;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.types-hero-copy > p:not(.types-hero-badge) {
  margin: 15px 0 0;
  color: #68705f;
  font-size: 13px;
  line-height: 1.7;
}

.types-hero-copy > span {
  display: block;
  margin-top: 23px;
  color: #8f774c;
  font-size: 11px;
  line-height: 1.5;
}

.types-hero-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.types-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: none;
}

.types-page .academy-switch {
  margin-top: 0;
  padding: 27px 18px 0;
}

.types-page .academy-switch h2,
.types-page .types-section-head h2 {
  color: #3b4434;
  font-size: 21px;
}

.types-page .academy-tabs {
  gap: 8px;
  margin: 15px 0 0;
}

.types-page .academy-tab {
  border: 1px solid rgba(116, 126, 101, 0.15);
  border-radius: 16px;
  background: #fbfaf4;
  box-shadow: 0 8px 18px rgba(69, 73, 61, 0.06);
}

.types-page .academy-tab img {
  border-radius: 15px;
  transform: none;
}

.types-page .academy-tab.is-active {
  box-shadow:
    0 0 0 2px #b98232,
    0 12px 25px rgba(134, 91, 30, 0.16);
}

.types-page .academy-panel {
  margin: 25px 18px 0;
  border-color: rgba(116, 126, 101, 0.16);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 16px 34px rgba(69, 73, 61, 0.08);
}

.types-page .academy-banner {
  aspect-ratio: 2172 / 724;
  border-radius: 19px 19px 0 0;
}

.types-page .academy-summary {
  display: grid;
  gap: 11px;
  padding: 17px 18px 19px;
}

.types-page .academy-summary-eyebrow {
  margin: 0 0 4px;
  color: #a2742f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.types-page .academy-summary h2 {
  color: #354030;
  font-size: 24px;
}

.types-page .academy-summary-tone {
  margin-top: 5px;
  color: #777d6c;
  font-size: 12px;
}

.types-page .academy-summary-tags span,
.types-page .type-tags span,
.types-page .type-detail-tags span {
  border-color: rgba(185, 130, 50, 0.18);
  color: #84642f;
  background: #f5ecd5;
}

.types-page .academy-types {
  margin-top: 28px;
  padding: 0 18px;
}

.types-page .types-section-head {
  margin-bottom: 14px;
}

.types-page .types-section-head span {
  color: #8a806d;
  font-size: 12px;
}

.types-page .personality-grid {
  gap: 11px;
}

.types-page .personality-card {
  min-height: 0;
  border-color: rgba(116, 126, 101, 0.17);
  border-radius: 18px;
  padding: 7px 7px 12px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 11px 24px rgba(69, 73, 61, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.types-page .personality-card:hover {
  box-shadow: 0 16px 30px rgba(69, 73, 61, 0.12);
  transform: translateY(-2px);
}

.types-page .type-thumb {
  border-color: rgba(185, 130, 50, 0.16);
  border-radius: 14px;
  background: #f6f0e1;
}

.types-page .type-thumb img {
  border-radius: 13px;
}

.types-page .personality-card-copy {
  padding: 0 3px;
}

.types-page .type-code {
  color: #9a6826;
  background: #f5ead1;
}

.types-page .personality-card h3 {
  color: #354030;
}

.types-page .type-view {
  color: #a06f27;
}

.types-page .type-detail-sheet {
  width: min(100%, 480px);
  color: #354030;
  background: #fbfaf4;
}

@media (max-width: 420px) {
  .test-start-page .test-progress-panel {
    min-height: 218px;
    padding-top: 24px;
  }

  .test-start-page .test-title {
    font-size: 27px;
  }

  .test-start-page .test-subtitle {
    margin-top: 8px;
  }

  .test-start-page .test-landscape-dog {
    right: 21px;
    width: 118px;
    height: 118px;
  }

  .test-start-page .pet-info-card {
    padding-top: 18px;
  }

  .test-start-page .pet-info-form .form-group {
    grid-template-columns: 38px 74px minmax(0, 1fr);
    gap: 6px;
  }

  .types-page .types-hero-card {
    min-height: 292px;
  }

  .types-hero-copy {
    width: 66%;
    padding: 28px 0 25px 21px;
  }

  .types-hero-badge {
    margin-bottom: 21px;
  }

  .types-hero-copy h1 {
    font-size: 27px;
  }

  .types-hero-art {
    width: 51%;
  }
}

/* One navigation system across the homepage, test, types and package pages */
.home-page .home-header,
.test-page .test-header,
.types-page .home-header,
.packages-showcase-page .package-page-header {
  width: min(100vw, 480px);
  max-width: 480px;
  min-height: 72px;
  margin-right: auto;
  margin-left: auto;
  padding: max(9px, env(safe-area-inset-top)) 16px 9px;
  background: #fff;
  border-bottom: 1px solid rgba(79, 87, 68, 0.1);
}

.home-page .home-header .brand,
.test-page .test-header .brand,
.types-page .home-header .brand,
.packages-showcase-page .package-page-header .brand {
  gap: 10px;
}

.home-page .home-header .brand-mark,
.test-page .test-header .brand-mark,
.types-page .home-header .brand-mark,
.packages-showcase-page .package-page-header .brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 8px 18px rgba(79, 87, 68, 0.16);
}

.home-page .home-header .brand-mark::before,
.test-page .test-header .brand-mark::before,
.types-page .home-header .brand-mark::before,
.packages-showcase-page .package-page-header .brand-mark::before {
  display: none;
}

.home-page .home-header .brand-mark img,
.test-page .test-header .brand-mark img,
.types-page .home-header .brand-mark img,
.packages-showcase-page .package-page-header .brand-mark img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  filter: none;
}

.home-page .home-header .brand strong,
.test-page .test-header .brand strong,
.types-page .home-header .brand strong,
.packages-showcase-page .package-page-header .brand strong {
  color: #30382d;
  font-size: 20px;
  letter-spacing: 0;
}

.home-page .home-header .brand small,
.test-page .test-header .brand small,
.types-page .home-header .brand small,
.packages-showcase-page .package-page-header .brand small {
  margin-top: 3px;
  color: #7c826f;
  font-size: 10px;
  letter-spacing: 0;
}

.home-page .home-header .menu-toggle,
.test-page .test-header .menu-toggle,
.types-page .home-header .menu-toggle,
.packages-showcase-page .package-page-header .menu-toggle {
  display: block;
  width: 58px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: #d4a44d;
  box-shadow: none;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 80%);
}

.home-page .home-header .menu-toggle:hover,
.test-page .test-header .menu-toggle:hover,
.types-page .home-header .menu-toggle:hover,
.packages-showcase-page .package-page-header .menu-toggle:hover {
  background: #b98232;
}

.home-page .home-header .menu-toggle span,
.test-page .test-header .menu-toggle span,
.types-page .home-header .menu-toggle span,
.packages-showcase-page .package-page-header .menu-toggle span {
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.home-page .mobile-menu,
.test-page .mobile-menu,
.types-page .mobile-menu,
.packages-showcase-page .package-mobile-menu {
  right: max(0px, calc((100vw - 480px) / 2));
  width: min(86vw, 430px);
  background: #fbfaf4;
}

.mobile-menu-links a[aria-current="page"] {
  position: relative;
  color: #9b6d25;
  background: rgba(212, 164, 77, 0.1);
}

.mobile-menu-links a[aria-current="page"]::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4a44d;
  content: "";
  transform: translateY(-50%);
}

/* Keep the test canvas exactly aligned with the shared 480px header */
.test-page .mobile-test-shell {
  width: min(100vw, 480px);
  max-width: 480px;
}

/* Use the high-resolution portrait without blend modes that soften its edges */
.test-page .test-landscape-dog {
  right: 28px;
  bottom: 17px;
  width: 158px;
  height: 158px;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  clip-path: circle(50% at 50% 50%);
  mix-blend-mode: normal;
  filter: drop-shadow(0 11px 14px rgba(65, 71, 57, 0.16));
}

@media (max-width: 420px) {
  .home-page .home-header .brand strong,
  .test-page .test-header .brand strong,
  .types-page .home-header .brand strong,
  .packages-showcase-page .package-page-header .brand strong {
    font-size: 17px;
  }

  .test-page .test-landscape-dog {
    right: 20px;
    width: 142px;
    height: 142px;
  }
}

/* Complete the test landscape and keep the progress rail above the scenery */
.test-start-page .progress-track {
  position: relative;
  z-index: 6;
  border: 3px solid rgba(250, 248, 241, 0.94);
  background: #d9dccb;
  box-shadow: 0 2px 8px rgba(69, 73, 61, 0.1);
}

.test-start-page .test-hero-landscape {
  top: 82px;
  transform: none;
}

.test-start-page .test-mountain--back {
  right: -20px;
  bottom: 14px;
  width: 240px;
  height: 120px;
}

.test-start-page .test-mountain--front {
  left: 72px;
  bottom: 12px;
  width: 210px;
  height: 98px;
}

.test-start-page .test-tree {
  bottom: 17px;
  height: 60px;
}

.test-start-page .test-landscape-dog {
  right: 28px;
  bottom: 3px;
  width: 118px;
  height: 118px;
}

@media (max-width: 420px) {
  .test-start-page .test-hero-landscape {
    top: 82px;
  }

  .test-start-page .test-mountain--back {
    right: -22px;
    bottom: 12px;
    width: 218px;
    height: 112px;
  }

  .test-start-page .test-mountain--front {
    left: 66px;
    bottom: 10px;
    width: 190px;
    height: 90px;
  }

  .test-start-page .test-tree {
    bottom: 14px;
    height: 55px;
  }

  .test-start-page .test-landscape-dog {
    right: 19px;
    bottom: 2px;
    width: 112px;
    height: 112px;
  }
}

/* Final shared accent layer: keep every page on the homepage honey-gold */
.test-page .start-test-button,
.test-page .mobile-bottom-actions .button.primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  box-shadow: 0 18px 36px rgba(135, 94, 31, 0.22);
}

.test-page .start-test-button:hover,
.test-page .mobile-bottom-actions .button.primary:hover {
  background: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
}

.test-page .card-badge,
.test-page .pet-info-form .field-icon {
  background: linear-gradient(135deg, #f8f2e2 0%, #f3e8ca 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 8px 18px rgba(86, 70, 38, 0.08);
}

.test-page .pet-info-form .form-control:focus,
.test-page .scale-button.selected {
  border-color: #d4a44d;
  box-shadow: 0 0 0 3px rgba(212, 164, 77, 0.15);
}

.types-page .types-hero-badge,
.types-page .academy-summary-eyebrow,
.types-page .types-section-head span,
.types-page .type-view,
.types-page #typeDetailCode {
  color: #b98232;
}

.types-page .academy-tab.is-active {
  box-shadow:
    0 0 0 2px #d4a44d,
    0 12px 25px rgba(134, 91, 30, 0.16);
}

.types-page .academy-summary-tags span,
.types-page .type-tags span,
.types-page .type-detail-tags span,
.types-page .type-code {
  border-color: rgba(212, 164, 77, 0.28);
  color: #b98232;
  background: #f3e8ca;
}

.packages-showcase-page .package-page-header {
  border-bottom-color: rgba(212, 164, 77, 0.28);
}

.packages-showcase-page .package-full-poster {
  border-top: 0;
}

.packages-showcase-page .mobile-menu-links a[aria-current="page"] {
  color: #b98232;
  background: rgba(212, 164, 77, 0.1);
}

/* Match the test actions to the homepage CTA shape and spacing */
.test-page .button.primary.start-test-button {
  display: inline-flex;
  width: auto;
  min-width: 190px;
  height: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 900;
}

.test-page .button.primary.start-test-button .button-arrow {
  margin-left: 14px;
  font-size: 27px;
}

.test-page .mobile-bottom-actions .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  font-size: 16px;
}

.test-page .mobile-bottom-actions .button.primary .button-arrow {
  margin-left: 10px;
  font-size: 22px;
}

.test-page .mobile-bottom-actions {
  grid-template-columns: minmax(0, 1fr) 190px;
}

/* Give the test CTA a little more breathing room below the form */
.test-start-page .button.primary.start-test-button {
  margin-top: 24px;
}

/* Complete the type-page landscape in the same visual language as the test hero */
.types-page .types-hero-card {
  min-height: 320px;
  isolation: isolate;
}

.types-hero-scenery {
  position: absolute;
  z-index: 0;
  inset: 74px 0 0;
  overflow: hidden;
}

.types-hero-scenery::before,
.types-hero-scenery::after {
  position: absolute;
  right: -10%;
  bottom: -38px;
  left: -10%;
  height: 128px;
  border-radius: 50% 50% 0 0;
  background: #d8d9c8;
  content: "";
}

.types-hero-scenery::after {
  bottom: -58px;
  height: 112px;
  background: #c3c8ad;
}

.types-mountain {
  position: absolute;
  bottom: 62px;
  background: #d1d2bf;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.types-mountain::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.38);
  clip-path: polygon(50% 0, 72% 45%, 58% 37%, 49% 56%, 37% 35%, 22% 64%, 0 100%);
  content: "";
}

.types-mountain--left {
  left: -36px;
  width: 232px;
  height: 126px;
}

.types-mountain--middle {
  left: 128px;
  bottom: 55px;
  width: 218px;
  height: 116px;
  background: #c7cab5;
}

.types-mountain--right {
  right: -28px;
  bottom: 58px;
  width: 210px;
  height: 108px;
  background: #d4d3c2;
}

.types-tree {
  position: absolute;
  z-index: 2;
  bottom: 42px;
  width: 27px;
  height: 62px;
  background: #7d8965;
  clip-path: polygon(50% 0, 81% 38%, 68% 38%, 94% 74%, 61% 74%, 61% 100%, 39% 100%, 39% 74%, 6% 74%, 32% 38%, 19% 38%);
}

.types-tree--one {
  left: 16px;
}

.types-tree--two {
  left: 199px;
  bottom: 38px;
  transform: scale(0.78);
}

.types-tree--three {
  right: 12px;
  transform: scale(0.92);
}

.types-page .types-hero-card::before,
.types-page .types-hero-card::after {
  display: none;
}

.types-page .types-hero-copy {
  z-index: 4;
}

.types-page .types-hero-art {
  z-index: 3;
  top: 62px;
  bottom: 10px;
  width: 53%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 34%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 34%, #000 58%);
}

.types-page .types-hero-art img {
  object-position: right center;
}

@media (max-width: 420px) {
  .types-page .types-hero-card {
    min-height: 306px;
  }

  .types-hero-scenery {
    top: 72px;
  }

  .types-mountain--left {
    left: -46px;
    width: 208px;
    height: 112px;
  }

  .types-mountain--middle {
    left: 105px;
    width: 192px;
    height: 102px;
  }

  .types-mountain--right {
    right: -34px;
    width: 188px;
    height: 98px;
  }

  .types-page .types-hero-art {
    top: 58px;
    width: 52%;
  }
}

/* Final type hero and action-button system */
.types-page .types-hero-art {
  display: none;
}

.types-page .types-hero-copy {
  width: min(86%, 390px);
  padding-right: 24px;
}

.types-page .types-hero-copy > p:not(.types-hero-badge) {
  max-width: 330px;
}

.types-page .types-hero-copy > span {
  max-width: 300px;
}

.types-page .types-mountain--left {
  left: -24px;
}

.types-page .types-mountain--middle {
  left: 142px;
}

.types-page .types-mountain--right {
  right: -22px;
}

.test-page .button.primary,
.types-page .button.primary,
.packages-showcase-page .button.primary,
.packages-showcase-page .package-hero-cta,
.packages-showcase-page .package-story-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #fffdf8;
  background: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  box-shadow: 0 18px 36px rgba(135, 94, 31, 0.22);
  font-size: 16px;
  font-weight: 900;
}

.test-page .button.primary:hover,
.types-page .button.primary:hover,
.packages-showcase-page .button.primary:hover,
.packages-showcase-page .package-hero-cta:hover,
.packages-showcase-page .package-story-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
  transform: translateY(-2px);
}

.test-page .button.secondary,
.types-page .button.secondary,
.packages-showcase-page .button.secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 130, 50, 0.34);
  border-radius: 999px;
  padding: 0 22px;
  color: #9a6b27;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(135, 94, 31, 0.08);
  font-size: 15px;
  font-weight: 900;
}

.test-page .button.secondary:hover,
.types-page .button.secondary:hover,
.packages-showcase-page .button.secondary:hover {
  border-color: #d4a44d;
  color: #80591f;
  background: #f8edcf;
  transform: translateY(-2px);
}

.types-page .type-view {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 999px;
  padding: 0 16px;
  color: #fffdf8;
  background: linear-gradient(135deg, #dfb65f 0%, #c38d37 100%);
  box-shadow: 0 8px 18px rgba(135, 94, 31, 0.15);
}

.types-page .personality-card:hover .type-view {
  background: linear-gradient(135deg, #e6c16f 0%, #b47c2e 100%);
}

.result-actions .button {
  border-radius: 999px;
}

@media (max-width: 420px) {
  .types-page .types-hero-copy {
    width: 88%;
    padding-right: 18px;
  }

  .types-page .types-mountain--middle {
    left: 116px;
  }
}
