﻿:root {
  --ink: #222d3f;
  --muted: #607084;
  --surface: #fbfcff;
  --panel: #f4fbfa;
  --line: #dce5e8;
  --coral: #ff6d58;
  --teal: #2cb7a5;
  --teal-ink: #147b71;
  --sun: #f7d565;
  --mint: #dff6df;
  --sky: #dff2ff;
  --sticky-ad-reserve: 144px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;

  font: 16px/1.5 var(--font);
  letter-spacing: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(223, 242, 255, 0.78), transparent 36%),
    linear-gradient(315deg, rgba(255, 109, 88, 0.16), transparent 34%),
    #f8faf9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  padding-bottom: calc(var(--sticky-ad-reserve) + env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

@media (max-width: 560px) {
  :root {
    --sticky-ad-reserve: 112px;
  }
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 40px - var(--sticky-ad-reserve));
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.08fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(34, 45, 63, 0.12);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 122, 89, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(44, 183, 165, 0.2), transparent 44%),
    var(--panel);
  border-right: 1px solid var(--line);
}

.brand-copy {
  display: grid;
  gap: 20px;
}

.brand-topline {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border: 1px solid rgba(44, 183, 165, 0.35);
  border-radius: 4px;
  color: var(--teal-ink);
  background: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 700;
}

.brand-panel h1 {
  max-width: 7em;
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-panel p {
  max-width: 25rem;
  color: var(--muted);
  font-size: 17px;
}

.hero-art {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.test-panel,
.result-panel {
  min-height: 620px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.test-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.test-header h2 {
  margin: 0;
  min-height: 2.36em;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.progress-number {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--sun);
  font-weight: 900;
  text-align: center;
}

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

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--teal), var(--sun));
  transition: width 220ms ease;
}

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

.choice-anchors button {
  position: relative;
  min-height: 154px;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  justify-items: start;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.choice-anchors .choice-card-a:hover,
.choice-anchors .choice-card-a.selected {
  border-color: rgba(255, 109, 88, 0.5);
}

.choice-anchors .choice-card-b:hover,
.choice-anchors .choice-card-b.selected {
  border-color: rgba(44, 183, 165, 0.5);
}

.choice-anchors .choice-card-a.selected {
  background: rgba(255, 109, 88, 0.08);
}

.choice-anchors .choice-card-b.selected {
  background: rgba(44, 183, 165, 0.08);
}

.choice-anchors button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(48, 58, 76, 0.1);
}

.choice-badge {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--sky);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.choice-card-a .choice-badge {
  background: rgba(255, 109, 88, 0.15);
}

.choice-card-b .choice-badge {
  background: rgba(44, 183, 165, 0.17);
}

.choice-anchors strong {
  align-self: start;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.32;
  text-align: left;
}

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

.answer {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.answer:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 89, 0.5);
  box-shadow: 0 12px 30px rgba(48, 58, 76, 0.1);
}

.answer.selected {
  color: #ffffff;
  border-color: var(--coral);
  background: var(--coral);
}

.test-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.action-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(42, 58, 78, 0.14);
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  color: #ffffff;
  background: var(--ink);
}

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

.result-panel {
  align-items: stretch;
}

.result-heading {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.result-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
}

.result-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
}

.result-heading h3 {
  margin: 0;
  color: var(--coral);
  font-size: 26px;
  letter-spacing: 0;
}

.result-heading p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 17px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-row span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-size: 14px;
  font-weight: 900;
}

.score-list {
  display: grid;
  gap: 14px;
}

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

.score-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.score-meta strong {
  color: var(--ink);
}

.dimension-bar {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.dimension-bar > span:last-child {
  text-align: right;
}

.meter {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), #f7d565 50%, var(--teal));
}

.meter i {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 14px rgba(34, 45, 63, 0.2);
}

.advice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(247, 213, 101, 0.75);
  border-radius: 8px;
  color: #5a4610;
  background: rgba(247, 213, 101, 0.24);
}

.advice p {
  margin: 0;
}

