/* Story panels share the hero's coastal palette and architectural proportions. */
.home-problem,
.home-morning,
.home-canada {
    --panel-surface: var(--brand-neutral);
    --panel-text: var(--brand-navy);
    --panel-secondary: var(--brand-slate);
    --panel-line: color-mix(in srgb, var(--brand-slate) 22%, var(--brand-neutral));
    --panel-label: var(--brand-navy);
    --panel-pad: clamp(28px, 3.4vw, 44px);
}

.story-panel {
    --text: var(--panel-text);
    --text-secondary: var(--panel-secondary);
    position: relative;
    isolation: isolate;
    min-width: 0;
    color: var(--text);
    border: 1px solid var(--panel-line);
    border-radius: 4px;
}

.panel-photo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--brand-navy);
}

.panel-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The opening problem reads as one account, with its human consequence beside it. */
.disconnect-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .44fr);
    background: var(--panel-surface);
}
.disconnect-story { padding: var(--panel-pad); }
.disconnect-chapter { max-width: 74ch; padding: 23px 0; }
.disconnect-chapter:first-child { padding-top: 0; }
.disconnect-chapter:last-child { padding-bottom: 0; }
.disconnect-chapter + .disconnect-chapter { border-top: 1px solid var(--panel-line); }
.disconnect-chapter h3 { margin-bottom: 9px; font-size: 1.125rem; line-height: 1.45; letter-spacing: -.015em; }
.disconnect-chapter p { color: var(--text-secondary); font-size: .9375rem; line-height: 1.75; }
.disconnect-aside {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    min-width: 0;
    border-radius: 0 3px 3px 0;
    background: var(--brand-navy);
    color: var(--brand-neutral);
}
.disconnect-photo { aspect-ratio: 3 / 2; border-radius: 0 3px 0 0; }
.disconnect-photo img { object-position: center 10%; }
.disconnect-aside p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    padding: 24px;
    font-size: .9375rem;
    line-height: 1.6;
}
.disconnect-aside strong {
    display: block;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.9vw, 1.65rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.03em;
    text-wrap: balance;
}

/* The morning follows a chronological timeline beside the coastal photograph. */
.morning-panel {
    display: grid;
    grid-template-columns: minmax(0, .44fr) minmax(0, 1fr);
    background: var(--panel-surface);
}

.morning-photo {
    grid-column: 1;
    grid-row: 1;
    border-radius: 3px 0 0 3px;
}

.morning-notes {
    grid-column: 2;
    grid-row: 1;
    padding: var(--panel-pad);
}

.morning-timeline { display: grid; }
.morning-moment {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 5px 28px;
    padding: 24px 0;
}
.morning-moment:first-child { padding-top: 0; }
.morning-heading .sec-sub strong { color: var(--text); font-weight: 600; }
.morning-moment:nth-child(2) > strong { color: var(--panel-label); }
.morning-moment > p strong { font-weight: 600; color: var(--text); }
.morning-moment + .morning-moment { border-top: 1px solid var(--panel-line); }
.morning-stamp { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 8px; }
.morning-stamp time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--panel-label);
}
.morning-label { max-width: 16ch; font-size: .75rem; font-weight: 650; letter-spacing: .035em; line-height: 1.5; }
.morning-moment > strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.morning-moment > p { grid-column: 2; max-width: 54ch; color: var(--text-secondary); font-size: .9375rem; line-height: 1.7; }
.morning-outcome {
    margin: 4px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--panel-line);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.7;
}

