/* Offentlig /hyrox (public/hyrox.html): statisk SEO-side, uten JS.
   Bygger på landing-stilene i styles.css (.landing-*, .lhx-*, .pricing-*);
   her ligger bare det som er nytt for denne siden. Alt er skopet til .hxp.
   Ingen translate-animasjoner. Tekstlenker på lys flate: --accent-aa. */

/* nav.css (der .sr-only bor) lastes ikke her. */
.hxp .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hxp-brand { color: var(--text-primary); text-decoration: none; }
.hxp-header-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* ---- Hero ---- */
.hxp-hero h1 { overflow-wrap: break-word; hyphens: manual; }

/* ---- Felles brødtekst ---- */
.hxp-intro {
    max-width: 620px;
    margin: 0 auto var(--space-6);
    text-align: center;
    font-size: clamp(1rem, 2.4vw, 1.1rem);
    line-height: 1.65;
    color: var(--text-secondary);
}
.hxp-note {
    max-width: 620px;
    margin: var(--space-3) auto 0;
    font-size: var(--font-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}
.hxp a:not([class]),
.hxp .hxp-link,
.hxp .landing-faq details p a {
    color: var(--accent-aa);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
/* Footeren beholder sin egne dempede lenkefarge. */
.hxp .landing-footer a { color: var(--text-secondary); font-weight: 400; }

/* ---- Slik regner vi ut planen (nummererte steg) ---- */
.hxp-steps {
    list-style: none;
    counter-reset: hxp-step;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.hxp-steps li {
    counter-increment: hxp-step;
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 36px);
}
.hxp-steps li::before {
    content: counter(hxp-step);
    position: absolute;
    left: var(--space-4);
    top: var(--space-4);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hxp-steps h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 var(--space-1);
}
.hxp-steps p {
    margin: 0;
    font-size: var(--font-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ---- Tabeller (stasjoner, vekter) ----
   Rulles inni egen boks hvis den mot formodning blir for bred;
   siden selv skal aldri rulle sidelengs. */
.hxp-table-wrap {
    max-width: 720px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}
.hxp-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hxp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-sm);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}
.hxp-table th,
.hxp-table td {
    padding: var(--space-2) var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.hxp-table tbody tr:last-child th,
.hxp-table tbody tr:last-child td { border-bottom: none; }
.hxp-table thead th {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--text-secondary);
    background: var(--bg-secondary);
}
.hxp-table tbody th { font-weight: 600; color: var(--text-primary); }
.hxp-table th span {
    display: block;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
}
.hxp-table--weights td { white-space: nowrap; }
/* Radtitlene er tekst: tabellsifre gjør komma og punktum for brede («Wall ball , høyde», «inkl . slede»). */
.hxp-table th,
.hxp-table th span { font-variant-numeric: normal; }

/* ---- Laget / sesonger ---- */
.hxp-seasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.hxp-season {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}
.hxp-season--race { border: 2px solid var(--accent); }
.hxp-season h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 var(--space-2);
}
.hxp-season p {
    margin: 0;
    font-size: var(--font-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---- Pris: CTA nederst i hvert kort ---- */
.hxp-card { display: flex; flex-direction: column; }
.hxp-card .pricing-options { flex: 1; }
.hxp .hxp-card-cta {
    margin-top: var(--space-5);
    width: 100%;
    font-size: var(--font-sm);
    padding: 0.8rem 1rem;
}
/* Sekundær-variant: kontur i stedet for fylt (én fylt knapp per rad). */
.hxp .hxp-card-cta--quiet {
    background: transparent;
    color: var(--accent-aa);
    border: 1px solid var(--accent);
}
.hxp .hxp-card-cta--quiet:hover { background: var(--accent-soft); }
.landing-pricing--3 .hxp-card { align-self: stretch; }
.hxp #priser .lhx-choose { margin-bottom: var(--space-6); }

/* ---- Coachen ---- */
.hxp-coach {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}
.hxp-coach img {
    display: block;
    width: 120px;
    height: 150px;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: var(--radius-md);
}
.hxp-coach-text p {
    margin: 0 0 var(--space-3);
    font-size: var(--font-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}
.hxp-coach-text p:last-child { margin-bottom: 0; }
.hxp .hxp-coach-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.hxp .hxp-coach-role { margin-bottom: var(--space-3); }

/* ---- Avsluttende CTA ---- */
.hxp-final-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.hxp-final-ctas .hxp-link { font-size: var(--font-sm); }

/* ---- Mobil ---- */
@media (max-width: 760px) {
    .hxp-steps,
    .hxp-seasons { grid-template-columns: 1fr; }
    .hxp-intro,
    .hxp-note { text-align: left; }
    .hxp .lhx-trust,
    .hxp .pricing-reassure { text-align: left; }
    /* Mellomtitler og «første uke er gratis» står i en venstrejustert seksjon. */
    .hxp .lhx-h3 { text-align: left; margin-left: 0; }
    .hxp .pricing-guarantee { text-align: left; margin-left: 0; }
    .hxp-final-ctas { align-items: stretch; text-align: center; }
    .hxp-table th,
    .hxp-table td { padding: var(--space-2); }
    .hxp-table--weights { font-size: 0.8rem; }
    .hxp-table--weights th,
    .hxp-table--weights td { padding: var(--space-2) 5px; }
    .hxp-table--weights th:first-child,
    .hxp-table--weights td:first-child { padding-left: var(--space-2); }
    .hxp-coach { flex-direction: column; }
    .hxp-coach img { width: 96px; height: 120px; }
}
