/* GTM Alpha's own rules (run 11, B2): loaded after fonts.css and helix.css on every page, the 404 page, the sample report
   and the report page. helix.css is the shared Helix B2 layer (copied from the project's work/run7/design/helix.css; not
   edited here). brand.css is no longer loaded (B21: one design layer). This file styles only GTM Alpha's own page parts
   (its hand-built sections, the form, the docs, the pricing cards, the report) with the B2 tokens, so dark mode (D11)
   swaps them with the rest of the page. No important flags: the rules it used to override were deleted from the pages
   (design/run11/css-changes-gtmalpha.md in the project folder). */

:root { --ga-soft: #EAD9D5; }

/* R10-15: skip link, first thing on every page; hidden until it has keyboard focus */
.hx10-skip { position: absolute; left: 12px; top: -200px; z-index: 100; background: var(--ox); color: var(--paper); padding: 12px 18px; min-height: 44px; font: 600 16px/1.25 var(--display); text-decoration: none; }
.hx10-skip:focus, .hx10-skip:focus-visible { top: 12px; }

/* The pages' own containers line up with the header (helix.css .hx-wrap: 1440 px, side padding var(--gut)) */
.container,
main > .hx-section[aria-labelledby="read-h"] { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.hx-hero .container, .hx-hero .hx-wrap { position: relative; }
.hx-hero .hero-content, .hx-hero .hx-hero-inner { max-width: none; margin: 0; text-align: left; }
.hx-hero .hx-lead { margin: 18px 0 0; }
.hx-hero .hx-cta-row { margin-top: 26px; }
.hx-hero .hx10-answer { font-size: 16px; line-height: 1.6; color: var(--ink); }
.hx-hero .hx-eyebrow { margin: 0 0 14px; }
.hx10-history { font: 500 13px/1.5 var(--mono); color: var(--muted); margin: 8px 0 0; }

/* Sections: headings full width above their content (D6; the run 10 300 px left column is deleted) */
.features, .epic-framework, .page-content, .form-section, .faq-section, .main-content > .section { padding: clamp(56px, 7vw, 112px) 0 0; }
.section-header { margin: 0 0 clamp(24px, 3vw, 40px); }
.section-header h2 { max-width: 20ch; }
.section-badge { display: block; margin: 0 0 24px; }
.section-subtitle { font-size: var(--lead); line-height: 1.45; color: var(--muted); max-width: 60ch; margin: 28px 0 0; }
.features-grid, .epic-grid { gap: 24px; }
.feature-card .feature-icon { font: 800 var(--tile)/1 var(--display); letter-spacing: -.04em; color: var(--ox); }
.feature-card p, .epic-item p { color: var(--muted); margin: 0; }
.epic-letter { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--ox); color: var(--paper); font: 800 24px/1 var(--display); }
#gtmalpha-epic-visual .hx8-vis { margin: 0 0 32px; }
.hx-qa { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 7vw, 112px) var(--gut) 0; }
.hx-qa > h2 { margin: 0 0 clamp(24px, 3vw, 40px); max-width: 20ch; }
main > :last-child { margin-bottom: clamp(56px, 7vw, 112px); }

/* Documents (/faq, /privacy, /terms): H2 above each part; lists keep their bullets; a readable line length */
.doc .hx10-sec { padding-top: 40px; max-width: 78ch; }
.doc .hx10-sec > h2 { margin: 0 0 16px; }
.doc h3 { margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 24px; margin: 0 0 1em; }
.doc li { margin: 6px 0; }
.doc p, .doc li { color: var(--ink); }
.doc table { margin: 16px 0; }
.highlight-box, .warning-box { background: var(--rose); color: var(--ink); border-left: 4px solid var(--signal); padding: 16px 20px; margin: 16px 0; }
.warning-box { background: var(--white); border: 2px solid var(--edge); border-left: 4px solid var(--ox); }
/* D9 item 7: the closing "Ready to score your GTM motions?" box is a solid B2 band (no gradient) */
.ga-band { background: var(--rose-mid); color: var(--ink); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); margin: 40px 0 0; }
.ga-band h3 { margin: 0 0 10px; }
.ga-band p { margin: 0 0 20px; }

