:root {
  --ink: #0d0f12;
  --muted: #6b6f76;
  --line: #ececec;
  --paper: #ffffff;
  --card: #ffffff;
  --orange: #f2a23a;
  --green: #cfeec4;
  --blue: #c9d4ff;
  --rose: #ffd2de;
  --yellow: #fff0b8;
  --navy: #11131a;
  --shadow: 0 18px 45px rgba(20, 24, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  background: var(--paper);
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0 60px;
}

.hero {
  min-height: 620px;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2a23a, #6ec0c7);
  font-size: 12px;
  font-weight: 900;
}

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

.ghost-button,
.secondary-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 32px;
  align-items: center;
  min-height: 520px;
  padding: 18px 8px 46px;
}

.hero-copy {
  max-width: 640px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: #d88920;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #d88920;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  color: #25282d;
  font-size: 17px;
  line-height: 1.9;
}

.hero-steps {
  display: grid;
  gap: 14px;
  max-width: 600px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 18px;
  align-items: center;
}

.hero-steps span {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--green);
  clip-path: polygon(50% 0%, 62% 32%, 98% 35%, 70% 56%, 79% 91%, 50% 72%, 21% 91%, 30% 56%, 2% 35%, 38% 32%);
  font-weight: 900;
}

.hero-steps li:nth-child(2) span {
  background: var(--rose);
}

.hero-steps li:nth-child(3) span {
  background: var(--yellow);
}

.hero-steps strong {
  display: block;
  grid-column: 2;
  font-size: 19px;
}

.hero-steps small {
  display: block;
  grid-column: 2;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero-actions a {
  color: var(--ink);
  font-weight: 900;
}

.primary-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.cover-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff7eb;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.cover-card picture,
.cover-card img {
  display: block;
  width: 100%;
}

.cover-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.cover-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  color: #fff;
  background: rgba(13, 15, 18, 0.72);
  backdrop-filter: blur(8px);
}

.cover-card small {
  font-size: 11px;
  font-weight: 900;
}

