/* Shared layout for marketing pages under demo/index-v2/
 * Type system: typography tab = tokens.css + demo/typography-utilities.css; marketing uses
 * the same scales via vars like --marketing-hero-* and composing selectors below. */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.m-sub-hero {
    /* Top padding clears fixed navbar; extra --space-8 ≈ doubles visible gap navbar→eyebrow vs former 100px-only offset */
    padding: calc(100px + var(--space-8)) 0 0;
}

.m-sub-hero .container {
    padding-bottom: calc(var(--space-12) + var(--space-2));
}

/* Standalone pricing page: section sits directly under fixed navbar — match .m-sub-hero top padding */
html.marketing-site body > .pricing-section {
    padding-top: calc(100px + var(--space-8));
}

.m-eyebrow {
    display: block;
    /* Typography tab: Label */
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    letter-spacing: var(--letter-spacing-overline-wide);
    text-transform: uppercase;
    color: var(--cyan-600);
    margin-bottom: var(--space-3);
}

/* TYPE 1 / hub heroes — fluid band (marketing tokens) */
.m-title {
    font-family: var(--font-display);
    font-size: var(--marketing-hero-font-size);
    font-weight: var(--marketing-hero-font-weight);
    line-height: var(--marketing-hero-line-height);
    letter-spacing: var(--marketing-hero-letter-spacing);
    color: var(--marketing-hero-color);
    max-width: 820px;
    margin: 0 0 var(--space-4);
}

/* TYPE 2 feature pages — match Typography Display 2 (fixed scale, neutral tracking) */
.m-t2-title {
    font-family: var(--font-display);
    font-size: var(--font-size-display-2);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: normal;
    color: var(--slate-900);
    max-width: 820px;
    margin: 0 0 var(--space-4);
}

@media (max-width: 640px) {
    .m-t2-title {
        font-size: var(--font-size-metric);
    }
}

.m-lead {
    /* Typography: Body large */
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--slate-700);
    max-width: 720px;
    margin: 0;
}

.m-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-5);
}

.m-value-section {
    padding: 72px 0 56px;
}

.m-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 900px) {
    .m-value-grid {
        grid-template-columns: 1fr;
    }
}

/* Teams page groups (board 39, R-0212): three equal tracks, one column at 968 and below; no card spans.
   After the 900px rule so the 968 rule wins at equal specificity. */
.m-value-grid--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 968px) { .m-value-grid--cols3 { grid-template-columns: minmax(0, 1fr); } }
.m-team-group-title {
    margin: var(--space-8) 0 var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    letter-spacing: var(--letter-spacing-overline-wide);
    text-transform: uppercase;
    color: var(--slate-700);
}
.m-t2-section .container > .m-team-group-title:first-child { margin-top: 0; }

/* Card titles keep one look at any outline level (HANDOFF-39 outline rule): a card directly under a
   section h2 titles with h3, a person card under a group h3 titles with h4. */
.m-value-card h2,
.m-value-card > h3,
.m-person-card__head :is(h3, h4) {
    font-family: var(--font-display);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    color: var(--slate-900);
    margin: 0 0 var(--space-3);
    letter-spacing: var(--letter-spacing-tight);
}

.m-value-card p {
    margin: 0;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.65;
    color: var(--slate-700);
}

/* Linked card title (Core concepts hub): the title keeps the card's h2 look; hover matches R-HUB links. */
.m-value-card h2 a {
    color: inherit;
    text-decoration: none;
}

.m-value-card h2 a:hover {
    color: var(--cyan-600);
    text-decoration: underline;
}

.m-value-card dfn {
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    color: var(--slate-900);
}

.m-proof-section {
    padding: 56px 0 72px;
    background: var(--gray-50, #f8fafc);
    border-top: 1px solid var(--border-color);
}

.m-proof-section .m-proof-inner {
    max-width: 720px;
}

.m-proof-section p {
    margin: 0 0 var(--space-4);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--slate-700);
}

.m-proof-section p:last-child {
    margin-bottom: 0;
}