/* Questions on /faq and /pricing (buttons that open an answer) */
.faq-item { border-bottom: 1.5px solid var(--edge); }
.hx10-sec > .faq-item:first-of-type, .faq-grid > .faq-item:first-child { border-top: 2px solid var(--edge); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 44px; padding: 16px 0; background: none; border: 0; color: var(--ink); font: 600 17px/1.35 var(--mono); text-align: left; cursor: pointer; }
.faq-question::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ox); color: var(--paper); font: 600 22px/1 var(--mono); }
.faq-item.open .faq-question::after, .faq-question.active::after { content: "x"; font-size: 18px; }
.faq-question .faq-icon { display: none; }
.faq-answer { display: none; padding: 0 0 18px; color: var(--ink); }
.faq-item.open .faq-answer, .faq-answer.active { display: block; }
.faq-answer p { max-width: 64ch; }
.faq-answer ul { padding-left: 22px; }
.faq-answer .ga-tools { padding: 0; margin: 8px 0 14px; }

/* D12: the three GTM Alpha tools as tool rows (helix.css section 13) */
.ga-tools .trow .rv { color: var(--muted); }

/* /pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pricing-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); color: var(--ink); border: 1.5px solid var(--edge); border-top: 6px solid var(--ox); padding: 22px; box-shadow: 6px 6px 0 var(--shadow); }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } } /* Run 11 R11-A2-7: one card per row on phones, so .plan-cta is full width (pricing.html's own phone rule) */
.plan-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; width: 100%; background: var(--ox); color: var(--paper); border: 2px solid var(--ox); font: 600 14px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.plan-cta:hover, .plan-cta:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan-alt a { display: inline-flex; align-items: center; min-height: 44px; }
.mcp-highlight, .eeat-card { background: var(--white); color: var(--ink); border: 2px solid var(--edge); padding: 22px; box-shadow: 6px 6px 0 var(--shadow); }

/* The primary and secondary buttons written with the old class names (outside the hero) */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; background: var(--ox); color: var(--paper); border: 2px solid var(--ox); font: 600 14px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-secondary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 700 18px/1.3 var(--display); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* /consultation: the form in a window, two fields per row, each field at most 640 px (D9 item 6) */
.form-container { max-width: none; margin: 0; padding: 0; background: none; }
.form-header { margin: 0 0 24px; }
.form-header h2 { max-width: 20ch; margin: 0 0 clamp(16px, 2vw, 28px); }
.form-header p { max-width: 72ch; }
.hx9-example { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.hx9-example-note { margin: 12px 0 0; max-width: 72ch; }
/* 13 Nov 2026: the 90 day note under the GTM challenge, the colleague notice and the work email check on the audit form */
.hx-keep-note { margin: 6px 0 0; font-size: 15px; line-height: 1.45; max-width: 72ch; }
#audit-seen { font-weight: 600; }
#colleague-check { margin: 10px 0 0; display: grid; gap: 8px; max-width: 640px; }
#colleague-check button { justify-self: start; min-height: 44px; padding: 8px 16px; background: var(--white); color: var(--ink); border: 2px solid var(--ox); font: inherit; font-size: 15px; cursor: pointer; }
#colleague-check blockquote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--signal); white-space: pre-wrap; }
.security-note { margin: 0 0 20px; padding: 12px 16px; background: var(--rose); color: var(--ink); border-left: 4px solid var(--signal); max-width: 72ch; }
.ga-form-win .win-body { padding: clamp(18px, 2.4vw, 32px); }
.form-grid { max-width: 1320px; }
.form-row { gap: 20px 40px; }
.form-group { max-width: 640px; }
.form-group input:not([type=checkbox]):not([type=radio]), .form-group select, .form-group textarea { width: 100%; min-height: 50px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 2px solid var(--edge); border-radius: 0; padding: 10px 12px; }
.form-group textarea { min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 3px solid var(--signal); outline-offset: 2px; }
.checkbox-group input[type="checkbox"] { flex: none; margin: 0; width: 22px; height: 22px; accent-color: var(--ox); }
/* R11-A1-9: the checkbox sits inside its label, so the whole row (at least 44 px tall and wide) is one tap area */
.checkbox-group label { min-height: 44px; min-width: 44px; width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer; }
/* R11-A1-4: placeholders at least 4.5:1 in light and dark (muted on the field: #5A4B4E on white, #CBB9BC on #261619) */
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); opacity: 1; }
.submit-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; background: var(--ox); color: var(--paper); border: 2px solid var(--ox); font: 600 14px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; margin-top: 8px; }
.submit-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.submit-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) { .submit-btn { width: 100%; padding: 12px 10px; letter-spacing: .03em; } }

