/* AMC type system (landing pages)
   Five sizes only, Apple/Samsung product-page proportions:
     hero H1   80 / 40      section H2  48 / 32      subhead 21 / 19
     body      17 (lh 1.47)                         small   14
   No monospace, no tracked caps: labels, eyebrows and pills are sentence case in the body sans.
   One style per headline: no accent colour or italic on part of a heading.
   Lives in a cascade layer so its !important rules beat the pages' own inline and !important
   rules without specificity games; the chat widget and SVG are reverted to their own styles. */
@layer amc-type {
  :root {
    --t-h1: 40px; --t-h2: 32px; --t-sub: 19px; --t-body: 17px; --t-small: 14px;
    --t-gap: 144px; --t-side: 24px;
    --amc-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: var(--amc-sans) !important;
    --ink-mono: var(--amc-sans) !important;
  }
  html[lang="ar"] { --amc-sans: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; }
  html[lang="ja"] { --amc-sans: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; }
  html[lang^="zh"] { --amc-sans: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; }
  @media (min-width: 834px) {
    :root { --t-h1: 80px; --t-h2: 48px; --t-sub: 21px; --t-gap: 200px; }
  }

  /* ---------- 1. defaults: everything is body copy in the body sans ---------- */
  :where(body) {
    font-size: var(--t-body) !important; font-family: var(--amc-sans) !important; line-height: 1.47 !important;
  }
  :where(body *:not(svg, svg *, #sterling-chat, #sterling-chat *)) {
    font-size: var(--t-body) !important;
    text-transform: none !important;
    font-variant: normal !important;
  }
  /* body sans and plain tracking everywhere except headings, quotes and text logos */
  :where(body *:not(svg, svg *, #sterling-chat, #sterling-chat *, h1, h2, h3, h4, h5, h6,
    :is(h1, h2, h3, h4, h5, h6) *, blockquote, blockquote *, .sig-name, .lname, .ytxt, .ytxt *,
    p[style*="italic"], p[style*="italic"] *, .ink-sig, .hanko, .hanko *)) {
    font-family: var(--amc-sans) !important;
    letter-spacing: normal !important;
  }
  :where(p, li, dd, dt, summary, td, th, label, input, textarea, select, figcaption):where(:not(#sterling-chat *)) { line-height: 1.47 !important; }
  /* phrasing elements follow their container */
  :where(span, a, b, strong, em, i, u, s, small, abbr, mark, del, ins, time, q, code, kbd, var, dfn, bdi, bdo, img, picture):where(:not(svg *, #sterling-chat *)) {
    font-size: inherit !important;
  }
  :where(sup, sub):where(:not(#sterling-chat *)) { font-size: 0.7em !important; }

  /* ---------- 2. headings: theme display face, one style per headline ---------- */
  h1 { font-size: var(--t-h1) !important; line-height: 1.05 !important; }
  h2 { font-size: var(--t-h2) !important; line-height: 1.1 !important; }
  h3, h4, h5, h6 { font-size: var(--t-sub) !important; line-height: 1.3 !important; }
  :is(h1, h2, h3, h4, h5, h6) { font-style: normal !important; }
  :is(h1, h2, h3, h4, h5, h6) :where(*) {
    font-size: inherit !important; font-family: inherit !important; font-style: inherit !important;
    font-weight: inherit !important; color: inherit !important; -webkit-text-fill-color: inherit !important;
    background: none !important; text-shadow: none !important; animation: none !important;
    letter-spacing: inherit !important; white-space: normal !important;
  }
  /* bilingual sub-line under a tier name stays a quiet second line */
  :is(h3, h4) :is(.ar-sub, span[style*="display:block"]) {
    display: block !important; font-size: var(--t-small) !important; font-family: var(--amc-sans) !important;
    color: var(--txt3, var(--ink3, #8a8575)) !important; -webkit-text-fill-color: currentColor !important;
    letter-spacing: normal !important; margin-top: 6px !important;
  }

  /* ---------- 3. subhead: hero lead line, quotes, tier names ---------- */
  .hero p.body, .hero-sub, .hero .hero-sub, .cta-lead,
  blockquote, .quotecard blockquote, .testimonial-quote blockquote,
  p[style*="font-style:italic"], p[style*="font-style: italic"],
  .seenon .ytxt, .marker, .industry-icon, .sticky-cta__close {
    font-size: var(--t-sub) !important; line-height: 1.38 !important;
  }

  /* ---------- 4. display numbers sit at the H2 size ---------- */
  .price, .stat-number, .savings-amount, .savings-number, .process-number, .qn, .tile-num,
  .secnum, .fig, .case-metric, .metric, .metric-value, .stat .v, .sgb-c, .sig-s .sig-name, .sig-name {
    font-size: var(--t-h2) !important; line-height: 1.1 !important;
  }
  .price :is(small, span, sub, sup), .stat .v :is(small, sub), .fig i { font-size: var(--t-small) !important; }
  /* a stat whose value is a word (Defense-Grade) sits at the subhead size, as its inline size intended */
  .stat .v[style*="font-size"], .stat-number[style*="font-size"] { font-size: var(--t-sub) !important; line-height: 1.25 !important; }
  .fig i { font-size: inherit !important; }

  /* ---------- 5. small: labels, eyebrows, pills, captions, meta, footer ---------- */
  .label, .yr, .lmeta, .per, .micro-label, .ticker-item, .trust-badge, .strip-label, .strip-status,
  .verified-badge, .wall-verified, .tile-meta, .stat-label, .case-metric-label, .metric-label, .calc-label,
  .savings-label, .savings-desc, .pricing-urgency, .pricing-compare, .urg, .urg-cite, .tag, .case-tag,
  .industry-badge, .industry-tag, .geo-accent, .laurel-badge, .clearance-badge, .health-badge,
  .health-check-badge, .scarcity-badge, .system-bar-text, .alastair-title, .r4-terminal-line,
  .r4-terminal-cursor, .r4-terminal-readout, .ink-live-chip, .mono, .k, .stat .c, .flag, .c-live, .cur,
  .tele, .island .chip, .chip, .sgb-l, .sgb-a, .on, .dunes .cap, .ep-sub, .sh, .dwg, .scope-no, .para-no,
  .cb-seg, .cb-val, .cb-tail, .prep-text, .prep-kicker, .prep-sub, .mid-label, .bb-sc, .bb-cite, .d-head, .d-row,
  .sterling-inline-status, .sterling-role, .p13n-ctaline, .p13n-note, .p13n-strip, .bates, .sig-role,
  .quiet, .cb-paren, .exhibit-tab, .rw-tab, .time-entry, .wp-stamp, .t8-plaque, .ql, .sigline,
  .cred-line, .rs-line, .sig-s, .foot, .ep-foot, .src, .regions > *, .chips > *, .c-gold, .case-result,
  .c-head, .c-foot, .c-row, .caption-box p, .cb-right p, .sticky-cta__text, .skip-link,
  .island nav a, .nav-link, .topbar nav a, .mmenu-meta, .cred-row, .cred-row *,
  label, cite, small, th, td, .scope-ledger::before,
  footer, footer *, .site-footer, .site-footer *, .footer-inner *, .footer-copy,
  form p, .bookform > p, .form-container p, .form-note, .risk-reversal p, .confidentiality-seal p {
    font-size: var(--t-small) !important; line-height: 1.43 !important;
  }
  footer .sig-name { font-size: var(--t-h2) !important; line-height: 1.15 !important; }
  .cred-row img { font-size: inherit !important; }

  /* buttons and form controls: body size, real tap targets */
  input, select, textarea, button { font-size: var(--t-body) !important; }
  .btn-mint, .btn-line, .btn-dark, .btn-command, .btn-outline, .btn-primary, .btn-secondary, .btn,
  .tilecta, .sticky-cta__btn, button[type="submit"], .bookform button {
    font-size: var(--t-body) !important; min-height: 48px !important; display: inline-flex !important;
    align-items: center !important; justify-content: center !important; text-align: center !important; line-height: 1.25 !important;
  }
  .island .cta, .topbar .cta, .nav-cta, .island a.chip { font-size: var(--t-small) !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select { min-height: 48px !important; }
  details > summary { min-height: 44px !important; }

  /* ---------- 6. labels and pills: quiet sentence case ---------- */
  .label, .yr, .micro-label, .strip-label, .per, .lmeta, .tile-meta, .stat-label, .stat .c, .flag {
    font-weight: 500 !important;
  }
  /* pills become one quiet row of plain phrases */
  .regions, .chips, .trust-row, .trust-badges {
    display: flex !important; flex-wrap: wrap !important; gap: 8px 24px !important; align-items: center !important;
    border: 0 !important; background: none !important; justify-content: flex-start !important;
  }
  .text-center .trust-badges, .text-center .trust-row { justify-content: center !important; }
  .regions > *, .chips > *, .trust-row > .trust-badge, .trust-badges > .trust-badge {
    border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important;
    border-radius: 0 !important; color: var(--txt2, var(--ink2, var(--text-2, inherit))) !important;
    -webkit-text-fill-color: currentColor !important; white-space: normal !important; animation: none !important;
    min-height: 0 !important; height: auto !important; font-weight: 500 !important;
  }
  .regions > *::before, .regions > *::after, .chips > *::before, .chips > *::after,
  .trust-row > .trust-badge::before, .trust-row > .trust-badge::after,
  .trust-badges > .trust-badge::before, .trust-badges > .trust-badge::after { content: none !important; display: none !important; }
  /* logos inside a credential row: small, monochrome, same visual weight as the text */
  .cred-row .cr-logos { display: inline-flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 8px 18px !important;
    border: 0 !important; background: none !important; padding: 0 !important; }
  .cred-row .cr-lead { color: inherit !important; }
  .cred-row img { height: 20px !important; width: auto !important; max-width: 110px !important; object-fit: contain !important;
    filter: brightness(0) invert(1) !important; opacity: 0.72 !important; display: block !important; margin: 0 !important; }
  .cred-row img[alt="NBC"], .cred-row img[alt="Fuji TV"] { height: 26px !important; }
  .cred-row img[alt="CBS"] { height: 30px !important; margin: -5px 0 !important; }
  .cred-row img[alt="Discovery Channel"] { height: 44px !important; margin: -12px 0 !important; }
  .cred-row img[alt="Beijing Times"], .cred-row img[alt="HackerNoon"], .cred-row img[alt="Wells Fargo"] { height: 14px !important; }
  .cred-row img[alt="Raytheon"], .cred-row img[alt="Verizon"], .cred-row img[alt="Xbox"] { height: 17px !important; }
  .cred-row img[alt="Bank of America"] { height: 24px !important; }
  .cred-row span, .cred-row .cr-lead { border: 0 !important; background: none !important; box-shadow: none !important;
    padding: 0 !important; border-radius: 0 !important; }
  html.amc-light .cred-row img { filter: brightness(0) !important; opacity: 0.6 !important; }
  /* inline credential pills inside running text read as text */
  .clearance-badge, .laurel-badge, .industry-badge, .health-badge, .health-check-badge {
    border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important;
    border-radius: 0 !important; display: inline !important; font-weight: 600 !important;
  }
  .clearance-badge svg, .laurel-badge svg { display: none !important; }
  .regions > a { text-decoration: underline !important; text-underline-offset: 3px !important; text-decoration-thickness: 1px !important; }
  .regions :is(strong, b), .chips :is(strong, b) { color: inherit !important; font-weight: 600 !important; }
  .logo-tile .verified-badge, .strip-status { display: none !important; }

  /* inline region tags read as text, not boxes */
  .geo-accent { border: 0 !important; background: none !important; padding: 0 !important; }
  .regions > *, .chips > *, .trust-row > .trust-badge, .trust-badges > .trust-badge, .geo-accent,
  .clearance-badge, .laurel-badge, .industry-badge { outline: 0 !important; }
  :is(h1, h2, h3, h4) { -webkit-text-fill-color: currentColor !important; background-image: none !important; }

  /* ---------- 7. rhythm: 144px between sections on phones, 200px on desktop ---------- */
  :is(main, body) > section:not(.hero):not(:first-of-type), main > .section:not(.hero):not(:first-of-type), body > .section:not(.hero):not(:first-of-type) {
    padding-top: calc(var(--t-gap) / 2) !important; padding-bottom: calc(var(--t-gap) / 2) !important;
  }
  :is(main, body) > section.hero, section.hero, :is(main, body) > section:first-of-type { padding-bottom: calc(var(--t-gap) / 2) !important; }
  @media (max-width: 833px) {
    .wrap, .container { padding-left: var(--t-side) !important; padding-right: var(--t-side) !important; }
    section.hero { padding-left: 0 !important; padding-right: 0 !important; }
    section.hero > .hero-content { padding-left: var(--t-side) !important; padding-right: var(--t-side) !important; }
    /* orbital pages frame each section as a tile: 8px gutter + 16px inside = 24px to the text */
    body:has(.orbital-nav) main { padding-left: 8px !important; padding-right: 8px !important; }
    body:has(.orbital-nav) main > section { padding-left: 16px !important; padding-right: 16px !important; }
    body:has(.orbital-nav) main > section :is(.container, .hero-content) { padding-left: 0 !important; padding-right: 0 !important; }
    body:has(.orbital-nav) :is(.pricing-card, .service-card, .pain-card, .proof-card, .case-card, .process-card,
      .deliverable-card, .panel-secondary, .form-container) { padding-left: 20px !important; padding-right: 20px !important; }
    body:has(.orbital-nav) .faq-item { padding: 0 !important; }
    body:has(.orbital-nav) .faq-item > summary { padding: 16px 20px !important; }
    body:has(.orbital-nav) .faq-item > :not(summary) { padding: 0 20px 18px !important; }
  }


  /* ---------- 8. paid-ad landers (body.lander-tight) ---------- */
  /* proof blocks that follow each other read as one section */
  .lander-tight section.t-join { padding-top: 0 !important; }
  .lander-tight section:has(+ section.t-join), .lander-tight section:has(+ div.cred-bar),
  .lander-tight section:has(+ div:not([class]) .geo-accent) { padding-bottom: 48px !important; }
  .lander-tight .cred-bar { margin: 0 0 48px !important; padding: 0 !important; border: 0 !important; background: none !important; }
  .lander-tight .cred-bar p { font-size: var(--t-small) !important; }
  /* collapsed detail lists */
  .lander-tight details.t-more { margin-top: 14px !important; }
  .lander-tight details.t-more > summary {
    display: flex !important; align-items: center !important; gap: 10px !important; min-height: 44px !important; cursor: pointer !important; list-style: none !important;
    font-size: var(--t-small) !important; font-weight: 600 !important; color: inherit !important; opacity: 0.85 !important;
    border-top: 1px solid currentColor !important; border-top-color: rgba(127,127,127,0.25) !important; padding-top: 4px !important;
  }
  .lander-tight details.t-more > summary::-webkit-details-marker { display: none !important; }
  .lander-tight details.t-more > summary::after { content: "+" !important; margin-inline-start: auto !important; font-weight: 400 !important; font-size: var(--t-sub) !important; line-height: 1 !important; }
  .lander-tight details.t-more[open] > summary::after { content: "\2212" !important; }
  .lander-tight details.t-more > summary::before { content: none !important; }
  .lander-tight details.t-more > :not(summary) { margin-top: 10px !important; }
  /* logo walls: smaller tiles, three across on phones */
  @media (max-width: 833px) {
    .lander-tight .logos, .lander-tight .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
    .lander-tight .logos--five, .lander-tight .fortune-track .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lander-tight .logos > div, .lander-tight .logo-grid > .logo-tile { padding: 14px 4px !important; min-height: 0 !important; aspect-ratio: auto !important; }
    .lander-tight .logos img, .lander-tight .logo-grid img { max-height: 26px !important; max-width: 90% !important; }
    .lander-tight .lmeta, .lander-tight .tile-meta { line-height: 1.3 !important; overflow-wrap: break-word !important; hyphens: auto !important; -webkit-hyphens: auto !important; }
    .lander-tight .dunes, .lander-tight .dunes img { max-height: 150px !important; object-fit: cover !important; }
  }
  .lander-tight .hn-link { margin-top: 20px !important; text-align: center !important; font-size: var(--t-small) !important; }
  .lander-tight .hn-link a { text-decoration: underline !important; text-underline-offset: 3px !important; color: inherit !important; opacity: 0.85 !important; }

  /* folded how-it-works steps: the title is the summary */
  .lander-tight details.t-step > summary { border-top: 0 !important; padding-top: 0 !important; opacity: 1 !important; font-size: inherit !important; }
  .lander-tight details.t-step > summary :is(h3, b) { display: inline !important; margin: 0 !important; font-size: var(--t-sub) !important; }
  .lander-tight details.t-step { margin-top: 6px !important; }
  .lander-tight :is(.tile, .service-card, .week, .phase):has(> details.t-step) { min-height: 0 !important; padding-top: 18px !important; padding-bottom: 14px !important; }
  .lander-tight .service-card .service-icon { display: none !important; }
  /* stats: two by two on phones */
  @media (max-width: 833px) {
    .lander-tight .stats-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .lander-tight .stat-card { min-height: 0 !important; padding: 18px 12px !important; }
    .lander-tight #proof .grid > .stat { grid-column: span 6 !important; padding: 18px 12px !important; }
    .lander-tight :is(.faq-item, details.faq) > summary { padding-top: 12px !important; padding-bottom: 12px !important; }
    .lander-tight :is(.faq-item, details.faq) { margin-bottom: 8px !important; }
  }
  /* decorative counters: these sections are not a sequence */
  section .micro-label::before, section .section-label::before { content: none !important; }
  .pain-card .pain-icon::before, .pain-card .icon::before, .service-card .svc-icon::before { content: none !important; }

  /* hover-light layers injected by amc-effects.js: their stylesheet is not loaded on the landers,
     so they sat in the flow and padded every card; keep them out of the layout */
  .r2-card-light, .r2-card-specular { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important;
    pointer-events: none !important; opacity: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }

  /* press rows on the landers: one compact wrapped row */
  @media (max-width: 833px) {
    .lander-tight .media-row { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 16px 24px !important; }
    .lander-tight .media-row .media-logo { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; min-height: 0 !important; width: auto !important; }
    .lander-tight :is(.media-row, .seenon) img { height: 22px !important; min-height: 0 !important; max-height: none !important; width: auto !important; }
    .lander-tight :is(.media-row, .seenon) img[alt="NBC"], .lander-tight :is(.media-row, .seenon) img[alt^="Fuji"] { height: 28px !important; }
    .lander-tight :is(.media-row, .seenon) img[alt="CBS"] { height: 32px !important; margin: -5px 0 !important; }
    .lander-tight :is(.media-row, .seenon) img[alt="Discovery Channel"] { height: 48px !important; margin: -13px 0 !important; }
    .lander-tight :is(.media-row, .seenon) img[alt="Beijing Times"], .lander-tight :is(.media-row, .seenon) img[alt="HackerNoon"] { height: 16px !important; }
  }

  /* text logos in the orbital logo wall: bold body sans instead of monospace */
  .tech-name { font-weight: 700 !important; letter-spacing: -0.01em !important; line-height: 1.2 !important; }
  /* scrolling "[ SYSTEMS ONLINE ]" terminal readout: monospace caps decoration, retired */
  .r4-terminal-readout { display: none !important; }

  /* landers on phones: portrait and quote avatars sit beside their text instead of above it */
  @media (max-width: 833px) {
    .lander-tight div:has(> img[src*="alastair-portrait"]) { display: block !important; }
    .lander-tight img[src*="alastair-portrait"] { float: left !important; width: 76px !important; height: 76px !important; margin: 4px 16px 6px 0 !important; }
    [dir="rtl"] .lander-tight img[src*="alastair-portrait"], .lander-tight[dir="rtl"] img[src*="alastair-portrait"] { float: right !important; margin: 4px 0 6px 16px !important; }
    .lander-tight div:has(> img[src*="grant-cardone-sketch"]) { flex-wrap: nowrap !important; gap: 16px !important; }
    .lander-tight img[src*="grant-cardone-sketch"] { width: 64px !important; height: 64px !important; }
  }

  /* step label sits above the folded title instead of in the corner, clear of the toggle */
  .lander-tight .tile:has(> details.t-step) .para-no { position: static !important; display: block !important; margin: 0 0 4px !important; text-align: start !important; }

  /* remaining small tap targets: logo links, menu toggles, closers, footer link lists */
  .brand, .island-brand, .topbar .in > a:first-child, .nav-logo { min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
  .mburger, .nav-hamburger, .sticky-cta__close, .mclose { min-width: 44px !important; min-height: 44px !important; }
  .site-footer li a, .footer-links a { display: inline-block !important; padding-top: 12px !important; padding-bottom: 12px !important; }
  .hn-link a { display: inline-block !important; padding: 12px 4px !important; }

  .nav-links .nav-link { min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
  @media (max-width: 833px) {
    .site-footer a { display: inline-block !important; padding-top: 12px !important; padding-bottom: 12px !important; }
  }
}
