:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f6f8fb;
  --surface-blue: #f0f7ff;
  --ink: #172033;
  --muted: #5d687a;
  --line: #dfe4eb;
  --line-strong: #c8d0db;
  --blue: #1769d2;
  --blue-dark: #0d4f9d;
  --blue-pale: #e6f1ff;
  --warning: #9b6200;
  --warning-bg: #fff8e8;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --radius: 14px;
  --content: 760px;
  --nav: 220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding-top: 78px;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

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

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-toggle {
  display: none;
}

.manual-topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 10px max(16px, calc((100% - 1100px) / 2));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(12px);
}

.manual-topbar-title {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}

.manual-topbar-title strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.manual-topbar-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manual-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.language-switch,
.nav-toggle-button,
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.nav-toggle-button {
  gap: 8px;
  cursor: pointer;
}

.nav-close {
  cursor: pointer;
  font-family: inherit;
}

.language-switch:hover,
.language-switch:focus-visible,
.nav-toggle-button:hover,
.nav-toggle-button:focus-visible,
.nav-close:hover,
.nav-close:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.nav-backdrop {
  position: fixed;
  z-index: 85;
  inset: 0;
  display: block;
  pointer-events: none;
  background: rgba(23, 32, 51, 0);
  transition: background 180ms ease;
}

.page-shell {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.side-nav {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 340px);
  max-height: none;
  border-left: 1px solid var(--line);
  padding: 22px 18px 28px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 44px rgba(23, 32, 51, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.nav-toggle:checked ~ .nav-backdrop {
  pointer-events: auto;
  background: rgba(23, 32, 51, 0.36);
}

.nav-toggle:checked ~ .page-shell .side-nav {
  transform: translateX(0);
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.nav-title {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.side-nav ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav a {
  display: block;
  border-left: 2px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.manual {
  min-width: 0;
  padding-bottom: 96px;
}

.hero {
  padding: 54px 0 88px;
}

.manual-cover {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 42px 52px 48px;
  background: #fff;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cover-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
}

.cover-model {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 72px);
  letter-spacing: -0.065em;
  line-height: 1.08;
  word-break: keep-all;
}

.cover-version {
  margin-bottom: 8px;
  border: 1px solid var(--ink);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cover-art {
  width: min(100%, 590px);
  margin: 42px auto;
}

.cover-art img {
  display: block;
  width: 100%;
  height: auto;
}

.cover-intro {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.manual-section {
  border-top: 1px solid var(--line);
  padding: 74px 0 82px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 42px;
}

.section-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.section-heading .eyebrow {
  margin-bottom: 1px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.25;
  word-break: keep-all;
}

.manual-section h3 {
  margin: 48px 0 18px;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.manual-section h3:first-of-type {
  margin-top: 0;
}

.manual-section h4 {
  margin-bottom: 5px;
  font-size: 17px;
}

.control-label {
  display: inline-block;
  border: 1px solid #cfd8e5;
  border-radius: 5px;
  padding: 0 6px;
  background: #f7f9fc;
  color: #27415f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84em;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.note {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 17px 19px;
}

.note strong,
.note p {
  display: block;
}

.note p {
  margin-top: 4px;
  color: var(--muted);
}

.note-info {
  border-left-color: var(--blue);
  background: var(--surface-blue);
}

.note-warning {
  border-left-color: var(--warning);
  background: var(--warning-bg);
}

.note-danger {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-list p {
  color: var(--muted);
}

.step-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.tip-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.tip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 900;
}

.tip-card p {
  color: var(--muted);
}

.screenshot-guide {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin: 22px 0 42px;
}

.screenshot-guide-wide {
  grid-template-columns: minmax(0, 450px) minmax(0, 1fr);
}

.manual-shot {
  width: 100%;
  margin: 0;
}

.manual-shot-phone {
  max-width: 300px;
}

.manual-shot-ipad {
  max-width: 450px;
}

.shot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #050607;
  box-shadow: 0 16px 38px rgba(23, 32, 51, 0.12);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.manual-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.callout-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.callout-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.callout-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.callout-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.callout-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-grid {
  display: grid;
  gap: 14px;
}

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

.card-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

.card-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.comparison-table {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

tbody th {
  width: 25%;
  color: var(--ink);
  font-size: 14px;
}

tbody td {
  color: var(--muted);
  font-size: 14px;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.small-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.compact-steps {
  margin: 0;
  padding-left: 26px;
}

.compact-steps li {
  padding: 5px 0 5px 6px;
}

.compact-steps li::marker {
  color: var(--blue);
  font-weight: 800;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.control-grid div {
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.control-grid strong {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.control-grid span {
  color: var(--muted);
  font-size: 14px;
}

.definition-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.definition-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.definition-list dt {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.action-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.action-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.action-list p {
  color: var(--muted);
}

.settings-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.settings-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.settings-list h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.settings-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}

.faq-list summary {
  position: relative;
  padding: 20px 34px 20px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--blue);
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > p,
.faq-list details > ol {
  margin: -4px 0 22px;
  color: var(--muted);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.link-cards a {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.link-cards strong {
  color: var(--blue);
  font-size: 13px;
}

.manual-end {
  border-radius: 18px;
  padding: 42px;
  background: var(--surface-blue);
  text-align: center;
}

.manual-end h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.manual-end p:not(.eyebrow) {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.manual-end .button {
  margin-top: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 34px max(24px, calc((100% - 1100px) / 2));
  color: var(--muted);
  font-size: 12px;
}

.site-footer div {
  display: grid;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 40px, var(--content));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    padding-top: 72px;
    font-size: 15px;
  }

  .manual-topbar {
    min-height: 58px;
    padding: 8px 14px;
  }

  .manual-topbar-title span {
    display: none;
  }

  .manual-topbar-actions {
    gap: 8px;
  }

  .language-switch,
  .nav-toggle-button {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .page-shell {
    width: min(100% - 32px, var(--content));
  }

  .side-nav {
    width: min(84vw, 320px);
  }

  .nav-title {
    margin-bottom: 0;
  }

  .nav-close {
    min-height: 34px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 12px;
  }

  .hero {
    padding: 30px 20px 34px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .cover-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 20px;
  }

  .cover-version {
    justify-self: start;
    margin-bottom: 0;
  }

  .cover-art {
    margin: 28px auto;
  }

  .cover-intro {
    padding-top: 22px;
  }

  .manual-section {
    padding: 58px 0 66px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 34px;
  }

  .section-number {
    width: 36px;
    height: 36px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .step-list li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 17px;
  }

  .step-badge {
    width: 36px;
    height: 36px;
  }

  .card-grid-three,
  .card-grid-two,
  .settings-list,
  .link-cards {
    grid-template-columns: 1fr;
  }

  .screenshot-guide,
  .screenshot-guide-wide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .manual-shot-phone,
  .manual-shot-ipad {
    width: min(100%, 360px);
    max-width: none;
    margin: 0 auto;
  }

  .shot-marker {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 11px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding: 11px 8px;
    overflow-wrap: anywhere;
  }

  tbody th,
  tbody td {
    width: auto;
    font-size: 12px;
  }

  .definition-list div,
  .action-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .manual-end {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    padding-top: 0;
  }

  .manual-topbar,
  .nav-toggle-button,
  .nav-backdrop,
  .side-nav,
  .hero-actions,
  .site-footer {
    display: none;
  }

  .page-shell {
    display: block;
    width: 100%;
  }

  .manual {
    padding: 0;
  }

  .manual-section {
    break-inside: avoid;
  }
}