/* /integration and the home: set-up tabs and code in windows */
.tab-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.tab-btn { font: 700 16px/1 var(--display); padding: 12px 18px; min-height: 46px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.tab-btn.active { background: var(--ox); border-color: var(--ox); color: var(--paper); }
.tab-content { padding: 0; }
.tab-panel h3 { margin: 0 0 14px; }
.integration-content { gap: clamp(24px, 3vw, 40px); }
.integration-content > * { min-width: 0; }
.file-location { background: var(--white); color: var(--ink); border: 2px solid var(--edge); padding: 12px 14px; margin: 12px 0; font: 500 14px/1.5 var(--mono); overflow-wrap: anywhere; }
.code-container { background: var(--white); color: var(--ink); border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--shadow); min-width: 0; }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: var(--paper); font: 400 22px/1.1 var(--pixel); padding: 5px 10px 4px; }
.code-dots { display: flex; gap: 5px; order: 2; }
.code-dot { display: block; width: 12px; height: 12px; border: 2px solid var(--paper); }
.code-block { color: var(--ink); background: var(--white); padding: 16px; font: 400 14px/1.6 var(--mono); max-width: 100%; overflow-x: auto; margin: 0; }
.code-block pre { margin: 0; border: 0; padding: 0; background: none; }
.hx8-dev .code-container { margin: 12px 0; }
.copy-btn { min-height: 44px; padding: 0 14px; background: none; border: 2px solid var(--paper); color: var(--paper); font: 600 13px/1 var(--mono); cursor: pointer; }
@media (max-width: 760px) { .integration-content { grid-template-columns: minmax(0, 1fr); } }

/* /api-docs: the docs layout (navigation beside the reference) */
.container > .main-content { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 48px 0 0; }
.sidebar { align-self: start; }
.sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font: 600 14px/1.3 var(--mono); text-decoration: none; border-left: 3px solid transparent; }
.sidebar-nav a:hover, .sidebar-nav a.active { border-left-color: var(--signal); background: var(--rose); color: #1A0E10; }
.docs-section { padding: 0 0 40px; }
.docs-section h2 { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 52px); }
.docs-section p code, .docs-section li code, .docs-section td code { overflow-wrap: anywhere; }
.tool-item, .alert { background: var(--white); color: var(--ink); border: 1.5px solid var(--edge); padding: 16px 18px; margin: 14px 0; }
.alert { display: flex; gap: 12px; border-left: 4px solid var(--signal); }
.method-badge { display: inline-block; font: 600 13px/1 var(--mono); padding: 6px 8px; background: var(--ox); color: var(--paper); }
.inline-code { font-family: var(--mono); background: var(--ga-soft); color: #1A0E10; padding: 1px 5px; }
@media (max-width: 900px) { .container > .main-content { grid-template-columns: minmax(0, 1fr); } .sidebar { display: none; } }

/* Tap targets at least 44 px (R10-15) */
.hx-byline a, .hx10-actions a, .hx10-actions button, .hx10-links a { min-height: 44px; display: inline-flex; align-items: center; }
main li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }

