* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #080b10;
  color: #eef0f6;
  font:
    16px/1.7 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
:root {
  --bg: #080b10;
  --surface: #10161f;
  --ink: #eef0f6;
  --muted: #b1bac8;
  --line: #303a48;
  --accent: #e8b660;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: #fff;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
.skip {
  position: fixed;
  top: 8px;
  left: 16px;
  transform: translateY(-150%);
  z-index: 30;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
}
.skip:focus {
  transform: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.desktop-nav a,
.mobile-menu a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--ink);
}
.mobile-menu {
  display: none;
}
.mobile-menu summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
  color: var(--ink);
}
.mobile-menu nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: grid;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101722;
}
.hero .wrap {
  min-height: min(720px, calc(100svh - 76px));
  display: flex;
  align-items: center;
  padding-block: 76px;
}
.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #101722 0%,
    #101722 36%,
    rgba(16, 23, 34, 0.86) 50%,
    rgba(16, 23, 34, 0.1) 76%
  );
}
.hero-copy {
  max-width: 650px;
}
.hero-label {
  color: var(--accent);
  font-size: 16px;
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(42px, 6.2vw, 82px);
  margin: 0 0 26px;
  max-width: 14ch;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 24px;
}
h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 53ch;
}
.hero .lead {
  max-width: 41ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #080b10;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.button:hover {
  background: #f5cc87;
  color: #080b10;
  transform: translateY(-2px);
}
.button.secondary {
  background: transparent;
  border-color: #8290a3;
  color: var(--ink);
}
.button.secondary:hover {
  background: #202b3a;
}
.note,
.meta {
  font-size: 14px;
  color: var(--muted);
}
.hero .note {
  max-width: 43ch;
  margin-top: 24px;
}
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 38px;
}
.section-heading p {
  max-width: 48ch;
  color: var(--muted);
}
.section-heading h2 {
  margin-bottom: 0;
  max-width: 18ch;
}
.guide-list {
  border-top: 1px solid var(--line);
}
.guide-row {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease;
}
.guide-row:hover {
  background: var(--surface);
}
.guide-row p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 65ch;
}
.guide-row h3 {
  font-size: 23px;
}
.guide-type {
  color: var(--accent);
  font-size: 14px;
}
.guide-action {
  text-align: right;
  color: var(--accent);
}
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.product p {
  color: var(--muted);
  max-width: 52ch;
}
.product h3 {
  font-size: 36px;
}
.product figure {
  margin: 0;
}
.product img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}
.product figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.product .product-kind {
  font-size: 14px;
  color: var(--accent);
}
.product .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 24px;
}
.product-detail {
  padding: 32px;
  background: var(--surface);
  border-radius: 8px;
}
.product-detail ul {
  padding-left: 20px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
}
.split p {
  color: var(--muted);
}
.site-footer {
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 720px;
}
.site-footer a {
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.page-intro {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 {
  font-size: clamp(38px, 5.8vw, 64px);
  max-width: 20ch;
  margin-top: 24px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
}
.article {
  max-width: 800px;
  margin: auto;
  padding: 40px 0 80px;
}
.article section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.article h2 {
  font-size: 30px;
  letter-spacing: -0.025em;
}
.article h3 {
  font-size: 22px;
  margin-top: 26px;
}
.article p,
.article li {
  color: #c5cdd8;
  max-width: 72ch;
}
.article li {
  padding-bottom: 10px;
}
.article strong {
  color: var(--ink);
}
.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0 0 24px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--accent);
}
caption {
  text-align: left;
  padding: 12px 0;
  color: var(--muted);
}
details.faq {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
details.faq summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 650;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #718098;
  border-radius: 5px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
fieldset {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
legend {
  padding: 0 10px;
  font-weight: 650;
}
.check {
  display: flex;
  gap: 14px;
  align-items: start;
  min-height: 48px;
  padding: 10px 0;
  color: #c5cdd8;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.tool-result {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 24px 0;
}
.tool-result h2 {
  font-size: 24px;
}
.tool-result p:last-child {
  margin-bottom: 0;
}
.fixture {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fixture label {
  display: block;
  margin-top: 16px;
}
.fixture button {
  margin-top: 18px;
}
.fixture:focus-within {
  border-color: var(--accent);
}
@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .header-inner {
    min-height: 68px;
  }
  .hero .wrap {
    min-height: 620px;
    padding-block: 64px;
  }
  .hero-art {
    width: 100%;
    opacity: 0.35;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      rgba(16, 23, 34, 0.98),
      rgba(16, 23, 34, 0.6)
    );
  }
  .hero-copy {
    max-width: 600px;
  }
  .hero .lead {
    max-width: 40ch;
  }
  .product,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product {
    padding: 40px 0;
  }
  .product figure {
    max-width: 540px;
  }
  .section {
    padding: 56px 0;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-bottom: 0;
  }
  .guide-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-action {
    text-align: left;
  }
  .footer-inner {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 32px);
  }
  h1 {
    font-size: 42px;
  }
  .hero .wrap {
    min-height: 600px;
  }
  .lead {
    font-size: 18px;
  }
  fieldset {
    padding: 16px;
  }
  .button {
    padding: 10px 16px;
  }
  .product-detail {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .skip,
  .actions,
  .no-print,
  .breadcrumb {
    display: none !important;
  }
  .wrap {
    width: 100%;
  }
  .page-intro,
  .article,
  .article section {
    padding: 12px 0;
  }
  .page-intro h1 {
    font-size: 26pt;
  }
  .article p,
  .article li,
  .meta,
  .note,
  .lead,
  .check {
    color: #222;
  }
  .article strong,
  a {
    color: #111;
  }
  .tool-result,
  fieldset {
    background: #fff;
    border-color: #777;
    break-inside: avoid;
  }
  input:not([type="checkbox"]),
  select,
  textarea {
    background: #fff;
    color: #111;
    border-color: #777;
  }
  .contents {
    display: none;
  }
  h2,
  h3,
  legend {
    break-after: avoid;
  }
  .article {
    max-width: none;
  }
  a {
    text-decoration: none;
  }
}

.print-context {
  display: none;
}
@media print {
  label.field {
    color: #111;
  }
  body.checklist-enhanced .context-entry {
    display: none !important;
  }
  body.checklist-enhanced .print-context {
    display: block;
    color: #111;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