.result-actions {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.restart {
  width: fit-content;
}

.share-strip {
  width: 100%;
  padding: 4px 16px 0;
}

.share-strip-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.share-strip-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.share-strip-heading .icon {
  width: 18px;
  height: 18px;
}

.share-strip-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.share-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 183, 165, 0.45);
  box-shadow: 0 12px 24px rgba(34, 45, 63, 0.1);
}

.share-pill .icon {
  width: 16px;
  height: 16px;
}

.share-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 45, 63, 0.48);
  backdrop-filter: blur(10px);
}

.share-card-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 213, 101, 0.28), transparent 38%),
    linear-gradient(315deg, rgba(44, 183, 165, 0.18), transparent 40%),
    #ffffff;
  box-shadow: 0 28px 80px rgba(14, 24, 38, 0.34);
}

.share-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.share-card-close:hover {
  border-color: rgba(255, 109, 88, 0.48);
  color: var(--coral);
}

.share-card-close .icon {
  width: 18px;
  height: 18px;
}

.share-card-header {
  display: grid;
  gap: 8px;
  padding-right: 44px;
}

.share-card-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: 0;
}

.share-card-header h3 {
  margin: 0;
  color: var(--coral);
  font-size: 24px;
  line-height: 1.2;
}

.share-card-header p {
  margin: 0;
  color: var(--muted);
}

.share-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-card-keywords span {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.share-card-copy-block {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 229, 232, 0.82);
}

.share-card-copy-block span {
  color: var(--teal-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-card-copy-block p {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.share-card-link p {
  color: var(--muted);
  font-size: 14px;
}

.share-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.approval-content {
  width: 100%;
  padding: 34px 16px 0;
}

.approval-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2,
.dimension-guide h2,
.faq-block h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.dimension-guide p,
.faq-block p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

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

.info-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.info-grid svg {
  color: var(--teal-ink);
}

.info-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.dimension-guide,
.faq-block {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.dimension-guide > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.dimension-guide strong {
  color: var(--ink);
}

.faq-block details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq-block details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-block summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-block details p {
  margin-top: 8px;
}

.site-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 22px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 13px;
}

button:focus-visible {
  outline: 3px solid rgba(44, 183, 165, 0.45);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .app-shell {
    width: min(100% - 20px, 680px);
    grid-template-columns: 1fr;
    margin: 10px auto;
  }

  .brand-panel {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-panel h1 {
    max-width: none;
    font-size: 38px;
  }

  .brand-panel p {
    font-size: 16px;
  }

  .hero-art img {
    aspect-ratio: 16 / 7;
  }

  .test-panel,
  .result-panel {
    min-height: 0;
    padding: 24px;
  }

  .test-header h2 {
    font-size: 26px;
  }

  .info-grid,
  .dimension-guide > div {
    grid-template-columns: 1fr;
  }

  .result-heading h2 {
    font-size: 58px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: 100%;
    min-height: calc(100svh - var(--sticky-ad-reserve));
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .brand-panel,
  .test-panel,
  .result-panel {
    padding: 20px;
  }

  .test-header {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-number {
    width: fit-content;
  }

  .choice-anchors,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .choice-anchors button {
    min-height: 122px;
  }

  .test-actions {
    flex-direction: column;
  }

  .action-button,
  .restart {
    width: 100%;
  }

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

  .share-pill {
    width: 100%;
  }

  .share-card-overlay {
    padding: 12px;
  }

  .share-card-modal {
    max-height: calc(100svh - 24px);
    padding: 20px;
  }

  .share-card-header h2 {
    font-size: 52px;
  }

  .score-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
}

.brand-mark .icon {
  width: 10px;
  height: 10px;
}

.answer .icon,
.action-button .icon {
  width: 18px;
  height: 18px;
}

.result-icon .icon {
  width: 26px;
  height: 26px;
}

.info-grid .icon {
  width: 22px;
  height: 22px;
  color: var(--teal-ink);
}

noscript {
  display: block;
  width: min(760px, calc(100% - 32px));
  margin: 24px auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}
