/* ── Type & tokens ─────────────────────────────────── */
/* Type follows the Calitracker landing page: Poppins throughout, bold sentence-case headlines */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #F6AE2D;
    --gold-d: #da971a;
    --sage: #9ABCA7;
    --coral: #f08a7c;
    --bg: #0f1317;
    --panel: #161b21;
    --line: rgba(255, 255, 255, 0.11);
    --line-soft: rgba(255, 255, 255, 0.06);
    --text: #f2f3f4;
    --body: #c2c8ce;
    --muted: #7f8892;
    --header-h: 68px;
    --strip-h: 48px;
    --display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --label: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --steel: #5d6873;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Fine grain, like chalk dust on a matte floor, so large dark areas are not flat */
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--body);
    line-height: 1.7;
    min-height: 100vh;
}

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

a {
    color: var(--gold);
    text-underline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Header (same bar as the homepage) ─────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(8, 10, 14, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(8, 10, 14, 0.96);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-links {
    display: none;
    gap: 2rem;
}

.header-links a {
    color: #f8f8f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-links a:hover {
    color: var(--gold);
}

@media (min-width: 860px) {
    .header-links {
        display: flex;
    }
}

.download-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold);
    color: #000;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.download-btn:hover,
.btn:hover {
    background-color: var(--gold-d);
}

/* ── Hero: full-bleed photo, title anchored bottom-left ── */
/* Each page sets --hero-img (and optionally position/size) on the section itself */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 204px) 0 30px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--hero-img) var(--hero-pos-m, 50% 24px) / var(--hero-size-m, auto 345px) no-repeat;
    filter: var(--hero-filter, none);
}

/* Phone: the photo sits in a band above the title, then fades into the page */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 19, 23, 0.15) 0, rgba(15, 19, 23, 0.1) 200px, var(--bg) 300px);
}

@media (min-width: 900px) {
    .hero {
        min-height: var(--hero-h, 640px);
        padding: calc(var(--header-h) + 150px) 0 48px;
    }

    .hero::before {
        background-position: var(--hero-pos, 100% 42%);
        background-size: var(--hero-size, 60% auto);
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(15, 19, 23, 0) 55%, var(--bg) 100%),
            linear-gradient(90deg, var(--bg) 0%, rgba(15, 19, 23, 0.93) 38%, rgba(15, 19, 23, 0.2) 74%, rgba(15, 19, 23, 0.4) 100%);
    }

    h1 {
        max-width: 620px;
        font-weight: 650;
        letter-spacing: -0.5px;
    }
}

/* Tool pages put the inputs first: no photo band on phones, a shorter hero on desktop */
.hero--tool {
    padding: calc(var(--header-h) + 36px) 0 26px;
}

.hero--tool::before,
.hero--tool::after {
    display: none;
}

@media (min-width: 900px) {
    .hero--tool {
        --hero-h: 470px;
        padding: calc(var(--header-h) + 72px) 0 40px;
    }

    .hero--tool::before,
    .hero--tool::after {
        display: block;
    }
}

