.analyze-page {
    --analyze-paper: #fbf8f3;
    --analyze-ink: #292722;
    --analyze-muted: #5b564e;
    --analyze-rule: #ded5c9;
    --analyze-stress-paper: #f1e2df;
    --analyze-accent: #69413e;
    color: var(--analyze-ink);
    background: var(--analyze-paper);
    line-height: 1.58;
}

.analyze-page main .container { max-width: 1220px; padding-inline: clamp(20px, 4vw, 52px); }
.analyze-page section[id],
#main { scroll-margin-top: 90px; }

.analyze-page h1,
.analyze-page h2,
.analyze-page h3 {
    color: inherit;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0;
}

.analyze-page h1 { font-size: clamp(2.65rem, 5.5vw, 5.35rem); font-weight: 800; }
.analyze-page h2 { font-size: clamp(1.85rem, 3.7vw, 3.3rem); font-weight: 750; text-wrap: balance; }
.analyze-page h3 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); font-weight: 700; }
.analyze-page :is(a, summary):focus-visible { outline: 3px solid #0b6487; outline-offset: 4px; }

.analyze-skip {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 20;
    padding: .5rem .9rem;
    background: #fff;
    color: var(--analyze-ink);
}

.analyze-skip:focus { top: .75rem; }

.analyze-hero { padding: clamp(2rem, 6vw, 5.5rem) 0; }
.analyze-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
}

.analyze-hero-copy > p {
    max-width: 42ch;
    margin: 1.25rem 0;
    color: var(--analyze-muted);
    font-size: clamp(1.05rem, 1.65vw, 1.26rem);
}

.analyze-text-link {
    display: inline-block;
    color: var(--analyze-accent);
    font-weight: 700;
    text-underline-offset: .2em;
}

.analyze-cover {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(17rem, 38vw, 30rem);
    isolation: isolate;
    overflow: hidden;
    border-radius: 45% 45% 1.5rem 1.5rem / 29% 29% 1.5rem 1.5rem;
    background: #364b43;
    color: #fff;
}