.m-proof-quote {
    margin: 0 0 var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-left: 4px solid var(--cyan-500);
    background: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.m-proof-quote p {
    margin: 0;
    font-size: var(--font-size-body-lg);
    font-style: italic;
    font-weight: var(--font-weight-regular);
    color: var(--slate-900);
    line-height: 1.6;
}

.m-proof-attribution {
    margin-top: var(--space-3);
    font-size: var(--font-size-body-sm);
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    color: var(--slate-600);
}

/* TYPE 5 hub pages */
.m-hub-intro {
    padding: 100px 0 48px;
}

.m-hub-intro h1 {
    font-family: var(--font-display);
    font-size: var(--marketing-hero-font-size);
    font-weight: var(--marketing-hero-font-weight);
    line-height: var(--marketing-hero-line-height);
    color: var(--marketing-hero-color);
    margin: 0 0 var(--space-5);
    letter-spacing: var(--marketing-hero-letter-spacing);
}

.m-hub-intro > .m-hub-lead {
    max-width: 720px;
}

.m-hub-intro p {
    margin: 0 0 var(--space-4);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--marketing-body-color);
}

.m-hub-intro p:last-child {
    margin-bottom: 0;
}

.m-feature-index {
    padding: 48px 0 96px;
}

.m-feature-bucket {
    margin-bottom: var(--space-8);
}

.m-feature-bucket:last-child {
    margin-bottom: 0;
}

.m-feature-bucket h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    color: var(--slate-900);
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.m-feature-bucket ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
}

.m-feature-bucket li {
    margin: 0;
}

.m-feature-bucket a {
    display: block;
    text-decoration: none;
    color: var(--cyan-600);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-body);
}

.m-feature-bucket a:hover {
    text-decoration: underline;
}

.m-feature-bucket .m-feature-desc {
    display: block;
    margin-top: var(--space-1);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-body-sm);
    color: var(--slate-600);
    line-height: 1.5;
}

.m-placeholder-card {
    margin-top: var(--space-6);
    padding: var(--space-6);
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--gray-50, #f8fafc);
    color: var(--slate-600);
    font-size: var(--font-size-body);
}

/* TYPE 2 — use-case / feature story pages */
.m-t2-hero {
    /* Nav clearance plus space below nav bar (matches inset above border rule) */
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: 0;
}

.m-t2-hero .container {
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border-color);
}

.m-t2-sub {
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--slate-700);
    max-width: 720px;
    margin: 0;
}

.m-t2-section {
    padding: 56px 0;
}

.m-t2-section--muted {
    background: var(--gray-50, #f8fafc);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.m-t2-h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    color: var(--slate-900);
    margin: 0 0 var(--space-4);
    letter-spacing: var(--letter-spacing-tight);
}

.m-t2-prose {
    margin: 0;
    max-width: 720px;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--marketing-body-color);
}

/* Block flow inside a section (DSE, Nov 18): any two stacked t2 blocks get one shared gap, the same --space-6 the value grid uses between cards. The h2 keeps its own margin-bottom. */
.m-t2-section .container > :is(.m-t2-prose, .m-value-grid, .m-value-card, .m-t2-steps, .m-t2-get) + :is(.m-t2-prose, .m-value-grid, .m-value-card, .m-t2-steps, .m-t2-get, .m-t2-related) {
    margin-top: var(--space-6);
}

/* A lone value card in a t2 section sits in the 720px prose column (Designer, Nov 18: Teams Leadership). */
.m-t2-section .container > .m-value-card {
    max-width: 720px;
}

.m-t2-steps,
.m-t2-get {
    margin: 0;
    padding-left: var(--space-6);
    max-width: 720px;
}

.m-t2-steps li,
.m-t2-get li {
    margin-bottom: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.65;
    color: var(--marketing-body-color);
}

.m-t2-steps li:last-child,
.m-t2-get li:last-child {
    margin-bottom: 0;
}

.m-t2-related-wrap {
    padding-bottom: 72px;
}

.m-t2-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
}

.m-t2-related a {
    font-weight: var(--font-weight-semibold);
    color: var(--cyan-600);
    text-decoration: none;
    font-size: var(--font-size-body);
}