/* The one orchestrated moment: the hero assembles itself line by line on load */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes settle {
    from {
        opacity: 0;
        transform: scale(1.06);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero::before {
    animation: settle 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .breadcrumb,
.hero p.kicker,
.hero h1,
.hero .lede,
.hero .hero-facts {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
    animation-delay: 0.08s;
}

.hero .lede {
    animation-delay: 0.2s;
}

.hero .hero-facts {
    animation-delay: 0.32s;
}

.breadcrumb {
    font-size: 0.78rem;
    color: #9aa2ab;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--gold);
}

h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.9rem, 7vw, 3.1rem);
    line-height: 1.18;
    letter-spacing: -0.8px;
    color: #fff;
}

h1 .kicker,
.hero p.kicker {
    display: block;
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
}

.lede {
    max-width: 560px;
    margin-top: 20px;
    color: #d5d9dd;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.65;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    max-width: 560px;
    list-style: none;
    font-size: 0.82rem;
    color: #aab1b9;
}

.hero-facts strong {
    color: #fff;
    font-weight: 600;
}

/* ── Phone / tablet: sticky strip of the eight rungs ── */
.strip {
    position: sticky;
    top: var(--header-h);
    z-index: 60;
    height: var(--strip-h);
    background: rgba(12, 15, 19, 0.96);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
}

.strip ol {
    display: flex;
    height: 100%;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px;
}

.strip ol::-webkit-scrollbar {
    display: none;
}

.strip a {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    padding: 0 10px;
    border-bottom: 2px solid transparent;
    color: #aab1b9;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.strip a span {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--muted);
}

.strip a[aria-current="true"] {
    color: #fff;
    border-bottom-color: var(--gold);
}

.strip a[aria-current="true"] span {
    color: var(--gold);
}

/* ── Page layout: rail + reading column ────────────── */
.layout {
    padding-top: 40px;
}

.rail {
    display: none;
}

.content {
    min-width: 0;
    max-width: 780px;
}

@media (min-width: 1100px) {
    .strip {
        display: none;
    }

    .layout {
        display: grid;
        grid-template-columns: 210px minmax(0, 780px);
        gap: 72px;
        padding-top: 56px;
    }

    .rail {
        display: block;
        position: sticky;
        top: calc(var(--header-h) + 28px);
        align-self: start;
        max-height: calc(100vh - var(--header-h) - 40px);
        overflow-y: auto;
    }
}

.rail ol {
    list-style: none;
    margin-top: 14px;
    border-left: 1px solid var(--line);
}

.rail a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-left: -1px;
    padding: 7px 0 7px 14px;
    border-left: 2px solid transparent;
    color: #99a1aa;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rail a span {
    font-weight: 700;
    font-size: 0.78rem;
    color: #59616a;
    min-width: 20px;
}

.rail a:hover {
    color: #fff;
}

.rail a[aria-current="true"] {
    color: #fff;
    font-weight: 600;
    border-left-color: var(--gold);
}

.rail a[aria-current="true"] span {
    color: var(--gold);
}

.rail-more {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
}

.rail-more a {
    padding: 0;
    border: none;
    margin: 0;
}

.rail-app {
    margin-top: 20px;
}

.rail-app p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 10px;
}

.rail-app .btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #000;
    border: none;
    margin: 0;
}

/* ── Reading column ────────────────────────────────── */
.content section {
    scroll-margin-top: calc(var(--header-h) + var(--strip-h) + 16px);
}

@media (min-width: 1100px) {
    .content section {
        scroll-margin-top: calc(var(--header-h) + 24px);
    }
}

.block {
    margin-bottom: 72px;
}

h2 {
    font-family: var(--display);
    font-weight: 650;
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #fff;
    margin-bottom: 16px;
}

.block>h2::before,
.promo h2::before {
    content: '';
    display: block;
    width: 58px;
    height: 9px;
    margin-bottom: 16px;
    background: repeating-linear-gradient(105deg, var(--gold) 0 2px, transparent 2px 7px);
}

h3 {
    margin: 34px 0 14px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.content p {
    margin-bottom: 14px;
}

.content p strong,
.content li strong {
    color: #fff;
    font-weight: 600;
}

/* The one-paragraph answer that opens each section, set as a lead, not a box */
.content p.answer {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e6e9eb;
}

.content p.note {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Plain lists get a short gold dash instead of a bullet */
.content ul.dash {
    list-style: none;
    margin-bottom: 14px;
}

.dash li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.dash li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 14px;
    height: 2px;
    background: var(--gold);
}

/* ── Level markers: a dot plus the word, never colour alone ── */
.lvl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b4bbc2;
    white-space: nowrap;
}

.lvl::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.lvl--int::before {
    background: var(--gold);
}

.lvl--adv::before {
    background: var(--coral);
}

