:root {
  --ink: #17212b;
  --muted: #5d6873;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --line: #d8dddc;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #e05a47;
  --amber: #e3a12f;
  --navy: #142c3b;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 221, 220, 0.9);
  background: rgba(247, 248, 246, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.contact-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 4px;
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--teal);
}

nav .nav-cta {
  padding: 8px 14px;
  color: white;
  background: var(--teal);
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
  background-image: url("../images/review-report.png");
  background-repeat: no-repeat;
  background-position: 72% 50%;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 44, 59, 0.42);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 42% 0 0;
  z-index: 1;
  background: rgba(20, 44, 59, 0.96);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0 84px;
}

.hero-inner > * {
  max-width: 580px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  margin: 28px 0 0;
  color: #eef5f4;
  font-size: 20px;
  line-height: 1.8;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--coral);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c94735;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero-note {
  margin: 22px 0 0;
  color: #cbd8da;
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
}

.problem-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.problem-item {
  padding: 28px 0 10px;
  border-top: 2px solid var(--ink);
}

.problem-item .number {
  color: var(--coral);
  font-weight: 800;
}

.problem-item h3,
.feature-card h3,
.steps h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.problem-item p,
.feature-card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.solution {
  background: #edf2ef;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 72px;
  align-items: center;
}

.large-copy {
  margin: 24px 0 12px;
  font-size: 19px;
  font-weight: 700;
}

.flow-mini {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.flow-mini div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}

.flow-mini strong {
  color: var(--teal);
  font-size: 18px;
}

.flow-mini span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.flow-mini b {
  color: var(--coral);
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: var(--teal);
  font-family: Consolas, monospace;
  font-weight: 800;
}

.workflow {
  color: #fff;
  background: var(--navy);
}

.workflow .section-kicker {
  color: #ff917e;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 26px 0 0;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 12px;
  width: 28px;
  height: 1px;
  background: #6f8992;
}

.steps li > span {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border-radius: 50%;
  background: var(--amber);
  font-weight: 900;
}

.steps h3 {
  color: #fff;
}

.steps p {
  color: #cbd8da;
  font-size: 14px;
}

.evidence {
  background: var(--surface);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.report-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(23, 33, 43, 0.14);
}

.report-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.evidence-list {
  margin: 28px 0 20px;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.evidence-list strong {
  color: var(--teal);
}

.evidence-list span,
.caption {
  color: var(--muted);
}

.caption {
  font-size: 13px;
}

.pricing {
  background: #f1f0eb;
}

.pricing-grid {
  max-width: 820px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
}

.price-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.price-card.featured {
  border: 2px solid var(--teal);
}

.plan {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.price {
  margin: 12px 0;
  font-weight: 800;
}

.price strong {
  font-size: 44px;
  line-height: 1;
}

.price-card ul {
  margin: 24px 0 0;
  padding-left: 1.2em;
}

.price-note {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 8px;
  color: #7a3b0a;
  border-radius: 4px;
  background: #f7dfae;
  font-size: 12px;
  font-weight: 800;
}

.narrow {
  max-width: 880px;
}

details {
  border-top: 1px solid var(--line);
  background: transparent;
}

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

summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  color: var(--teal);
  font-size: 24px;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 42px 22px 0;
  color: var(--muted);
}

.contact {
  padding: 92px 0;
  color: #fff;
  background: var(--teal-dark);
}

.contact-inner {
  max-width: 780px;
  text-align: center;
}

.section-kicker.light {
  color: #ffd176;
}

.contact p:not(.section-kicker) {
  margin: 18px auto 28px;
  color: #d6e7e5;
}

.button-light {
  color: var(--teal-dark);
  background: #fff;
}

footer {
  padding: 28px 0;
  color: #cbd8da;
  background: #0d202b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}

.footer-inner strong {
  color: #fff;
  font-size: 16px;
}

@media (max-width: 900px) {
  .hero::before {
    inset: 0 24% 0 0;
  }

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

  .feature-card {
    min-height: 0;
  }

  .split-layout,
  .evidence-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
  }

  .steps li:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .contact-inner,
  .footer-inner,
  .hero-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  nav {
    gap: 0;
  }

  nav .nav-cta {
    padding: 7px 10px;
    white-space: nowrap;
  }

  .hero {
    min-height: 610px;
    background-position: 58% 50%;
  }

  .hero::before {
    inset: 0;
    background: rgba(20, 44, 59, 0.9);
  }

  .hero-inner {
    padding: 68px 0 78px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .section h2,
  .contact h2 {
    font-size: 32px;
  }

  .flow-mini {
    grid-template-columns: 1fr;
  }

  .flow-mini b {
    transform: rotate(90deg);
    text-align: center;
  }

  .flow-mini div {
    min-height: 96px;
  }

  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .evidence-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .price-card {
    padding: 28px 22px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
