/* Measured against loopai.com at 390px: 20px gutters, 24px gaps,
   480/400px illustration cards, 16:9 inline video, two-column source pills. */
.li-mobile-title,
.li-mobile-result {
  display: none;
}
@media (max-width: 760px) {
  .la-hero {
    padding: 150px 20px 36px;
  }
  .la-hero h1 {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
  }
  .la-hero-copy > p {
    font-size: 18px;
    line-height: 1.5;
  }
  .la-hero-actions {
    margin-top: 36px;
  }
  .la-hero-video {
    aspect-ratio: 16 / 9;
    border-radius: 17px;
  }
  .la-platform {
    padding: 64px 20px 40px;
  }
  .la-platform h2 {
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 40px;
  }
  .la-five-flows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .la-flow {
    grid-column: auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
  }
  .la-dashboard,
  .la-chat {
    height: 480px;
    min-height: 480px;
  }
  .la-marketing,
  .la-finance,
  .la-briefing {
    height: 400px;
    min-height: 400px;
  }
  .la-flow-head {
    padding: 28px 24px 24px 28px;
    gap: 12px;
    position: relative;
    z-index: 3;
  }
  .la-flow-head h3 {
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    max-width: 300px;
  }
  .la-flow-head > button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .li-desktop-title {
    display: none;
  }
  .li-mobile-title {
    display: inline;
  }
  .li-mobile-result {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 64px;
    padding: 16px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 4;
    background: #f1f7fe;
    border-top: 1px solid #d9e5f3;
    color: #215f4a;
    font-size: 13px;
    line-height: 1.5;
  }
  .li-mobile-result > span:first-child {
    flex: none;
  }
  .li-chat .li-mobile-result {
    background: #12395d;
    border-color: #426a8d;
    color: #e6f6ff;
  }
  .la-flow > .la-done,
  .la-dash-actions {
    display: none;
  }
  /* As on Loop, these are cropped product previews. Full records open from ↗. */
  .li-dashboard-stage {
    position: absolute;
    left: 0;
    right: 0;
    top: 114px;
    bottom: 64px;
    padding: 0 24px;
    overflow: hidden;
  }
  .li-dashboard .la-ui-bar {
    flex-wrap: nowrap;
  }
  .li-dashboard .la-ui-bar strong {
    font-size: 12px;
  }
  .li-dashboard .la-ui-bar > span:last-child {
    display: none;
  }
  .li-dashboard .la-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 10px 8px 0;
  }
  .li-dashboard .la-kpis > div {
    display: block;
    padding: 8px 6px;
    min-width: 0;
  }
  .li-dashboard .la-kpis span {
    font-size: 12px;
    line-height: 1.4;
    display: block;
  }
  .li-dashboard .la-kpis strong {
    font-size: 20px;
    margin-top: 6px;
    display: block;
  }
  .li-dashboard .la-dash-chart {
    margin-bottom: 24px;
  }
  .li-dashboard .la-bars {
    height: 110px;
  }
  .li-dashboard-foreground {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 17px;
    margin: 0;
  }
  .li-dashboard-added {
    display: none;
  }
  .li-command {
    padding: 11px;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
  }
  .li-chat .la-chat-scene {
    position: absolute;
    left: 0;
    right: 0;
    top: 114px;
    bottom: 64px;
    overflow: hidden;
    padding: 0 20px;
  }
  .li-chat .la-question {
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 14px;
    margin-bottom: 16px;
  }
  .li-chat .la-chat-answer {
    padding: 14px;
    border-radius: 8px 16px 16px 16px;
  }
  .li-chat .la-chat-agent {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .li-chat .la-chat-agent img {
    width: 30px;
    height: 30px;
  }
  .li-chat .li-checked,
  .li-chat .la-source-tags,
  .li-chat .la-chat-complete,
  .li-chat .la-work-link {
    display: none;
  }
  .li-chat .la-chat-answer > p {
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .li-chat .li-paper {
    padding: 12px;
    margin-top: 12px;
  }
  .li-chat .li-paper-heading strong {
    font-size: 15px;
  }
  .li-chat .li-paper-compact > p {
    display: none;
  }
  .li-marketing .la-workflow-window,
  .li-finance .la-workflow-window {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 132px;
    bottom: -20px;
    margin: 0;
    overflow: hidden;
  }
  .li-marketing .la-marketing-body,
  .li-finance .la-finance-body {
    padding: 16px;
  }
  .li-marketing .la-work-link,
  .li-finance .la-work-link {
    display: none;
  }
  .li-marketing .li-channel-tabs {
    margin-top: 10px;
  }
  .li-marketing .la-marketing-stats {
    margin-top: 14px;
    gap: 12px;
  }
  .li-marketing .la-marketing-stats strong {
    font-size: 25px;
  }
  .li-marketing .li-marketing-decision {
    margin-top: 16px;
  }
  .li-finance .la-ledger > div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    padding: 13px 0;
    font-size: 13px;
  }
  .li-finance .la-ledger strong {
    width: auto;
    padding: 0;
    font-size: 16px;
  }
  .li-finance .li-source-comparison,
  .li-finance .la-reconciliation-result {
    margin-top: 16px;
  }
  .li-briefing .la-voice-scene {
    width: 100%;
    height: 200px;
    margin: 0;
    padding: 0 24px;
  }
  .li-briefing .la-voice-caption {
    margin: 0 24px;
    font-size: 14px;
    line-height: 1.5;
  }
  .li-briefing-note,
  .li-briefing .la-briefing-transcript {
    display: none;
  }
  .la-foundation {
    padding: 100px 20px 20px;
  }
  .la-foundation-intro h2 {
    font-size: 36px;
    line-height: 1.4;
    margin: 20px 0;
  }
  .la-foundation-intro > span {
    font-size: 16px;
    line-height: 1.7;
  }
  .la-foundation-layout {
    margin-top: 40px;
    gap: 24px;
  }
  .la-foundation-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    align-items: stretch;
  }
  .la-foundation-tabs > button,
  .la-foundation-tabs > button:first-child {
    flex-direction: row;
    border: 0;
    border-bottom: 1px solid #345272;
    border-radius: 0;
    padding: 0 0 18px;
    gap: 8px;
  }
  .la-foundation-tabs > button[aria-selected="true"] {
    background: transparent;
  }
  .la-foundation-tabs strong {
    font-size: 15px;
    line-height: 1.5;
  }
  .la-foundation-tabs p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 12px;
  }
  .la-foundation-tabs .la-foundation-play {
    display: none;
  }
  .la-foundation-scene .sc-scene {
    padding: 30px 22px 45px;
    gap: 28px;
    border-radius: 22px;
  }
  .la-foundation-scene .sc-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .la-foundation-scene .sc-pill {
    padding: 8px 9px;
    min-height: 42px;
    gap: 7px;
    border-radius: 12px;
  }
  .la-foundation-scene .sc-pill span {
    font-size: 12px;
    line-height: 1.4;
  }
  .la-foundation-scene .sc-model {
    padding: 25px 18px;
    min-height: 0;
  }
  .la-foundation-scene .sc-model h2 {
    font-size: 23px;
    margin: 15px 0 24px;
  }
  .la-foundation-scene .sc-definition {
    padding: 20px 12px;
  }
  .la-foundation-scene .sc-blocks span {
    height: 64px;
  }
  .la-foundation-scene .sc-outputs > div {
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    padding: 10px;
  }
  .la-foundation-scene .sc-output {
    min-height: 48px;
    font-size: 12px;
  }
  .la-foundation-detail .wf-table-wrap,
  .la-dialog-body .wf-table-wrap {
    overflow-x: auto;
  }
  .la-integrations .track,
  .la-integrations .stage {
    height: 100svh;
    min-height: 740px;
  }
}
@media (max-width: 350px) {
  .la-hero h1 {
    font-size: 36px;
  }
  .la-flow-head {
    padding-left: 22px;
    padding-right: 18px;
  }
  .la-foundation-scene .sc-scene {
    padding-left: 14px;
    padding-right: 14px;
  }
  .li-finance .la-ledger > div {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  .li-finance .la-ledger strong {
    grid-column: 2;
  }
}
@media (max-width: 350px) {
  .li-briefing .la-voice-scene {
    height: 160px;
    gap: 12px;
  }
  .li-briefing .li-waveform {
    height: 64px;
  }
  .li-briefing .la-play-briefing {
    width: 54px;
    height: 54px;
  }
}