/* Product screenshots have their own solid presentation surface. */
.product-panel {
    margin-top: clamp(64px, 7vw, 96px);
    padding-top: var(--panel-pad);
    background: var(--panel-surface);
}
.product-heading,
.review-heading {
    max-width: 760px;
    margin: 0 auto;
    padding-inline: 24px;
    text-align: center;
}
.product-heading .proof-kicker,
.review-heading .proof-kicker { color: var(--panel-label); }
.product-heading { padding-bottom: var(--panel-pad); scroll-margin-top: 116px; }
.product-heading > h3,
.review-heading > h3 {
    max-width: 28ch;
    margin-inline: auto;
    font-size: clamp(1.75rem, 2.65vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.product-heading > p,
.review-heading > p { margin-top: 16px; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.product-spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--panel-line);
}
.product-spread .proof-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    padding: clamp(24px, 3vw, 36px);
    border: 0;
}
.product-spread .proof-row + .proof-row { border-top: 1px solid var(--panel-line); }
.product-spread .proof-row:nth-child(2) {
    --panel-surface: var(--brand-navy);
    --text: var(--brand-neutral);
    --text-secondary: var(--brand-neutral);
    --panel-line: color-mix(in srgb, var(--brand-neutral) 22%, var(--brand-navy));
    --panel-label: var(--brand-neutral);
    background: var(--brand-navy);
    box-shadow: inset 0 3px 0 var(--accent);
}
.product-spread .proof-row:nth-child(even) .feature-panel-copy,
.product-spread .proof-row:nth-child(even) .feature-panel-visual { order: initial; }
.product-spread .feature-panel-copy { max-width: 65ch; }
.product-spread .feature-panel-copy h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em; margin-bottom: 16px; }
.product-spread .feature-panel-copy > p { font-size: 1rem; line-height: 1.75; }
.product-spread .proof-kicker { color: var(--panel-label); font-size: .875rem; line-height: 1.7; letter-spacing: 0; text-transform: none; }
.product-spread .proof-screenshot {
    position: relative;
    width: min(100%, 380px);
    height: auto;
    min-height: 0;
    align-self: center;
    justify-self: end;
    padding: 12px 12px 40px;
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    background: var(--panel-surface);
    box-shadow: none;
}
.product-spread .proof-screenshot::after {
    content: "View full-size screenshot";
    position: absolute;
    inset-inline: 12px;
    bottom: 12px;
    color: var(--text);
    font-size: .8125rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-spread .product-feature-image { position: static; width: 100%; height: auto; aspect-ratio: 2373 / 1666; max-width: 100%; max-height: none; margin: 0; border-radius: 3px; box-shadow: none; }

/* Canadian context is enclosed in a quiet continuation of the navy hero. */
.canada-panel {
    --text: var(--brand-neutral);
    --text-secondary: var(--brand-neutral);
    --panel-line: color-mix(in srgb, var(--brand-neutral) 22%, var(--brand-navy));
    display: grid;
    grid-template-columns: minmax(0, .36fr) minmax(0, 1fr);
    background: var(--brand-navy);
    color: var(--text);
}
.canada-photo { border-radius: 3px 0 0 3px; }
.canada-workflows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 36px;
    padding: var(--panel-pad);
}
.canada-workflow { min-width: 0; padding-top: 16px; border-top: 1px solid var(--panel-line); }
.canada-workflow h4 { font-size: 1.125rem; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; }
.canada-workflow p { max-width: 43ch; margin-top: 10px; color: var(--text-secondary); font-size: .9375rem; line-height: 1.75; }

/* Review uses the exact neutral and navy brand surfaces. */
.review-workspace {
    --text: var(--brand-navy);
    --text-secondary: var(--brand-slate);
    --panel-line: color-mix(in srgb, var(--brand-slate) 24%, var(--brand-neutral));
    --panel-label: var(--brand-navy);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .36fr);
    margin-top: clamp(64px, 7vw, 96px);
    padding: var(--panel-pad);
    gap: 36px 40px;
    background: var(--brand-neutral);
    border-color: var(--panel-line);
    color: var(--text);
}
.review-heading { grid-column: 1 / -1; padding: 0; }
.review-photo { grid-column: 2; grid-row: 2; border-radius: 2px; }
.review-principles { grid-column: 1; grid-row: 2; display: grid; gap: 26px; }
.review-principle { padding-top: 18px; border-top: 1px solid var(--panel-line); }
.review-principle h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; margin-bottom: 9px; letter-spacing: -.015em; }
.review-principle p { max-width: 76ch; color: var(--text-secondary); font-size: .9375rem; line-height: 1.75; }
.review-workspace .beta-reporting-note i { color: var(--text-secondary); }
.review-workspace .beta-reporting-note {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--panel-line);
    text-align: center;
    font-size: .8125rem;
    line-height: 1.75;
}

[data-theme="dark"] .home-problem,
[data-theme="dark"] .home-morning,
[data-theme="dark"] .home-canada {
    --panel-surface: var(--brand-navy);
    --panel-text: var(--brand-neutral);
    --panel-secondary: var(--brand-neutral);
    --panel-line: color-mix(in srgb, var(--brand-neutral) 22%, var(--brand-navy));
    --panel-label: var(--brand-neutral);
}
[data-theme="dark"] .product-spread .proof-row:nth-child(2) {
    --panel-surface: var(--brand-navy);
    background: var(--brand-navy);
}
[data-theme="dark"] .morning-panel { background: var(--brand-navy); }
[data-theme="dark"] .review-workspace {
    --text: var(--brand-neutral);
    --text-secondary: var(--brand-neutral);
    --panel-line: color-mix(in srgb, var(--brand-neutral) 22%, var(--brand-navy));
    --panel-label: var(--brand-neutral);
    background: var(--brand-navy);
}

@media (max-width: 1100px) {
    .morning-moment { grid-template-columns: 106px minmax(0, 1fr); column-gap: 20px; }
    .canada-workflows, .review-principles { gap: 28px; }
    .review-workspace { column-gap: 28px; }
}

@media (max-width: 760px) {
    .product-spread { display: block; }
    .product-spread .proof-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
    .product-spread .proof-row + .proof-row { border-left: 0; border-top: 1px solid var(--panel-line); }
    .product-spread .proof-screenshot { justify-self: start; padding: 12px 12px 40px; }
    .product-spread .product-feature-image { max-width: 100%; }
}

