:root {
  --ink: #1e2428;
  --muted: #667077;
  --line: #d9dfdf;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --accent: #007f68;
  --accent-dark: #064d45;
  --warm: #e0bd47;
  --warm-dark: #bd8f13;
  --blue: #8fb8c6;
  --shadow: 0 24px 70px rgba(31, 42, 45, 0.13);
  --shadow-soft: 0 18px 54px rgba(24, 37, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic",
    "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 237, 0.88);
  border-bottom: 1px solid rgba(30, 36, 40, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.result-topline,
.carousel,
.carousel-dots,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #f5eee4;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(31, 42, 45, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  gap: clamp(14px, 2.5vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--accent-dark);
  background: #e7f0ed;
  border: 1px solid rgba(23, 107, 99, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: #4b3b07;
  background: linear-gradient(180deg, #f7e38a, #d9ad2f);
  border: 1px solid rgba(153, 108, 7, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.portal-link {
  min-height: 34px;
  border: 1px solid rgba(23, 107, 99, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
}

.portal-link:hover {
  background: #f1f7f5;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 34px;
  padding: 7px 11px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 36, 40, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill[hidden],
.portal-link[hidden] {
  display: none;
}

.credit-pill b {
  font-size: 15px;
}

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

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 20, 0.48);
  backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(30, 36, 40, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
}

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

.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.login-note {
  padding: 12px 14px;
  color: var(--accent-dark);
  background: #edf7f3;
  border: 1px solid rgba(0, 127, 104, 0.18);
  border-radius: 8px;
  font-size: 13px;
}

.login-note[hidden] {
  display: none;
}

.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eef4f2;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: min(820px, calc(100vh - 72px));
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background: #0e1617;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0e1617;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 73%, rgba(7, 15, 16, 0.72), rgba(7, 15, 16, 0.12) 33%, rgba(7, 15, 16, 0) 58%),
    linear-gradient(0deg, rgba(7, 15, 16, 0.76), rgba(7, 15, 16, 0.06) 62%),
    linear-gradient(90deg, rgba(7, 15, 16, 0.2), rgba(7, 15, 16, 0.04) 42%, rgba(7, 15, 16, 0.5));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: #fff;
  text-align: right;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  max-width: 810px;
  font-size: clamp(40px, 5vw, 72px);
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: clamp(24px, 3vw, 38px);
}

.lead {
  max-width: 650px;
  margin: 24px 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-secondary-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--warm), var(--warm-dark));
  border-color: var(--warm-dark);
  box-shadow: 0 12px 30px rgba(164, 119, 9, 0.18);
}

.hero .button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.56);
}

.button.tertiary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(7, 15, 16, 0.34);
  backdrop-filter: blur(12px);
}

.grading-result,
.demo-form,
.work-card {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.sample-flow-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(211, 164, 31, 0.16), rgba(211, 164, 31, 0) 28%),
    linear-gradient(180deg, #fffdf8, #f4f8f5);
}

.sample-flow-section .section-heading {
  max-width: 980px;
}

.sample-flow-section .section-heading h2 span {
  display: block;
}

.sample-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.sample-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(13, 63, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(31, 42, 45, 0.12);
}

.sample-card.featured {
  border-color: rgba(0, 132, 111, 0.28);
  box-shadow: 0 24px 58px rgba(0, 92, 74, 0.16);
}

.sample-card.report {
  grid-column: 1 / -1;
  background: #fff;
}

.sample-step {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 78, 62, 0.92);
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #eef4f1;
}

.sample-card.report img {
  max-height: min(72vh, 820px);
  object-fit: contain;
  padding: clamp(10px, 1.2vw, 16px);
}

.sample-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.28;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.75;
}

.sample-flow-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(0, 132, 111, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.sample-flow-cta p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.price-card.current-plan {
  outline: 3px solid rgba(217, 173, 47, 0.7);
  outline-offset: 4px;
}

.current-plan-badge {
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7e38a, #d9ad2f);
  color: #0f1719;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.03em;
}

.ai-ownership {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: #fff;
}

.necessity-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 133, 111, 0.08), rgba(0, 133, 111, 0) 28%),
    #f7f5ef;
}

.necessity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.58fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.necessity-form {
  display: grid;
  gap: 22px;
}