.cover-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.screen,
.type-library {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(20, 24, 28, 0.07);
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.loading-screen.is-active {
  display: grid;
  min-height: 420px;
  place-items: center;
}

.loading-card {
  display: grid;
  justify-items: center;
  max-width: 420px;
  padding: 34px 22px;
  text-align: center;
}

.spinner {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  border: 6px solid #f0f0f0;
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.loading-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.section-title p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.axis-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.axis-summary article {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fffaf1;
}

.axis-summary span {
  display: block;
  margin-bottom: 7px;
  color: #d88920;
  font-size: 11px;
  font-weight: 900;
}

.axis-summary strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

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

.question-card,
.panel,
.compatibility,
.type-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.question-card {
  padding: 18px;
  box-shadow: 0 12px 28px rgba(20, 24, 28, 0.05);
}

.question-head {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.question-number {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.question-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.question-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.question-axis {
  display: inline-block;
  margin-top: 8px;
  color: #d88920;
  font-size: 11px;
  font-weight: 900;
}

.choice-row {
  display: grid;
  gap: 8px;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.scale-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-button {
  min-height: 64px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}

.choice-button:hover,
.choice-button.is-selected {
  border-color: var(--ink);
  background: #f7f7f7;
  transform: translateY(-1px);
}

.choice-button strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.choice-button span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.scale-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 999px;
  text-align: center;
}

.scale-button strong {
  margin: 0;
  font-size: 16px;
}

.diagnosis-footer {
  position: sticky;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.answer-progress {
  align-self: center;
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.live-code {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.live-code span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.live-code strong {
  color: var(--ink);
  font-size: 28px;
}

.result-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  background: #fff8eb;
}

.result-copy .eyebrow {
  color: #d88920;
}

.result-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
}

.result-copy p:last-child {
  margin-bottom: 0;
  color: #25282d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
}

.result-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
}

.insight-panel {
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.insight-panel p:not(.eyebrow) {
  margin-bottom: 16px;
  color: #22262b;
  font-size: 17px;
  line-height: 2;
}

.insight-panel p:last-child {
  margin-bottom: 0;
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.episode-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.good-match {
  background: #f4fbf1;
}

.bad-match {
  background: #fff6f8;
}

.episode-head {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.episode-head img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
}

.episode-head h4 {
  margin: 0;
  font-size: 22px;
}

.episode-card p:last-child {
  margin: 0;
  color: #2e3338;
  font-size: 16px;
  line-height: 1.85;
}

.compatibility {
  margin-top: 12px;
  padding: 18px;
}

.compatibility-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.compatibility-head h3 {
  margin-bottom: 0;
}

.compatibility label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.match-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 10px;
  background: #f3f7f5;
}

.match-card strong {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 28px;
}

.match-card p {
  margin: 0;
  color: #34424a;
  line-height: 1.7;
}

.ranking-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 46px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.rank-row div {
  min-width: 0;
}

.episode-card .rank-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.rank-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.rank-row img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff7eb;
}

.rank-row strong {
  font-size: 14px;
}

.rank-row em {
  color: #d88920;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.property-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 24px;
  border: 1px solid #d88920;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(216, 137, 32, 0.18);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.property-search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(216, 137, 32, 0.24);
}

.property-search-button:focus-visible {
  outline: 3px solid rgba(216, 137, 32, 0.3);
  outline-offset: 3px;
}

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

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

.character-sheet {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.character-sheet img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.type-card {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s;
}

.type-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff7eb;
}

.type-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.type-card strong {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 32px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 15px;
}

.type-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.type-card em {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.type-card .type-card-description {
  margin-top: 8px;
  color: var(--ink);
}

.type-card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.modal-open {
  overflow: hidden;
}

.type-modal[hidden] {
  display: none;
}

.type-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.type-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(18, 29, 42, 0.68);
  backdrop-filter: blur(5px);
}

.type-modal-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(14, 31, 49, 0.28);
}

.type-modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  cursor: pointer;
}

.type-modal-cover {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  margin: -28px -28px 24px;
  padding: 28px;
  border-radius: 24px 24px 0 0;
  background: #fff7eb;
}

.type-modal-cover img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.type-modal-cover h2 {
  margin: 4px 0 6px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.type-modal-formal {
  margin: 0 0 14px;
  color: var(--orange);
  font-weight: 900;
}

.type-modal-body p,
.type-modal-section li {
  line-height: 1.9;
}

.type-camera-roll {
  margin: 28px 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff8ed;
}

.type-camera-roll figcaption {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.type-camera-roll figcaption h3,
.type-camera-roll figcaption p {
  margin: 0;
}

.type-camera-roll figcaption h3 {
  font-size: clamp(23px, 3vw, 32px);
}

.type-camera-roll figcaption > p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.type-camera-roll img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(76, 55, 26, 0.12);
}

.type-modal-match {
  margin-top: 18px;
}

.type-modal-section {
  margin: 24px 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
}

.type-modal-section h3 {
  margin-top: 0;
}

@media (max-width: 940px) {
  .hero-grid,
  .result-cover,
  .match-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 18px 34px 44px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .cover-card img {
    aspect-ratio: 16 / 10;
  }

  .question-board,
  .type-grid,
  .axis-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app {
    width: 100%;
    padding: 12px 10px 42px;
  }

  .topbar,
  .section-title,
  .compatibility-head,
  .diagnosis-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 18px 22px 24px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button {
    min-height: 48px;
    padding: 0 20px;
  }

  .hero-visual {
    display: block;
    min-height: auto;
  }

  .cover-card {
    border-radius: 18px;
  }

  .cover-card img {
    aspect-ratio: 9 / 14;
    max-height: 560px;
    object-position: center top;
  }

  .cover-card figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }

  .cover-card strong {
    font-size: 17px;
  }

  .screen,
  .type-library {
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
  }

  .question-board,
  .type-grid,
  .axis-summary,
  .match-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 16px;
  }

  .choice-button {
    min-height: 56px;
    padding: 10px;
  }

  .scale-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .diagnosis-footer {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .result-cover {
    padding: 20px;
  }

  .result-copy h2 {
    font-size: 42px;
  }

  .result-cover img {
    max-width: 320px;
    margin: 0 auto;
  }

  .type-modal {
    padding: 10px;
  }

  .type-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .type-modal-cover {
    grid-template-columns: 1fr;
    margin: -20px -20px 20px;
    padding: 22px;
  }

  .type-modal-cover img {
    width: min(220px, 70%);
    margin: 0 auto;
  }

  .type-camera-roll {
    margin-inline: -4px;
    padding: 12px;
    border-radius: 18px;
  }

  .match-card strong {
    width: 74px;
    height: 74px;
  }

  .rank-row {
    justify-items: start;
  }

  .ranking-list .rank-row {
    grid-template-columns: 32px 70px minmax(0, 1fr);
  }

  .ranking-list .rank-row em {
    grid-column: 3;
  }

  .property-search-button {
    width: 100%;
    text-align: center;
  }

  .rank-row img {
    width: 70px;
    height: 70px;
  }
}

/* Figma Sites LP direction — warm, editorial, mobile-first */
:root {
  --ink: #171511;
  --muted: #777067;
  --line: #eadfce;
  --paper: #fffaf3;
  --card: #fffefb;
  --orange: #eda847;
  --orange-deep: #d88821;
  --green: #eef7e7;
  --blue: #eef2ff;
  --rose: #fff0f2;
  --yellow: #fff4ce;
  --navy: #171511;
  --shadow: 0 18px 50px rgba(76, 55, 26, 0.09);
}

html {
  background: var(--paper);
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(237, 168, 71, 0.09), transparent 30rem),
    var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0.01em;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(216, 136, 33, 0.35);
  outline-offset: 3px;
}

.app {
  width: min(920px, calc(100vw - 40px));
  padding: 0 0 80px;
}

.hero {
  min-height: auto;
  overflow: visible;
  background: transparent;
}

.topbar {
  position: relative;
  z-index: 5;
  min-height: 78px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(234, 223, 206, 0.85);
}

.brand {
  gap: 12px;
}

.brand span {
  width: 38px;
  height: 38px;
  border: 1px solid #1d1a15;
  color: #1d1a15;
  background: var(--orange);
  box-shadow: 3px 3px 0 #1d1a15;
  font-family: Georgia, serif;
  font-size: 16px;
}

.brand strong {
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.14em;
}

.ghost-button,
.secondary-button {
  min-height: 38px;
  border-color: #1d1a15;
  padding-inline: 17px;
  color: #fff;
  background: #1d1a15;
  box-shadow: none;
  font-size: 12px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  grid-template-rows: auto 1fr;
  gap: clamp(38px, 7vw, 76px);
  row-gap: 0;
  min-height: 590px;
  padding: 72px 0 64px;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 440px;
}

.hero-details {
  grid-column: 1;
  grid-row: 2;
  max-width: 440px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange-deep);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.hero-copy p:not(.eyebrow) {
  max-width: 420px;
  color: #4c463e;
  font-size: 14px;
  line-height: 2;
}

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.property-search-button {
  min-height: 48px;
  border: 1px solid #d98b25;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #efad50, #e69b35);
  box-shadow: 0 10px 22px rgba(213, 132, 32, 0.2);
  font-size: 13px;
  font-weight: 900;
}

.primary-button:hover:not(:disabled),
.property-search-button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.hero-actions a {
  color: #5b5248;
  font-size: 12px;
  text-underline-offset: 4px;
}

.hero-steps {
  gap: 9px;
  margin-top: 34px;
}

.hero-steps li {
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  min-height: 48px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 251, 0.72);
}