.m-t2-related a:hover {
    text-decoration: underline;
}

.m-t2-related a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

/* A link row right under a hero lead or a role band list (who-this-is-for): same gap as the hero button row (.m-hero-btns). */
:is(.m-lead, .hiw-band-list) + .m-t2-related {
    margin-top: var(--space-5);
}

/* Site map (index-v2/site-map/) */
.page-site-map .m-proof-section {
    padding: var(--space-12) 0 var(--space-16);
}

.site-map {
    max-width: 48rem;
}

.site-map-block {
    margin-bottom: var(--space-10);
}

.site-map-block:last-child {
    margin-bottom: 0;
}

.site-map .m-t2-h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-4);
}

.site-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.site-map-list a {
    font-family: var(--font-display);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--cyan-600);
    text-decoration: none;
}

.site-map-list a:hover {
    color: var(--cyan-500);
    text-decoration: underline;
    text-underline-offset: var(--space-1);
}

.site-map-list a[aria-current="page"] {
    color: var(--slate-900);
    font-weight: var(--font-weight-semibold);
}

/* ---------------------------------------------------------------
   m-person-card: shared marketing person card (SSOT 4.65).
   An .m-value-card whose title row carries a 48px avatar to the left
   of the role title (owner ask Nov 19, 2026, 9:13 AM PT; gold
   demo/index-v2/teams/index.html). Not .profile-avatar (96px app hero)
   and not .directory-avatar (32px initials in a table row).
   --------------------------------------------------------------- */
.m-person-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
}

.m-person-card__avatar {
    width: var(--space-12);
    height: var(--space-12);
    border-radius: var(--kb-radius-full);
    flex-shrink: 0;
    object-fit: cover;
}

.m-person-card__head :is(h2, h3, h4) {
    margin: 0;
}

/* ===== Jump links (SSOT 4.64) ===== */
@media (prefers-reduced-motion: no-preference) {
    html.marketing-site { scroll-behavior: smooth; }
}
.m-jump-target { scroll-margin-top: var(--marketing-fixed-nav-clearance); }
.m-jump-links__list { list-style: none; margin: 0; padding: 0; }
.m-jump-links__link { text-decoration: none; }
.m-jump-links__link:focus:not(:focus-visible) { outline: none; }
.m-jump-links__link:hover,
.m-jump-links__link:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }

@media (min-width: 641px) {
    .m-jump-links { position: absolute; inset: 0; pointer-events: none; }
    .m-jump-links__item { position: absolute; left: var(--jump-x); top: var(--jump-y); width: var(--jump-w); height: var(--jump-h); }
    .m-jump-links__link { position: absolute; inset: 0; display: block; border-radius: var(--radius-md); pointer-events: auto; }
    .m-jump-links__name {
        position: absolute; left: 50%; bottom: calc(100% + var(--space-2)); transform: translateX(-50%); white-space: nowrap;
        padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); background: var(--slate-800); color: var(--white);
        font-size: var(--font-size-body-sm); font-weight: var(--font-weight-semibold);
        opacity: 0; visibility: hidden; pointer-events: none; z-index: 1;
        transition: opacity var(--duration-fast) var(--ease-out);
    }
    .m-jump-links__link:hover .m-jump-links__name,
    .m-jump-links__link:focus-visible .m-jump-links__name { opacity: 1; visibility: visible; }
}
@media (min-width: 641px) and (prefers-reduced-motion: reduce) {
    .m-jump-links__name { transition: none; }
}

@media (max-width: 640px) {
    .m-jump-links { margin-top: var(--space-4); }
    .m-jump-links__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
    .m-jump-links__link {
        display: inline-flex; align-items: center; min-height: var(--space-10); padding: 0 var(--space-4);
        border: 1px solid var(--slate-200); border-radius: var(--radius-pill); background: var(--white); color: var(--slate-700);
        font-size: var(--font-size-body-sm); font-weight: var(--font-weight-semibold);
    }
    .m-jump-links__link:hover { background: var(--slate-50); border-color: var(--cyan-600); color: var(--cyan-700); }
}