.necessity-question {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.necessity-question legend {
  padding: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #d8dcdb;
  border-radius: 999px;
  background: #e6e8e7;
  box-shadow: inset 0 1px 3px rgba(31, 42, 45, 0.06);
}

.choice-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.choice-row label:has(input:checked) {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 8px 22px rgba(0, 133, 111, 0.26);
}

.choice-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.necessity-result {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(30, 36, 40, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7f7f5);
  color: var(--ink);
  box-shadow: 0 24px 52px rgba(31, 42, 45, 0.18);
}

.necessity-result p {
  color: #1f2528;
  font-weight: 750;
}

.necessity-result .tag {
  color: #122224;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.necessity-result h3 {
  color: var(--accent-dark);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.14;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.necessity-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e2df;
}

.necessity-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00634f, #00846f);
  transition: width 0.2s ease;
}

.necessity-result .button.primary {
  color: #fff;
  background: linear-gradient(180deg, #f1d56a 0%, #d9ad2f 54%, #bd8f13 100%);
  border-color: #a87a0d;
  text-shadow: 0 1px 1px rgba(80, 54, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(164, 119, 9, 0.22);
}

.ownership-copy {
  position: sticky;
  top: 104px;
}

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

.ownership-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.ownership-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  grid-row: span 2;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.ownership-grid h3 {
  font-size: clamp(21px, 2.2vw, 28px);
}

.ownership-grid p {
  margin: 0;
  color: var(--muted);
}

.carousel {
  gap: 16px;
}

.carousel-track {
  flex: 1;
  min-width: 0;
}

.work-card {
  display: none;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  min-height: 460px;
  padding: clamp(18px, 4vw, 44px);
  border-radius: 8px;
  border: 1px solid rgba(30, 36, 40, 0.09);
}

.work-card.active {
  display: grid;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #e8ecec;
}

.work-copy p:not(.tag) {
  color: #465057;
}

.work-points {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.work-points div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.work-points dt {
  color: var(--accent);
  font-weight: 900;
}

.work-points dd {
  margin: 0;
}

.carousel-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 28px;
  cursor: pointer;
}

.carousel-dots {
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bcc8c8;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: #fff;
}

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

.rubric-item {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.rubric-item b,
.rubric-item span {
  display: block;
}

.rubric-item b {
  margin-bottom: 8px;
  font-size: 18px;
}

.rubric-item span {
  color: var(--muted);
}

.proof {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.engine-copy p:not(.eyebrow) {
  color: var(--muted);
}

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

.engine-panel div {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(30, 36, 40, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 42, 45, 0.08);
}

.engine-panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.engine-panel b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.engine-panel p {
  margin: 0;
  color: var(--muted);
}

.demo-section {
  background: #eaf0ed;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: stretch;
}

.demo-form,
.grading-result {
  border-radius: 8px;
  border: 1px solid rgba(30, 36, 40, 0.1);
  padding: clamp(20px, 3vw, 30px);
}

.demo-form {
  display: grid;
  gap: 18px;
}

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

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f1;
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mode-button.active {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 42, 45, 0.08);
}

.mode-panel {
  display: none;
  gap: 18px;
}

.mode-panel.active {
  display: grid;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

label {
  display: grid;
  gap: 8px;
  color: #344047;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd4d3;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.upload-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

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

.package-upload-grid .upload-preview {
  aspect-ratio: 4 / 3;
  max-height: 160px;
}

.grading-result {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 24px;
  align-content: start;
}

.grade-ring {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background:
    conic-gradient(var(--score-color, var(--accent)) calc(var(--score, 0) * 1%), #dfe8e5 0),
    #dfe8e5;
  box-shadow: 0 14px 34px rgba(7, 88, 79, 0.16);
}

.grade-circle {
  display: grid;
  place-items: center;
  align-content: center;
  width: 116px;
  height: 116px;
  color: #fff;
  background: var(--accent-dark);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.14);
}

.grade-circle span {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.grade-circle small {
  font-weight: 800;
}

.grading-result p {
  color: #465057;
}

.result-metrics {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.result-metrics li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
}

.metric-bar {
  height: 9px;
  overflow: hidden;
  background: #dfe8e5;
  border-radius: 999px;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: var(--warm);
  border-radius: inherit;
}

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

.insight-box,
.category-panel,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.insight-box {
  padding: 16px;
}

.insight-box h4,
.category-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.insight-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

.category-panel {
  padding: 14px;
}

.category-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.candidate-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.package-report {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.package-comparison,
.package-analysis-card,
.package-report-card,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.package-comparison {
  padding: 16px;
}

.package-comparison h4,
.package-analysis-card h4,
.package-report-card h4,
.evidence-card h4 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 15px;
}

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

.package-analysis-card,
.package-report-card,
.evidence-card {
  padding: 16px;
}

.package-analysis-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.package-analysis-card div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
}

.package-analysis-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.package-analysis-card dd {
  margin: 0;
  font-size: 13px;
}

.evidence-card {
  display: grid;
  gap: 8px;
}

.package-report-card {
  display: grid;
  gap: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(12, 54, 48, 0.08);
}

.package-report-card .priority {
  width: fit-content;
  border-radius: 999px;
  background: rgba(2, 132, 112, 0.1);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 9px;
}

.package-report-card p {
  margin: 0;
  color: #30383d;
  font-size: 13px;
  line-height: 1.8;
}

.visual-report {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(140deg, #fffdf8 0%, #f5faf7 100%);
  box-shadow: 0 18px 42px rgba(12, 54, 48, 0.08);
}

.visual-report-heading h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.visual-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 250px;
  padding: 14px;
  border: 1px solid rgba(16, 81, 70, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(12, 54, 48, 0.08);
}

.visual-card h5 {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(135deg, #004b38, #008a70);
  font-size: clamp(12px, 1.7vw, 14px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.color-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 48px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(20, 40, 38, 0.12);
}

.color-strip span {
  min-width: 28px;
}

.visual-bars {
  display: grid;
  gap: 7px;
}

.visual-bars p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-weight: 800;
  font-size: 12px;
}

.visual-bars i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ece8;
}

.visual-bars i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007d63, #00a884);
}

.visual-note {
  margin: 0;
  color: #20282c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.heatmap-figure {
  position: relative;
  display: grid;
  place-items: center;
  height: 136px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f1;
}

.heatmap-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.heat {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 68, 25, 0.82), rgba(255, 221, 0, 0.55) 45%, rgba(255, 221, 0, 0) 72%);
  filter: blur(1px);
  mix-blend-mode: multiply;
}

.heat-a {
  top: 28%;
  left: 36%;
}

.heat-b {
  top: 48%;
  left: 50%;
}

.heat-c {
  top: 58%;
  left: 32%;
}

.package-silhouette {
  display: grid;
  place-items: center;
  width: 80px;
  height: 116px;
  border-radius: 16px;
  border: 2px solid var(--accent-dark);
  background: linear-gradient(180deg, #eaf8fb, #fff);
  color: var(--accent-dark);
  font-weight: 900;
}

.callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.callouts span {
  border-radius: 6px;
  background: #eef5f1;
  padding: 7px 4px;
  color: var(--accent-dark);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.type-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  min-height: 132px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.type-compare > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.type-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.type-compare strong {
  display: flex;
  min-width: 0;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  background: #f6faf8;
  color: var(--accent-dark);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.type-image-crop {
  display: block;
  position: relative;
  min-width: 0;
  height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf8;
}

.type-image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.7);
}

.type-compare .mono {
  color: #161a1d;
  font-family: Arial, sans-serif;
  font-weight: 900;
  text-align: center;
}

.sensory-row,
.symbol-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 116px;
  min-width: 0;
}

.sensory-row.image-based,
.symbol-row.image-based {
  gap: 12px;
}

.mini-pack {
  display: grid;
  place-items: center;
  width: 70px;
  height: 94px;
  border-radius: 14px;
  border: 2px solid var(--accent-dark);
  background: linear-gradient(180deg, #d9f1f8, #fff);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.arrow {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent-dark);
}

.donut {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: conic-gradient(var(--accent) var(--value), #e4ece8 0);
}

.donut b {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: inherit;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
}

.symbol-mark {
  display: grid;
  place-items: center;
  width: 108px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(135deg, #101820, #2c3b40);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.quoted-image {
  display: block;
  flex: 1 1 120px;
  min-width: 0;
  max-width: 150px;
  height: 108px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6faf8;
}

.quoted-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.symbol-crop img {
  transform: scale(1.45);
  object-position: center 42%;
}

.symbol-row b {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
}

.summary-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 116px;
  color: var(--accent-dark);
}

.summary-score span {
  font-size: 76px;
  font-weight: 1000;
  line-height: 1;
}

.summary-score small {
  font-size: 20px;
  font-weight: 900;
}

.evidence-card p {
  margin: 0;
  color: #465057;
  font-size: 13px;
}

.evidence-card .citation {
  color: var(--muted);
  font-size: 12px;
}

.candidate-list.expanded {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.candidate-count {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.candidate-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.candidate-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.candidate-name {
  display: block;
  font-weight: 900;
}

.candidate-reason {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.candidate-score {
  text-align: right;
  color: var(--accent-dark);
  font-weight: 900;
}

.pricing-section {
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: center;
}

.price-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 260px;
  height: 100%;
  padding: clamp(20px, 3vw, 28px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.price-card.featured {
  transform: translateY(-10px) scale(1.035);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 34px 80px rgba(7, 88, 79, 0.28);
}

.recommended-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 18px;
  color: #16130b;
  background: linear-gradient(180deg, #f1d56a 0%, #d9ad2f 54%, #bd8f13 100%);
  border: 1px solid #a87a0d;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(164, 119, 9, 0.25);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.price-card.featured .tag {
  color: rgba(255, 255, 255, 0.78);
}

.price-card.featured p,
.price-card.featured .price-features {
  color: rgba(255, 255, 255, 0.78);
}

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

.price-card .price {
  display: block;
  margin: 2px 0 0;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
}

.price span,
.price small {
  font-size: 0.38em;
  font-weight: 900;
}

.price small {
  margin-left: 4px;
  color: currentColor;
}

.price-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.price-features li {
  position: relative;
  padding-left: 24px;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.price-card.featured .price-features li::before {
  color: #f1d56a;
}

.price-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 46px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 900;
}

.price-button.primary {
  color: #16130b;
  background: linear-gradient(180deg, #f1d56a 0%, #d9ad2f 54%, #bd8f13 100%);
  border: 1px solid #a87a0d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(164, 119, 9, 0.26);
}

.price-button.secondary {
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid rgba(7, 88, 79, 0.28);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 48px);
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.legal-page h2 {
  margin: 38px 0 10px;
  font-size: 22px;
}

.legal-page p {
  color: #465057;
}

.legal-note {
  color: var(--muted);
  font-size: 14px;
}

.legal-list {
  display: grid;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.legal-list div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.legal-list div:first-child {
  border-top: 0;
}

.legal-list dt,
.legal-list dd {
  margin: 0;
  padding: 16px;
}

.legal-list dt {
  background: #eef4f1;
  font-weight: 900;
}

.legal-table {
  display: grid;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.legal-table div {
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr;
  border-top: 1px solid var(--line);
}

.legal-table div:first-child {
  border-top: 0;
  background: #eef4f1;
}

.legal-table b,
.legal-table span {
  padding: 14px;
  border-left: 1px solid var(--line);
}

.legal-table b:first-child,
.legal-table span:first-child {
  border-left: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .work-card,
  .sample-flow-grid,
  .necessity-layout,
  .ai-ownership,
  .split,
  .proof,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .sample-card.report {
    grid-column: auto;
  }

  .ownership-copy,
  .necessity-result {
    position: static;
  }

  .hero {
    min-height: 72vh;
  }

  .carousel {
    align-items: stretch;
  }

  .carousel-button {
    align-self: center;
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    min-height: auto;
    padding: 12px 18px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
  }

  .credit-pill {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero {
    align-items: flex-end;
    justify-content: center;
    min-height: calc(100svh - 119px);
    padding: 0 18px 34px;
  }

  .hero-video {
    object-position: 42% center;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(7, 15, 16, 0.86), rgba(7, 15, 16, 0.42) 45%, rgba(7, 15, 16, 0.06)),
      radial-gradient(circle at 50% 74%, rgba(7, 15, 16, 0.74), rgba(7, 15, 16, 0) 46%);
  }

  .hero-copy {
    width: 100%;
    max-width: 354px;
    text-align: center;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  h1 {
    font-size: clamp(31px, 9vw, 35px);
    line-height: 1.16;
  }

  h1 span {
    white-space: nowrap;
  }

  .lead {
    max-width: 340px;
    margin: 18px auto 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-secondary-action {
    justify-content: center;
  }

  .hero-actions .button {
    flex: 1 1 148px;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero-secondary-action .button {
    width: 100%;
    max-width: 310px;
  }

  .section {
    padding-block: 64px;
  }

  .carousel {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .work-card {
    min-height: auto;
    padding: 16px;
  }

  .rubric-grid,
  .ownership-grid article,
  .engine-panel,
  .package-upload-grid,
  .visual-card-grid,
  .package-report-grid,
  .package-analysis-grid,
  .evidence-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .sample-flow-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .ownership-grid span {
    grid-row: auto;
  }

  .grading-result {
    grid-template-columns: 1fr;
  }

  .grade-circle {
    width: 112px;
    height: 112px;
  }

  .result-metrics li {
    grid-template-columns: 96px minmax(0, 1fr) 38px;
    font-size: 13px;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .category-board {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-list div,
  .legal-table div {
    grid-template-columns: 1fr;
  }

  .legal-table b,
  .legal-table span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .legal-table b:first-child,
  .legal-table span:first-child {
    border-top: 0;
  }
}