/* R10-A1-5 and R10-16: the action bar at the top of a report, and the made-up example note */
.hx10-report { padding-top: 24px; padding-bottom: 8px; }
.hx10-report > .hx10-actions, .hx10-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 20px; padding-top: 0; }
.hx10-actions a, .hx10-actions button { justify-content: center; padding: 10px 18px; font: 600 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid var(--ox); background: transparent; color: var(--ox); border-radius: 0; }
.hx10-actions .hx10-primary { background: var(--ox); color: var(--paper); min-height: 50px; }
.hx10-actions a:hover, .hx10-actions button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hx9-report-next { margin: 20px 0 0; padding-top: 14px; border-top: 1.5px solid var(--line); font-size: 17px; }
.hx9-report-next a { color: var(--link); font-weight: 700; }
.hx10-note { margin: 0 0 18px; padding: 12px 16px; background: var(--rose); border-left: 4px solid var(--signal); font-size: 17px; color: #1A0E10; }
.hx10-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hx10-links a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hx-message { padding-top: 48px; padding-bottom: 48px; max-width: 720px; }
.hx-message li { margin: 6px 0; }

/* The report (its markup and inline style come from netlify/lib/analyze.js, which is not changed): headings on the document
   scale, and the report's boxes on the B2 tokens so it reads in light and dark */
.report-container { --h2: clamp(28px, 2.6vw, 38px); --card: clamp(20px, 1.8vw, 24px); max-width: 960px; background: var(--paper); color: var(--ink); }
.report-container .header h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.report-container .epic-item, .report-container .roadmap-item { background: var(--white); border-color: var(--edge); border-top-color: var(--ox); }
.report-container .epic-letter { display: block; width: auto; height: auto; background: none; color: var(--ox); }
.report-container .epic-score { color: var(--ink); }
.report-container .header h3, .report-container .consultation-id { color: var(--muted); }
.report-container .primary-focus { background: var(--rose); color: #1A0E10; border-left-color: var(--ox); }
.report-container .primary-focus h2 { color: #1A0E10; }

/* D11: GTM Alpha's own colours in dark mode. Run 14 R14-10b: screen only (D22: white paper, light colours even in
   dark mode, in print). Without "screen and", some of these selectors are more specific than the plain @media print
   override below (for example ".report-container .primary-focus h2" beats ".report-container *"), so with the
   device in dark mode they used to win in print too: near-white text with backgrounds off, a dark box with
   backgrounds on. */
@media screen and (prefers-color-scheme: dark) {
  :root { --ga-soft: #3A2226; }
  .inline-code { color: #FAF8F6; }
  .sidebar-nav a:hover, .sidebar-nav a.active { background: #3A2226; color: #FAF8F6; }
  .hx10-note, .security-note, .highlight-box { background: #3A2226; color: #FAF8F6; }
  .report-container .primary-focus { background: #3A2226; color: #FAF8F6; border-left-color: #F2AAB3; }
  .report-container .primary-focus h2 { color: #FAF8F6; }
  .ga-band { background: #2A1216; }
  .tab-btn.active, .epic-letter { color: #1A0E10; }
  .required { color: #F2AAB3; }
  .form-group small { color: #CBB9BC; }
  .hx10-actions .hx10-primary { color: #1A0E10; }
}

/* Run 11 R11-A1-8: /sample-report/ in B2. The hero holds a pixel tag, the H1 in crop marks at the D6 inner size (helix.css
   h1), the made-up example note, the actions and the report's name, role and company lines in a window; below it the
   report sections sit on a two-column grid from 1100 px (the page used to stop at 960 px and leave the right side empty) */
.ga-sample-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: clamp(18px, 2vw, 28px); }
.ga-sample-hero .hx10-note { margin: 0 0 18px; max-width: 64ch; }
.ga-sample-hero .hx10-actions { margin: 0; }
.ga-sample-who h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; margin: 0 0 8px; }
.ga-sample-who h3 { font: 500 16px/1.5 var(--mono); color: var(--muted); margin: 0; }
.ga-sample .report-container { max-width: none; }
.ga-sample .report-container .section p, .ga-sample .report-container .section li { max-width: 78ch; }
@media (min-width: 1100px) {
  .ga-sample .report-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
  .ga-sample .report-container > * { grid-column: 1 / -1; }
  .ga-sample .report-container > .section:nth-child(3), .ga-sample .report-container > .section:nth-child(4),
  .ga-sample .report-container > .section:nth-child(7), .ga-sample .report-container > .section:nth-child(8) { grid-column: auto; }
  .ga-sample .roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .ga-sample-grid { grid-template-columns: minmax(0, 1fr); } }

/* Run 11 R11-A1-8: a code window title longer than its window wraps (it was clipped at 360, and pushed the page sideways
   when the window was narrower) */
.code-header > span { min-width: 0; overflow-wrap: anywhere; }

@media print {
  .ga-sample-hero { background: none; }
  .ga-sample-hero::before, .ga-sample-hero::after { display: none; }
  .hx10-skip, .hx9-gh, footer.hx-footer, .hx10-actions, .hx10-report > .hx10-actions { display: none; }
  .report-container, .report-container * { background: #FFFFFF; color: #1A0E10; box-shadow: none; }
  /* Run 13 D22: the rule above painted every descendant white one at a time, so the rose primary-focus box printed as
     white strips behind its own text. Paint the box and everything inside it the same rose, in one rule, instead. */
  .report-container .primary-focus, .report-container .primary-focus * { background: #EAD9D5; }
  /* Run 14 R14-10d: helix-report.css only reaches .hxr-body links, and the GTM Alpha report has no .hxr-body; extend
     the same D22 rule (an outside link's address, printed after it, in IBM Plex Mono 9 pt) to links inside the
     report body itself. .hx10-actions (Edit my answers, Print or save as PDF, Work with Shashwat on this plan) is
     already display: none above, so its links never print; this never reaches hidden chrome or the report's own
     buttons, only the report content (for example the Next Steps link). */
  .report-container a[href^="http"]::after { content: " (" attr(href) ")"; font: 400 9pt/1.3 var(--mono); color: #5A4B4E; overflow-wrap: anywhere; }
}

/* run 11 R11-16: the three decorative dots of a code header are hidden on phones (they pushed the page 9 px sideways at 390) */
@media (max-width: 600px) { .code-dots { display: none; } }

/* Run 11 R11-16: the contact email links are tap targets too (D6: at least 44 px) */
a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
/* Run 13 D22 (verifier R13-41): on the sample report the title block sits in the hero, so in print the 6 px oxblood rule opens the title block, not the report body below it */
@media print {
  .ga-sample .hxr-head { border-top: 6px solid #641220; padding-top: 10px; }
  .ga-sample .report-container.hxr { border-top: 0; }
  .ga-sample .hxr-head .win { box-shadow: none !important; }
  /* Run 14: the "Sample report" eyebrow (helix.css: paper text on an ink box) prints as ink text with a 1.5 px ink border,
     like every other label (D22), so it survives "background graphics" off */
  .ga-sample .hx-eyebrow { background: none !important; color: #1A0E10 !important; border: 1.5px solid #1A0E10 !important; }
}

/* 19 Nov 2026: the worked result in the home hero (free GTM motion scorer first screen) */
.hero .hx-hero-ex { margin: 22px 0 8px; max-width: 760px; }
.hero .hx-hero-ex .hxv-big { margin: 2px 0 12px; }
