:root {
  color-scheme: light;
  --paper: #fffdf9;
  --ink: #2b2125;
  --muted: #625459;
  --red: #a01836;
  --red-dark: #80112a;
  --border: #e6d9d7;
  --rose: #f7eeeb;
  --review: #fbf5eb;
  --review-ink: #704c27;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.shell { width: min(calc(100% - 96px), 1216px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--paper);
}

.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-height: 44px;
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}
.wordmark-mark {
  position: relative;
  width: 25px;
  height: 25px;
  flex: none;
}
.wordmark-mark::before, .wordmark-mark::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 2px;
}
.wordmark-mark::before { top: 0; left: 0; background: var(--red); }
.wordmark-mark::after { right: 0; bottom: 0; border: 2px solid var(--red); }
.site-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
.site-nav a:hover { color: var(--red); }
.prototype-status {
  justify-self: end;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(36px, 5.1vw, 78px);
  padding-block: 66px 68px;
}
.hero-copy { padding-block: 22px; }
h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: -0.055em;
}
.hero-copy p {
  max-width: 25em;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 12px;
  margin-top: 31px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 51px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  text-align: center;
}
.button-primary { color: white; background: var(--red); }
.button-primary:hover:not(:disabled) { background: var(--red-dark); }
.button-primary:disabled { opacity: 0.65; }
.button-secondary { color: var(--red); background: var(--paper); border-color: var(--border); }
.button-secondary:hover { border-color: var(--red); }
.text-link, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  color: var(--red);
  font-size: 14px;
  font-weight: 650;
}
.text-link:hover, .text-button:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-figure {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--rose);
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 53% center;
}
.hero-figure figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 3px;
  color: #fff9f6;
  background: #3f2530;
  font-size: 11px;
  line-height: 1.5;
}

.section { padding-block: 63px; scroll-margin-top: 12px; }
h2 { font-size: clamp(25px, 3vw, 37px); line-height: 1.32; font-weight: 780; letter-spacing: -0.035em; }
.grade-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
  text-align: left;
}
.grade-table th, .grade-table td { padding: 16px clamp(18px, 2.7vw, 34px); }
.grade-table thead th { background: #f4e9e6; color: var(--muted); font-size: 13px; font-weight: 650; }
.grade-table tbody tr > * { border-top: 1px solid var(--border); }
.grade-code {
  width: 35%;
  color: var(--red);
  font-family: var(--mono);
  font-weight: 650;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.mobile-table-label { display: none; }

.review-note {
  margin-top: 22px;
  border: 1px solid #eedfca;
  border-radius: 7px;
  color: var(--review-ink);
  background: var(--review);
  font-size: 14px;
}
.review-note summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 9px 35px 9px 13px;
  list-style: none;
  cursor: pointer;
}
.review-note summary::-webkit-details-marker { display: none; }
.review-note summary::after {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.review-note[open] summary::after { top: 21px; transform: rotate(225deg); }
.review-label {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f1e2cb;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.review-note p { max-width: 52em; padding: 0 13px 12px; }

.inquiry-section { padding-block: 70px; background: var(--rose); border-block: 1px solid var(--border); }
.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(30px, 7vw, 96px);
}
.inquiry-copy > p { max-width: 24em; margin-top: 13px; color: var(--muted); }
.inquiry-copy .review-note { margin-top: 23px; }
.form-card {
  min-width: 0;
  padding: clamp(20px, 3.5vw, 43px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 14px 32px #5a18330a;
}
.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -8px 0 14px;
}
.application { font-size: 14px; color: var(--muted); font-weight: 650; }
.text-button { flex: none; border: 0; background: transparent; padding-inline: 3px; }
.text-button:disabled { opacity: 0.6; }
.form-fields, .contact-group { min-width: 0; padding: 0; margin: 0; border: 0; }
.form-fields { display: grid; gap: 17px; }
.field > label, .contact-group legend { display: block; margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 700; }
.required { color: var(--red); }
.optional { padding-left: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.form-fields input:not([type="radio"]), .form-fields textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #d9ccc9;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
}
.form-fields textarea { resize: vertical; }
.form-fields input::placeholder, .form-fields textarea::placeholder { color: #766a70; opacity: 1; font-size: 14px; }
.form-fields :is(input, textarea)[aria-invalid="true"] { border-color: var(--red); }
.contact-choices { display: flex; gap: 8px; margin-bottom: 8px; }
.contact-choices label { position: relative; cursor: pointer; }
.contact-choices input { position: absolute; opacity: 0; }
.contact-choices span {
  display: grid;
  align-items: center;
  min-height: 43px;
  padding: 4px 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
}
.contact-choices input:checked + span { color: var(--red-dark); border-color: var(--red); background: var(--rose); }
.contact-choices input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field-error { margin-top: 4px; color: var(--red-dark); font-size: 13px; }
.form-disclosure { margin-top: 17px; color: var(--muted); font-size: 13px; }
.form-message {
  margin-top: 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--red);
  background: var(--rose);
  color: var(--red-dark);
  font-size: 14px;
}
.submit-button { width: 100%; margin-top: 13px; }
.demo-options { margin-top: 9px; color: var(--muted); font-size: 13px; }
.demo-options summary { width: fit-content; min-height: 44px; padding-block: 11px; cursor: pointer; }
.check-label { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; }
.check-label input { width: 16px; height: 16px; accent-color: var(--red); }

.receipt { padding-block: 8px; }
.receipt-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--red);
  font-size: 23px;
}
.receipt h3 { font-size: clamp(24px, 2.7vw, 35px); line-height: 1.3; scroll-margin-top: 25px; }
.receipt > p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.receipt-details { margin-block: 22px; border-block: 1px solid var(--border); }
.receipt-details div {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  padding: 9px 0;
}
.receipt-details div + div { border-top: 1px solid var(--border); }
.receipt-details dt { color: var(--muted); font-size: 13px; }
.receipt-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.receipt-number { color: var(--red); font-family: var(--mono); font-weight: 700; }
.site-footer { color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 18px; padding-block: 15px; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 64px); }
  .hero { padding-block: 49px 55px; gap: 30px; }
  .hero-copy { padding-block: 8px; }
  .hero-figure img { aspect-ratio: 1; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 14px; padding-top: 8px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 23px; }
  .site-nav a { min-height: 44px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 35px 39px; }
  h1 { font-size: clamp(40px, 9vw, 58px); }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-copy p { margin-top: 19px; }
  .hero-actions { margin-top: 22px; }
  .section, .inquiry-section { padding-block: 38px; }
  .grade-table, .grade-table tbody { display: block; border: 0; background: transparent; }
  .grade-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .grade-table tbody { display: grid; gap: 10px; }
  .grade-table tbody tr {
    display: block;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--paper);
  }
  .grade-table tbody tr > * { border: 0; padding: 3px 0; }
  .grade-table .grade-code { display: block; width: auto; margin-bottom: 4px; }
  .grade-table td { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; font-size: 14px; }
  .mobile-table-label { display: inline; color: var(--muted); }
  .inquiry-layout { grid-template-columns: 1fr; gap: 20px; }
  .inquiry-copy .review-note { margin-top: 15px; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 32px); }
  .hero-actions { column-gap: 13px; }
  .hero-actions .button { padding-inline: 12px; gap: 7px; font-size: 14px; }
  .form-card { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
