/* ============================================================================
   Sillwork mobile layer
   ----------------------------------------------------------------------------
   Phone specific layout. It changes size and arrangement only: never wording,
   and it never hides content from phones that desktop shows.

   Loaded from the head, after the page's own styles. Several components carry
   inline or late styles, so the overrides here use !important deliberately.

   Everything sits inside a phone media query. Desktop is untouched.
   ========================================================================== */

/* 900px, not 760, because that is the width the diagram script switches on.
   If these two disagree the script draws one shape while CSS lays out
   another. */
@media (max-width: 900px) {

  /* ------------------------------------------------------------------------
     2. Five checks, rebuilt for a phone
     ------------------------------------------------------------------------
     Desktop lays the five checks in one wide row with wires fanning out of
     the top node and collecting into the bottom one. That row cannot fit a
     phone, so the old mobile rules hid the wires, forced every chip on and
     stacked the checks as a dead list: no animation at all.

     Here the checks become a two column grid hung off a centre trunk, and the
     wires come back. The fifth check spans the full width so it sits on the
     trunk. The script reads the boxes where they land, so it draws the right
     trunk and branches for this shape and runs the same lighting sequence,
     one row at a time.
     --------------------------------------------------------------------- */

  .orc-wires { display: block !important; }
  .orc-field { display: none !important; }        /* the bracket is a wide row device */

  .orc-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 12px !important;
  }
  .orc-col:nth-child(5) { grid-column: 1 / -1; }
  .orc-col:nth-child(5) .orc-q { max-width: 230px; margin: 0 auto; }

  .orc-gap-top { height: 24px !important; }
  .orc-gap-bot { height: 26px !important; }

  .orc-q { font-size: 13px !important; padding: 11px 9px !important; }
  .orc-node { font-size: 13.5px !important; padding: 11px 16px !important; }
  .orc-title { font-size: 26px !important; }
  .orc-sub { font-size: 15px !important; }
  .orc-head { margin-bottom: 30px !important; }
  .orc-note { font-size: 13px !important; margin-top: 24px !important; }

  /* Give the trunk room to run between the two columns. */
  .orc-cols { padding: 0 2px; }

  /* Put the chips back on their animation. The old mobile block pinned them
     to the finished state, which is what killed the sequence. */
  .orc-chipwrap { height: 28px !important; margin-top: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .orc-chip {
    opacity: 0 !important;
    transform: translateY(5px) scale(.96) !important;
    background: #FF6200 !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    padding: 3px 7px !important;
  }
  .orc-col.pending .orc-chip {
    opacity: 1 !important; transform: none !important;
    background: rgba(255,98,0,.22) !important; color: transparent !important;
  }
  .orc-col.active .orc-chip {
    opacity: 1 !important; transform: none !important;
    background: #FF6200 !important; color: #FFFFFF !important;
  }

  /* The result box starts neutral again and lights at the end of the run. */
  .orc-final { border-color: #E8E3DD !important; background: #FFFFFF !important; }
  .orc-flow.done .orc-final {
    border-color: rgba(255,98,0,.55) !important;
    background: #FFF6EF !important;
    box-shadow: 0 0 0 4px rgba(255,98,0,.10) !important;
  }
}

/* A reduced motion preference still gets the finished state, not a blank one. */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .orc-chip { opacity: 1 !important; transform: none !important; background: #FF6200 !important; color: #FFFFFF !important; }
  .orc-final { border-color: rgba(255,98,0,.55) !important; background: #FFF6EF !important; }
}

/* ============================================================================
   Phone type and size scale
   ----------------------------------------------------------------------------
   The desktop sizes were carrying straight down to phones, so a 390px screen
   was getting a 38px headline, a 150px wordmark and 15px body copy. Everything
   below steps that down about a fifth to a quarter. Nothing is hidden and no
   wording changes; this is size only.

   These need !important because several components keep their styles in a
   <style> block inside the body, which lands after this file in the cascade.
   ========================================================================== */

@media (max-width: 760px) {

  /* ---- masthead ---- */
  .nav-brand svg { width: 112px !important; height: 28px !important; }
  .nav-mcta { font-size: 12.5px !important; padding: 8px 14px !important; }
  .nav-burger { width: 34px !important; height: 34px !important; }
  .nav-link, .nav-drop-btn { font-size: 14px !important; padding: 11px 0 !important; }

  /* ---- hero ---- */
  .hx-h1 { font-size: 29px !important; letter-spacing: -.028em !important; }
  .hx-lede { font-size: 15px !important; line-height: 1.65 !important; }
  .hx-eyebrow { font-size: 12px !important; margin-bottom: 14px !important; }
  .hx { padding: 104px 22px 48px !important; }
  .hx-pill { font-size: 12.5px !important; padding: 9px 16px 9px 10px !important; }
  .hx-pill .ic { width: 22px !important; height: 22px !important; }
  .hx-live-t { font-size: 14.5px !important; }
  .hx-tag { font-size: 10.5px !important; padding: 4px 9px !important; }
  .hx-said { font-size: 12.5px !important; }
  .hx-who { font-size: 11px !important; }
  .hx-did-t { font-size: 11.5px !important; }
  .hx-check { font-size: 11px !important; }
  .hx-head { padding: 13px 14px 11px !important; }
  .hx-convo { padding: 13px 14px 2px !important; }

  /* ---- section headings and body copy ---- */
  .film-title, .orc-title, .stage-head h2, .tz-h2, .bx-h2,
  .tile-sec h2, .sec-faq h2, .sec-about h2, .cta-band h2 { font-size: 22px !important; }
  .film-sub, .orc-sub { font-size: 14px !important; }
  .bx-head-r, .bx-lead, .stage p, .sec-about p { font-size: 13.5px !important; }
  .bx-eyebrow, .tz-kicker, .bx-label { font-size: 12px !important; }
  .eyebrow { font-size: 10px !important; padding: 5px 11px !important; }
  .sec-more, .bx-link, .pg-inline { font-size: 13px !important; }

  /* ---- seven stages ---- */
  .stage h3 { font-size: 15.5px !important; }
  .stage .sg-n { font-size: 18px !important; margin-bottom: 11px !important; }
  .stage { padding: 20px 18px 22px !important; }

  /* ---- platform bento ---- */
  .bx-card { padding: 22px 18px !important; min-height: 0 !important; }
  .bx-quote { font-size: 18px !important; }
  .bx-m-t { font-size: 12.5px !important; }
  .bx-m-s, .bx-rt span { font-size: 10px !important; }
  .bx-rt b { font-size: 11px !important; }
  .bx-pill, .bx-chip { font-size: 10px !important; }
  .bx-btn { font-size: 12.5px !important; padding: 10px 17px !important; }

  /* ---- logo rail ---- */
  .lm-item { font-size: 11px !important; padding: 6px 11px 6px 9px !important; }
  .lm-ico { width: 15px !important; height: 15px !important; }

  /* ---- testimonials: the pair sits side by side rather than stacked ---- */
  .tc-pair {
    flex-direction: row !important;
    flex-basis: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .tc-pair .tc-card { flex: 1 1 0 !important; min-width: 0 !important; padding: 16px 14px 14px !important; }
  .tq-quote { font-size: 12.5px !important; line-height: 1.6 !important; }
  .tq-stars svg { width: 11px !important; height: 11px !important; }
  .tq-more { font-size: 11.5px !important; margin-top: 7px !important; }
  .tz-name { font-size: 13.5px !important; }
  .tz-role { font-size: 10.5px !important; }
  .tz-av { width: 34px !important; height: 34px !important; }
  .tz-byline { gap: 9px !important; padding-top: 12px !important; }
  .tc-fig { font-size: 34px !important; }
  .tc-fig-cap { font-size: 11.5px !important; margin-top: 10px !important; line-height: 1.5 !important; }
  .tc-fig-src { font-size: 9.5px !important; }
  .tz-metric-src { font-size: 10.5px !important; }
  .tc-arrow { width: 34px !important; height: 34px !important; }

  /* ---- inner pages (platform, pricing, about, industries, integrations) ---- */
  .pg-hero { padding: 104px 22px 48px !important; }
  .pg-h1 { font-size: 27px !important; letter-spacing: -.028em !important; }
  .pg-lede { font-size: 15px !important; line-height: 1.65 !important; }
  .pg-h2 { font-size: 21px !important; }
  .pg-p, .pg-list .t, .pg-qa p, .pg-foot { font-size: 13.5px !important; line-height: 1.7 !important; }
  .pg-card h3 { font-size: 15px !important; }
  .pg-card p { font-size: 13px !important; }
  .pg-card { padding: 20px 18px 22px !important; }
  .pg-num { font-size: 18px !important; margin-bottom: 10px !important; }
  .pg-qa h3 { font-size: 15px !important; }
  .pg-kicker { font-size: 11.5px !important; }
  .pg-eyebrow { font-size: 10px !important; }
  .pg-sec { padding: 48px 22px !important; }

  /* ---- blog ---- */
  .post-row h3, .post-title { font-size: 17px !important; }
  .post-row p, .post-dek { font-size: 13.5px !important; }
  .art h1 { font-size: 25px !important; line-height: 1.2 !important; }
  .art h2 { font-size: 19px !important; }
  .art h3 { font-size: 16px !important; }
  .art .lede { font-size: 15.5px !important; line-height: 1.65 !important; }
  .art p, .art li { font-size: 14.5px !important; line-height: 1.72 !important; }
  .art-wrap { padding-left: 22px !important; padding-right: 22px !important; }

  /* ---- buttons and forms ---- */
  .btn-light, .btn-outline, .pg-btn, .pg-btn2, .cta-primary, .cta-ghost { font-size: 13.5px !important; padding: 12px 22px !important; }
}
