/* ============================================================
   Strava training landing page
   ============================================================ */

.lb-strava-page {
    background: var(--lb-bg);
}

.lb-strava-page .lb-section {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.lb-strava-hero {
    padding: var(--lb-space-2xl) 0 var(--lb-space-xl);
    background:
        linear-gradient(135deg, rgba(255, 77, 0, 0.16), rgba(200, 255, 0, 0.08)),
        var(--lb-dark-base);
    color: #fff;
}

.lb-strava-hero__grid,
.lb-strava-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: var(--lb-space-xl);
    align-items: center;
}

.lb-strava-hero h1 {
    max-width: 760px;
    margin: var(--lb-space-sm) 0;
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.lb-strava-hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.7;
}

.lb-strava-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--lb-space-lg);
}

.lb-strava-hero__quickfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.lb-strava-hero__quickfacts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    font-weight: 800;
}

.lb-strava-hero__quickfacts i {
    color: var(--lb-lime);
}

.lb-strava-visual {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--lb-radius-xl);
    background: rgba(255, 255, 255, 0.96);
    color: var(--lb-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    padding: 18px;
}

.lb-strava-visual__top,
.lb-strava-visual__legend,
.lb-strava-visual__workout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lb-strava-visual__top strong {
    font-family: var(--lb-font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.lb-strava-visual__top span,
.lb-strava-visual__workout span {
    color: var(--lb-text-secondary);
    font-size: 0.82rem;
}

.lb-strava-visual__legend {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 18px 0;
    color: var(--lb-text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
}

.lb-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.lb-dot--blue { background: #4c86d9; }
.lb-dot--red { background: #ff4f4a; }
.lb-dot--brown { background: #b77958; }

.lb-strava-visual__chart {
    position: relative;
    height: 230px;
    border-radius: var(--lb-radius);
    background:
        linear-gradient(to bottom, transparent 24%, rgba(0, 0, 0, 0.07) 25%, transparent 26%),
        linear-gradient(to bottom, transparent 49%, rgba(0, 0, 0, 0.08) 50%, transparent 51%),
        linear-gradient(to bottom, transparent 74%, rgba(0, 0, 0, 0.07) 75%, transparent 76%),
        #f8f9fa;
    overflow: hidden;
}

.lb-strava-visual__chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lb-demo-grid line {
    stroke: rgba(20, 25, 34, 0.1);
    stroke-width: 1;
}

.lb-demo-axis,
.lb-demo-label {
    fill: #6d7280;
    font-family: var(--lb-font-body);
    font-size: 13px;
    font-weight: 700;
}

.lb-demo-fill {
    fill: url(#lb-demo-form-fill);
}

.lb-demo-bars rect {
    fill: rgba(120, 128, 141, 0.18);
    rx: 3;
}

.lb-demo-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.lb-demo-line--blue {
    stroke: #4c86d9;
}

.lb-demo-line--red {
    stroke: #ff4f4a;
}

.lb-demo-line--brown {
    stroke: #b77958;
}

.lb-demo-line--forecast {
    stroke-dasharray: 7 7;
    opacity: 0.85;
}

.lb-demo-today {
    stroke: #2c9ad1;
    stroke-width: 2;
}

.lb-demo-pin {
    fill: #2c9ad1;
}

.lb-demo-point {
    fill: #fff;
    stroke-width: 3;
}

.lb-demo-point--red {
    stroke: #ff4f4a;
}

.lb-demo-point--blue {
    stroke: #4c86d9;
}

.lb-chart-line {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 3px;
    border-radius: 999px;
}

.lb-chart-line--blue {
    top: 66%;
    background: linear-gradient(90deg, #4c86d9, #4c86d9 72%, transparent 72%);
    border-right: 80px dashed #4c86d9;
}

.lb-chart-line--red {
    top: 54%;
    transform: rotate(-9deg);
    background: linear-gradient(90deg, #ff4f4a, #ff4f4a 72%, transparent 72%);
    border-right: 80px dashed #ff4f4a;
}

.lb-chart-line--brown {
    top: 40%;
    transform: rotate(7deg);
    background: linear-gradient(90deg, #b77958, #b77958 72%, transparent 72%);
    border-right: 80px dashed #b77958;
}

.lb-chart-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20%;
    width: 2px;
    background: #2c9ad1;
}

.lb-strava-visual__workout {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--lb-radius);
    background: #f4f5f7;
    align-items: flex-start;
    flex-direction: column;
}

.lb-section-head {
    max-width: 760px;
    margin-bottom: var(--lb-space-xl);
}

.lb-section-head h2,
.lb-strava-two-col h2,
.lb-strava-steps h2,
.lb-strava-faq h2 {
    color: var(--lb-text);
}

.lb-section-head h2 {
    max-width: 680px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.lb-section-head p,
.lb-strava-two-col p {
    color: var(--lb-text-secondary);
    line-height: 1.7;
}

.lb-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--lb-orange);
    font-family: var(--lb-font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lb-strava-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.lb-strava-feature-grid article,
.lb-strava-new__grid > div,
.lb-strava-steps,
.lb-strava-faq details {
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius);
    background: #fff;
    padding: 22px;
}

.lb-strava-feature-grid article {
    position: relative;
    min-height: 236px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lb-strava-feature-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--lb-orange), rgba(200, 255, 0, 0.9));
    opacity: 0;
    transition: opacity 180ms ease;
}

.lb-strava-feature-grid article:hover {
    border-color: rgba(255, 77, 0, 0.28);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.lb-strava-feature-grid article:hover::before {
    opacity: 1;
}

.lb-strava-feature-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 77, 0, 0.09);
    color: var(--lb-orange);
    font-size: 1rem;
}

.lb-strava-feature-grid h3 {
    margin: 18px 0 10px;
    font-size: 1rem;
    line-height: 1.25;
}

.lb-strava-feature-grid p,
.lb-strava-new__grid span,
.lb-strava-steps li,
.lb-strava-faq p {
    color: var(--lb-text-secondary);
    line-height: 1.65;
}

.lb-strava-new {
    background:
        linear-gradient(180deg, rgba(240, 243, 247, 0.72), rgba(255, 255, 255, 0.92));
}

.lb-strava-new__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lb-strava-new__grid > div {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.04);
}

.lb-strava-new__grid strong {
    color: var(--lb-text);
    font-family: var(--lb-font-display);
    font-size: 1.02rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.lb-strava-new__grid strong::before {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lb-orange), var(--lb-lime));
}

.lb-strava-explain {
    position: relative;
    background:
        linear-gradient(180deg, #fff 0%, #fff 52%, rgba(240, 243, 247, 0.9) 52%, rgba(240, 243, 247, 0.9) 100%);
}

.lb-strava-two-col {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
}

.lb-strava-two-col > div {
    min-height: 100%;
    padding: clamp(26px, 3.4vw, 38px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 4px solid var(--lb-orange);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.lb-strava-two-col > div:first-child {
    border-top-color: #4c86d9;
}

.lb-strava-two-col h2 {
    max-width: 520px;
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    line-height: 0.98;
}

.lb-strava-two-col p {
    max-width: 600px;
    margin-bottom: 14px;
}

.lb-strava-two-col p strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--lb-text);
}

.lb-strava-two-col p strong::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lb-orange);
}

.lb-strava-two-col > div:first-child p:nth-of-type(1) strong::before {
    background: #4c86d9;
}

.lb-strava-two-col > div:first-child p:nth-of-type(2) strong::before {
    background: #ff4f4a;
}

.lb-strava-two-col > div:first-child p:nth-of-type(3) strong::before {
    background: #b77958;
}

.lb-strava-steps {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px);
    border-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 77, 0, 0.06), rgba(200, 255, 0, 0.06)),
        #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.lb-strava-steps h2 {
    max-width: 640px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.lb-strava-steps ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 28px;
    padding-left: 0;
    list-style: none;
    counter-reset: lb-start-steps;
}