@media (max-width: 760px) {
    .disconnect-panel { grid-template-columns: minmax(0, 1fr); }
    .disconnect-aside { grid-template-rows: 180px auto; border-radius: 0 0 3px 3px; }
    .disconnect-photo { height: 180px; aspect-ratio: auto; border-radius: 0; }
    .disconnect-aside p { max-width: none; }
    .disconnect-aside strong { max-width: 25ch; margin-top: 10px; }
    .morning-panel, .canada-panel, .review-workspace { grid-template-columns: minmax(0, 1fr); }
    .morning-notes { grid-column: 1; grid-row: 1; }
    .morning-photo { grid-column: 1; grid-row: 2; height: 164px; border-radius: 0 0 3px 3px; }
    .morning-photo img { object-position: center 42%; }
    .canada-photo { grid-column: 1; grid-row: 2; height: 164px; border-radius: 0 0 3px 3px; }
    .canada-photo img { object-position: center 52%; }
    .canada-workflows { grid-column: 1; grid-row: 1; }
    .review-photo { grid-column: 1; grid-row: 3; height: 164px; }
    .review-photo img { object-position: center 62%; }
    .review-principles { grid-column: 1; grid-row: 2; }
    .review-workspace .beta-reporting-note { grid-row: 4; }
    .product-heading, .review-heading { padding-inline: 0; }
    .product-heading { padding-inline: 24px; }
    .product-spread .proof-row { padding: 26px 20px; }
}

@media (max-width: 480px) {
    .home-problem, .home-morning, .home-canada { --panel-pad: 24px; }
    .morning-moment { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
    .morning-stamp { grid-row: auto; flex-direction: row; align-items: baseline; gap: 12px; }
    .morning-stamp time { font-size: 1.25rem; }
    .morning-label { max-width: none; }
    .morning-moment > p { grid-column: 1; }
    .canada-workflows, .review-principles { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .review-workspace { row-gap: 28px; }
    .morning-photo, .canada-photo, .review-photo { height: 140px; }
}

/* Each illustration belongs to one moment in the story. */
.story-art {
    position: absolute;
    z-index: 0;
    display: block;
    width: 132px;
    height: 132px;
    overflow: hidden;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.art-soft { fill: currentColor; fill-opacity: .055; stroke-opacity: .6; }
.art-line { stroke-opacity: .75; }
.art-detail { stroke-opacity: .35; }
.art-accent { stroke-width: 3; }
.disconnect-aside { position: relative; }
.disconnect-aside p { position: relative; z-index: 1; }
.art-conversation { right: 5px; bottom: 7px; width: 94px; height: 84px; opacity: .8; }
.disconnect-story { box-shadow: inset 3px 0 var(--accent); }
.art-coffee { position: static; width: 65px; height: 45px; margin-top: 5px; }
.morning-panel { border-top: 3px solid var(--accent); }
.product-heading,
.product-spread,
.canada-workflow,
.review-heading,
.review-principles { position: relative; z-index: 1; }
.art-evidence { top: 12px; right: 18px; }
.canada-workflows { position: relative; }
.art-neighbourhood { top: 2px; right: 12px; width: 78px; height: 57px; }
.canada-workflow::before,
.review-principle::before {
    content: "";
    display: block;
    width: 22px;
    height: 3px;
    margin-top: -18px;
    margin-bottom: 15px;
    background: var(--accent);
}
.art-decision { left: 18px; top: 6px; width: 120px; height: 120px; }
@media (max-width: 1100px) {
    .art-evidence { width: 86px; height: 86px; right: 8px; }
    .art-decision { width: 80px; height: 80px; left: 8px; }
}
@media (max-width: 760px) {
    .art-evidence,
    .art-decision { width: 42px; height: 42px; top: 2px; }
    .art-neighbourhood { width: 52px; height: 38px; top: 0; right: 0; }
    .art-conversation { width: 76px; height: 68px; opacity: .45; }
}
@media (max-width: 480px) {
    .art-coffee { width: 42px; height: 29px; margin: 0 0 0 auto; }
}

.product-heading a[href="#capabilities"] {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-heading a[href="#capabilities"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.capability-reference {
    display: block;
    border-top: var(--rule);
}

.capability-group {
    min-width: 0;
    border-bottom: var(--rule);
}
.capability-group summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 80px; padding: 24px 4px; list-style: none; cursor: pointer; }
.capability-group summary::-webkit-details-marker { display: none; }
.capability-group summary:hover { color: var(--text-secondary); }
.capability-group summary i { font-size: 1.125rem; transition: transform .15s ease; }
.capability-group[open] summary i { transform: rotate(45deg); }
.capability-group h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    line-height: 1.35;
}

.capability-list { list-style: none; padding-bottom: 28px; }

.capability-list li {
    display: grid;
    grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
    gap: 24px;
    padding: 18px 4px;
    border-top: var(--rule);
}

.capability-list strong {
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.45;
}

.capability-list span {
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .capability-reference { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .capability-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