.analyze-cover img,
.analyze-cover::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.analyze-cover img { object-fit: cover; object-position: center 52%; z-index: -2; }
.analyze-cover::after { content: ''; background: linear-gradient(transparent 38%, #141c18e6); z-index: -1; }
.analyze-cover figcaption { padding: clamp(1.25rem, 4vw, 2.5rem); }
/* Let the whole report cover open the same example as the text link. */
.analyze-cover a { display: grid; gap: .3rem; padding-inline-end: 2.2rem; color: inherit; text-decoration: none; }
.analyze-cover a::after { content: ''; position: absolute; inset: 0; }
.analyze-cover figcaption::after {
    content: '';
    position: absolute;
    inset-inline-end: clamp(1.3rem, 4vw, 2.5rem);
    bottom: clamp(1.6rem, 4vw, 2.7rem);
    width: .65rem;
    height: .65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}
.analyze-cover:focus-within { outline: 3px solid #0b6487; outline-offset: 4px; }
.analyze-cover a:hover strong, .analyze-cover a:focus-visible strong { text-decoration: underline; text-underline-offset: .15em; }
.analyze-cover span { font-size: .94rem; }
.analyze-cover strong { max-width: 20ch; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.15; }

.analyze-block { padding-top: clamp(3rem, 7vw, 5.75rem); padding-bottom: clamp(3rem, 7vw, 5.75rem); }
.analyze-block-heading { margin-bottom: clamp(1.5rem, 4vw, 2.8rem); }

.analyze-path { max-width: 67ch; color: var(--analyze-muted); }

.analyze-view-list p { color: var(--analyze-muted); margin-top: .6rem; }

.analyze-plan {
    display: grid;
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
    align-items: baseline;
    gap: .65rem 1.75rem;
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3.6vw, 2.25rem);
    border-radius: 1.2rem;
    background: #eee8da;
}

.analyze-sample {
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: #ede8df;
}

.sample-report {
    overflow: hidden;
    border: 1px solid #d4cbbd;
    border-radius: 1.5rem;
    background: #fffcf7;
}

.sample-report-head {
    padding: clamp(1.4rem, 4vw, 3rem) clamp(1.1rem, 5vw, 4rem);
    background: #213d36;
    color: #fffdf5;
}

.sample-report-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem 1rem;
    margin-bottom: 1.1rem;
    color: #deebe2;
    font-size: .92rem;
    line-height: 1.4;
}

.sample-report-meta strong { color: #fffdf5; }
.sample-report-meta span { padding-inline-start: 1rem; border-inline-start: 1px solid #8da299; }
.sample-report-head h2 { max-width: 29ch; font-size: clamp(1.85rem, 3.5vw, 3rem); text-wrap: pretty; }

.sample-report-body,
.sample-report-end {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.7rem, 5vw, 4.5rem);
    padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.1rem, 5vw, 4rem);
}
.sample-report-body h3,
.report-pattern h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.sample-report fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.sample-report legend { max-width: 100%; padding: 0; }

.report-factors ol { margin-top: 1rem; list-style: none; }
.report-factors li {
    display: grid;
    grid-template-columns: minmax(3.2rem, max-content) minmax(0, 1fr);
    align-items: baseline;
    column-gap: .8rem;
    padding: .9rem 0;
    border-top: 1px solid var(--analyze-rule);
}
.sample-report time {
    color: var(--analyze-muted);
    font-size: .9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.report-factors li p { margin-top: .25rem; line-height: 1.45; }
.report-factor-direction { font-size: .88rem; font-weight: 700; }
.report-factor-direction.rising { color: #803e37; }
.report-factor-direction.easing { color: #36604e; }
.report-factor-direction span { font-size: 1.12em; }

.report-choice {
    align-self: start;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border: 1px solid #e3d5c9;
    border-radius: 1rem;
    background: #f4eee7;
}
.report-choice legend time,
.report-choice legend > span { display: block; }
.report-choice legend time { margin: .9rem 0 .18rem; }
.report-choice legend > span { font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.report-choice fieldset > p { margin: .65rem 0 .75rem; color: var(--analyze-muted); font-size: .92rem; line-height: 1.44; }
.report-choice label,
.report-habits label {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    min-height: 2.75rem;
    padding: .65rem .75rem;
    border: 1px solid #d9cfc4;
    border-radius: .6rem;
    background: #fffdf9;
    color: #39372f;
    font-size: .95rem;
    line-height: 1.4;
    cursor: pointer;
}
.report-choice label + label,
.report-habits label + label { margin-top: .35rem; }
.sample-report input { align-self: flex-start; flex: 0 0 auto; width: 1rem; height: 1rem; margin: .13rem 0 0; accent-color: #285742; }
.sample-report label:has(:checked) { background: #dfece1; border-color: #72947f; }
.sample-report label:has(:focus-visible) { outline: 3px solid #0b6487; outline-offset: 2px; }
.sample-report label:hover { border-color: #82867a; }

.sample-report-end { border-top: 1px solid #d6d9cc; background: #eaf0e8; }
.report-pattern > p:first-child { margin-bottom: .35rem; color: #486050; font-size: .9rem; font-weight: 700; }
.report-pattern > p:last-child { margin-top: .65rem; line-height: 1.5; }
.report-habits legend { margin-bottom: .65rem; color: #2d4233; font-weight: 700; line-height: 1.4; }
.report-habits > p { margin-bottom: .65rem; }
.sample-ai-note {
    max-width: 75ch;
    margin: .75rem 0 0;
    color: #545a50;
    font-size: .8125rem;
    font-style: italic;
    line-height: 1.5;
}
.report-habits label { background: #f6f8f2; border-color: #cbd6ca; }
.report-habits label:has(:checked) span { text-decoration: line-through; }

.analyze-areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.analyze-areas li { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--analyze-rule); border-radius: 1.15rem; background: #fffdfa; }
.analyze-areas img { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; background: #e4d9cd; }
.analyze-areas li > div { padding: .9rem 1.05rem 1.15rem; }
.analyze-areas p { margin-top: .45rem; color: var(--analyze-muted); font-size: .94rem; }

.analyze-views { background: #edece3; }
.analyze-view-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem clamp(1rem, 3.5vw, 2.75rem); }
.analyze-view-list > div { padding-top: 1rem; border-top: 1px solid #c9c6b8; }
.analyze-page .download-section h2 { margin-bottom: 1.45rem; color: #fff; }
.analyze-page .download-section p { margin-top: 0; }

@media (max-width: 760px) {
    .analyze-hero-grid,
    .sample-report-body,
    .sample-report-end,
    .analyze-plan { grid-template-columns: minmax(0, 1fr); }
    .sample-report-body, .sample-report-end { gap: 1.25rem; }
    .analyze-cover { min-height: clamp(17rem, 65vw, 26rem); }
    .analyze-view-list { grid-template-columns: minmax(0, 1fr); }
    .analyze-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 410px) {
    .analyze-areas { gap: .65rem; }
    .analyze-areas li > div { padding: .65rem .65rem .8rem; }
    .analyze-areas h3 { font-size: 1rem; }
    .analyze-areas p { font-size: .875rem; }
}

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