.lb-strava-steps li {
    position: relative;
    min-height: 116px;
    padding: 42px 14px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.lb-strava-steps li::before {
    counter-increment: lb-start-steps;
    content: counter(lb-start-steps);
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lb-orange);
    color: #fff;
    font-family: var(--lb-font-display);
    font-size: 0.78rem;
    font-weight: 800;
}

.lb-strava-steps li + li {
    margin-top: 0;
}

.lb-strava-faq {
	background: #fff;
}

.lb-strava-progression-demo {
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--lb-border);
	border-radius: var(--lb-radius-xl);
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

/* When the chart is inside the hero visual, strip its own card styling
   since the hero visual is already a card. */
.lb-strava-visual .lb-strava-progression {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.lb-strava-visual .lb-strava-progression-head strong,
.lb-strava-visual .lb-strava-progression-head span {
	display: none;
}

.lb-strava-visual .lb-strava-progression-stats {
	display: none;
}

/* When inside the demo section, also strip card styling (the wrapper
   is already a card). */
.lb-strava-progression-demo .lb-strava-progression {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.lb-strava-progression-demo__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
	color: var(--lb-text-secondary);
	font-size: 0.84rem;
	font-weight: 700;
}

.lb-strava-progression-demo svg {
	display: block;
	width: 100%;
	height: auto;
}

.lb-strava-progression-demo__caption {
	margin-top: 14px;
}

.lb-strava-progression-demo__caption p {
	margin: 0;
	color: var(--lb-text-secondary);
	font-size: 0.88rem;
	line-height: 1.6;
}

.lb-strava-faq details + details {
    margin-top: 10px;
}

.lb-strava-faq summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--lb-text);
}

@media (max-width: 980px) {
    .lb-strava-hero__grid,
    .lb-strava-two-col,
    .lb-strava-feature-grid,
    .lb-strava-new__grid {
        grid-template-columns: 1fr;
    }

    .lb-strava-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lb-strava-hero__actions {
        flex-direction: column;
    }

    .lb-strava-visual__top,
    .lb-strava-visual__workout {
        align-items: flex-start;
    }

    .lb-strava-hero__quickfacts {
        flex-direction: column;
        align-items: stretch;
    }

    .lb-strava-hero__quickfacts span {
        justify-content: flex-start;
        width: 100%;
        border-radius: 10px;
    }

    .lb-strava-feature-grid article {
        min-height: auto;
    }

    .lb-strava-two-col h2,
    .lb-strava-steps h2 {
        font-size: 2rem;
    }

    .lb-strava-steps ol {
        grid-template-columns: 1fr;
    }
}
