:root {
  --navy: #10294b;
  --navy-2: #173960;
  --ink: #16304f;
  --muted: #61758d;
  --line: #d8e3ed;
  --pale: #f3f8fc;
  --blue: #126be7;
  --blue-soft: #e8f2ff;
  --red: #e5394f;
  --red-soft: #fff0f2;
  --cyan: #1e93b4;
  --green: #338b75;
  --white: #fff;
  --shadow: 0 24px 70px rgba(16, 41, 75, .12);
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.tool-header {
  width: min(1240px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-brand { display: inline-flex; align-items: center; gap: 18px; color: var(--navy); text-decoration: none; }
.tool-brand img { display: block; width: auto; height: 31px; }
.tool-brand span { padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.tool-index-link { color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 800; }

.scan-stage {
  width: min(1240px, calc(100% - 48px));
  min-height: 650px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.setup-view {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
}
.setup-copy {
  padding: clamp(52px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .21em; }
.setup-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.22;
  letter-spacing: -.055em;
}
.setup-copy h1 span { color: var(--blue); }
.setup-lede { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.domain-form { margin-top: 32px; }
.domain-form label { display: block; margin-bottom: 9px; color: var(--navy); font-size: 12px; font-weight: 900; }
.domain-input-row { display: flex; gap: 9px; }
.domain-input-row input {
  min-width: 0;
  flex: 1;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid #b9c9d9;
  border-radius: 10px;
  outline: none;
  color: var(--navy);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
}
.domain-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 107, 231, .12); }
.domain-input-row input[aria-invalid="true"] { border-color: var(--red); }
.domain-input-row button, .consult-button {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.domain-input-row button { min-width: 152px; padding: 0 22px; }
.domain-input-row button:hover, .consult-button:hover { background: #075ac7; transform: translateY(-2px); }
.domain-input-row button:disabled { opacity: .55; cursor: wait; transform: none; }
.input-error { min-height: 20px; margin: 7px 0 0; color: var(--red); font-size: 12px; font-weight: 700; }
.setup-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.setup-notes span::before { content: "✓"; margin-right: 6px; color: var(--blue); font-weight: 900; }
.setup-notes b { color: var(--ink); }

.setup-visual { position: relative; min-width: 0; overflow: hidden; background: #eef4fb; }
.setup-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 20px 0 50px rgba(255,255,255,.42); pointer-events: none; }
.setup-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.visual-caption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: rgba(16,41,75,.9);
  border-radius: 9px;
  backdrop-filter: blur(8px);
}
.visual-caption b { font-size: 15px; }
.visual-caption span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); font-size: 10px; }

.results-view { min-height: 650px; padding: 24px 28px 20px; background: linear-gradient(140deg, #f7fbff 0%, #fff 46%, #f3f8fc 100%); }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result-topline .eyebrow { margin-bottom: 5px; }
.result-topline h2 { max-width: 820px; overflow: hidden; margin: 0; color: var(--navy); font-size: clamp(21px, 2.5vw, 31px); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.reset-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--navy); color: var(--navy); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.scan-progress { margin-top: 16px; }
.progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.progress-copy b { color: var(--navy); font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; overflow: hidden; background: #dfe9f3; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #58b7e9); border-radius: inherit; transition: width .25s ease; }

.result-tabs { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; }
.result-tab { min-width: 0; height: 54px; padding: 0 18px; display: flex; align-items: center; gap: 9px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: #fff; text-align: left; font-size: 12px; font-weight: 800; cursor: pointer; transition: color .18s ease, background .18s ease; }
.result-tab:last-child { border-right: 0; }
.result-tab b { margin-left: auto; color: var(--navy); font-size: 21px; font-variant-numeric: tabular-nums; }
.result-tab.is-active { color: var(--navy); background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.tab-dot { width: 9px; height: 9px; flex: 0 0 auto; display: inline-block; border-radius: 50%; }
.tab-dot-alert { background: var(--red); }
.tab-dot-registered { background: var(--blue); }
.tab-dot-none { background: var(--green); }

.result-workspace { min-height: 352px; display: grid; grid-template-columns: 310px minmax(0, 1fr); border: 1px solid var(--line); border-top: 0; background: #fff; }
.investigator-panel { min-width: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; border-right: 1px solid var(--line); background: var(--navy); color: #fff; overflow: hidden; }
.investigator-image { align-self: stretch; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(70,151,255,.34), transparent 57%); }
.investigator-image img { position: absolute; left: -33px; bottom: -8px; width: 205px; height: 205px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.25)); }
.investigator-copy { padding: 28px 20px 28px 5px; }
.status-kicker { display: inline-flex; padding: 5px 8px; border-radius: 4px; color: var(--navy); background: #fff; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.investigator-copy h3 { margin: 13px 0 9px; font-size: 17px; line-height: 1.5; }
.investigator-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.75; }

.result-panel { min-width: 0; padding: 20px 22px; }
.result-panel-head { min-height: 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result-panel-head p { margin: 0 0 3px; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.result-panel-head h3 { margin: 0; color: var(--navy); font-size: 18px; }
.result-panel-head > span { padding: 5px 8px; border-radius: 4px; color: var(--muted); background: var(--pale); font-size: 10px; font-weight: 800; }
.result-list { height: 258px; overflow-y: auto; padding: 3px 7px 3px 0; scrollbar-color: #afc2d4 transparent; scrollbar-width: thin; }
.result-list[hidden] { display: none; }
.empty-result { margin: 58px auto; color: #8596a8; text-align: center; font-size: 12px; }
.domain-result { min-height: 50px; padding: 9px 8px; display: grid; grid-template-columns: minmax(160px, 1fr) 105px auto; align-items: center; gap: 10px; border-bottom: 1px solid #e8eef4; animation: result-in .24s ease both; }
.domain-result:last-child { border-bottom: 0; }
.domain-result-name { min-width: 0; overflow: hidden; color: var(--navy); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.domain-result-type { color: var(--muted); font-size: 10px; font-weight: 700; }
.safe-search { padding: 6px 9px; border: 1px solid #aac8ee; border-radius: 6px; color: #075ac7; background: #f7fbff; text-decoration: none; font-size: 10px; font-weight: 900; white-space: nowrap; }
.safe-search:hover { background: var(--blue-soft); }

.result-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.result-footer p { min-width: 0; margin: 0; }
.result-footer b, .result-footer span { display: block; }
.result-footer b { color: var(--navy); font-size: 13px; }
.result-footer p span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.consult-button { display: inline-flex; min-height: 44px; padding: 0 19px; align-items: center; justify-content: center; gap: 12px; font-size: 12px; white-space: nowrap; }

.public-content { width: min(1120px, calc(100% - 48px)); margin: 112px auto 80px; }
.method-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 82px; align-items: start; }
.section-intro { position: sticky; top: 32px; }
.section-intro h2, .scope-heading h2, .final-cta h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 3.3vw, 44px); line-height: 1.38; letter-spacing: -.04em; }
.section-intro > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.method-flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method-flow li { min-height: 128px; display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.method-flow li > span { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.method-flow h3 { margin: 0 0 7px; color: var(--navy); font-size: 18px; }
.method-flow p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.scope-section { margin-top: 120px; padding: 68px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; color: #fff; background: var(--navy); border-radius: 20px; }
.scope-heading .eyebrow { color: #76b8ff; }
.scope-heading h2 { color: #fff; }
.scope-list { margin: 0; }
.scope-list > div { padding: 20px 0; display: grid; grid-template-columns: 170px 1fr; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.16); }
.scope-list > div:first-child { padding-top: 0; }
.scope-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.scope-list dt { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 900; }
.scope-list dd { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.85; }

.faq-section { margin-top: 120px; display: grid; grid-template-columns: .68fr 1.32fr; gap: 90px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 24px 36px 24px 0; position: relative; color: var(--navy); font-size: 15px; font-weight: 900; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 18px; right: 4px; color: var(--blue); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 24px; padding-right: 38px; color: var(--muted); font-size: 13px; line-height: 1.9; }

.final-cta { margin-top: 120px; padding: 54px 60px; display: flex; align-items: center; justify-content: space-between; gap: 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(25px, 2.6vw, 36px); }
.final-cta > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.final-cta .consult-button { min-height: 52px; padding: 0 25px; font-size: 13px; }

@keyframes result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 960px) {
  .setup-view { grid-template-columns: 1fr; }
  .setup-copy { min-height: 520px; }
  .setup-visual { min-height: 430px; }
  .result-workspace { grid-template-columns: 250px minmax(0, 1fr); }
  .investigator-panel { grid-template-columns: 1fr; align-content: end; position: relative; }
  .investigator-image { position: absolute; inset: 0 0 45% 0; }
  .investigator-image img { left: 50%; bottom: -20px; width: 190px; height: 190px; transform: translateX(-50%); }
  .investigator-copy { position: relative; padding: 155px 20px 25px; }
  .method-section, .faq-section { grid-template-columns: 1fr; gap: 38px; }
  .section-intro { position: static; }
  .scope-section { padding: 52px 42px; grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 680px) {
  .tool-header { width: calc(100% - 30px); height: 60px; }
  .tool-brand span, .tool-index-link { display: none; }
  .tool-brand img { height: 26px; }
  .scan-stage { width: calc(100% - 20px); min-height: 0; border-radius: 16px; }
  .setup-view { min-height: 0; }
  .setup-copy { min-height: 0; padding: 36px 24px 30px; }
  .setup-copy h1 { font-size: clamp(31px, 10vw, 43px); }
  .setup-lede { margin-top: 16px; font-size: 13px; }
  .domain-input-row { display: grid; }
  .domain-input-row input, .domain-input-row button { width: 100%; height: 52px; }
  .setup-notes { display: grid; }
  .setup-visual { min-height: 275px; }
  .visual-caption { right: 12px; bottom: 12px; }
  .results-view { min-height: 0; padding: 20px 15px; }
  .result-topline { align-items: flex-start; }
  .result-topline h2 { font-size: 19px; }
  .reset-button { flex: 0 0 auto; font-size: 10px; }
  .result-tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(155px, 1fr)); }
  .result-tab { padding: 0 13px; }
  .result-workspace { display: block; min-height: 0; }
  .investigator-panel { min-height: 132px; display: grid; grid-template-columns: 115px 1fr; }
  .investigator-image { position: relative; inset: auto; min-height: 132px; }
  .investigator-image img { left: -17px; bottom: -8px; width: 155px; height: 155px; transform: none; }
  .investigator-copy { padding: 16px 16px 16px 0; }
  .investigator-copy h3 { margin: 8px 0 5px; font-size: 14px; }
  .investigator-copy p { font-size: 10px; }
  .result-panel { padding: 16px 14px; }
  .result-list { height: 288px; }
  .domain-result { grid-template-columns: minmax(125px, 1fr) auto; }
  .domain-result-type { display: none; }
  .result-footer { align-items: stretch; flex-direction: column; }
  .consult-button { width: 100%; }
  .public-content { width: calc(100% - 36px); margin-top: 82px; }
  .method-flow li { grid-template-columns: 42px 1fr; }
  .scope-section { margin-top: 82px; padding: 38px 24px; border-radius: 14px; }
  .scope-list > div { grid-template-columns: 1fr; gap: 9px; }
  .faq-section { margin-top: 82px; }
  .final-cta { margin-top: 82px; padding: 38px 0; align-items: stretch; flex-direction: column; gap: 25px; }
}

html.inxi-fair-mode, html.inxi-fair-mode body { height: 100%; overflow: hidden; }
html.inxi-fair-mode body { background: #eef4fb; }
html.inxi-fair-mode .tool-header, html.inxi-fair-mode .public-content { display: none; }
html.inxi-fair-mode main { height: calc(100svh - 44px); padding: 10px; }
html.inxi-fair-mode .scan-stage { width: min(1360px, 100%); height: 100%; min-height: 0; border-radius: 16px; }
html.inxi-fair-mode .setup-view { height: 100%; min-height: 0; grid-template-columns: minmax(430px, .88fr) minmax(0, 1.12fr); }
html.inxi-fair-mode .setup-copy { padding: clamp(28px, 5vh, 58px) clamp(34px, 5vw, 72px); }
html.inxi-fair-mode .setup-copy h1 { font-size: clamp(34px, 4.2vw, 59px); }
html.inxi-fair-mode .setup-lede { margin-top: 14px; line-height: 1.75; }
html.inxi-fair-mode .domain-form { margin-top: 20px; }
html.inxi-fair-mode .setup-visual { min-height: 0; }
html.inxi-fair-mode .results-view { height: 100%; min-height: 0; padding: clamp(14px, 2.2vh, 22px) clamp(18px, 2.4vw, 30px) 13px; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
html.inxi-fair-mode .scan-progress { margin-top: 9px; }
html.inxi-fair-mode .result-tabs { margin-top: 10px; }
html.inxi-fair-mode .result-workspace { min-height: 0; overflow: hidden; }
html.inxi-fair-mode .investigator-panel { min-height: 0; }
html.inxi-fair-mode .result-panel { min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
html.inxi-fair-mode .result-list { height: auto; min-height: 0; }
html.inxi-fair-mode .result-footer { margin-top: 10px; }

@media (max-width: 820px) {
  html.inxi-fair-mode body { overflow: auto; }
  html.inxi-fair-mode main { height: auto; min-height: calc(100svh - 44px); }
  html.inxi-fair-mode .scan-stage { height: auto; min-height: calc(100svh - 64px); }
  html.inxi-fair-mode .setup-view { min-height: calc(100svh - 64px); grid-template-columns: 1fr; }
  html.inxi-fair-mode .setup-visual { display: none; }
  html.inxi-fair-mode .results-view { height: auto; min-height: calc(100svh - 64px); display: block; }
  html.inxi-fair-mode .result-list { height: 260px; min-height: 0; }
}
