:root {
    --paper: #F5F6FA;
    --paper-raised: #FFFFFF;
    --ink: #1A2233;
    --ink-soft: #5B6478;
    --navy: #1A2233;
    --navy-deep: #10151F;
    --indigo: #4F46E5;
    --indigo-dark: #3D34C9;
    --go: #1F8A5F;
    --go-dark: #146A48;
    --line: #E2E5EE;
    --line-strong: #CBD0DE;
    --radius: 12px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
img, picture { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header { background: var(--paper-raised); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.logo:hover { color: var(--navy); text-decoration: none; }
.logo .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--navy); position: relative; flex: none; }
.logo .mark::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; background: var(--indigo); border-radius: 2px; }
.logo small { color: var(--ink-soft); font-weight: 500; font-size: .72rem; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }

.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li > a { color: var(--ink-soft); padding: 9px 12px; display: inline-block; font-size: .89rem; font-weight: 600; border-radius: 8px; }
.main-nav > ul > li > a:hover { background: var(--paper); color: var(--navy); text-decoration: none; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; left: 0; top: 100%; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 28px rgba(26,34,51,.14); padding: 6px; min-width: 210px; list-style: none; margin: 8px 0 0; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a { color: var(--ink); display: block; padding: 9px 10px; border-radius: 6px; font-size: .89rem; }
.dropdown-menu li a:hover { background: var(--paper); text-decoration: none; }

/* ===== Layout ===== */
.main-content { padding: 36px 0 60px; min-height: 55vh; }
h1 { font-weight: 800; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.24; margin: 6px 0 20px; color: var(--navy-deep); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: 1.3rem; margin: 32px 0 14px; color: var(--navy-deep); }
h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--ink); }
p { margin: 0 0 14px; }
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 660px; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.article ul:not([class]), .article ol:not([class]) { padding-left: 22px; }
.article li { margin-bottom: 6px; }

.crumbs { margin: 0 0 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .84rem; color: var(--ink-soft); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); }

/* ===== Download CTA ===== */
.dl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.btn-dl { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; padding: 15px 20px; border-radius: 10px; text-decoration: none !important; }
.btn-dl span { font-weight: 800; font-size: 1.02rem; }
.btn-dl small { font-weight: 500; font-size: .8rem; opacity: .85; }
.btn-dl--primary { background: var(--go); color: #fff; box-shadow: 0 8px 18px rgba(31,138,95,.25); }
.btn-dl--primary:hover { background: var(--go-dark); color: #fff; }
.btn-dl--secondary { background: var(--paper-raised); color: var(--navy); border: 2px solid var(--navy); }
.btn-dl--secondary:hover { background: var(--navy); color: #fff; }
.dl-cta--bottom { margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line-strong); }

/* ===== Hero ===== */
.hero-banner { max-width: 640px; margin: 0 auto 8px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 32px rgba(26,34,51,.14); }

/* ===== Photo steps ===== */
.photo-steps { display: grid; gap: 20px; margin: 20px 0; }
.photo-step { display: grid; grid-template-columns: 280px 1fr; gap: 20px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-items: center; }
.photo-step .shot { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo-step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .8rem; margin-right: 8px; }
.photo-step h3 { display: inline; }
.photo-step p:last-child { margin-bottom: 0; }

/* ===== Steps ===== */
ol.steps { counter-reset: step; list-style: none; display: grid; gap: 12px; padding-left: 0 !important; margin: 0; }
ol.steps li { counter-increment: step; position: relative; padding: 13px 16px 13px 48px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; }
ol.steps li::before { content: counter(step); position: absolute; left: 13px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center; }

/* ===== Spec table ===== */
.spec-table { width: 100%; max-width: 560px; border-collapse: collapse; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; margin: 16px 0 20px; }
.spec-table th, .spec-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; width: 42%; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius); padding: 15px 18px; margin: 18px 0; border-left: 4px solid var(--indigo); background: #EEECFC; }
.notice.warn { border-left-color: #C2410C; background: #FCEEE6; }
.notice p:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq details { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-deep); }
.faq details[open] summary { margin-bottom: 8px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.card-link { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); }
.card-link:hover { border-color: var(--indigo); text-decoration: none; }
.card-link b { display: block; margin-bottom: 4px; color: var(--navy-deep); }
.card-link span { display: block; font-size: .87rem; color: var(--ink-soft); }

.sitemap-list { padding-left: 4px; }
.sitemap-list li { font-weight: 600; margin-bottom: 8px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 34px 0; margin-top: 44px; font-size: .9rem; }
.footer-inner { display: grid; gap: 14px; }
.site-footer a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.copyright { color: rgba(255,255,255,.5); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 780px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper-raised); border-top: 1px solid var(--line); padding: 8px 16px 16px; }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--paper); }
    .photo-step { grid-template-columns: 1fr; }
    h1 { font-size: 1.5rem; }
    .btn-dl { flex: 1 1 100%; }
}
