/*
  Intercom system spec for the design bank component library.
  Source: source/claude-design-systems/intercom/project/README.md and tokens.json.
  Values without a comment come from the guide or tokens.json.
  Values marked "from live site" were measured from reference/intercom-live-*.jpg.
  Font stand-ins: Saans -> Geist, Serrif -> Source Serif 4, SaansMono -> Geist Mono.
*/

:root {
  /* Colour roles */
  --c-bg: #faf9f6;                 /* Warm Cream canvas */
  --c-surface: #ffffff;            /* Pure White surface */
  --c-surface-2: #f2f0eb;          /* from live site: tinted panels and active feature rows */
  --c-inverse: #111111;            /* Off Black */
  --c-on-inverse: #ffffff;
  --c-fg: #111111;
  --c-fg-2: #111111;               /* tokens.json fg-2 = fg */
  --c-muted: #626260;              /* Black 60. The guide's muted #7b7b78 is 4.03:1 on cream, so it is kept for large text only (see --x-dim) */
  --c-border: #dedbd6;             /* Oat Border */
  --c-accent: #ff5600;             /* Fin Orange */
  --c-on-accent: #ffffff;
  --c-accent-hover: #e44c00;
  --c-link: #111111;
  --c-focus: 0 0 0 3px #ff5600;    /* tokens focus-ring is 3px at 30% orange, made solid to pass 3:1 non-text contrast */

  /* Type families */
  --f-display: "Geist", "Saans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-body: "Geist", "Saans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: "Geist Mono", "SaansMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-serif: "Source Serif 4", "Serrif", ui-serif, Georgia, serif;
  --f-features: normal;

  /* Type roles */
  --t-display-size: 80px; --t-display-weight: 400; --t-display-lh: 1; --t-display-track: -2.4px;
  --t-h2-size: 54px; --t-h2-weight: 400; --t-h2-lh: 1; --t-h2-track: -1.6px;
  --t-h3-size: 24px; --t-h3-weight: 400; --t-h3-lh: 1; --t-h3-track: -0.48px;
  --t-lead-size: 20px; --t-lead-weight: 400; --t-lead-lh: 0.95;
  --t-body-size: 16px; --t-body-weight: 400; --t-body-lh: 1.5;
  --t-small-size: 14px; --t-small-weight: 300; --t-small-lh: 1.4;
  --t-label-size: 12px; --t-label-weight: 400; --t-label-track: 1.2px; --t-label-case: uppercase; --t-label-font: var(--f-mono);
  --t-button-size: 16px; --t-button-weight: 400; --t-button-track: normal; --t-button-case: none;
  --t-nav-size: 16px; --t-nav-weight: 400;

  /* Layout and spacing */
  --s-container: 1280px;
  --s-gutter: 24px;
  --s-section: 96px;
  --s-section-sm: 64px;
  --s-stack: 24px;                 /* from live site */
  --s-grid-gap: 24px;              /* from live site */
  --s-list-gap: 12px;

  /* Shape and depth */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-pill: 9999px;
  --shadow-1: none;
  --shadow-2: 0 2px 8px rgba(17, 17, 17, 0.06);
  --border-w: 1px;

  /* Components */
  --nav-height: 80px;              /* from live site */
  --nav-bg: #ffffff;               /* from live site */
  --nav-border: transparent;       /* from live site */
  --nav-radius: 0; --nav-inset: 0px;
  --btn-height: 40px;              /* from live site */
  --btn-pad-x: 14px; --btn-radius: 4px;
  --btn-primary-bg: #111111; --btn-primary-fg: #ffffff; --btn-primary-border: #111111; --btn-primary-hover-bg: #ffffff;
  --btn-secondary-bg: transparent; --btn-secondary-fg: #111111; --btn-secondary-border: #111111; --btn-secondary-hover-bg: #ffffff;
  --btn-hover-transform: scale(1.1); --btn-active-transform: scale(0.85);
  --btn-transition: 150ms ease;    /* from live site */
  --card-bg: #faf9f6; --card-border: #dedbd6; --card-radius: 8px; --card-shadow: none;
  --card-pad: 24px;                /* from live site */
  --card-media-radius: 6px;        /* from live site */
  --tag-bg: var(--c-surface-2); --tag-fg: #111111; --tag-radius: 4px;
  --tag-pad: 4px 8px;              /* from live site */
  --field-bg: #ffffff; --field-border: #dedbd6; --field-radius: 4px;
  --field-height: 40px;            /* from live site */
  --list-marker-colour: #111111; --list-divider: 1px solid #dedbd6;
  --quote-size: 32px; --quote-font: var(--f-display); --quote-weight: 400; --quote-lh: 1;
  --stat-size: 54px; --stat-weight: 400; --stat-colour: #111111; --stat-font: var(--f-display);
  --cta-bg: #111111; --cta-fg: #ffffff; --cta-radius: 8px;
  --footer-bg: #faf9f6; --footer-fg: #626260; --footer-border: #dedbd6;
  --media-radius: 0;               /* from live site: hero and stage photos are square cut */
  --media-shadow: none;

  /* System extras */
  --x-dim: #7b7b78;                /* Black 50, used for the grey headline lines (large text, 4.25:1 on white) */
  --x-sand: #d3cec6;               /* Warm Sand, corner markers on cream sections */
  --x-deep-blue: #0007cb;          /* Deep Blue, helpdesk markers */
  --x-active-green: #2c6415;       /* button active state */
  --x-report-blue: #65b5ff; --x-report-green: #0bdf50; --x-report-pink: #ff2067; --x-report-lime: #b3e01c; --x-report-orange: #fe4c02;
  --x-serif-size: 16px; --x-serif-weight: 300; --x-serif-lh: 1.4; --x-serif-track: -0.16px;
  --x-gutter-tablet: 16px; --x-gutter-phone: 12px;
}