/* ── The chart ─────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    vertical-align: top;
}

.chart {
    margin: 22px 0 14px;
    border-top: 1px solid var(--line);
}

.chart thead th {
    padding: 12px 14px 12px 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.chart tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.chart tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.chart td,
.chart tbody th {
    padding: 16px 14px 16px 0;
    font-size: 0.92rem;
}

.chart .num {
    width: 52px;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--gold);
}

.chart tbody th a {
    font-weight: 650;
    font-size: 1.08rem;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.chart tbody th a:hover {
    color: var(--gold);
}

.chart td:last-child {
    color: #fff;
    padding-right: 0;
}

@media (max-width: 699px) {
    .chart thead {
        display: none;
    }

    .chart,
    .chart tbody,
    .chart tr,
    .chart th,
    .chart td {
        display: block;
    }

    .chart tr {
        position: relative;
        padding: 16px 0 16px 50px;
    }

    .chart td,
    .chart tbody th {
        padding: 0;
    }

    .chart .num {
        position: absolute;
        left: 0;
        top: 15px;
    }

    .chart tbody th {
        margin-bottom: 4px;
    }

    .chart td[data-label]:not(.num) {
        margin-top: 5px;
        color: #d5d9dd;
    }

    .chart td.c-labelled::before {
        content: attr(data-label);
        display: block;
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: 8px;
    }
}

/* ── Skill chapters ────────────────────────────────── */
.skill {
    margin-bottom: 84px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.skill-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

/* Outlined numeral: reads as a chapter marker without competing with the title */
.skill-num {
    font-weight: 800;
    font-size: clamp(3.4rem, 12vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -2px;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold);
}

.skill-head h2 {
    margin: 6px 0 0;
}

.skill-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.skill-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #111;
}

