:root {
  --ink: #252422;
  --muted: #716d67;
  --soft-muted: #96918a;
  --paper: #f8f7f4;
  --card: #ffffff;
  --line: #e5e1da;
  --line-strong: #cbc5bb;
  --orange: #f26b38;
  --orange-dark: #c84c20;
  --orange-soft: #fff0e9;
  --sage: #5f856e;
  --sage-soft: #edf7ef;
  --red: #b5483e;
  --red-soft: #fff0ee;
  --shadow: 0 18px 50px rgba(44, 38, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

button, select { font: inherit; }

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

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand strong { font-weight: 800; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
}

.header-note {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.hero { max-width: 720px; margin: 0 auto 36px; text-align: center; }

.eyebrow, .section-kicker {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; }

.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

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

h1 {
  margin: 14px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 510px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.checker-card, .result-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.checker-card { padding: clamp(22px, 4vw, 42px); }

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.card-heading .section-kicker { margin-bottom: 8px; }

.card-heading h2, .guide h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.step-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--orange-dark);
  font-size: 19px;
  font-weight: 800;
}

.step-count span { color: var(--soft-muted); font-size: 12px; font-weight: 600; }

fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }

legend { margin-bottom: 14px; padding: 0; font-size: 15px; font-weight: 800; }

.choice-grid { display: grid; gap: 10px; }

.family-grid { grid-template-columns: repeat(3, 1fr); }

.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 72px;
  gap: 11px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }

.choice-card.selected { border-color: var(--orange); background: #fffaf7; box-shadow: 0 0 0 1px var(--orange); }

.choice-card input { position: absolute; opacity: 0; pointer-events: none; }

.radio-dot {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.choice-card.selected .radio-dot { border: 5px solid var(--orange); }

.choice-content { display: grid; gap: 4px; }

.choice-content strong { font-size: 13px; line-height: 1.22; }

.choice-content span { color: var(--muted); font-size: 12px; line-height: 1.3; }

.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
}

.size-row label, .detail-label-row label { font-size: 13px; font-weight: 700; }

select {
  width: min(230px, 100%);
  min-height: 42px;
  padding: 0 35px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 107, 56, 0.15); }

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding: 0;
  border: 0;
  color: var(--orange-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.help-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.help-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.help-panel {
  max-width: 680px;
  margin-top: 14px;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: var(--orange-soft);
  color: #60483d;
  font-size: 13px;
  line-height: 1.55;
}

.help-panel p { margin-bottom: 8px; }
.help-panel ul { margin: 0; padding-left: 18px; }
.help-panel li + li { margin-top: 5px; }

.form-divider { height: 1px; margin: 31px 0; background: var(--line); }

.part-grid { grid-template-columns: repeat(3, 1fr); }

.part-grid .choice-card { min-height: 86px; }

.part-details { margin-top: 27px; padding-top: 23px; border-top: 1px dashed var(--line); }

.detail-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }

.detail-label-row span { color: var(--soft-muted); font-size: 11px; }

.part-family-grid { margin-bottom: 13px; }

.check-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 55px;
  margin-top: 34px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.check-button:hover { background: #443f39; transform: translateY(-1px); }
.check-button:focus-visible, .help-link:focus-visible, .choice-card:has(input:focus-visible) { outline: 3px solid rgba(242, 107, 56, 0.32); outline-offset: 3px; }
.check-button span { font-size: 22px; line-height: 0; }

.result-card {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding: clamp(23px, 4vw, 36px);
  border-color: #cfe0d1;
  background: var(--sage-soft);
  box-shadow: none;
}

.result-card.result-no-fit { border-color: #f1c9c4; background: var(--red-soft); }

.result-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 22px;
  font-weight: 800;
}

.result-no-fit .result-icon { background: var(--red); }

.result-copy { min-width: 0; }

.result-label { margin: 0 0 5px; color: var(--sage); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.result-no-fit .result-label { color: var(--red); }

.result-copy h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; letter-spacing: -0.045em; }
.result-copy > p:not(.result-label) { max-width: 720px; margin-bottom: 14px; color: #534f4a; font-size: 14px; line-height: 1.55; }

.result-detail { display: flex; gap: 8px; align-items: flex-start; color: #43614d; font-size: 13px; font-weight: 700; }
.result-no-fit .result-detail { color: #8f3e37; }
.detail-check { font-size: 16px; line-height: 1; }

.warning-box, .mini-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 14px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.warning-box { background: rgba(255, 255, 255, 0.7); color: #5c5851; }
.warning-box p, .mini-note p { margin: 0; }
.warning-icon { display: grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; color: #fff; background: var(--orange); font-size: 12px; font-weight: 900; }
.mini-note { background: #fff9dc; color: #685b2b; }
.mini-note > span { color: #bd9424; font-size: 17px; line-height: 1; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 52px 0 78px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; gap: 11px; padding: 19px 16px 19px 0; }
.trust-item + .trust-item { padding-left: 20px; border-left: 1px solid var(--line); }
.trust-item > span { color: var(--orange); font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.trust-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.guide { margin-bottom: 62px; }
.guide .section-kicker { margin-bottom: 11px; }
.guide h2 { max-width: 420px; margin-bottom: 30px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 42px; }
.guide-item { min-height: 190px; padding: 0 0 30px; border-top: 1px solid var(--line); }
.guide-number { display: block; margin: 17px 0 16px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.guide-item h3 { max-width: 250px; margin-bottom: 8px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.guide-item p { max-width: 390px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.placeholder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.placeholder { min-height: 105px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 13px; background: rgba(255, 255, 255, 0.4); }
.placeholder span { display: block; margin-bottom: 7px; color: var(--soft-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.placeholder p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 35px; border-top: 1px solid var(--line); color: var(--soft-muted); font-size: 11px; }
.site-footer p { margin: 0; }

@media (max-width: 720px) {
  .site-header { width: calc(100% - 32px); min-height: 68px; }
  .header-note { display: none; }
  main { padding-top: 39px; }
  .hero { margin-bottom: 28px; }
  h1 { font-size: clamp(38px, 12vw, 55px); }
  .family-grid, .part-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 63px; align-items: center; padding: 13px; }
  .part-grid .choice-card { min-height: 63px; }
  .size-row { align-items: stretch; flex-direction: column; gap: 8px; }
  select { width: 100%; }
  .detail-label-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .trust-strip { grid-template-columns: 1fr; margin: 42px 0 60px; }
  .trust-item, .trust-item + .trust-item { padding: 16px 0; border-left: 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-item { min-height: 0; padding-bottom: 25px; }
  .placeholder-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 430px) {
  .checker-card, .result-card { border-radius: 16px; }
  .checker-card { padding: 20px 17px; }
  .result-card { gap: 13px; padding: 21px 17px; }
  .result-icon { width: 35px; height: 35px; font-size: 18px; }
  .result-copy h2 { font-size: 31px; }
}
