/* Homepage: a transit-map take on "From Idea to Application".
   One route line runs through each tool as a stop; a return line
   carries crashes and feedback back into Planning. Brand blue leads,
   each tool keeps its own line colour everywhere on the page. */

.hm {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --ink: #0e1116;
    --red: #e6261f;
    --amber: #f5a400;
    --green: #00a05a;
    --paper: #ffffff;
    --panel: #f3f5f8;
    --rule: #dfe3e8;
    --muted: #4a5260;
    --gutter: 44px;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    overflow-x: clip;
}

.hm * { min-width: 0; }
.hm a:hover { text-decoration: none; }
.hm h1, .hm h2, .hm h3 { color: var(--ink); letter-spacing: -0.02em; }
.hm-num { font-variant-numeric: tabular-nums; }

.hm-band {
    padding-block: clamp(48px, 7vw, 96px);
    padding-inline: max(5vw, 16px);
}

.hm-wrap {
    max-width: 1240px;
    margin: 0 auto;
}

/* Nav */
.hm-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px max(5vw, 16px);
    border-bottom: 1px solid var(--rule);
}

.hm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.hm-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 28px);
}

.hm-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.hm-links a:hover { color: var(--ink); }

/* Buttons */
.hm .hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.hm .hm-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.hm .hm-btn-blue { background: var(--blue); color: #fff; }
.hm .hm-btn-blue:hover { background: var(--blue-dark); color: #fff; }
.hm .hm-btn-ink { background: var(--ink); color: #fff; min-height: 40px; padding: 0 18px; font-size: 15px; }
.hm .hm-btn-ink:hover { background: var(--blue); color: #fff; }
.hm .hm-btn-line { border-color: var(--ink); color: var(--ink); }
.hm .hm-btn-line:hover { background: var(--ink); color: #fff; }
.hm .hm-btn-white { background: #fff; color: var(--blue); }
.hm .hm-btn-white:hover { background: var(--ink); color: #fff; }

.hm-small { font-size: 14px; color: var(--muted); }

/* Hero */
.hm-hero { padding-top: clamp(40px, 6vw, 80px); }

.hm-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.hm-hero h1 {
    font-size: clamp(40px, 5.6vw, 68px);
    font-weight: 800;
    line-height: 1.04;
}

.hm-hero-side p:first-child { color: var(--muted); margin-bottom: 24px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

/* Route map */
.hm-map {
    position: relative;
    padding-right: var(--gutter);
    padding-bottom: 72px;
    --name-h: 56px;
    --dot: 30px;
    --line-y: calc(var(--name-h) + var(--dot) / 2);
    --first: calc((100% - var(--gutter)) / 10);
}

.hm-route {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    position: relative;
}

/* main line, Plan to Listen */
.hm-map::before {
    content: "";
    position: absolute;
    top: calc(var(--line-y) - 5px);
    left: var(--first);
    right: calc(var(--first) + var(--gutter));
    height: 10px;
    background: var(--blue);
    border-radius: 5px;
    z-index: 1;
}

/* return line, Listen back round to Plan */
.hm-map::after {
    content: "";
    position: absolute;
    top: calc(var(--line-y) - 3px);
    left: var(--first);
    right: 16px;
    bottom: 26px;
    border: 6px solid var(--red);
    border-radius: 0 32px 32px 32px;
    z-index: 0;
}

.hm-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hm-stop-name {
    height: var(--name-h);
    text-align: center;
    line-height: 1.25;
}

.hm-stop-name b { display: block; font-size: 20px; font-weight: 800; }
.hm-stop-name span { font-size: 14px; color: var(--muted); }

.hm-dot {
    width: var(--dot);
    height: var(--dot);
    flex: none;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--ink);
    box-shadow: 0 0 0 4px var(--c);
}

.hm-card {
    flex: 1;
    width: 100%;
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--rule);
    border-top: 4px solid var(--c);
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hm-card-head { display: flex; justify-content: space-between; font-weight: 700; }

.hm-bar { height: 6px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.hm-bar i { display: block; height: 100%; background: var(--blue); }

.hm-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hm-tasks li { padding-left: 20px; position: relative; }
.hm-tasks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 2px solid var(--rule);
}
.hm-tasks .done { color: var(--muted); text-decoration: line-through; }
.hm-tasks .done::before { background: var(--blue); border-color: var(--blue); }
.hm-tasks .doing::before { border-color: var(--blue); }
.hm-tasks .bug::before { border-color: var(--red); }
.hm-tasks em { font-style: normal; color: var(--red); font-size: 13px; white-space: nowrap; }

.hm-card-dark { background: var(--ink); color: #fff; border-color: var(--ink); border-top-color: var(--c); }
.hm-card-dark code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; overflow-wrap: anywhere; }
.hm-card-foot { margin-top: auto; font-size: 13px; color: #a9b2bf; }
.hm-dim { color: #8a94a3; }

.hm-score { flex-direction: row; align-items: center; gap: 12px; }
.hm-ring {
    --size: 64px;
    width: var(--size);
    height: var(--size);
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--panel) 0);
    display: grid;
    place-items: center;
}
.hm-ring span {
    width: calc(var(--size) - 14px);
    height: calc(var(--size) - 14px);
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
}

.hm-tag {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 16%, #fff);
    color: var(--ink);
}
.hm-mono { font: 600 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.hm-meta { font-size: 13px; color: var(--muted); margin-top: auto; }

.hm-return {
    position: absolute;
    left: calc(var(--first) + 24px);
    right: 40px;
    bottom: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 30px;
    z-index: 3;
}
.hm-return span { background: #fff; padding: 2px 14px; }

.hm-sample { margin-top: 8px; text-align: right; }

/* Section heads */
.hm-section-head { max-width: 640px; margin-bottom: 40px; }
.hm-section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.hm-section-head p { color: var(--muted); }

/* Tools */
.hm-tools { background: var(--panel); }

.hm-rows { border-top: 2px solid var(--ink); }

.hm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    gap: 32px;
    padding: 26px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.hm-row h3 {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* line-legend glyph: a short thick line with a station dot */
.hm-row h3::before {
    content: "";
    flex: none;
    width: 34px;
    height: 16px;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 3px, var(--ink) 3.5px 6px, transparent 6.5px),
        linear-gradient(var(--c), var(--c)) center / 100% 8px no-repeat;
    border-radius: 4px;
}

.hm-row p { color: var(--muted); }
.hm-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hm-row li, .hm-checks li, .hm-plan li { padding-left: 22px; position: relative; }
.hm-row li::before, .hm-checks li::before, .hm-plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--c, var(--blue));
}

/* Agent */
.hm-agent { background: var(--ink); color: #e9edf2; }
.hm-agent h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hm-agent p { color: #b9c1cc; margin-bottom: 22px; }

.hm-agent-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hm-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #fff; }
.hm-checks li::before { border-color: var(--amber); }

.hm-term { background: #171b21; border: 1px solid #2a3038; border-radius: 12px; overflow: hidden; }
.hm-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #2a3038; font-size: 13px; color: #8a94a3; }
.hm-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a414b; }
.hm-term-bar span { margin-left: 8px; }
.hm-term pre {
    margin: 0;
    padding: 18px 20px;
    font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #e9edf2;
    overflow-x: auto;
}
.hm-term b { color: #fff; }
.hm-red { color: #ff6b63; }
.hm-amber { color: #ffc44d; }

/* Pricing */
.hm-price-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}
.hm-left { margin-bottom: 0; }
.hm .hm-link { color: var(--blue); font-weight: 600; border-bottom: 2px solid currentColor; }

.hm-plan {
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hm-plan h3 { font-size: 20px; font-weight: 800; }
.hm-price { color: var(--muted); }
.hm-price .hm-num { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.hm-price small { display: block; font-size: 14px; margin-top: 4px; }
.hm-plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; flex: 1; }
.hm-plan-pro { border: 2px solid var(--blue); }

/* CTA */
.hm-cta { background: var(--blue); color: #fff; }
.hm-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hm-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; }

.hm .footer-marketing { background: var(--ink); }
.hm .footer-marketing .container { max-width: 1240px; padding-inline: max(5vw, 16px); }

/* ---------- Features and pricing pages ---------- */
.hm-links a.is-active { color: var(--ink); font-weight: 700; }

.hm-page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 72px); }
.hm-page-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1.05; }
.hm-page-head .hm-hero-top { align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.hm-page-head .hm-hero-side p { margin-bottom: 0; }

/* Line diagram used as in-page navigation */
.hm-line-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
}
.hm-line-nav::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 10px;
    height: 10px;
    background: var(--blue);
    border-radius: 5px;
}
.hm-line-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--ink);
    padding-bottom: 4px;
    border-radius: 8px;
}
.hm-line-nav a:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.hm-line-nav i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--ink);
    box-shadow: 0 0 0 4px var(--c);
    margin-bottom: 12px;
    transition: transform 0.15s;
}
.hm-line-nav a:hover i { transform: scale(1.15); }
.hm-line-nav b { font-size: 19px; font-weight: 800; line-height: 1.2; }
.hm-line-nav span { font-size: 14px; color: var(--muted); }

/* Tool sections */
.hm-tool { scroll-margin-top: 16px; border-top: 1px solid var(--rule); }
.hm-tool-alt { background: var(--panel); }
.hm-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.hm-tool-intro h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hm-tool-intro > p { color: var(--muted); margin-bottom: 20px; }
.hm-tool-intro > .hm-connects {
    color: var(--ink);
    font-size: 15px;
    padding-left: 16px;
    border-left: 4px solid var(--c);
    margin-bottom: 0;
}

.hm-glyph, .hm-row h3 { display: flex; align-items: center; gap: 12px; }
.hm-glyph::before {
    content: "";
    flex: none;
    width: 40px;
    height: 18px;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 3.5px, var(--ink) 4px 7px, transparent 7.5px),
        linear-gradient(var(--c), var(--c)) center / 100% 8px no-repeat;
    border-radius: 4px;
}

.hm-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}
.hm-highlights > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.hm-highlights h3, .hm-platform h3, .hm-faq h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.hm-highlights p, .hm-platform p, .hm-faq p { color: var(--muted); font-size: 16px; }

.hm-platform {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
}
.hm-platform > div { border-top: 2px solid var(--ink); padding-top: 14px; }

/* Pricing */
.hm-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.hm-plan-name { font-size: 22px; font-weight: 800; }
.hm-plan > p { color: var(--muted); }
.hm-plan > .hm-small { margin-top: -6px; }

.hm-table-wrap { overflow-x: auto; }
.hm-table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.hm-table th, .hm-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hm-table thead th { font-size: 18px; font-weight: 800; border-bottom: 2px solid var(--ink); }
.hm-table thead th:last-child { color: var(--blue); }
.hm-table tbody th { font-weight: 600; width: 40%; }
.hm-table td { width: 30%; }
.hm-table .hm-both { text-align: center; color: var(--muted); }
.hm-table .hm-yes { color: var(--green); font-weight: 600; }
.hm-table .hm-no { color: var(--muted); }

.hm-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 48px;
}
.hm-faq > div { border-top: 1px solid var(--rule); padding-top: 16px; }
.hm .hm-faq a { color: var(--blue); text-decoration: underline; }

/* ---------- Sign-in, sign-up and account email pages ---------- */
.hm.hm-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
    background: var(--panel);
}
.hm-auth .hm-nav { background: #fff; }
.hm-auth .auth-container {
    flex: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: clamp(32px, 7vh, 80px) 16px 48px;
}
.hm-auth .auth-box {
    background: #fff;
    border: 1px solid var(--rule);
    border-top: 4px solid var(--blue);
    border-radius: 14px;
    box-shadow: none;
    padding: clamp(24px, 5vw, 36px);
}
.hm-auth .auth-header { text-align: left; margin-bottom: 24px; }
.hm-auth .auth-header p {
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hm-auth .form-group label { color: var(--ink); font-weight: 600; font-size: 15px; }
.hm-auth .form-group input {
    min-height: 46px;
    font: inherit;
    font-size: 16px;
    border: 1px solid #c4cbd4;
    border-radius: 10px;
    color: var(--ink);
}
.hm-auth .form-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.hm-auth .form-group .hint, .hm-auth .hint { font-size: 13px; color: var(--muted); }
.hm-auth .btn {
    min-height: 46px;
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
}
.hm-auth .btn-primary { background: var(--blue); }
.hm-auth .btn-primary:hover { background: var(--blue-dark); }
.hm-auth .btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.hm-auth .btn-outline:hover { background: var(--ink); color: #fff; }
.hm-auth .forgot-link { color: var(--muted); font-size: 14px; }
.hm-auth .auth-form a, .hm-auth .auth-footer a, .hm-auth .verification-state a { color: var(--blue); font-weight: 600; }
.hm-auth .auth-footer { color: var(--muted); font-size: 15px; border-top-color: var(--rule); }
.hm-auth .trial-notice {
    background: color-mix(in srgb, var(--green) 10%, #fff);
    color: var(--ink);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    text-align: left;
    font-size: 14px;
}
.hm-auth .verification-state h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.hm-auth .verification-state p { color: var(--muted); }
.hm-auth .verification-icon { width: 64px; height: 64px; font-size: 28px; }
.hm-auth .footer-marketing { margin-top: 0; }

/* ---------- Legal and contact pages ---------- */
.hm-legal { padding-top: clamp(32px, 4vw, 48px); }
.hm-legal-head { border-bottom: 1px solid var(--rule); padding-bottom: clamp(32px, 4vw, 56px); }
.hm-legal-head h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; margin-bottom: 12px; }
.hm-legal-head p { color: var(--muted); }
.hm .legal-content { max-width: 720px; margin: 0; color: #2b313a; font-size: 17px; }
.hm .legal-content h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.hm .legal-content h3 { color: var(--ink); font-weight: 700; }
.hm .legal-content .legal-summary { background: var(--panel); border-left-color: var(--blue); border-radius: 6px; }
.hm .legal-content a { color: var(--blue); text-decoration: underline; }
.hm .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 28px 0 8px; border-bottom: 1px solid var(--rule); }
.hm .contact-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 8px 32px;
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
}
.hm .contact-card:first-child { border-top: 2px solid var(--ink); }
.hm .contact-card h3 { margin: 0; font-size: 18px; }
.hm .contact-card p { line-height: 1.7; }
.hm .contact-card a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .hm .contact-card { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Docs pages (layout comes from docs.css) ---------- */
.hm.hm-docs { font-size: 16px; background: var(--gray-50, #f9fafb); }
.hm-docs .hm-nav { background: #fff; }
.hm-docs .docs-layout { min-height: calc(100vh - 77px); }
@media (min-width: 901px) {
    .hm-docs .docs-sidebar { top: 0; height: 100vh; }
}
@media (max-width: 900px) {
    .hm-docs .docs-nav-section .docs-subnav { display: none; }
}
.hm-docs .docs-section { scroll-margin-top: 16px; }
.hm-docs .docs-nav-section { margin-bottom: 28px; }
.hm-docs .docs-nav-section h4 {
    font-size: 15px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ink);
    padding-left: 0;
    margin-bottom: 8px;
    cursor: default;
}
.hm-docs .docs-nav-section ul { border-left: 2px solid var(--rule); margin-left: 2px; }
.hm-docs .docs-nav-section li { margin: 0; }
.hm-docs .docs-nav-section a {
    padding: 6px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    border-radius: 0;
    color: var(--muted);
    font-size: 15px;
}
.hm-docs .docs-nav-section a:hover { background: transparent; color: var(--ink); border-left-color: var(--ink); }
.hm-docs .docs-nav-section a.active { background: transparent; color: var(--blue); font-weight: 700; border-left-color: var(--blue); }
.hm-docs .docs-nav-section a.active.has-current { border-left-color: transparent; }
.hm-docs .docs-nav-section .docs-subnav { border-left: 0; margin: 0 0 6px; }
.hm-docs .docs-subnav a { padding: 4px 14px 4px 28px; font-size: 14px; font-weight: 500; }
.hm-docs .docs-subnav a.active { font-weight: 600; }
.hm-docs .docs-content pre { overflow-x: auto; }
.hm-docs .docs-section h2[id] { scroll-margin-top: 16px; }
.hm-docs .footer-marketing { margin-top: 0; }

/* Below desktop: the route turns vertical and the return line becomes a note */
@media (max-width: 1040px) {
    .hm-map { padding-right: 0; padding-bottom: 0; }
    .hm-map::after { display: none; }
    .hm-map::before {
        top: 20px;
        bottom: 80px;
        left: 10px;
        right: auto;
        width: 10px;
        height: auto;
    }
    .hm-route { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .hm-stop {
        display: grid;
        grid-template-columns: var(--dot) minmax(150px, 0.6fr) minmax(0, 1.4fr);
        column-gap: 20px;
        align-items: start;
    }
    .hm-dot { grid-column: 1; grid-row: 1; margin-top: 2px; }
    .hm-stop-name { grid-column: 2; height: auto; text-align: left; }
    .hm-card { grid-column: 3; grid-row: 1; margin-top: 0; }
    .hm-return {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        text-align: left;
        margin: 24px 0 0;
        padding-left: 50px;
        line-height: 1.4;
    }
    .hm-return::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 50%;
        width: 30px;
        height: 6px;
        background: var(--red);
        border-radius: 3px;
    }
    .hm-return span { padding: 0; }
    .hm-sample { text-align: left; padding-left: 50px; }
    .hm-hero-top, .hm-agent-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .hm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
    .hm-row ul { grid-column: 2; }
    .hm-price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hm-left { grid-column: 1 / -1; }
    .hm-tool-grid { grid-template-columns: minmax(0, 1fr); }
    .hm-platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .hm { font-size: 16px; }
    .hm-hide-sm { display: none; }
    .hm-brand span { display: none; }
    .hm-stop { grid-template-columns: var(--dot) minmax(0, 1fr); row-gap: 10px; }
    .hm-card { grid-column: 2; grid-row: 2; }
    .hm-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hm-row ul { grid-column: 1; }
    .hm-price-grid { grid-template-columns: minmax(0, 1fr); }
    .hm-line-nav span { display: none; }
    .hm-line-nav b { font-size: 15px; }
    .hm-highlights, .hm-platform, .hm-faq, .hm-plans { grid-template-columns: minmax(0, 1fr); }
    .hm-table { font-size: 14px; }
    .hm-table th, .hm-table td { padding: 10px 8px; }
    .hm-table tbody th { width: 34%; }
}

@media (prefers-reduced-motion: reduce) {
    .hm .hm-btn, .hm-line-nav i { transition: none; }
    .hm-line-nav a:hover i { transform: none; }
}
