:root {
  --ink: #172234;
  --ink-soft: #3f4b59;
  --muted: #6d7782;
  --line: #dce2e6;
  --line-strong: #c7d0d6;
  --line-dark: #bcc7ce;
  --paper: #ffffff;
  --canvas: #f3f5f6;
  --warm: #faf4ef;
  --cream: #fbf5f0;
  --accent: #9b5437;
  --accent-dark: #713a25;
  --copper-dark: #7d4028;
  --accent-soft: #ead0c2;
  --success: #2f7457;
  --warning: #8b5b18;
  --warning-bg: #fff6e2;
  --danger: #9e3d35;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(23, 34, 52, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -70px;
  left: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(188, 199, 206, 0.7);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(23, 34, 52, 0.04);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 124px; height: auto; }
.brand-divider { width: 1px; height: 27px; background: var(--line-dark); }
.brand-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.header-nav a:hover,
.header-nav a:focus-visible { background: var(--cream); color: var(--copper-dark); }
.header-nav .language { margin-left: 8px; border: 1px solid var(--line-dark); background: #fff; }

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #fff 56%, #f2e6df 100%);
}
.hero-inner {
  display: grid;
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding: 54px 0 50px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 56px;
  align-items: center;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumb span { color: #a2abb3; }
.kicker { margin-bottom: 10px; color: var(--accent-dark); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(42px, 4.5vw, 68px); line-height: 1.03; letter-spacing: -0.045em; }
.hero-copy { max-width: 680px; margin-bottom: 24px; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.button-primary { background: var(--ink); color: #fff; }
.button-secondary { background: #fff; }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(23, 34, 52, 0.12); }
.quick-facts { display: grid; max-width: 700px; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.86); }
.quick-facts div { padding: 11px 13px; border-right: 1px solid var(--line); }
.quick-facts div:last-child { border-right: 0; }
.quick-facts span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-facts strong { display: block; font-size: 12px; line-height: 1.35; }
.hero-photo { overflow: hidden; margin: 0; border: 7px solid #fff; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.hero-photo-frame { overflow: hidden; aspect-ratio: 4 / 3; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo figcaption { padding: 10px 13px; color: var(--muted); font-size: 11px; }

.mobile-contents { display: none; width: min(1320px, calc(100% - 40px)); margin: 22px auto 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mobile-contents summary { padding: 13px 15px; cursor: pointer; font-weight: 800; }
.mobile-contents nav { display: grid; padding: 0 15px 15px; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.mobile-contents a { color: var(--ink-soft); font-size: 13px; }

.manual-shell {
  display: grid;
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding: 38px 0 80px;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.toc { position: sticky; top: 92px; }
.toc-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(23,34,52,.05); }
.toc-title { padding: 14px 16px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.toc nav { display: grid; padding: 8px; }
.toc nav a { padding: 8px 10px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.toc nav a:hover, .toc nav a:focus-visible { background: var(--warm); color: var(--accent-dark); }
.toc-note { margin-top: 12px; padding: 13px 14px; border: 1px solid var(--accent-soft); border-radius: 10px; background: var(--warm); color: #654534; font-size: 11px; }

.manual-content { display: grid; gap: 20px; }
.manual-section { scroll-margin-top: 94px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 28px rgba(23,34,52,.035); }
.section-heading { padding: 25px 28px 19px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 7px; font-size: 29px; line-height: 1.14; letter-spacing: -0.025em; }
.section-heading p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.section-body { padding: 26px 28px 30px; }

.notice { margin-bottom: 20px; padding: 15px 17px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--warm); color: #5f4638; font-size: 13px; }
.notice strong { color: var(--accent-dark); }
.notice.warning { border-left-color: var(--warning); background: var(--warning-bg); color: #674714; }
.notice.danger { border-left-color: var(--danger); background: #fff0ee; color: #6f2d28; }
.notice:last-child { margin-bottom: 0; }

.prereq-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.prereq { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.prereq strong { display: block; margin-bottom: 5px; font-family: Montserrat, sans-serif; font-size: 14px; }
.prereq span { display: block; color: var(--muted); font-size: 12px; }

.instruction { display: grid; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr); }
.instruction:last-child { margin-bottom: 0; }
.instruction-copy { padding: 23px 24px; }
.instruction-copy h3 { margin-bottom: 9px; font-size: 19px; line-height: 1.25; }
.instruction-copy p { margin-bottom: 11px; color: var(--ink-soft); font-size: 14px; }
.instruction-copy ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 13px; }
.instruction-copy li + li { margin-top: 6px; }
.step-marker { display: inline-flex; min-width: 30px; height: 30px; align-items: center; justify-content: center; margin-bottom: 12px; padding: 0 8px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; }
.instruction-visual { display: flex; min-height: 300px; align-items: center; justify-content: center; border-left: 1px solid var(--line); background: #f7f5f3; }
.instruction-visual.hardware img { width: 100%; height: 100%; object-fit: cover; }
.instruction-visual.phone img { width: auto; max-height: 470px; object-fit: contain; }

.photo-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.photo-card { display: grid; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; grid-template-rows: auto 1fr; }
.photo-card-image { overflow: hidden; aspect-ratio: 9 / 16; }
.photo-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-card figcaption { padding: 11px 13px; color: var(--muted); font-size: 12px; }
.photo-card figcaption strong { display: block; color: var(--ink); }

.phone-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.phone-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.phone-shot { display: flex; min-width: 0; flex-direction: column; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: #f7f5f3; }
.phone-shot .shot-frame { display: flex; min-height: 360px; flex: 1; align-items: center; justify-content: center; padding: 14px; }
.phone-shot img { width: auto; max-height: 430px; object-fit: contain; }
.phone-shot figcaption { min-height: 64px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; line-height: 1.45; }
.phone-shot figcaption strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }

.task-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.task { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.task h3 { margin-bottom: 8px; font-size: 15px; }
.task p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.troubleshooting { display: grid; gap: 10px; }
.troubleshooting details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.troubleshooting summary { padding: 14px 16px; cursor: pointer; font-weight: 800; }
.troubleshooting p { margin: 0; padding: 0 16px 16px; color: var(--ink-soft); font-size: 13px; }

.installer-section { border-color: #dac3b5; }
.installer-section .section-heading { background: var(--warm); }
.support-footer { padding: 34px 36px 38px; background: var(--ink); color: #fff; }
.footer-inner { display: flex; width: min(1320px,100%); margin: 0 auto; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-inner h2 { margin-bottom: 6px; font-size: 23px; }
.footer-inner p { margin-bottom: 0; color: #c6d0d8; font-size: 13px; }
.footer-meta { color: #acb8c1; font-size: 11px; text-align: right; }
.footer-meta b { color: #fff; }

:focus-visible { outline: 3px solid rgba(155,84,55,.34); outline-offset: 3px; }

@media (max-width: 1080px) {
  .header-nav > a:not(.language) { display: none; }
  .hero-inner { width: min(100% - 48px, 900px); grid-template-columns: 1fr 360px; gap: 34px; }
  .manual-shell { width: min(100% - 48px, 900px); grid-template-columns: 1fr; }
  .toc { display: none; }
  .mobile-contents { display: block; width: min(100% - 48px, 900px); }
  .phone-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  .brand img { width: 106px; }
  .brand-label, .brand-divider { display: none; }
  .hero-inner { width: calc(100% - 32px); padding: 36px 0 32px; grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: clamp(36px, 11vw, 50px); }
  .hero-copy { font-size: 16px; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-facts div:last-child { border-bottom: 0; }
  .mobile-contents, .manual-shell { width: calc(100% - 24px); }
  .mobile-contents nav { grid-template-columns: 1fr; }
  .manual-shell { padding: 18px 0 54px; }
  .section-heading { padding: 21px 19px 16px; }
  .section-heading h2 { font-size: 24px; }
  .section-body { padding: 20px 18px 23px; }
  .prereq-grid, .photo-pair, .phone-grid, .phone-grid.four, .task-list { grid-template-columns: 1fr; }
  .instruction { grid-template-columns: 1fr; }
  .instruction-visual { min-height: 240px; border-top: 1px solid var(--line); border-left: 0; }
  .instruction-visual.phone img { max-height: 420px; }
  .phone-shot .shot-frame { min-height: 330px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .mobile-contents, .toc, .hero-actions, .print-button { display: none !important; }
  .hero-inner, .manual-shell { width: 100%; padding: 20px 0; grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; box-shadow: none; }
  .manual-section, .instruction, .phone-shot, .photo-card { break-inside: avoid; box-shadow: none; }
  .phone-grid, .phone-grid.four { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .support-footer { background: #fff; color: #000; border-top: 1px solid #aaa; }
  .footer-inner p, .footer-meta { color: #444; }
  .footer-meta b { color: #000; }
}