@media (min-width: 700px) {
    .skill-intro {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 32px;
        min-height: 300px;
    }

    /* The text sets the row height; the photo fills it */
    .skill-photo {
        height: 0;
        min-height: 100%;
        aspect-ratio: auto;
    }
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.facts div {
    padding: 12px 0;
}

.facts dt {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.facts dd {
    margin-top: 3px;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
}

/* ── The ladder: progression steps as rungs on a line ── */
.ladder {
    list-style: none;
    counter-reset: rung;
}

.ladder li {
    position: relative;
    counter-increment: rung;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
    padding: 0 0 22px 46px;
}

.ladder li::before {
    content: counter(rung);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #4a525b;
    border-radius: 50%;
    background: var(--bg);
    color: #c2c8ce;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 1;
}

.ladder li::after {
    content: '';
    position: absolute;
    left: 13.5px;
    top: 28px;
    bottom: 0;
    width: 1px;
    background: #3a4149;
}

.ladder li:last-child {
    padding-bottom: 0;
}

.ladder li:last-child::after {
    display: none;
}

/* The last rung is the skill itself */
.ladder li:last-child::before {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.rung-name {
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
}

.rung-name a {
    color: inherit;
    text-decoration-color: rgba(246, 174, 45, 0.6);
}

.rung-how {
    grid-column: 1;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #98a0a9;
}

.rung-goal {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 190px;
    text-align: right;
    color: #fff;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.rung-goal small {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 599px) {
    .ladder li {
        grid-template-columns: minmax(0, 1fr);
    }

    .rung-goal {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
        margin-top: 6px;
        text-align: left;
    }

    .rung-goal small {
        display: inline;
        margin-right: 8px;
    }
}

/* ── Workout card: reads like a session written on a board ── */
.session {
    background: var(--panel);
    border-radius: 4px;
    overflow: hidden;
}

.session caption {
    caption-side: top;
    text-align: left;
    padding: 14px 20px 12px;
    background: var(--panel);
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
    color: #9aa2ab;
}

.session th,
.session td {
    padding: 14px 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.94rem;
}

.session tr:last-child th,
.session tr:last-child td {
    border-bottom: none;
}

.session th {
    font-weight: 500;
    color: #e6e9eb;
    padding-right: 8px;
}

.session th a {
    color: inherit;
    text-decoration-color: rgba(246, 174, 45, 0.6);
}

.session td {
    width: 44%;
    padding-left: 8px;
    text-align: right;
    color: var(--gold);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.content ul.tips {
    margin-top: 20px;
}

/* ── In-the-app line ───────────────────────────────── */
.app-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.app-cta>div {
    flex: 1 1 280px;
}

.app-cta .eyebrow {
    color: var(--gold);
}

.app-cta strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-weight: 600;
}

.app-cta span {
    font-size: 0.9rem;
    color: #a9b0b8;
}

/* ── Language links ─────────────────────────────────── */
.site-footer .langs {
    margin: 0 0 14px;
    gap: 8px 18px;
}

.langs a[aria-current="true"] {
    color: var(--gold);
}

/* ── FAQ ───────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #fff;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 40px 20px 0;
}

.sources {
    margin-left: 1.2rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.sources li {
    margin-bottom: 8px;
    padding-left: 4px;
}

/* ── Calitracker promo ─────────────────────────────── */
.promo {
    background: #04101B;
    border-top: 1px solid var(--line-soft);
    padding: 80px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

@media (min-width: 860px) {
    .promo-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 56px;
    }
}

.promo .eyebrow {
    color: var(--sage);
}

.promo h2 {
    margin: 10px 0 16px;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.accent {
    color: var(--gold);
}

.promo-sub {
    color: #a4adb8;
    font-size: 1.04rem;
    max-width: 520px;
    margin-bottom: 22px;
}

.promo-list {
    list-style: none;
    margin-bottom: 28px;
    border-top: 1px solid var(--line);
    max-width: 560px;
}

.promo-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
    color: #c9cfd5;
}

.promo-list strong {
    color: #fff;
    font-weight: 600;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.store-img-btn {
    display: inline-block;
}

.store-img {
    display: block;
    height: 52px;
    width: auto;
}

.promo-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 20px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #8791a0;
}

.promo-trust span::before {
    content: '★ ';
    color: var(--gold);
}

.promo-media {
    text-align: center;
}

.promo-media img {
    width: 100%;
    max-width: 330px;
}

/* ── Related, footer ───────────────────────────────── */
.related {
    padding: 64px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 36px;
    }
}

.related-card {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.related-card strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.related-card strong::after {
    content: ' \2192';
    color: var(--gold);
}

.related-card:hover strong {
    color: var(--gold);
}

.related-card span {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    text-align: center;
    color: #7d8285;
    font-size: 0.85rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
    margin: 18px 0;
}

.site-footer a {
    color: #b9bdc0;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold);
}

.site-footer .logo {
    justify-content: center;
}

@media (max-width: 599px) {
    .logo img {
        height: 28px;
    }

    .download-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .app-cta .btn {
        width: 100%;
        padding: 13px 20px;
    }

    .session caption,
    .session th,
    .session td {
        padding-left: 16px;
        padding-right: 16px;
    }

    .session th {
        padding-right: 6px;
    }

    .session td {
        padding-left: 6px;
    }

    .faq-item p {
        padding-right: 0;
    }

    .promo {
        padding: 60px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ── Shared page shell and form primitives for the tool pages ── */
.single {
    padding-top: 36px;
}

/* Left edge lines up with the hero text; the right side stays open */
.single .content {
    max-width: 940px;
}

.nb {
    white-space: nowrap;
}

.f-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.f-label small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.seg {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.seg label {
    position: relative;
    flex: 1;
}

.seg input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 12px;
    font-family: var(--label);
    font-weight: 600;
    font-size: 0.98rem;
    color: #b4bbc2;
    transition: background 0.15s ease, color 0.15s ease;
}

.seg input:checked+span {
    background: var(--gold);
    color: #000;
}

.seg input:focus-visible+span {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

/* 16px+ keeps iOS Safari from zooming on focus */
input.num,
.sel {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}

input.num::-webkit-outer-spin-button,
input.num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.num:focus,
.sel:focus {
    outline: none;
    border-color: var(--gold);
}

.sel {
    padding-right: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F6AE2D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.sel option {
    background: #161b21;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--gold);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ── Reference tables ──────────────────────────────── */
.tbl-wrap {
    margin: 18px 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.std {
    min-width: 100%;
    border-top: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.std caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.std th,
.std td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: right;
}

.std th:first-child,
.std td:first-child {
    text-align: left;
}

.std thead th {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.std tbody th {
    color: #fff;
}

.std td.hi,
.std td.strong {
    color: #fff;
}

.std tr.is-max td.strong,
.std tr.is-max th {
    color: var(--gold);
}
