/* Home: static markup in index.html. Its pictures use the app's own parts (rows, chips,
   label lists), so this file only lays them out. */
.home { display: flex; flex-direction: column; gap: 72px; max-width: 1180px; margin: 0 auto; width: 100%; padding: 40px 0 24px; }

/* The hero: a headline beside a run's flow, joined by the temper scale. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }   /* the flow: narrow, beside the headline */
.hero h1 { margin: 0 0 var(--s4); font-size: 52px; line-height: 1.06; letter-spacing: -.025em; font-weight: 700; max-width: 20ch; text-wrap: balance; }
.hero p { margin: 0 0 28px; font-size: 18px; line-height: 1.55; color: #b4bcc1; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-cta .button { min-height: 40px; padding: 0 var(--s4); }
.flow-line { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.flow-line::before { content: ''; position: absolute; left: 8px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px;
    background: linear-gradient(180deg, var(--t1), var(--t2) 33%, var(--t3) 66%, var(--t4)); }
.flow-line > li { position: relative; }
.flow-line > li::before { content: ''; position: absolute; left: -26px; top: 50%; margin-top: -7px; width: 14px; height: 14px;
    border-radius: 50%; border: 3px solid var(--bg); box-sizing: border-box; background: var(--t1); }
.flow-line > li:nth-child(2)::before { background: var(--t2); }
.flow-line > li:nth-child(3)::before { background: var(--t3); }
.flow-line > li:nth-child(4)::before { background: var(--t4); }
.home .rows { background: #1a1e22; }
.home .rowline { min-height: 46px; }

.home-sec { display: flex; flex-direction: column; gap: 28px; }
.home-h { margin: 0; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.015em; }
.home-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s6); }
/* The sections about the product: each a panel with the temper scale along its top, a header
   (a label, the heading, its link at the right) set apart from what is in it. */
.home-band { position: relative; padding: 36px 40px 40px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-l); overflow: hidden; }
.home-band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--t1), var(--t2) 33%, var(--t3) 66%, var(--t4)); }
.home-sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--s2) var(--s4);
    padding-bottom: var(--s5); border-bottom: 1px solid var(--line-soft); }
.home-eyebrow { margin: 0 0 6px; font-size: var(--fs-s); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t1); }
.home-sec-head .home-more { align-self: auto; }
/* Ours or yours: each option a card of its own inside the panel. */
.home-option { padding: var(--s5); background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-l); }
.home-option .home-more { margin-top: auto; }
.home-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-col h3 { margin: 0; font-size: var(--fs-l); font-weight: 600; }
.home-col p { margin: 0; color: #b4bcc1; max-width: 46ch; }
.home-col .home-note { color: var(--dim); font-size: var(--fs-s); }
.home-col dd.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-more { align-self: flex-start; text-decoration: none; font-weight: 500; }
.home-more:hover { text-decoration: underline; }
/* Sample files in the scores picture: flat shapes, like the sample data. */
.shape { display: block; width: 28px; height: 28px; border-radius: var(--radius-s); background: #ede8dc; position: relative; }
.shape::after { content: ''; position: absolute; inset: 7px; }
.shape.circle::after { border-radius: 50%; background: #f0949a; }
.shape.square::after { inset: 8px; background: #8ccbc0; }
.shape.triangle::after { inset: 7px 6px; background: #f5c9a0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.home-agree { padding: 14px; gap: var(--s3); }
.agree-top { display: flex; align-items: baseline; gap: 10px; }
.agree-top b { font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; }
.agree-top span { color: var(--dim); font-size: var(--fs-s); }
.agree-bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.agree-bar i { display: block; height: 100%; background: #7fd39a; }

/* Signed in: your recent runs, or the first steps, above the rest. */
/* Your recent runs: a card with the temper scale along its top, so it reads as yours,
   apart from the page about the product below it; runs and trainings side by side. */
.home-recent { gap: var(--s3); }
.home-recent-card { position: relative; display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5) var(--s5) var(--s5);
    background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-l); overflow: hidden; }
.home-recent-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--t1), var(--t2) 33%, var(--t3) 66%, var(--t4)); }
.home-recent .home-h { font-size: var(--fs-2xl); }
.home-recent-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); align-items: start; }
.home-recent-col { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.home-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.home-recent-head h3 { margin: 0; font-size: var(--fs-m); font-weight: 600; color: #c9cfd2; }
.home-recent-head a { font-size: var(--fs-s); text-decoration: none; }
.home-recent-head a:hover { text-decoration: underline; }
.home-recent .empty-state { padding: var(--s4); }
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.start-step { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s3); row-gap: var(--s3);
    padding: var(--s4); border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--panel); }
.start-step > button { grid-column: 2; justify-self: start; }
.start-step b { font-weight: 600; }
.start-step p { margin: 2px 0 0; }
.start-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-s); color: var(--bg); background: var(--t1); }
.start-step:nth-child(2) .start-n { background: var(--t2); }
.start-step:nth-child(3) .start-n { background: var(--t4); color: #fff; }

@media (max-width: 860px) {
    .home-recent-cols { grid-template-columns: minmax(0, 1fr); }
    .home-recent-card { padding: var(--s4); }
    .home-recent .home-h { font-size: var(--fs-xl); }
    .home { gap: 48px; padding-top: var(--s4); }
    .hero { gap: 32px; grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: 34px; }
    .home-h { font-size: 24px; }
    /* The panels run to the screen's edges (out through #actions' padding), so their content keeps the width. */
    .home-band { margin: 0 calc(-1 * (var(--s3) + env(safe-area-inset-right))) 0 calc(-1 * (var(--s3) + env(safe-area-inset-left)));
        padding: var(--s5) calc(var(--s3) + env(safe-area-inset-right)) var(--s4) calc(var(--s3) + env(safe-area-inset-left));
        border-radius: 0; border-left: 0; border-right: 0; }
    .home-option { padding: var(--s4); }
}
