/* Shared styles for Scale Relay guide pages */
:root {
    --ink: #101b2d;
    --muted: #5e6c80;
    --line: #dbe3eb;
    --paper: #f6f7f4;
    --white: #ffffff;
    --blue: #0878c9;
    --blue-dark: #07568f;
    --mint: #bcebd8;
    --navy: #10263d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}
a { color: var(--blue-dark); }
.container { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    border-bottom: 1px solid rgba(16, 27, 45, 0.09);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    text-decoration: none;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; display: block; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topnav a.nav-contact { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }

main { padding: 44px 0 84px; }
.article { width: min(760px, 100%); }
.breadcrumbs { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa6b5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-dark); }

.kicker { color: var(--blue-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -0.02em; }
h1 { margin-top: 9px; font-size: clamp(34px, 5.5vw, 52px); line-height: 1.08; letter-spacing: -0.04em; }
.lead { margin-top: 18px; color: var(--muted); font-size: 18px; }
.meta { margin-top: 14px; color: #7a8798; font-size: 13px; }
h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.2; }
h3 { margin: 26px 0 8px; font-size: 18px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin: 6px 0; }
li > ul, li > ol { margin-top: 6px; margin-bottom: 0; }
strong { font-weight: 700; }
code { padding: 1px 5px; border-radius: 5px; background: #e9eef3; font-size: 0.92em; }

.note {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid #b7d7ed;
    border-radius: 12px;
    background: #e8f5fd;
    font-size: 15px;
}
.note.warn { border-color: #f1d49a; background: #fdf4e1; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0f3f6; font-family: "Manrope", sans-serif; font-size: 13px; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: 0; }
td.yes { color: #187443; font-weight: 700; }
td.no { color: #a5362c; font-weight: 700; }

.steps-list { counter-reset: step; list-style: none; margin-left: 0; }
.steps-list > li {
    position: relative;
    margin: 0 0 16px;
    padding: 16px 18px 16px 58px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}
.steps-list > li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 15px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
}
.steps-list h3 { margin: 0 0 6px; font-size: 17px; }
.steps-list p:last-child { margin-bottom: 0; }

.faq h3 { margin-top: 24px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin: 28px 0 8px; }
.shot { margin: 0; text-align: center; }
.shot img { display: block; width: min(100%, 250px); height: auto; margin: 0 auto; border: 1px solid rgba(16,27,45,0.16); border-radius: 22px; background: #000; box-shadow: 0 18px 40px rgba(16,38,61,0.16); }
.shot figcaption { margin: 14px auto 0; max-width: 300px; color: var(--muted); font-size: 14px; }
.shot b { display: block; margin-bottom: 4px; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 15px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; gap: 32px; } }

.cta-box {
    margin: 40px 0 0;
    padding: 26px 28px;
    border-radius: 18px;
    background: var(--navy);
    color: #fff;
}
.cta-box h2 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.cta-box p { color: #c5d1de; font-size: 15px; }
.cta-box .cta { margin-top: 14px; }
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.cta:hover { background: var(--blue-dark); }
.cta-box .cta-note { margin: 12px 0 0; color: #9fb0c2; font-size: 13px; }
.qr { display: none; }
@media (min-width: 821px) {
    .cta-box .qr { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #9fb0c2; font-size: 13px; }
    .cta-box .qr img { width: 112px; height: 112px; display: block; padding: 6px; border-radius: 8px; background: #fff; }
    .cta-box .qr figcaption { max-width: 190px; }
}

.related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 20px; }
.related ul { margin-left: 0; list-style: none; }
.related li { margin: 8px 0; }
.related a { font-weight: 700; text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.card {
    display: block;
    padding: 22px 22px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(16, 38, 61, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(8, 120, 201, 0.4); }
.card .model-badge { display: inline-block; margin-bottom: 10px; color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.card h2, .card h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.card span.more { display: inline-block; margin-top: 12px; color: var(--blue-dark); font-size: 14px; font-weight: 700; }

footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 20px;
    border-top: 1px solid var(--line);
    color: #8490a0;
    font-size: 13px;
}
footer a { color: var(--blue-dark); }

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1040px); }
    .topbar { min-height: 66px; flex-wrap: wrap; padding: 12px 0; }
    .topnav { width: 100%; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(16, 27, 45, 0.09); }
    .topnav a { font-size: 12px; }
    .topnav a.nav-contact { padding: 0; border: 0; color: var(--muted); }
    main { padding: 32px 0 64px; }
    .lead { font-size: 16.5px; }
    h2 { font-size: 23px; }
    .steps-list > li { padding-left: 52px; }
    .cta-box { padding: 22px 20px; }
}
