/* Public guide pages (tour.html, manual.html). Loaded after legal.css, which
   gives the base, the tokens, the focus styles and the manual's contents and
   sections. This file adds the home page's header and footer (index1.html) and
   the tour's showcase sections. */

:root {
    --accent: #ffbd19;
    --panel-border: #22364a;
    --muted: #aebdca;
}

body {
    background:
        radial-gradient(circle at 78% 4%, rgba(26, 104, 160, 0.12), transparent 32rem),
        #030912;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

img {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 6px;
    color: #111;
    background: var(--accent);
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
    color: #111;
}

/* ---- Header: same as the home page ---- */

.site-header {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    min-height: 68px;
    align-items: center;
    gap: 24px;
    padding: 0 clamp(18px, 3vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(2, 8, 15, .98);
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.main-nav a {
    padding: 25px 0 21px;
    border-bottom: 3px solid transparent;
    color: #d9e2ea;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a.active,
.main-nav a[aria-current="page"],
.main-nav a:hover,
.main-nav a:focus-visible {
    border-bottom-color: var(--accent);
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #506174;
    border-radius: 5px;
    background: rgba(10, 20, 32, .85);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.button:hover,
.button:focus-visible {
    border-color: var(--accent);
    color: #fff;
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #111;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #ffcb44;
    color: #111;
}

.button-large {
    min-height: 48px;
    padding-inline: 24px;
}

/* ---- Footer: same as the home page ---- */

.site-footer {
    width: min(1500px, calc(100% - 24px));
    margin: 12px auto 24px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #06101b;
    line-height: 1.5;
}

.footer-motto {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 36px;
}

.footer-line {
    flex: 1;
    height: 1px;
    background: var(--panel-border);
}

.footer-motto-text {
    display: flex;
    gap: 24px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-highlight {
    color: #56d364;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding: 18px 42px 32px;
    border-top: 1px solid var(--panel-border);
}

.footer-left {
    color: var(--muted);
    font-size: 14px;
}

.footer-copyright {
    margin-bottom: 14px;
    color: #fff;
    font-weight: 700;
}

.footer-disclaimer {
    line-height: 1.6;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-center a {
    color: var(--muted);
}

.footer-center a:hover,
.footer-center a:focus-visible {
    color: #fff;
}

.footer-right {
    align-self: start;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}

.caps-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.caps-subtitle {
    margin-top: 6px;
    color: #56d364;
    font-style: italic;
}

/* ---- Tour: hero ---- */

.tour-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 104px) clamp(18px, 4.5vw, 72px) clamp(48px, 5vw, 80px);
    border-bottom: 1px solid rgba(92, 125, 151, .18);
    background:
        radial-gradient(ellipse at 50% 38%, rgba(32, 99, 175, .22), transparent 65%),
        linear-gradient(180deg, #030912 0%, #02070d 100%);
    text-align: center;
}

.tour-hero-copy {
    max-width: 940px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    line-height: 1.4;
    text-transform: uppercase;
}

.tour-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5.5vw, 76px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.tour-hero h1 span,
.tour-intro h2 span,
.tour-cta h2 span {
    color: var(--accent);
}

.tour-lede {
    max-width: 680px;
    margin: 22px auto 0;
    color: #d7e3ee;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.58;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.tour-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.tour-jump a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 4px 14px;
    border: 1px solid rgba(82, 152, 200, .28);
    border-radius: 999px;
    color: #aed0e6;
    background: rgba(1, 10, 18, .45);
    font-size: 13px;
    font-weight: 700;
}

.tour-jump a:hover,
.tour-jump a:focus-visible {
    border-color: var(--accent);
    color: #fff;
}

/* ---- Tour: sections and screenshot cards ---- */

.tour-section {
    padding: clamp(48px, 5vw, 84px) clamp(16px, 4vw, 72px);
    border-bottom: 1px solid rgba(114, 152, 186, .14);
    scroll-margin-top: 12px;
}

.tour-section:nth-of-type(even) {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(32, 99, 175, .12), transparent 70%),
        linear-gradient(180deg, #030912, #061322 50%, #030912);
}

.tour-intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.tour-intro h2 {
    margin: 0 0 14px;
    color: #f6f9ff;
    font-size: clamp(30px, 3.4vw, 50px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.tour-intro p:last-child {
    margin: 0;
    color: #c3d2e2;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.6;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1320px;
    margin: 38px auto 0;
    padding: 0;
    list-style: none;
}

.shot-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(118, 150, 182, .16);
    border-radius: 16px;
    background: #0d1726;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 16px 40px rgba(0, 0, 0, .22);
}

.shot-card img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(118, 150, 182, .16);
    background: #030912;
}

.shot-card figcaption {
    display: grid;
    gap: 4px;
    padding: 16px 18px 18px;
}

.shot-card strong {
    color: #f6f9ff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.shot-card span {
    color: #b4c8dd;
    font-size: 15px;
    line-height: 1.5;
}

.shot-grid > li {
    display: flex;
    min-width: 0;
}

.shot-grid > li > .shot-card {
    flex: 1;
}

.shot-card-wide {
    grid-column: span 2;
}

.text-card {
    justify-content: center;
    gap: 8px;
    padding: 26px 22px;
    border-color: rgba(255, 189, 25, .32);
    background: linear-gradient(180deg, rgba(255, 189, 25, .07), #0d1726 70%);
}

.text-card strong {
    font-size: 20px;
}

.text-card .tag-list {
    justify-content: flex-start;
    margin: 10px 0 0;
}

.shot-grid-phones {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.4fr);
    align-items: start;
}

.shot-grid-phones .shot-card-wide {
    grid-column: auto;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 26px auto 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 6px 13px;
    border: 1px solid rgba(255, 189, 25, .32);
    border-radius: 999px;
    color: #ffd877;
    background: rgba(255, 189, 25, .06);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.tour-cta {
    padding: clamp(52px, 6vw, 90px) 18px;
    text-align: center;
}

.tour-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.tour-cta p {
    margin: 0;
    color: #c3d2e2;
}

/* ---- Manual (on top of legal.css) ---- */

.manual-hero .hero-actions {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    margin-top: 22px;
}

.manual-hero .legal-subtitle {
    max-width: 760px;
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-section .manual-steps {
    counter-reset: step;
}

.legal-section .manual-steps li {
    counter-increment: step;
    padding-left: 36px;
}

.legal-section .manual-steps li::before {
    content: counter(step);
    top: 0.2em;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--mn-gold);
    border-radius: 50%;
    color: var(--mn-gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    transform: none;
}

.manual-figure {
    margin: 22px 0 4px;
    max-width: 760px;
}

.manual-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--mn-border);
    border-radius: 10px;
    background: #030912;
}

.manual-figure-phone {
    max-width: 280px;
}

.manual-figure figcaption {
    margin-top: 8px;
    color: var(--mn-muted);
    font-size: 0.86rem;
}

.manual-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 180, 0, .4);
    border-left: 4px solid var(--mn-gold);
    border-radius: 8px;
    color: #dce9f2;
    background: rgba(255, 180, 0, .06);
}

.legal-section .manual-note p {
    margin: 0;
}

kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 0 6px;
    border: 1px solid #3a5670;
    border-bottom-width: 2px;
    border-radius: 5px;
    color: #fff;
    background: #0d2030;
    font: 700 0.86em/1.6 Consolas, "Courier New", monospace;
    text-align: center;
}

/* ---- Responsive ---- */

@media (max-width: 1250px) {
    .site-header {
        grid-template-columns: 220px minmax(0, 1fr) auto;
        gap: 16px;
    }

    .brand-logo {
        width: 210px;
    }

    .main-nav {
        gap: 16px;
    }
}

@media (max-width: 1050px) {
    .site-header {
        grid-template-columns: 1fr auto;
        row-gap: 0;
        padding-top: 8px;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .main-nav a {
        padding: 12px 0 10px;
    }

    .shot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shot-grid-phones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shot-grid-phones .shot-card-wide {
        grid-column: 1 / -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-left {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 8px 12px 0;
    }

    .brand-logo {
        width: 180px;
    }

    .header-actions .button:first-child {
        display: none;
    }

    .shot-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shot-card-wide {
        grid-column: auto;
    }

    .shot-grid-phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shot-grid-phones .shot-card figcaption {
        padding: 12px;
    }

    .shot-grid-phones .shot-card strong {
        font-size: 15px;
    }

    .shot-grid-phones .shot-card span {
        font-size: 13px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .manual-hero .hero-actions {
        flex-direction: column;
    }

    .footer-motto {
        gap: 12px;
        padding: 20px 16px;
    }

    .footer-motto-text {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        font-size: 13px;
        letter-spacing: 2px;
        white-space: normal;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px 18px 24px;
    }

    .footer-left {
        grid-column: auto;
    }
}
