:root {
    --bg: #121417;
    --bg-raise: #1b1e23;
    --line: #31363d;
    --text: #f4f6f8;
    --muted: #c5ced6;
    --quiet: #8b969f;
    --green: #1f7a3a;
    --green-ink: #ffffff;
    --link: #b7e3a2;
    --warn: #f3d7a1;
    --max: 1080px;
    --header: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover { color: #e7f8dc; }

.skip {
    position: absolute;
    left: 12px;
    top: 12px;
    transform: translateY(-200%);
    background: #fff;
    color: #121417;
    padding: 8px 12px;
    z-index: 5;
}
.skip:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 8px 24px;
    min-height: var(--header);
    padding: 10px 22px;
    background: rgba(18, 20, 23, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand b { color: #7dcea0; font-weight: 600; }

.nav {
    grid-area: nav;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}
.nav-actions { grid-area: actions; }
@media (max-width: 760px) {
    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand actions" "nav nav";
    }
    .nav { justify-self: start; }
}
.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}
.nav a:hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); }

.button, button.button {
    display: inline-block;
    background: var(--green);
    color: var(--green-ink);
    text-decoration: none;
    border: 0;
    border-radius: 6px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.button:hover, button.button:hover { background: #176330; color: #fff; }
.button.quiet {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.button.quiet:hover { background: var(--bg-raise); color: var(--text); }

main { display: block; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 40px)); margin: 0 auto; }

.hero {
    display: grid;
    gap: 28px;
    padding: 48px 0 12px;
}
.hero-copy { max-width: 42rem; }
.hero .shot { align-self: start; }

.kicker {
    margin: 0 0 10px;
    color: #9ccc65;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.lede { margin: 0 0 22px; color: var(--muted); font-size: 1.15rem; }

.ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.ticks li {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-raise);
    color: var(--muted);
    font-size: 0.9rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.fine { margin: 0; color: var(--quiet); font-size: 0.92rem; }

.shot {
    margin: 0;
    background: #0d0f12;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.shot img { display: block; width: 100%; height: auto; }
/* A tall screenshot (form plus results) is shown narrower so the page text is not pushed far down. */
.shot.tall { max-width: 560px; margin-left: auto; margin-right: auto; }
/* Hero screenshot that changes tool every few seconds. All screenshots share the same
   background colour, so letterboxing inside the fixed frame does not show. */
.rotator-frame {
    position: relative;
    aspect-ratio: 1200 / 1769;
    background: #212121;
}
.shot .rotator-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.shot .rotator-frame img.is-on { opacity: 1; }
.rotator figcaption { display: grid; }
.rotator figcaption > p { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.rotator figcaption > p.is-on { visibility: visible; }
.rotator figcaption strong { color: var(--text); }
.rotator-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 0 14px 10px;
}
.rotator-dots[hidden] { display: none; }
.rotator-dots button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.rotator-dots button::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: auto;
    border-radius: 50%;
    background: #4a5158;
    transition: background 0.2s, transform 0.2s;
}
.rotator-dots button:hover::before { background: var(--muted); }
.rotator-dots button.is-on::before { background: var(--link); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) {
    .shot .rotator-frame img { transition: none; }
}
.shot figcaption {
    padding: 10px 14px 12px;
    color: var(--quiet);
    font-size: 0.88rem;
}

section { padding: 28px 0; }

h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reasons li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #243028;
    color: #c8e6c9;
    font-weight: 700;
    font-size: 0.95rem;
}
.reasons p { margin: 0; color: var(--muted); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.steps article {
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
}
.steps p { margin: 0; color: var(--muted); }

.gallery { display: grid; gap: 22px; }
.gallery-grid { display: grid; gap: 22px; align-items: start; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #23282e; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 650; width: 38%; }

.price {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
}
.price p { margin: 6px 0 0; color: var(--muted); }
.amount { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.price .perk { color: var(--link); }

.faq details {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 4px; color: var(--muted); }

.note {
    background: #2a2418;
    border: 1px solid #5c4a2a;
    color: var(--warn);
    border-radius: 10px;
    padding: 14px 16px;
}
.note strong { color: #ffe7b8; }

.login-card {
    width: min(440px, calc(100% - 40px));
    margin: 48px auto 24px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px;
}
.login-card h1 { font-size: 1.8rem; }
label { display: block; margin: 14px 0; font-size: 0.95rem; }
input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid #4a5158;
    background: #fff;
    color: #121417;
    font: inherit;
}
button[type="submit"] { width: 100%; margin-top: 6px; }
.login-links { margin: 16px 0 0; font-size: 0.95rem; }

/* "Sign in" in the top menu opens a small panel (a <details> element, so it works without scripts). */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-login { position: relative; }
.nav-login > summary, .nav-signin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.nav-login > summary::-webkit-details-marker { display: none; }
.nav-login > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s;
}
.nav-login[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.nav-login > summary:hover, .nav-login[open] > summary, .nav-signin:hover, .nav-signin[aria-current="page"] {
    background: var(--bg-raise);
    border-color: #4a5158;
    color: var(--text);
}
.login-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
/* The small pointer that ties the panel to the button. */
.login-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: var(--bg-raise);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.login-panel form { padding: 18px 18px 16px; }
.login-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; }
.login-panel label { margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.login-panel input[type="email"], .login-panel input[type="password"] { margin: 0 0 12px; padding: 9px 11px; }
.login-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.login-row a { color: var(--link); font-size: 0.82rem; text-decoration: none; }
.login-row a:hover { text-decoration: underline; }
.login-panel button[type="submit"] { margin-top: 2px; }
.login-foot {
    margin: 0;
    padding: 12px 18px 14px;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 0.85rem;
}
.login-foot a { color: var(--link); font-weight: 600; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* How it works: one compact block per example, text beside a screenshot kept small. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.jump a {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
}
.jump a:hover { border-color: #4a5158; background: var(--bg-raise); }
.example, .example-end {
    padding: 34px 0 6px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header) + 12px);
}
.example { display: grid; gap: 20px 44px; }
.example h2, .example-end h2 { margin-top: 0; }
.example .what { margin: 0 0 6px; font-size: 1.05rem; }
.example h3 {
    margin: 20px 0 8px;
    color: var(--quiet);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.example ul { margin: 0; padding-left: 20px; color: var(--muted); }
.example li { margin: 4px 0; }
.example blockquote {
    margin: 0;
    padding: 12px 16px;
    background: var(--bg-raise);
    border-left: 3px solid #7dcea0;
    border-radius: 0 8px 8px 0;
    color: var(--text);
    font-size: 0.95rem;
}
.example .source { margin: 10px 0 0; color: var(--quiet); font-size: 0.86rem; }
.example .more { margin: 14px 0 0; }
.example .shot { width: 100%; max-width: 340px; justify-self: center; }
.example .shot a { display: block; cursor: zoom-in; }
.example .shot figcaption { padding: 8px 12px 10px; text-align: center; font-size: 0.82rem; }
@media (min-width: 860px) {
    .example { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}

/* Contact page: what to expect on the left, the form in a card on the right. Dark fields to match the site. */
.contact-layout { display: grid; gap: 24px; padding: 18px 0 48px; align-items: start; grid-template-areas: "intro" "form" "notes"; }
.contact-intro { grid-area: intro; }
.contact-card { grid-area: form; }
.contact-notes { grid-area: notes; }
.contact-intro h1 { margin-bottom: 12px; }
.contact-notes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-notes li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-raise);
    color: var(--muted);
    font-size: 0.95rem;
}
.contact-notes strong { color: var(--text); }
.contact-card {
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.contact-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
/* the form's sending and error line, and the thank-you (sent from the page since 21 November 2026) */
.contact-msg { margin: 12px 0 0; min-height: 1.2em; color: var(--muted); font-size: 0.92rem; }
.contact-msg.bad { color: #f0a49b; }
.contact-done { color: var(--muted); margin: 8px 0 18px; }
.contact-card label { margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.contact-card label span { color: var(--quiet); font-weight: 400; }
.contact-card input[type="text"], .contact-card input[type="email"], .contact-card select, .contact-card textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #3c434b;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 400;
}
.contact-card textarea { resize: vertical; min-height: 170px; }
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus { outline: none; border-color: #7dcea0; box-shadow: 0 0 0 3px rgba(125, 206, 160, 0.18); }
.contact-card ::placeholder { color: var(--quiet); }
.contact-row { display: grid; gap: 0 14px; }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.contact-send p { margin: 0; color: var(--quiet); font-size: 0.86rem; }
.contact-card button[type="submit"] { width: auto; margin: 0; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The bot check: invisible unless Cloudflare asks for a tick, then a short line and the box above the Send button. */
.contact-check p { display: none; margin: 18px 0 8px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.contact-check.show p { display: block; }
.contact-check > div { max-width: 100%; overflow: hidden; }
@media (min-width: 640px) {
    .contact-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "intro form" "notes form"; gap: 20px 48px; padding-top: 28px; }
}

/* The trainers' top bar, copied from the trainers (src/styles.css in Heart-Function-Training, 7 November 2026) so the
   homepage and the STP, ETP, FoCUS and POCUS pages match them: echo-wizard.com in green beside the logo, then the switch
   with the same trainers in the same order, size and colours, and Sign in. When they do not fit, the switch
   folds to "Trainers ▾" with a menu of all of them (app-switch.js, as ui/app-switch.ts in the trainers). Only pages whose
   header has .trainers-header; the other tools keep their own. */
.trainers-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 18px; min-height: 48px; padding: 7px 16px; }
.trainers-header .brand-site { color: #7dcea0; font-weight: 600; }
.trainers-header .app-switch { grid-area: nav; justify-self: start; position: relative; display: flex; gap: 2px; background: #0d0f12; border: 1px solid #31363d; border-radius: 8px; padding: 2px; }
.trainers-header .app-switch > a { padding: 4px 10px; border-radius: 6px; text-decoration: none; color: #8b969f; font-size: 0.84rem; white-space: nowrap; }
.trainers-header .app-switch > a:hover { color: #f4f6f8; background: #23272d; }
.trainers-header .app-cur { display: none; align-items: center; gap: 4px; padding: 4px 10px; border: 0; border-radius: 6px; background: #1f7a3a; color: #fff; font: inherit; font-size: 0.84rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.trainers-header .app-cur span { font-size: 0.8em; opacity: 0.85; }
.trainers-header .app-switch.folded > a { display: none; }
.trainers-header .app-switch.folded > .app-cur { display: inline-flex; }
.trainers-header .app-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 250px; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; gap: 2px; padding: 6px; background: #1b1e23; border: 1px solid #31363d; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.trainers-header .app-switch.folded.open > .app-menu { display: flex; }
.trainers-header .app-menu a { padding: 8px 10px; border-radius: 6px; text-decoration: none; color: #8b969f; font-size: 0.9rem; white-space: nowrap; }
.trainers-header .app-menu a:hover { color: #f4f6f8; background: #23272d; }
/* grouped since 21 November 2026 (as in the trainers): LV ▾, Valves ▾ and Labs ▾ open a small menu; folded, the menu shows
   everything in sections divided by a line, each group's trainers in two columns */
.trainers-header .app-grp { position: relative; display: flex; }
.trainers-header .app-grp-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 0; border-radius: 6px; background: none; color: #8b969f; font: inherit; font-size: 0.84rem; white-space: nowrap; cursor: pointer; }
.trainers-header .app-grp-btn span { font-size: 0.8em; opacity: 0.8; }
.trainers-header .app-grp-btn:hover, .trainers-header .app-grp.open > .app-grp-btn { color: #f4f6f8; background: #23272d; }
.trainers-header .app-drop { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 160px; flex-direction: column; gap: 2px; padding: 6px; background: #1b1e23; border: 1px solid #31363d; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.trainers-header .app-grp.open > .app-drop { display: flex; }
@media (hover: hover) {
    .trainers-header .app-grp:hover > .app-drop { display: flex; }
    .trainers-header .app-grp::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
}
.trainers-header .app-drop a { padding: 7px 10px; border-radius: 6px; text-decoration: none; color: #8b969f; font-size: 0.88rem; white-space: nowrap; }
.trainers-header .app-drop a:hover { color: #f4f6f8; background: #23272d; }
.trainers-header .app-switch.folded > .app-grp { display: none; }
.trainers-header .app-menu-h { padding: 8px 10px 2px; font-size: 0.72rem; color: #8b969f; text-transform: uppercase; letter-spacing: 0.04em; }
.trainers-header .app-sec + .app-sec { border-top: 1px solid #31363d; margin-top: 4px; padding-top: 4px; }
.trainers-header .app-sec > a, .trainers-header .app-sec-items > a { display: block; }
.trainers-header .app-sec-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.trainers-header .nav-actions .button.signin { padding: 6px 12px; border-radius: 8px; font-size: 15px; font-weight: 700; }
@media (max-width: 1500px) { .trainers-header .app-switch > a, .trainers-header .app-grp-btn { padding: 4px 8px; } }
@media (max-width: 760px) { .trainers-header { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav actions"; } }
@media (max-width: 640px) {
    .trainers-header { gap: 4px 10px; padding: 6px 10px; }
    .trainers-header .brand span { display: none; }
    .trainers-header .app-switch > a, .trainers-header .app-grp-btn { padding: 4px 7px; font-size: 0.78rem; }
    .trainers-header .nav-actions .button.signin { padding: 6px 10px; font-size: 0.88rem; }
}
@media (max-width: 360px) { .trainers-header .app-switch > a, .trainers-header .app-grp-btn { padding: 4px 5px; font-size: 0.74rem; } }
.button.signin { background: var(--warn); color: #121417; padding: 8px 14px; border-radius: 8px; }
.button.signin:hover { background: #ffe7b8; color: #121417; }
.button.signin.signed-in { background: var(--green); color: #fff; }
.button.signin.signed-in:hover { background: #176330; color: #fff; }
@media (max-width: 440px) {
    .nav-actions > .button.signin { display: inline-block; }
}

/* Trainers homepage: a short hero, then one card per simulator with its echo picture on top. */
.trainers-hero { padding: 56px 0 8px; }
.trainers-hero h1 { max-width: none; }
.trainers-hero .lede { max-width: none; }
.trainer-grid { display: grid; gap: 22px; align-items: stretch; }
.trainer-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.trainer-shot { display: block; background: #121417; border-bottom: 1px solid var(--line); }
.trainer-shot img { display: block; width: 100%; height: 230px; object-fit: contain; padding: 14px; }
/* Each card plays live loops from its trainer (the trainer's own embed page), staggered by its offset.
   A transparent link over the frame makes the whole picture open the trainer. */
.live-loop { position: relative; aspect-ratio: 5 / 4; background: #000; }
.live-loop iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.live-loop-link { position: absolute; inset: 0; }
/* EchoLab's two cards (the TOE and ICE simulators): the simulator's whole screen, still, in the live loops' 5:4 frame */
.trainer-shot.live-loop > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; object-fit: cover; }
.trainer-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.trainer-body .kicker { margin-bottom: 6px; }
.trainer-body h2 { margin: 0 0 8px; font-size: 1.35rem; }
.trainer-body h2 a { color: var(--text); text-decoration: none; }
.trainer-body h2 a:hover { color: var(--link); }
.trainer-body p { margin: 0 0 10px; color: var(--muted); font-size: 0.97rem; }
.trainer-body ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.trainer-body li { margin: 3px 0; }
.trainer-body .button { margin-top: auto; align-self: flex-start; }
.trainer-extras { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.trainer-extras li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.trainer-extras strong { color: var(--text); }
.narrow-faq .faq { max-width: 820px; }
/* Nine cards (seven trainers, then the TOE and ICE simulators): two to a row on tablets and three on wide screens,
   the last row centred. */
@media (min-width: 640px) {
    .trainer-grid { display: flex; flex-wrap: wrap; justify-content: center; }
    .trainer-card { flex: 0 1 calc((100% - 22px) / 2); }
}
@media (min-width: 900px) {
    .trainer-card { flex-basis: calc((100% - 44px) / 3); }
    .trainer-extras { grid-template-columns: repeat(3, 1fr); }
}

/* Audience pages (/stp/, /etp/, /focus/, /pocus/): readable width, sections spaced out. */
.audience { max-width: 860px; padding-bottom: 32px; }
.audience section { margin-top: 28px; padding: 0; }
.audience ul { color: var(--muted); padding-left: 20px; }
.audience li { margin: 8px 0; }
.audience-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.audience-list li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); }
.audience-list strong a { color: var(--text); }

.audience-loops { display: grid; gap: 14px; margin-top: 22px; }
.audience-loop { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-raise); }
.audience-loop figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 0.92rem; }
.audience-loop figcaption a { color: var(--text); font-weight: 600; }
@media (min-width: 700px) { .audience-loops { grid-template-columns: 1fr 1fr; } }
.x-post-grid { display: grid; gap: 12px; }
.x-post { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise); }
.x-post p { margin: 0 0 6px; }
.x-post-who span { color: var(--quiet); font-size: 0.9rem; }
.x-post-topic { color: var(--text) !important; }
.x-post-note { font-size: 0.92rem; }
.x-posts .twitter-tweet { margin: 0 auto 12px !important; }
@media (min-width: 900px) { .x-post-grid { grid-template-columns: repeat(3, 1fr); } }

.crumbs { margin: 22px 0 0; color: var(--quiet); font-size: 0.9rem; }
.crumbs a { color: var(--muted); }
.crumbs.wrap { margin: 22px auto 0; }

.prose p { color: var(--muted); }
.prose h2 { margin-top: 28px; }

footer {
    margin-top: 20px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 0.92rem;
}
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a { color: var(--muted); }

.notfound { padding: 72px 0 40px; }

:focus-visible {
    outline: 2px solid #c5e1a5;
    outline-offset: 2px;
}

@media (min-width: 980px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        /* The screenshot is tall, so the text starts near the top rather than halfway down it. */
        align-items: start;
        gap: 44px;
        padding-top: 56px;
    }
    .hero-copy { padding-top: 28px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    td:first-child { width: auto; }
}

@media (max-width: 640px) {
    /* A sticky two-row header ate a sixth of a phone screen. */
    .site-header {
        position: static;
        padding: 10px 16px;
    }
    .nav { gap: 6px 18px; }
    .nav-actions { gap: 8px; }
    .nav-actions .button, .nav-login > summary, .nav-signin { padding: 8px 11px; font-size: 0.9rem; }
}
@media (max-width: 440px) {
    /* No room beside the logo for both; the Sign in panel links to the free trial instead. */
    .nav-actions > .button { display: none; }
    .wrap, .narrow { width: calc(100% - 32px); }
    .hero { padding-top: 28px; }
    .price { padding: 18px; }
}

/* The home page's note for EchoLab (the TOE and ICE simulators, /echolab), under the title */
.echolab-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid #2f6b43; border-radius: 10px; background: linear-gradient(#17221b, #141a16); }
.echolab-note .new { flex: none; background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.echolab-note p { margin: 0; flex: 1 1 20rem; color: var(--muted); }
.echolab-note p strong { color: var(--text); }
.echolab-note .button { flex: none; padding: 8px 14px; }

