/* ==========================================================================
   NTsocial MeshLink — getting-started guide
   Uses the homepage "Field Instrument" tokens (assets/homepage.css):
   warm-neutral dark ground, IBM Plex Mono labels, amber for MeshLink/LoRa,
   signal blue for Bluetooth. Shared by /meshlink/start/, /tw/…, /jp/….
   ========================================================================== */

:root {
    color-scheme: dark;

    --paper: #191b18;
    --paper-2: #1e201c;
    --surface: #23251f;
    --surface-2: #1c1e19;
    --ink: #e8e9e3;
    --ink-soft: #bcbeb4;
    --muted: #8b8d83;
    --line: #343630;
    --line-2: #474941;

    --signal: #5aa6d8;      /* Bluetooth: phone ↔ radio */
    --signal-deep: #82bfe6;
    --relay: #d99f45;       /* MeshLink / LoRa */
    --relay-deep: #e6b968;
    --wave: #57a99a;

    --btn-bg: #e8e9e3;
    --btn-fg: #191b18;

    --maxw: 1160px;
    --radius: 6px;
    --radius-sm: 4px;
    --topbar: 64px;

    --font-sans: 'IBM Plex Sans', 'Noto Sans TC', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Noto Sans TC', 'Noto Sans JP', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.018em;
    text-wrap: balance;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--relay-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #f4d9a7; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

/* UI label quoted from the app */
.ui {
    padding: 0.05em 0.4em;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.92em;
    white-space: nowrap;
}

code {
    padding: 0.05em 0.35em;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--relay-deep);
    font: 0.9em var(--font-mono);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    font: 500 0.72rem/1.5 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: '//'; color: var(--relay); letter-spacing: 0; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Top bar ------------------------------------------------------ */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(10px);
}
.top-bar-inner {
    width: min(var(--maxw), calc(100% - 48px));
    min-height: var(--topbar);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-right: auto;
    color: var(--ink);
    font: 500 0.9rem var(--font-mono);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}
.brand-link img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); }
.brand-link span span { color: var(--relay); }
.top-links, .language-switch { display: flex; align-items: center; gap: 0.1rem; }
.top-links a {
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.84rem;
    text-decoration: none;
    white-space: nowrap;
}
.top-links a:hover { color: var(--ink); }
.language-switch {
    padding: 0.2rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
}
.language-switch a {
    padding: 0.32rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font: 500 0.7rem var(--font-mono);
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
}
.language-switch a:hover { color: var(--ink); }
.language-switch a.is-active { background: var(--btn-bg); color: var(--btn-fg); }