@media (max-width: 896px) {
  :root { --s-gutter: var(--x-gutter-tablet); --s-section: 64px; --s-section-sm: 48px;
    --t-display-size: 54px; --t-display-track: -1.6px; --t-h2-size: 40px; --t-h2-track: -1.2px; }
}
@media (max-width: 600px) {
  :root { --s-gutter: var(--x-gutter-phone); --s-section: 48px; --s-section-sm: 40px;
    --t-display-size: 40px; --t-display-track: -1.2px; --t-h2-size: 32px; --t-h2-track: -0.96px; --nav-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --btn-hover-transform: none; --btn-active-transform: none; }
}

html, body { overflow-x: clip; }

/* Primary dark button: hover goes white with dark text, active goes green */
.x-btn-invert:hover { color: #111111; }
.x-btn-invert:active { background: var(--x-active-green); border-color: var(--x-active-green); color: #ffffff; }
.c-btn--secondary:active { background: var(--x-active-green); border-color: var(--x-active-green); color: #ffffff; }
.x-btn-sm { min-height: 36px; font-size: 14px; line-height: 1.43; }

/* Serif body: Serrif 16 / 300 / 1.4 / -0.16px */
.x-serif { font-family: var(--f-serif); font-size: var(--x-serif-size); font-weight: var(--x-serif-weight); line-height: var(--x-serif-lh); letter-spacing: var(--x-serif-track); color: var(--c-fg); }
.x-serif.is-lg { font-size: 17px; } /* from live site: hero intro reads slightly larger */

/* Announcement strip above the nav (from live site) */
.x-announce { background: linear-gradient(90deg, #d9d6d0, #ecebe7 30%, #ecebe7 70%, #d9d6d0); color: #111111; font-size: 13px; line-height: 1.3; text-align: center; padding: 9px 16px; }
.x-announce a { color: inherit; text-underline-offset: 0.2em; }

/* Full width nav bar (from live site: logo sits 16px from the edge) */
.x-nav-wide { width: calc(100% - 32px); max-width: none; gap: 28px; }
.x-nav-wide .c-nav__links { gap: 24px; }
.x-nav-wide .c-nav__links a, .x-nav-text { color: #111111; font-size: 14px; text-decoration: none; } /* from live site: links render near 14px */
.x-nav-wide .c-nav__actions { align-items: center; gap: 20px; }
.x-nav-wide .c-btn { min-height: 40px; font-size: 14px; }
.x-wordmark { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; letter-spacing: -0.04em; font-weight: 500; }
.x-wordmark::before { content: ""; width: 20px; height: 20px; border-radius: 4px; background: #111111; }
@media (max-width: 1100px) { .x-nav-wide .x-nav-text { display: none; } }

/* White section (hero, logo strip and alternate sections) */
.x-white { background: #ffffff; }

/* Small square corner markers at each section's four corners */
.x-marked { position: relative; --mark: var(--x-sand); }
.x-marked[data-mark="blue"] { --mark: var(--x-deep-blue); }
.x-marked[data-mark="orange"] { --mark: var(--c-accent); }
.x-marked::before { content: ""; position: absolute; inset: 14px 16px; pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) left top / 6px 6px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / 6px 6px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / 6px 6px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 6px 6px no-repeat; }
@media (max-width: 600px) { .x-marked::before { inset: 8px 6px; } }

/* Hero */
.x-hero { position: relative; padding-block: 80px 112px; overflow: hidden; } /* from live site */
.x-hero .c-hero__inner { position: relative; z-index: 1; gap: 0; }
.x-hero .c-stack > * + * { margin-top: 0; }
.x-rating { font-size: 14px; color: var(--c-muted); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.x-rating::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #626260; }
.x-headline span { display: block; }
.x-headline .x-dim, .x-dim { color: var(--x-dim); }
.x-hero .x-serif { max-width: 600px; margin: 28px auto 0; }
.x-hero .c-buttons { margin-top: 32px; gap: 8px; }
.x-note { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-muted); }
.x-note::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #111111; box-shadow: inset 0 0 0 3px #111111, inset 0 0 0 6px #ffffff; }

/* Cropped photos bleeding off the hero edges (positions from live site at 1440) */
.x-edge { position: absolute; inset: 0; pointer-events: none; }
.x-edge .c-ph { position: absolute; font-size: 11px; text-align: center; padding: 8px; line-height: 1.3; }
.x-edge .is-a { left: 42px; top: 72px; width: 176px; height: 242px; }
.x-edge .is-b { left: -8px; top: 238px; width: 122px; height: 242px; background: #e7e4de; }
.x-edge .is-c { right: -8px; top: 98px; width: 204px; height: 190px; background: #e7e4de; }
.x-edge .is-d { right: -8px; top: 289px; width: 134px; height: 187px; }
@media (max-width: 1180px) {
  .x-edge .is-a { left: -40px; } .x-edge .is-b { left: -60px; }
  .x-edge .is-c { right: -80px; } .x-edge .is-d { right: -70px; }
}
@media (max-width: 896px) {
  .x-edge { position: static; display: flex; gap: 8px; margin: 48px -16px 0; overflow: hidden; justify-content: center; }
  .x-edge .c-ph { position: static; flex: 0 0 auto; width: 28%; height: 160px; }
  .x-edge .is-b, .x-edge .is-c { margin-top: 32px; }
  .x-hero { padding-block: 56px 64px; }
}
@media (max-width: 600px) { .x-edge .c-ph { height: 120px; font-size: 10px; } }

/* Mono uppercase eyebrow with a small square */
.x-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #111111; line-height: 1.3; }
.x-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--sq, var(--x-deep-blue)); }
.x-eyebrow.is-orange { --sq: var(--c-accent); }
.x-eyebrows { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Two tone section title (grey lead-in, black ending) */
.x-split-title { font-family: var(--f-display); font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: -0.48px; color: #111111; }

/* Product tabs above the stage */
.x-tabs { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--c-border); }
.x-tabs li { position: relative; padding: 18px 16px; font-size: 18px; line-height: 1; color: var(--c-muted); border-left: 1px solid var(--c-border); background: #fcfbf8; }
.x-tabs li:first-child { border-left: 0; }
.x-tabs li[aria-current] { color: #111111; }
.x-tabs li[aria-current]::before { content: ""; position: absolute; left: 0; top: -2px; width: 120px; height: 3px; background: var(--x-deep-blue); }

/* Stage: a brand photo with product UI laid over it */
.x-stage { position: relative; overflow: hidden; }
.x-stage > .c-ph { position: absolute; inset: 0; aspect-ratio: auto; place-items: start end; padding: 12px 16px; font-size: 12px; }
.x-stage__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 32px 24px 0; min-height: 520px; }
.x-ph-sand { background: #c9b48e; color: #3b3326; }   /* from live site: warm paper photo tone, label kept AA */
.x-ph-sky { background: linear-gradient(120deg, #b8a7cf, #e8c8d6 55%, #f0c9c3); color: #3a2f45; } /* from live site: dusk sky photo tones */
.x-ph-dark { background: #2b2b2a; color: #e9e7e2; }

/* Product UI panel (helpdesk inbox) */
.x-app { position: relative; display: grid; grid-template-columns: 34px 170px minmax(0, 1fr) 230px; width: min(100%, 780px); height: 480px; align-self: flex-end; background: #ffffff; border-radius: 8px 8px 0 0; box-shadow: var(--shadow-2), 0 0 0 1px rgba(17, 17, 17, 0.06); font-size: 11px; line-height: 1.35; color: #111111; overflow: hidden; }
.x-app__rail { border-right: 1px solid var(--c-border); display: grid; align-content: start; gap: 12px; padding: 14px 10px; }
.x-app__rail i { display: block; width: 14px; height: 14px; border-radius: 3px; background: #dedbd6; }
.x-app__rail i:first-child { background: #111111; }
.x-app__list { border-right: 1px solid var(--c-border); padding: 12px 8px; display: grid; align-content: start; gap: 2px; }
.x-app__h { font-weight: 500; font-size: 12px; padding: 2px 6px 8px; display: flex; justify-content: space-between; }
.x-app__h small { font-weight: 400; color: var(--c-muted); font-size: 10px; }
.x-app__row { display: grid; grid-template-columns: 16px 1fr; gap: 2px 8px; padding: 6px; border-radius: 4px; }
.x-app__row.is-on { background: var(--c-surface-2); }
.x-app__row b { font-weight: 500; }
.x-app__row span { grid-column: 2; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-av { width: 16px; height: 16px; border-radius: 50%; background: var(--av, var(--x-report-blue)); grid-row: span 2; }
.x-app__thread { display: flex; flex-direction: column; padding: 12px 16px; gap: 10px; min-width: 0; }
.x-app__top { display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 12px; }
.x-app__pill { background: #111111; color: #ffffff; border-radius: 9999px; padding: 3px 9px; font-size: 10px; font-weight: 400; }
.x-msg { max-width: 82%; padding: 8px 10px; border-radius: 8px; background: var(--c-surface-2); }
.x-msg.is-out { align-self: flex-end; background: #e8f2ff; }
.x-msg.is-note { align-self: flex-end; background: #fff1e0; }
.x-app__meta { color: var(--c-muted); font-size: 10px; align-self: flex-end; }
.x-app__composer { margin-top: auto; border: 1px solid var(--c-border); border-radius: 8px; padding: 8px 10px 30px; color: var(--c-muted); }
.x-app__composer b { color: #111111; font-weight: 500; display: block; margin-bottom: 4px; }
.x-app__side { border-left: 1px solid var(--c-border); background: linear-gradient(180deg, #ffffff, #f4f7fb); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.x-app__side h4 { margin: 0; font-size: 12px; font-weight: 500; }
.x-app__side p { margin: 0; }
.x-app__card { background: #ffffff; border: 1px solid var(--c-border); border-radius: 6px; padding: 8px; display: grid; gap: 8px; }
.x-app__send { justify-self: end; background: var(--x-deep-blue); color: #ffffff; border-radius: 9999px; padding: 3px 10px; font-size: 10px; }
.x-app__ask { margin-top: auto; border: 1px solid var(--c-border); border-radius: 9999px; padding: 6px 10px; color: var(--c-muted); background: #ffffff; }
.x-ghost { width: 220px; height: 400px; align-self: flex-end; border-radius: 8px 8px 0 0; background: rgba(250, 249, 246, 0.55); border: 1px solid rgba(255, 255, 255, 0.6); padding: 16px 12px; display: grid; align-content: start; gap: 10px; font-size: 11px; line-height: 1.35; color: #111111; }
.x-ghost .x-msg { background: rgba(60, 50, 35, 0.75); color: #ffffff; max-width: 92%; }
.x-ghost .x-msg.is-out { background: rgba(255, 255, 255, 0.8); color: #111111; }

/* Ticket card for the helpdesk stage */
.x-ticket { width: 240px; align-self: flex-start; background: #ffffff; border-radius: 8px; box-shadow: var(--shadow-2), 0 0 0 1px rgba(17, 17, 17, 0.06); padding: 18px 16px; display: grid; gap: 10px; font-size: 11px; line-height: 1.35; color: #111111; text-align: left; margin-top: 8px; }
.x-ticket h4 { margin: 0; text-align: center; font-size: 12px; font-weight: 500; }
.x-ticket .x-av { width: 36px; height: 36px; justify-self: center; --av: var(--x-report-pink); }
.x-ticket__status { text-align: center; color: var(--x-deep-blue); font-weight: 500; }
.x-ticket__bar { height: 3px; background: linear-gradient(90deg, var(--x-deep-blue) 40%, var(--c-border) 40%); }
.x-ticket dl { margin: 0; display: grid; gap: 8px; }
.x-ticket dt { font-weight: 500; }
.x-ticket dd { margin: 0; color: var(--c-muted); }
.x-ticket__alert { background: var(--c-surface-2); border-radius: 4px; padding: 8px; }

/* Intro block: copy left, ink illustration right */
.x-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.x-intro .c-stack { --s-stack: 20px; }
.x-intro .x-serif { max-width: 500px; }
.x-intro .c-buttons { gap: 8px; }
.x-ill { --ph-ratio: 4 / 3; max-width: 300px; justify-self: center; width: 100%; background: transparent; border: 1px dashed var(--c-border); text-align: center; padding: 16px; }
@media (max-width: 896px) { .x-intro { grid-template-columns: 1fr; } .x-ill { max-width: 220px; justify-self: start; } }

/* Feature selector items with square bullets; the active item is tinted and carries a short top bar */
.x-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.x-feature { position: relative; display: grid; grid-template-columns: 8px 1fr; gap: 8px 16px; padding: 24px 24px 24px 20px; align-content: start; }
.x-feature::before { content: ""; width: 6px; height: 6px; margin-top: 7px; background: var(--sq, var(--x-deep-blue)); grid-row: span 3; }
.x-feature.is-active { background: var(--c-surface-2); }
.x-feature.is-active::after { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--sq, var(--x-deep-blue)); }
.x-feature h3 { font-family: var(--f-display); font-size: 20px; font-weight: 400; line-height: 1.1; letter-spacing: -0.2px; color: var(--c-muted); }
.x-feature.is-active h3 { color: #111111; }
.x-feature p { font-size: 14px; font-weight: 300; line-height: 1.4; color: var(--c-muted); }
.x-feature.is-active p { color: #111111; }
.x-feature a { font-size: 14px; color: var(--c-muted); text-underline-offset: 0.2em; justify-self: start; }
.x-features.is-orange { --sq: var(--c-accent); }
@media (max-width: 896px) { .x-features { grid-template-columns: 1fr; } }

/* Product tour: media left, stacked feature list right */
.x-tour { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.x-tour .x-features { grid-template-columns: 1fr; align-content: start; }
.x-tour .x-feature { padding-block: 24px 48px; }
.x-tour__media { background: var(--c-surface-2); min-height: 560px; display: grid; place-items: center; padding: 32px; }
@media (max-width: 896px) { .x-tour { grid-template-columns: 1fr; } .x-tour__media { min-height: 0; } }

/* Messenger: the chat widget, used open in the tour and as a floating launcher */
.x-messenger { width: min(100%, 340px); background: #ffffff; border-radius: 8px; box-shadow: var(--shadow-2), 0 0 0 1px rgba(17, 17, 17, 0.06); overflow: hidden; font-size: 13px; line-height: 1.4; color: #111111; }
.x-messenger__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--c-border); font-weight: 500; }
.x-messenger__head small { display: block; font-weight: 300; color: var(--c-muted); font-size: 12px; }
.x-messenger__body { display: grid; gap: 10px; padding: 14px; }
.x-messenger__body .x-msg { max-width: 88%; }
.x-messenger__body .x-msg.is-out { background: #111111; color: #ffffff; }
.x-messenger__flag { font-size: 11px; color: var(--c-muted); }
.x-messenger__tag { display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; color: #111111; margin-bottom: 4px; }
.x-messenger__tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--c-accent); vertical-align: 1px; }
.x-messenger__input { margin: 0 14px 14px; border: 1px solid var(--c-border); border-radius: 9999px; padding: 8px 12px; color: var(--c-muted); }
.x-logo-sq { width: 24px; height: 24px; border-radius: 6px; background: #111111; flex: none; }

.x-chat { position: fixed; right: 16px; bottom: 56px; z-index: 40; display: grid; justify-items: end; gap: 12px; }
.x-chat summary { list-style: none; width: 48px; height: 48px; border-radius: 50%; background: #111111; display: grid; place-items: center; cursor: pointer; order: 2; box-shadow: var(--shadow-2); }
.x-chat summary::-webkit-details-marker { display: none; }
.x-chat summary::before { content: ""; width: 18px; height: 16px; border: 2px solid #ffffff; border-radius: 4px 4px 4px 0; }
.x-chat__pop { width: 300px; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06), 0 0 0 1px rgba(17, 17, 17, 0.08); padding: 14px; display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; font-size: 13px; line-height: 1.4; color: #111111; margin-bottom: 12px; }
.x-chat__pop small { grid-column: 2; color: var(--c-muted); font-size: 11px; }
@media (max-width: 640px) { .x-chat__pop { display: none; } .x-chat { bottom: 52px; } }

/* Promo banner with a video thumbnail */
.x-promo { position: relative; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; padding: 16px 48px 16px 16px; margin-top: 64px; background: linear-gradient(100deg, #b7bcc4 0%, #dcd5cf 35%, #f06a47 60%, #6d7f8f 85%, #c9cdd2 100%); }
.x-promo .c-ph { --ph-ratio: 16 / 9; font-size: 11px; text-align: center; padding: 8px; }
.x-promo h3 { font-family: var(--f-serif); font-size: 32px; font-weight: 400; line-height: 1; letter-spacing: -0.32px; color: #111111; }
.x-promo p { margin-top: 8px; font-size: 14px; color: #111111; }
@media (max-width: 768px) { .x-promo { grid-template-columns: 1fr; padding: 16px; } .x-promo h3 { font-size: 26px; } }

/* Plain cards: tinted media, no border, no padding */
.x-card-plain { background: transparent; border: 0; padding: 0; gap: 12px; --card-pad: 0px; }
.x-card-plain .c-card__media { margin: 0 0 12px; background: var(--c-surface-2); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 24px; position: relative; }
.x-card-plain .x-serif { color: #111111; }
.x-mini { width: 100%; max-width: 260px; display: grid; gap: 10px; font-size: 11px; line-height: 1.35; color: #111111; }
.x-mini > div { background: #ffffff; border-radius: 8px; padding: 10px; box-shadow: var(--shadow-2), 0 0 0 1px rgba(17, 17, 17, 0.06); }
.x-mini .is-yellow { background: #ffe39a; }
.x-mini .is-small { color: var(--c-muted); background: transparent; box-shadow: none; padding: 0 4px; }
.x-mini b { font-weight: 500; display: block; margin-bottom: 4px; }
.x-chip { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #d8f7e2; color: #0b5b26; margin-left: 6px; }
.x-tree { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.x-tree li { padding: 3px 8px; border-radius: 4px; }
.x-tree li.is-on { background: var(--c-surface-2); }
.x-tree li.is-in { padding-left: 24px; }

/* Logo strip */
.x-logos-label { text-align: center; color: #111111; }
.x-logos { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; }
.x-logos li { text-align: center; color: #8a8a86; font-size: 20px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* from live site: logos in flat grey */
.x-logos li:nth-child(3n) { font-family: var(--f-serif); font-style: italic; }
.x-logos li:nth-child(4n) { font-weight: 600; text-transform: uppercase; font-size: 15px; letter-spacing: 0.08em; }
.x-logos li:nth-child(5n) { font-family: var(--f-mono); font-size: 16px; }
@media (max-width: 896px) { .x-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 425px) { .x-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } .x-logos li { font-size: 17px; } }

/* Closing block and footer */
.x-closing { text-align: center; display: grid; justify-items: center; gap: 32px; }
.x-footer-mark { margin-bottom: 16px; }
.x-footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Responsive stage */
@media (max-width: 1100px) { .x-ghost { display: none; } }
@media (max-width: 896px) {
  .x-app { grid-template-columns: 34px 150px minmax(0, 1fr); height: 420px; }
  .x-app__side { display: none; }
  .x-stage__inner { min-height: 440px; padding: 24px 16px 0; }
  .x-ticket { display: none; }
}
@media (max-width: 600px) {
  .x-app { grid-template-columns: minmax(0, 1fr); height: 380px; }
  .x-app__rail, .x-app__list { display: none; }
  .x-stage__inner { min-height: 400px; padding: 20px 12px 0; }
  .x-tabs li { font-size: 15px; padding: 14px 12px; }
  .x-tabs li[aria-current]::before { width: 64px; }
  .x-feature { padding: 20px 12px; }
}

/* Small utilities */
.x-mt { margin-top: 64px; }
.x-bare { list-style: none; padding: 0; }
.x-centre { justify-content: center; gap: 8px; }
.x-footer-mark { color: #111111; }
.x-app__meta.is-start { align-self: flex-start; }
.x-tag-xs { font-size: 10px; }
@media (max-width: 600px) {
  .x-mt { margin-top: 40px; }
  .x-stage__inner { padding-top: 44px; }
  .x-card-plain .c-card__media { aspect-ratio: 4 / 3; }
  .x-tour .x-feature { padding-bottom: 24px; }
}
.x-av.is-green { --av: var(--x-report-green); } .x-av.is-pink { --av: var(--x-report-pink); }
.x-av.is-lime { --av: var(--x-report-lime); } .x-av.is-orange { --av: var(--x-report-orange); }
.x-app__thread.is-wide { grid-column: 2 / 4; }
@media (max-width: 600px) { .x-app__thread.is-wide { grid-column: 1; } }
