/* Phone compositions: smaller illustrations, concise visual hierarchy and
   natural-width actions. The desktop layout is deliberately outside this layer. */
@media (max-width: 700px) {
  #mock :is(#services, #process, #line, #partnership) {
    padding: 50px 20px;
  }
  #mock :is(#workspace, #quote, .fslab) {
    margin-inline: 5px;
    border-radius: 24px;
  }
  #mock :is(#workspace, #quote) .slab-pad {
    padding: 36px 20px;
  }
  #mock :is(#services, #process, #line, #workspace, #partnership, #quote) .h2 {
    margin-top: 16px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: pretty;
  }
  #mock :is(#services, #process, #line, #partnership) .head {
    gap: 20px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    align-items: start;
  }
  #mock :is(#services, #process, #line, #workspace, #partnership, #quote) .tag {
    width: fit-content;
    font-size: 10px;
    letter-spacing: .045em;
  }
  #mock :is(#services, #process, #line, #workspace, #partnership, #quote) :is(.head p, .lead, .cbody p, .checks li) {
    font-size: 15px;
    line-height: 1.48;
  }
  #mock :is(#services, #process, #line) .head .side { gap: 20px; }
  #mock :is(#services, #process, #line) .head .side p { max-width: 36ch; }
  #mock :is(#services, #process, #line, #workspace, #partnership, #quote) .cta {
    gap: 12px;
    margin-top: 24px;
  }
  #mock :is(#services, #process, #line, #workspace, #partnership, #quote) .btn {
    width: fit-content;
    max-width: 100%;
    min-height: 46px;
    gap: 12px;
    padding: 5px 5px 5px 18px;
    font-size: 14px;
    line-height: 1.2;
    justify-content: flex-start;
    white-space: normal;
  }
  #mock :is(#services, #process, #line, #workspace, #partnership, #quote) .btn .arr {
    width: 36px;
    height: 36px;
  }

  /* Service artwork becomes a small, legible example above the real copy. */
  #mock #services .bento { gap: 18px; }
  #mock #services .card { border-radius: 20px; }
  #mock #services .card.tall :is(.runstrip,.cps) { display: none; }
  #mock #services .plate,
  #mock #services .card.tall .plate {
    min-height: 0;
    flex: none;
    padding: 20px 18px;
    gap: 12px;
  }
  #mock #services .card.drench .plate { padding-bottom: 12px; }
  #mock #services .cbody { padding: 22px 22px 24px; }
  #mock #services .cbody h3 {
    font-size: 25px;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.04em;
  }
  #mock #services .cbody p { margin-top: 10px; }
  #mock #services .chips { gap: 6px; margin-top: 14px; }
  #mock #services .chips li {
    padding: 5px 8px;
    font-size: 10.5px;
    line-height: 1.2;
    letter-spacing: .005em;
  }
  #mock #services .doc,
  #mock #services .card.tall .doc {
    width: 100%;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 10px;
    box-shadow: 0 16px 28px -22px rgba(58,53,140,.36);
  }
  #mock #services .doc-h {
    padding: 9px 10px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .01em;
    line-height: 1.3;
  }
  #mock #services .doc-r { padding: 8px 10px; gap: 8px; }
  #mock #services .doc-r > :first-child { flex: 0 1 35%; }
  #mock #services .doc-r > :last-child { flex: 1 1 65%; }
  #mock #services .runstrip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .015em;
    box-shadow: none;
  }
  #mock #services .runstrip b { font-size: 16px; }
  #mock #services .runstrip span:last-child { display: inline; }
  #mock #services .cps { padding-top: 2px; }
  #mock #services .cps li { gap: 5px; font-size: 10px; line-height: 1.25; letter-spacing: 0; }
  #mock #services .cps i { width: 17px; height: 17px; }
  #mock #services .cps::before { top: 10px; }
  #mock #services .tick { gap: 12px; padding: 12px 10px 2px; }
  #mock #services .tick small { font-size: 10px; }
  #mock #services .tick strong { font-size: 29px; margin-top: 4px; }
  #mock #services .tick ul { gap: 8px; font-size: 10px; letter-spacing: 0; }
  #mock #services .doc .bar { margin: 10px 10px 7px; }
  #mock #services .doc .cap { padding: 0 10px 10px; gap: 6px; font-size: 10px; line-height: 1.35; }
  #mock #services .smp { font-size: 10px; padding: 4px 6px; }
  /* Phones show the same animated route diagram as desktop; the list fallback stays in the markup, hidden. */
  #mock #services .route { display: block; }
  #mock #services .route-mobile { display: none; width: 100%; padding: 0; }
  #mock #services .route-mobile > p {
    margin-bottom: 12px;
    font: 500 10px/1.3 var(--mono);
    letter-spacing: .025em;
    text-transform: uppercase;
  }
  #mock #services .route-mobile ul { display: grid; gap: 8px; }
  #mock #services .route-mobile li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px 32px;
    align-items: center;
    gap: 8px;
  }
  #mock #services .route-mobile li > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    line-height: 1.25;
  }
  #mock #services .route-mobile small { font: 500 10px/1.3 var(--mono); white-space: nowrap; }
  #mock #services .route-mobile i { font-size: 20px; font-style: normal; text-align: center; }
  #mock #services .route-mobile b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 12px;
  }

  /* The prose already explains each step; its all-caps recap is redundant. */
  #mock #process .pcards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #mock #process .pcard {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 16px;
    min-height: 0;
    border-radius: 16px;
    background: var(--white);
  }
  #mock #process .pcard .badge {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 3px rgba(99,102,241,.06);
  }
  #mock #process .pcard h3 { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 21px; line-height: 1.15; font-weight: 500; }
  #mock #process .pcard p { grid-column: 2; grid-row: 2; margin-top: 6px; font-size: 15px; line-height: 1.45; }
  #mock #process .pcard .pm { display: none; }
  #mock.lite #process .pcard.end { background: var(--bg3); box-shadow: none; }

  /* One wide production image leads into two smaller companion images. */
  #mock #line .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #mock #line .tile {
    width: 100%;
    min-height: 190px;
    aspect-ratio: auto;
    padding: 16px;
    border-radius: 16px;
  }
  #mock #line .tile:first-child { grid-column: 1 / -1; min-height: 210px; }
  #mock #line .tile h3 { font-size: 23px; line-height: 1.05; letter-spacing: -.04em; }
  #mock #line .tile:first-child h3 { font-size: 28px; }
  #mock #line .tile h3 small { margin-top: 8px; font-size: 10.5px; line-height: 1.35; letter-spacing: 0; }
  /* The two half-width tiles keep their caption on one line: tighter padding, caption sized to the tile. */
  #mock #line .tile:not(:first-child) { padding: 12px; }
  #mock #line .tile:not(:first-child) h3 small { font-size: clamp(7.5px, 2.3vw, 8.5px); white-space: nowrap; }
  #mock #line .tchip { padding: 6px 8px; font-size: 9.5px; letter-spacing: .015em; line-height: 1.3; }
  #mock #line .pnote { margin-top: 14px; font-size: 11px; line-height: 1.5; }

  /* Show the workspace right after its introduction, then the benefits. */
  #mock #workspace .sgrid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #mock #workspace .sgrid > div:first-child { display: contents; }
  #mock #workspace .tag { order: 0; justify-self: start; }
  #mock #workspace .h2 { order: 1; margin-top: 0; }
  #mock #workspace .lead { order: 2; margin-top: 0; overflow-wrap: anywhere; }
  #mock #workspace .panel {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: 4px;
    border-radius: 16px;
    box-shadow: 0 18px 40px -26px rgba(10,6,50,.4), 0 0 0 1px rgba(165,148,255,.24);
  }
  #mock #workspace .panel .t-head { grid-column: 1 / -1; padding: 13px 14px; font-size: 10px; }
  #mock #workspace .panel .smp { font-size: 10px; }
  #mock #workspace .kv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 10px;
    border-top: 0;
    border-right: 1px solid var(--on-line);
  }
  #mock #workspace .kv:nth-child(4) { border-right: 0; }
  #mock #workspace .kv span { font-size: 12px; line-height: 1.35; }
  #mock #workspace .kv b { font-size: 24px; line-height: 1; letter-spacing: -.05em; }
  #mock #workspace .panel .t-foot { grid-column: 1 / -1; padding: 13px 14px; }
  #mock #workspace .panel .t-foot .row { margin-top: 8px; font-size: 10px; line-height: 1.35; }
  #mock #workspace .checks { order: 4; margin-top: 0; gap: 12px; }
  #mock #workspace .checks li { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
  #mock #workspace .checks i { width: 18px; height: 18px; }
  #mock #workspace .cta { order: 5; margin-top: 4px; }

  #mock #partnership .head.c { text-align: left; justify-items: start; padding-bottom: 0; margin-bottom: 24px; gap: 16px; }
  #mock #partnership .head .state {
    max-width: 20ch;
    margin: 0;
    text-align: left;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: pretty;
  }
  #mock #partnership .pgrid { gap: 22px; margin-top: 0; }
  #mock #partnership .checks { gap: 14px; }
  #mock #partnership .stats { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mock #partnership .stats .smp {
    position: static;
    grid-column: 1 / -1;
    width: fit-content;
    margin-top: -9px;
    font-size: 10px;
    line-height: 1.3;
  }
  #mock #partnership .stats div { padding: 20px 14px; }
  #mock #partnership .stats div:nth-of-type(odd) { padding-left: 0; }
  #mock #partnership .stats b { font-size: 28px; line-height: 1; letter-spacing: -.04em; overflow-wrap: normal; }
  #mock #partnership .stats div span { margin-top: 8px; font-size: 13px; line-height: 1.35; overflow-wrap: normal; }

  /* Keep the quote example complete, at the scale of a small paper form. */
  #mock #quote .sgrid { gap: 28px; }
  #mock #quote .lead { margin-top: 18px; }
  #mock #quote .fine { margin-top: 20px; font-size: 11px; line-height: 1.5; }
  #mock #quote .mail { display: inline-flex; align-items: center; margin-top: 6px; font-size: 14px; line-height: 1.4; min-height: 44px; }
  #mock #quote .trav { padding: 7px; border-radius: 15px; }
  #mock #quote .trav .t-head { padding: 10px; font-size: 10px; letter-spacing: .02em; gap: 8px; }
  #mock #quote .t-run { padding: 12px 10px; gap: 10px; }
  #mock #quote .t-run small { font-size: 10px; letter-spacing: .04em; }
  #mock #quote .t-run strong { margin-top: 6px; font-size: 32px; line-height: .95; }
  #mock #quote .stamp { width: 54px; height: 54px; font-size: 8px; line-height: 1.3; }
  #mock #quote .t-row { grid-template-columns: 18px minmax(0, 1fr) auto; padding: 10px; gap: 8px; }
  #mock #quote .t-row .n { font-size: 10px; }
  #mock #quote .t-row h3 { font-size: 14px; line-height: 1.25; }
  #mock #quote .t-row p { font-size: 12px; line-height: 1.35; margin-top: 3px; }
  #mock #quote .st { padding: 4px 6px; font-size: 10px; line-height: 1.2; }
  #mock #quote .t-foot { padding: 12px 10px; }
  #mock #quote .t-foot .row { margin-top: 8px; font-size: 11px; line-height: 1.4; }

  /* One closing action, two navigation groups, and a clear contact row. */
  #mock .fslab { padding-top: 12px; }
  #mock .fslab .ftab {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    margin: 0 auto;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    letter-spacing: .14em;
  }
  #mock .fslab .ftab::before,
  #mock .fslab .ftab::after { display: none; }
  #mock .fslab .ftab .logo { width: 24px; height: 24px; }
  #mock .fslab .fgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 10px 20px 12px; }
  html:not([data-footer-art="off"]) .day #mock .fslab .fgrid { padding-bottom: 12px; }
  #mock .fslab .fgrid .h2 { margin: 0 auto; font-size: 28px; max-width: 22ch; line-height: 1.1; letter-spacing: -.045em; text-align: center; text-wrap: balance; }
  /* No quote button in the phone footer; the Clients column and the quote section carry it. */
  #mock .fslab .cta { display: none; }
  #mock .fslab .cta .btn { width: fit-content; max-width: 100%; min-height: 46px; font-size: 13px; line-height: 1.2; gap: 8px; padding: 5px 5px 5px 15px; justify-content: flex-start; }
  #mock .fslab .cta .btn .arr { width: 32px; height: 32px; }
  #mock .fslab .cta .btn.ghost { display: none; }
  #mock .fslab .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding-top: 12px; border-top: 1px solid var(--on-line); }
  .day #mock .fslab .fcols h4 { font-size: 11.5px; letter-spacing: .04em; color: var(--ink); }
  #mock .fslab .fcols ul { margin-top: 4px; gap: 0; }
  .day #mock .fslab .fcols a { display: flex; align-items: center; min-height: 40px; padding-block: 6px; font-size: 14px; font-weight: 500; line-height: 1.4; }
  .day #mock .fslab .fcols > div:first-child a[href="#quote"] { display: none; }
  #mock .fslab .fcols .footer-contact { display: none; }
  .day #mock .fslab .fcols .phone-footer-contact {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid var(--on-line);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  #mock .fslab .phone-footer-contact::after { content: "↗"; flex: none; font-size: 16px; }
  .day #mock .fslab .legal { display: grid; justify-content: stretch; padding: 12px calc(20px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) 20px; gap: 3px; font-size: 10px; line-height: 1.45; letter-spacing: 0; text-align: left; }
  html:not([data-footer-art="off"]) .day #mock .fslab { --foot-art: .72; }
  html:not([data-footer-art="off"]) .day #mock .fslab::after { background: linear-gradient(180deg,transparent 45%,rgba(242,243,255,.55) 74%,transparent 90%); }
}

@media (max-width: 360px) {
  #mock #services .plate,
  #mock #services .card.tall .plate { padding-inline: 14px; }
  #mock #services .cbody { padding-inline: 18px; }
  #mock #services .cbody h3 { font-size: 24px; }
  #mock #workspace .kv { padding-inline: 8px; }
  #mock #workspace .kv b { font-size: 21px; }
  #mock #partnership .stats b { font-size: 25px; }
  #mock #quote .t-row { gap: 6px; padding-inline: 8px; }
  #mock #line .tile { padding: 13px; }
  #mock #line .tile h3 { font-size: 21px; }
}