/* ---------- Layout -------------------------------------------------------- */
.shell { width: min(var(--maxw), calc(100% - 64px)); margin: 0 auto; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-heading h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; }
.section-heading h2 + p { margin-top: 1.1rem; font-size: 1.04rem; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000, transparent 75%);
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--relay); }
.hero .lead {
    max-width: 34rem;
    margin-top: 1.5rem;
    font-size: clamp(1.04rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}
.hero-facts li {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font: 0.72rem var(--font-mono);
    color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.button:hover { background: #fff; color: var(--btn-fg); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.button.ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

.hero-visual {
    position: relative;
    height: clamp(440px, 46vw, 560px);
}
.hero-visual .phone { position: absolute; width: 56%; }
.hero-visual .phone:first-child { left: 0; top: 9%; width: 52%; filter: brightness(0.62) saturate(0.85); }
.hero-visual .phone:last-child { right: 0; top: 0; }

/* ---------- Phone frame & screenshots ------------------------------------ */
.phone {
    position: relative;
    padding: 7px;
    border: 1px solid var(--line-2);
    border-radius: 30px;
    background: #0e100d;
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.screen {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 720 / 1470;
    border-radius: 23px;
    background: #1f2937;
    cursor: zoom-in;
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen:focus-visible { outline-offset: 4px; border-radius: 23px; }

/* Highlight a control inside a screenshot: --x/--y/--w/--h in percent */
.mark {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: calc(var(--w) * 1%);
    height: calc(var(--h) * 1%);
    border: 2px solid var(--relay);
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(217, 159, 69, 0.18);
    pointer-events: none;
}
.mark[data-n]::after {
    content: attr(data-n);
    position: absolute;
    top: -11px;
    left: -11px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--relay);
    color: var(--btn-fg);
    font: 600 0.72rem/1 var(--font-mono);
}
.n {
    display: inline-grid;
    place-items: center;
    width: 1.35em;
    height: 1.35em;
    margin-right: 0.2em;
    border-radius: 50%;
    background: var(--relay);
    color: var(--btn-fg);
    font: 600 0.72em/1 var(--font-mono);
    vertical-align: 0.12em;
}

.shot { width: 100%; }
.shot figcaption {
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
}

/* ---------- How it connects ---------------------------------------------- */
.route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, 0.7fr) minmax(0, 1fr) minmax(90px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    margin: 0 0 2.75rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.route-node { text-align: center; }
.route-node svg { width: 44px; height: 44px; margin: 0 auto 0.6rem; color: var(--ink-soft); }
.route-node strong { display: block; font-size: 0.98rem; }
.route-node span { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.route-node--you svg { color: var(--relay-deep); }
.route-link { position: relative; height: 2px; margin: 0 0.5rem 2.6rem; }
.route-link span {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    font: 500 0.7rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.route-link--ble { background: var(--signal); }
.route-link--ble span { color: var(--signal-deep); }
.route-link--lora { background: repeating-linear-gradient(90deg, var(--relay) 0 8px, transparent 8px 13px); }
.route-link--lora span { color: var(--relay-deep); }

.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.needs li {
    padding: 1.4rem 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.needs h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 1.04rem; }
.needs h3::before {
    content: '';
    flex: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--relay);
    border-radius: 3px;
    background: linear-gradient(135deg, transparent 46%, var(--relay) 46% 58%, transparent 58%) no-repeat;
}
.needs li.optional h3::before { border-style: dashed; background: none; }
.needs p { font-size: 0.92rem; line-height: 1.7; }
.needs p + p { margin-top: 0.6rem; }

/* ---------- Setup steps --------------------------------------------------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(250px, 300px);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-no {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--relay);
    border-radius: 50%;
    color: var(--relay-deep);
    font: 500 0.85rem var(--font-mono);
}
.step-body { max-width: 36rem; }
.step-body h3 { margin: 0.45rem 0 1rem; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; }
.step-body p + p, .step-body p + ul, .step-body ul + p, .step-body .note + p { margin-top: 0.9rem; }
.step-body ul { margin: 0.9rem 0 0; padding-left: 1.2rem; }
.step-body li + li { margin-top: 0.45rem; }
.step-visual { align-self: start; }
.step--text, .step--art { grid-template-columns: 56px minmax(0, 1fr); }
.step--text .step-body { max-width: 44rem; }
.step--art .step-visual { grid-column: 2; width: min(620px, 100%); margin-top: 2.25rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }

.note {
    margin-top: 1.25rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--relay);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    font-size: 0.92rem;
    line-height: 1.7;
}
.note--blue { border-left-color: var(--signal); }

.phone-pair { position: relative; aspect-ratio: 300 / 520; }
.phone-pair .phone { position: absolute; width: 66%; }
.phone-pair .phone:first-child { left: 0; top: 0; }
.phone-pair .phone:last-child { right: 0; bottom: 0; }

/* Pairing illustration */
.pairing-art { width: 100%; height: auto; }
.pairing-art .body { fill: #2a2c26; stroke: var(--line-2); stroke-width: 1.5; }
.pairing-art .antenna { stroke: var(--ink-soft); stroke-width: 5; stroke-linecap: round; }
.pairing-art .oled { fill: #0b0d0a; stroke: #3d4038; }
.pairing-art .oled-label { fill: var(--muted); font: 500 11px var(--font-mono); letter-spacing: 0.1em; }
.pairing-art .pin { fill: #9fe0c8; font: 500 22px var(--font-mono); letter-spacing: 0.06em; }
.pairing-art .knob { fill: #34372f; stroke: var(--line-2); }
.pairing-art .card { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.pairing-art .title { fill: var(--ink); font: 600 15px var(--font-sans); }
.pairing-art .small { fill: var(--muted); font: 12px var(--font-sans); }
.pairing-art .field { fill: var(--surface-2); stroke: var(--signal); stroke-width: 1.5; }
.pairing-art .typed { fill: var(--ink); font: 500 18px var(--font-mono); letter-spacing: 0.12em; }
.pairing-art .btn-text { fill: var(--signal-deep); font: 600 13px var(--font-sans); }
.pairing-art .btn-main { fill: var(--signal); }
.pairing-art .btn-main-text { fill: #0f1b24; font: 600 13px var(--font-sans); }
.pairing-art .arrow { stroke: var(--relay); stroke-width: 2; stroke-dasharray: 5 6; fill: none; }
.pairing-art .arrow-head { fill: var(--relay); }
.pairing-art .caption { fill: var(--muted); font: 500 11px var(--font-mono); letter-spacing: 0.08em; }

.done {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid color-mix(in srgb, var(--wave) 45%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--wave) 9%, transparent);
    color: var(--ink);
}
.done svg { flex: none; width: 28px; height: 28px; color: var(--wave); }

/* ---------- Basics -------------------------------------------------------- */
.tabs-legend {
    margin-bottom: 3rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.tabs-legend img {
    width: 100%;
    height: auto;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 14px;
}
.tabs-legend ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 560px;
    margin: 1.25rem auto 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
.tabs-legend li strong { display: block; font-size: 0.92rem; }
.tabs-legend li span { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

.tour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tour-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1.5rem;
    align-items: start;
    padding: clamp(1.4rem, 2.6vw, 1.9rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.tour-card h3 { margin-bottom: 0.8rem; font-size: 1.18rem; line-height: 1.35; }
.tour-card p { font-size: 0.93rem; line-height: 1.72; }
.tour-card p + p { margin-top: 0.75rem; }
.tour-card .phone { padding: 5px; border-radius: 22px; }
.tour-card .screen { border-radius: 17px; }

/* ---------- Troubleshooting ---------------------------------------------- */
.help-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.help-layout .section-heading { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    position: relative;
    padding: 1.2rem 2.5rem 1.2rem 0;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--relay);
    font: 400 1.3rem var(--font-mono);
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: #fff; }
.faq details > p { max-width: 46rem; padding: 0 0 1.4rem; font-size: 0.95rem; }

/* ---------- Next ---------------------------------------------------------- */
.next {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
}
.next h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.next p { margin-top: 0.8rem; }
.next-links { display: grid; gap: 0.6rem; }
.next-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.93rem;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.next-links a::after { content: '→'; color: var(--relay); font-family: var(--font-mono); }
.next-links a[target="_blank"]::after { content: '↗'; }
.next-links a:hover { border-color: var(--relay); background: var(--surface-2); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Enlarged screenshot ------------------------------------------ */
.screenshot-dialog {
    max-width: min(520px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 52px 16px 16px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.screenshot-dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); }
.screenshot-dialog > img {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 150px);
    margin: 0 auto;
    border-radius: 18px;
}
.dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: 1.4rem/1 var(--font-sans);
    cursor: pointer;
}
.dialog-caption { margin: 0.85rem 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; text-align: center; }
html:has(.screenshot-dialog[open]) { overflow: hidden; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1040px) {
    .tour { grid-template-columns: 1fr; }
    .tour-card { grid-template-columns: minmax(0, 1fr) 200px; }
}

@media (max-width: 900px) {
    .top-links { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { width: min(420px, 100%); height: auto; aspect-ratio: 420 / 500; margin: 0 auto; }
    .step { grid-template-columns: 44px minmax(0, 1fr); }
    .step-visual { grid-column: 2; width: min(280px, 100%); margin-top: 2rem; }
    .needs { grid-template-columns: 1fr; }
    .next, .help-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .top-bar-inner { width: calc(100% - 32px); gap: 0.6rem; }
    .brand-link { font-size: 0.8rem; }
    .shell { width: calc(100% - 32px); }
    .route { grid-template-columns: 1fr; gap: 0; padding: 1.25rem; }
    .route-node { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 0.9rem; align-items: center; text-align: left; }
    .route-node svg { grid-row: span 2; margin: 0; }
    .route-link { width: 2px; height: 46px; margin: 0.4rem 0 0.4rem 21px; }
    .route-link span { left: 18px; bottom: 50%; transform: translateY(50%); }
    .route-link--lora { background: repeating-linear-gradient(180deg, var(--relay) 0 8px, transparent 8px 13px); }
    .step { grid-template-columns: 1fr; }
    .step-no { width: 38px; height: 38px; font-size: 0.78rem; }
    .step-body h3 { margin-top: 1rem; }
    .step-visual { grid-column: 1; justify-self: center; }
    .step--art .step-visual { grid-column: 1; }
    .tabs-legend ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.25rem; }
    .tabs-legend li strong { font-size: 0.74rem; }
    .tabs-legend li span { display: none; }
    .tour-card { grid-template-columns: 1fr; }
    .tour-card .phone { width: min(230px, 80%); margin: 0.5rem auto 0; }
}

@media (max-width: 380px) {
    .brand-link span { display: none; }
}


@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
.needs h3 small { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