.hero-steps span,
.hero-steps li:nth-child(2) span,
.hero-steps li:nth-child(3) span {
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--orange);
  clip-path: none;
  border-radius: 50%;
  font-size: 11px;
}

.hero-steps strong {
  font-size: 13px;
}

.hero-steps small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: auto;
}

.cover-card {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cover-card::before {
  position: absolute;
  inset: 14px -12px -12px 14px;
  z-index: -1;
  border: 1px solid rgba(216, 136, 33, 0.36);
  border-radius: 28px;
  background: #fff0d5;
  content: "";
  transform: rotate(1.5deg);
}

.cover-card img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 26px;
  object-position: center;
  box-shadow: var(--shadow);
}

.cover-card figcaption {
  left: 18px;
  right: auto;
  bottom: -16px;
  gap: 2px;
  padding: 11px 16px;
  border: 1px solid #1d1a15;
  border-radius: 999px;
  color: #fff;
  background: #1d1a15;
  backdrop-filter: none;
}

.cover-card small {
  color: #d8d1c7;
  font-size: 8px;
}

.cover-card strong {
  font-size: 13px;
}

.screen,
.type-library {
  margin-top: 0;
  padding: 70px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-title {
  display: block;
  max-width: 660px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 13px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-title p:last-child {
  max-width: 560px;
  margin-inline: auto;
  font-size: 13px;
  line-height: 1.85;
}

.axis-summary {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 820px;
  margin: 0 auto 22px;
}

.axis-summary article {
  min-height: 82px;
  border-color: var(--line);
  border-radius: 14px;
  padding: 13px;
  background: var(--card);
}

.axis-summary span {
  color: var(--orange-deep);
  font-size: 9px;
}

.axis-summary strong {
  font-size: 11px;
}

.question-board {
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

.question-card {
  padding: 20px 22px 18px;
  border-color: var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(76, 55, 26, 0.045);
}

.question-head {
  gap: 13px;
  margin-bottom: 14px;
}

.question-number {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--orange);
  font-size: 9px;
}

.question-card h3 {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.65;
}

.question-card p {
  font-size: 10px;
  line-height: 1.7;
}

.question-axis {
  margin-top: 7px;
  color: var(--orange-deep);
  font-size: 9px;
}

.scale-labels {
  padding-inline: 4px;
  color: #9a9084;
  font-size: 9px;
}

.scale-row {
  gap: 14px;
  padding: 0 6px;
}

.scale-button {
  min-height: 42px;
  border: 1px solid #d9c9b2;
  border-radius: 50%;
  background: #fffdf9;
}

.scale-button strong {
  color: #826f57;
  font-size: 12px;
}

.choice-button:hover,
.choice-button.is-selected {
  border-color: #d98720;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 5px 12px rgba(216, 136, 33, 0.18);
}

.choice-button.is-selected strong {
  color: #fff;
}

.diagnosis-footer {
  z-index: 6;
  bottom: 16px;
  max-width: 680px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 12px 36px rgba(76, 55, 26, 0.12);
}

.answer-progress {
  font-size: 11px;
}

.result-cover {
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff9ef, #fff1d8);
}

.result-copy h2 {
  font-size: clamp(36px, 4vw, 48px);
  line-break: strict;
}

.result-copy p:last-child,
.insight-panel p:not(.eyebrow),
.episode-card p:last-child {
  font-size: 14px;
  line-height: 1.9;
}

.result-cover img,
.type-modal-cover img {
  border: 0;
  background: rgba(255, 255, 255, 0.7);
}

.insight-panel,
.compatibility,
.episode-card {
  border-color: var(--line);
  background: var(--card);
}

.good-match {
  background: var(--green);
}

.bad-match {
  background: var(--rose);
}

.rank-row {
  border-color: rgba(211, 198, 179, 0.8);
  background: rgba(255, 255, 255, 0.76);
}

.type-library {
  padding-bottom: 20px;
}

.character-sheet {
  max-width: 760px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.type-card {
  border-color: var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.type-card:hover {
  border-color: #d9c5a8;
  box-shadow: 0 12px 28px rgba(76, 55, 26, 0.1);
  transform: translateY(-3px);
}

.type-card img {
  background: #fff8ec;
}

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

.type-card em,
.type-card-link {
  color: var(--orange-deep);
}

.type-card-description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.type-modal {
  background: rgba(36, 29, 21, 0.58);
}

.type-modal-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.type-modal-cover {
  background: linear-gradient(145deg, #fff8ed, #ffedcf);
}

.type-modal-close {
  position: sticky;
  top: 10px;
  right: auto;
  float: right;
  margin: 0 0 -40px auto;
  border: 1px solid var(--line);
  box-shadow: 0 5px 16px rgba(76, 55, 26, 0.12);
}

.type-modal-match {
  grid-template-columns: 1fr;
}

.type-modal-match .episode-card {
  min-width: 0;
  padding: 20px;
}

.type-modal-match .rank-row {
  grid-template-columns: 30px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.type-modal-match .rank-row img {
  width: 54px;
  height: 54px;
}

.type-modal-match .rank-row em {
  align-self: center;
  white-space: nowrap;
}

.type-modal-section {
  border: 1px solid var(--line);
  background: #fffefb;
}

@media (max-width: 940px) {
  .app {
    width: min(720px, calc(100vw - 32px));
  }

  .hero-grid,
  .result-cover,
  .match-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 52px;
    padding: 52px 18px 62px;
  }

  .hero-copy,
  .hero-details {
    grid-column: 1;
    grid-row: auto;
    max-width: 590px;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 560px;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .hero-details {
    grid-row: 3;
  }

  .cover-card img {
    aspect-ratio: 4 / 3;
  }

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

@media (max-width: 640px) {
  .app {
    width: 100%;
    padding: 0 14px 50px;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    min-height: 68px;
    padding: 14px 2px;
  }

  .brand span {
    width: 34px;
    height: 34px;
  }

  .ghost-button {
    min-height: 34px;
    padding-inline: 13px;
    font-size: 10px;
  }

  .hero-grid {
    gap: 42px;
    padding: 44px 5px 56px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.12;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-button {
    width: 100%;
  }

  .hero-actions a {
    align-self: center;
  }

  .hero-steps li {
    grid-template-columns: 32px 1fr;
  }

  .cover-card img {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .screen,
  .type-library {
    padding: 52px 0;
  }

  .section-title {
    margin-bottom: 24px;
    padding-inline: 8px;
  }

  .section-title h2 {
    font-size: 30px;
  }

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

  .question-card {
    padding: 17px 15px 16px;
  }

  .question-head {
    align-items: flex-start;
  }

  .scale-row {
    gap: 8px;
    padding: 0;
  }

  .scale-button {
    min-height: 46px;
    padding: 0;
  }

  .diagnosis-footer {
    left: 0;
    right: 0;
    bottom: 8px;
    align-items: stretch;
    flex-direction: column;
  }

  .answer-progress {
    align-self: auto;
    margin: 0;
    text-align: center;
  }

  .diagnosis-footer .primary-button {
    width: 100%;
  }

  .result-cover {
    padding: 20px;
  }

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

  .type-card {
    padding: 10px;
  }

  .type-card h3 {
    font-size: 14px;
  }

  .type-card-description {
    display: none;
  }

  .type-modal-panel {
    border-radius: 22px;
  }
}

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

/* Figma Group 55: original SVGs, 264 × 50, 14px spacing. */
.choice-row.figma-scale {
  position: relative;
  display: grid;
  grid-template-columns: 50px 40px 28px 40px 50px;
  gap: 14px;
  width: 264px;
  height: 50px;
  margin-inline: auto;
  padding: 0;
}
.figma-scale-state {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.figma-scale .scale-button,
.figma-scale .scale-button:hover,
.figma-scale .scale-button.is-selected {
  position: relative;
  display: grid;
  place-items: center;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.figma-scale .scale-button:focus-visible {
  outline: 2px solid #826f57;
  outline-offset: 3px;
  border-radius: 5px;
}
.question-card .scale-labels {
  width: 264px;
  margin-inline: auto;
  padding-inline: 0;
}

/* Generated icon and Japanese wordmark; preserve the original transparent PNG. */
.topbar .brand {
  display: flex;
  align-items: center;
  width: min(340px, 58vw);
  height: 64px;
  overflow: hidden;
  flex: 0 1 340px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .topbar .brand {
    height: 48px;
    flex-basis: 230px;
  }
  .topbar > .ghost-button {
    flex-shrink: 0;
  }
}

/* Figma Sites mobile reference (375px), with fluid tablet/desktop adaptation. */
@font-face{font-family:RoundedMplus;src:url('./assets/figma/fonts/Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:RoundedMplus;src:url('./assets/figma/fonts/Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:RoundedMplus;src:url('./assets/figma/fonts/ExtraBold.woff2') format('woff2');font-weight:800 900;font-display:swap}
:root{--orange:#ff9919;--ink:#080808;--paper:#fff;--muted:#6b6b6b}
body{font-family:RoundedMplus,'Hiragino Sans',sans-serif;background:#ffcf94}
.app{width:100%;padding:0 0 24px;margin:0 auto}
.hero{min-height:0;overflow:visible;background:white;border-radius:0}
.topbar{height:70px;padding:5px max(13px,calc((100% - 1100px)/2));background:#ffb75b;gap:12px}
.topbar .brand{width:250px;flex:0 1 250px;height:60px}
.topbar .ghost-button{min-height:35px;height:35px;padding:0 20px;color:#ff9919;border:0;font-size:13px;white-space:nowrap}
.hero-grid{max-width:1120px;min-height:0;margin:auto;padding:42px 24px 50px;grid-template-columns:1fr 1fr;gap:32px}
.hero-copy .eyebrow,.cover-card figcaption,.axis-summary,.section-title>.eyebrow{display:none}
.hero-copy h1{font-size:clamp(30px,3.3vw,46px);line-height:1.2;letter-spacing:0;margin:0 0 28px;font-weight:800}
.hero-copy p:not(.eyebrow){font-size:16px;line-height:1.32;color:#6b6b6b;margin:0;max-width:none}
.hero-visual{min-width:0;transform:none}
.cover-card{margin:0;padding:0;border:0;box-shadow:none;border-radius:15px;overflow:hidden;background:none;transform:none}
.cover-card>img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;border-radius:15px}
.hero-details{display:flex;flex-direction:column;grid-column:1 / -1;gap:0;width:100%;max-width:none}
.hero-steps{order:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;max-width:none}
.hero-steps li{grid-template-columns:63px minmax(0,1fr);column-gap:12px;min-height:63px}
.hero-steps li span{position:relative;width:63px;height:61px;background:none;clip-path:none;font-size:20px;font-weight:800;color:#000;isolation:isolate}
.hero-steps li span img{position:absolute;inset:0;z-index:-1;width:63px;height:61px}
.hero-steps strong{font-size:20px;font-weight:500;line-height:1.5}
.hero-steps small{font-size:15px;font-weight:400;line-height:1.5;margin:2px 0 0;color:#6b6b6b}
.hero-actions{order:1;display:flex;flex-direction:column;gap:16px;margin:40px 0 0}
.primary-button{min-height:64px;padding:15px 18px;background:#ffb75b;color:white;border:0;border-radius:15px;box-shadow:none;font-weight:800;font-size:18px;line-height:1.5}
.hero-actions .primary-button{width:min(100%,430px)}
.hero-actions a{color:#ff9919;font-size:15px;font-weight:500;text-decoration:underline}
.screen,.type-library{width:calc(100% - 20px);max-width:1080px;margin:24px auto 0;border:0;border-radius:15px;padding:24px 13px;background:#fff;box-shadow:none;scroll-margin-top:20px}
.section-title{text-align:center;margin:0 auto 26px}
.section-title h2{font-size:35px;line-height:1.47;letter-spacing:0;color:#ff9919;margin:0 0 8px;font-weight:800}
.section-title p:not(.eyebrow){font-size:17px;line-height:20px;color:#6b6b6b;margin:0 auto}
.question-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.question-card{display:flex;flex-direction:column;min-width:0;min-height:180px;padding:10px 11px 12px;border:0;border-radius:15px;background:white;box-shadow:0 4px 4px #0004;gap:0}
.question-head{display:grid;grid-template-columns:35px minmax(0,1fr);gap:11px;align-items:start;min-height:70px;margin:0 0 13px}
.question-number{width:35px;height:35px;min-width:35px;padding:0;display:grid;place-items:center;border-radius:50%;background:url('./assets/figma/home/question-number.svg') center/contain no-repeat;color:white;font-size:18px;font-weight:500}
.question-card h3{font-size:18px;line-height:20px;font-weight:800;color:#424242;margin:0;letter-spacing:0}
.question-head p,.question-axis{display:none}
.question-card .figma-scale{order:1;margin-top:auto;margin-bottom:0}
.question-card .scale-labels{order:2;width:100%;margin:7px 0 0;padding:0 2px;font-size:13px;line-height:19px;font-weight:500;color:#777}
.diagnosis-footer{position:static;display:flex;flex-direction:column;align-items:center;gap:12px;margin:28px auto 0;padding:0;background:transparent;box-shadow:none;border:0;backdrop-filter:none}
.answer-progress{margin:0;text-align:center}
.diagnosis-footer .primary-button{width:min(100%,430px);font-size:16px}
.type-library{padding-bottom:24px}
.character-sheet{max-width:660px;margin:20px auto;border:0;box-shadow:none;border-radius:0;background:none;padding:0}
.character-sheet img{width:100%;display:block;border-radius:0}
.type-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.type-card{display:flex;flex-direction:column;padding:13px;background:#fdfbf5;border:0;border-radius:15px;box-shadow:inset 2px 3px 4px #0002;gap:0;min-width:0}
.type-card>img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px;margin:0 0 15px}
.type-card h3{font-size:20px;line-height:1.4;margin:0 0 6px;font-weight:800}
.type-card em{font-size:14px;line-height:1.4;color:#f2a23a;margin:0 0 8px}
.type-card p{font-size:12px;line-height:1.5;margin:0 0 8px}
.type-card .type-card-description{display:block;color:#111}
.type-card .type-card-link{margin-top:auto;color:#ff9919}
.type-modal-panel{background:#fff;border:0;max-width:800px}
.type-modal-cover{background:#fff;border:0}
.type-modal-body p{font-size:15px;line-height:1.8}
.type-modal .eyebrow{color:#ff9919}
.type-modal-cover .eyebrow{display:none}
.type-modal-cover h2{font-size:28px;color:#111}
.type-modal-formal{color:#ff9919}
@media(max-width:760px){
 .topbar{height:55px;padding:4px 13px;gap:8px}
 .topbar .brand{height:47px;width:210px;flex-basis:210px}
 .topbar .ghost-button{padding:0 14px;font-size:12px}
 .hero-grid{display:flex;flex-direction:column;gap:0;padding:30px 13px 50px;max-width:520px}
 .hero-copy{width:100%;max-width:none}
 .hero-copy h1{font-size:clamp(28px,9.6vw,40px);line-height:1.2;margin:0 0 21px;white-space:nowrap}
 .hero-copy p:not(.eyebrow){margin:0 6px;font-size:16px;line-height:21px}
 .hero-visual{width:100%;margin:26px 0 0}
 .hero-details{margin-top:33px}
 .hero-steps{grid-template-columns:1fr;gap:16px}
 .hero-steps li{min-height:63px;column-gap:12px}
 .hero-steps strong{font-size:20px}
 .hero-steps small{font-size:clamp(12px,4vw,15px);white-space:nowrap}
 .hero-actions{margin-top:48px}
 .hero-actions .primary-button{width:100%;max-width:none}
 .screen,.type-library{max-width:500px;margin-top:0;padding:17px 13px 24px}
 .diagnosis-screen{border-top:10px solid #ffcf94}
 .question-board,.type-grid{grid-template-columns:minmax(0,1fr)}
 .section-title{margin-bottom:26px}
 .section-title h2{font-size:35px}
 .type-library{margin-top:20px}
 .type-library .section-title h2{font-size:30px}
 .type-library .section-title p{font-size:15px;line-height:21px}
 .type-card{min-height:0}
 .type-card h3{font-size:20px}
 .type-card-description{display:block}
 .type-modal{padding:10px}
 .type-modal-panel{width:100%;padding:18px 13px;border-radius:15px;max-height:calc(100dvh - 20px)}
 .type-modal-cover{display:flex;flex-direction:column;padding:25px 0 0;gap:18px}
 .type-modal-cover>img{width:100%;max-width:350px;height:auto;aspect-ratio:1;object-fit:cover}
 .type-modal-cover h2{font-size:26px}
 .type-modal-body{padding:0}
 .type-modal-body p{overflow-wrap:anywhere}
 .match-grid{grid-template-columns:minmax(0,1fr)}
 .episode-card{min-width:0;padding:13px}
 .result-cover{grid-template-columns:minmax(0,1fr);padding:13px}
 .result-actions{flex-direction:column;align-items:stretch}
}
@media(max-width:350px){
 .screen,.type-library{padding-inline:8px}
 .question-card{padding-inline:7px}
 .question-head{gap:8px}
 .question-card h3{font-size:16px}
 .hero-steps li{column-gap:8px}
 .hero-steps strong{font-size:18px}
 .topbar .ghost-button{font-size:11px;padding-inline:10px}
 .section-title p:not(.eyebrow){font-size:15px}
}
.topbar{min-height:70px;border:0}
.topbar .ghost-button{background:#fff}
.hero-steps li{padding:0;border:0;background:none;border-radius:0}
.hero-steps li:nth-child(n) span{width:63px;height:61px;background:none;color:#000;font-size:20px;border-radius:0}
.cover-card::before{display:none}
.cover-card>img{border:0;box-shadow:none}
@media(min-width:761px){.hero-visual{grid-column:2;grid-row:1;width:100%}.hero-details{grid-row:2}.hero-steps small{white-space:normal}}
@media(max-width:760px){.topbar{min-height:55px}.hero-grid{padding-top:30px}}
.type-modal-cover{background:#ffeedb;border-radius:26px 26px 0 0;padding:24px}
.type-modal-cover h2{font-size:35px;line-height:1.47;margin:0 0 10px}
.type-modal-cover .type-modal-formal{font-size:18px;line-height:1.5;color:#ed9d37}
.type-modal-cover #typeModalTagline{font-size:15px;line-height:1.5;font-weight:400;color:#6b6b6b}
.type-modal-body p{line-height:23px;font-weight:400}
.type-camera-roll{display:none}
.good-match{background:#e5ffdc}
.bad-match{background:#ffe6e7}
.result-cover{background:#ffeedb;border:0}
.result-copy>.eyebrow{display:none}
@media(max-width:760px){
 .type-modal{padding:0;background:white}
 .type-modal-panel{width:100%;max-width:500px;max-height:100dvh;border-radius:0;padding:10px;margin:0 auto}
 .type-modal-cover{padding:22px 26px 12px;gap:14px;align-items:stretch}
 .type-modal-cover>img{width:100%;max-width:none;border:0;box-shadow:none;border-radius:20px}
 .type-modal-cover h2{font-size:clamp(27px,9.33vw,35px)}
 .type-modal-cover .type-modal-formal{font-size:18px}
 .type-modal-body{padding:28px 13px 0}
 .type-modal-close{position:fixed;top:20px;right:20px;z-index:3}
 .type-modal-panel>.property-search-button{margin-inline:13px;max-width:calc(100% - 26px)}
}
.type-modal-cover{margin:0 0 24px}
.topbar{position:fixed;inset:0 0 auto;z-index:20;width:100%}
.hero{padding-top:70px}
.screen,.type-library{scroll-margin-top:80px}
@media(max-width:760px){.hero{padding-top:55px}.screen,.type-library{scroll-margin-top:65px}.type-modal-cover{margin:0}.type-modal-panel{scrollbar-gutter:auto}}

.share-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:22px;padding:28px 22px;color:#222;background:#fff;font-family:RoundedMplus,sans-serif}
.share-dialog::backdrop{background:#241d1599}
.share-dialog h2{font-size:24px;margin:8px 30px 12px 0;color:#df8b25}
.share-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#fff4e5;font-size:28px}
#sharePreview{display:block;width:135px;height:240px;object-fit:contain;margin:16px auto;border-radius:10px}
#sharePreview[hidden],.share-options [hidden]{display:none}
.share-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.share-options a,.share-options button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 8px;border:1px solid #efd6b7;border-radius:12px;background:#fff6e8;color:#4c3920;text-decoration:none;font:500 14px RoundedMplus,sans-serif;text-align:center}
.share-options #shareX{background:#171717;color:#fff;border-color:#171717}
.share-options #shareLine{background:#06c755;color:#fff;border-color:#06c755}
.share-options button:disabled{opacity:.5;cursor:wait}
.share-note,#shareStatus{font-size:13px;line-height:1.6;margin:16px 0 0}
#shareLink{width:100%;margin-top:12px;padding:10px;border:1px solid #ddd;border-radius:8px;font-size:12px;box-sizing:border-box}
