/* Phone-specific layouts. Desktop art direction and content stay unchanged. */
.mobile-benefit-hint{display:none}

@media(max-width:760px){
  html[data-theme=dark]{color-scheme:dark}
  summary,label{-webkit-tap-highlight-color:transparent}
  /* Consistent reading rhythm, without shrinking labels to make them fit. */
  .section{padding-top:56px;padding-bottom:56px}
  .section-heading{margin-bottom:28px}
  .section-heading h2>.section-gold,
  .architecture-intro h2>.section-gold,
  .simple-examples-heading h2>.section-gold,
  .founder h2>.section-gold,
  .application-intro h2>.section-gold{display:block;margin-top:.1em}
  .section-heading h2,.architecture-intro h2,.simple-examples-heading h2{line-height:1.24}
  .section-heading>p:last-child,.option-copy>p:not(.eyebrow){line-height:1.7}
  .section-heading>.eyebrow,.architecture-intro>.eyebrow{letter-spacing:.08em}
  .hero{row-gap:28px;padding-bottom:40px}
  .hero-copy>.eyebrow{font-size:12px;letter-spacing:.07em}
  .hero-copy .micro{line-height:1.7}
  .hero .primary{min-height:56px}
  .engine-sources>span{padding-inline:4px}

  /* Read one benefit at a time instead of a long wall of six selectors. */
  .mobile-benefit-hint{display:flex;justify-content:space-between;gap:16px;font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 12px}
  .mobile-benefit-hint>span:last-child{text-align:right;color:var(--gold-text)}
  .possibilities .path-list{
    position:relative;display:grid;grid-template-columns:none;grid-auto-flow:column;
    grid-auto-columns:calc(100% - 32px);gap:12px;overflow-x:auto;
    padding:4px 2px 14px;margin:0 0 20px;scroll-snap-type:x mandatory;
    scroll-padding-inline:2px;overscroll-behavior-x:contain;
    scrollbar-width:thin;scrollbar-color:var(--gold) var(--surface);
  }
  .possibilities .path-tab,.possibilities .path-tab[aria-selected=true]{
    width:100%;min-width:0;min-height:220px;padding:20px;
    grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;
    scroll-snap-align:start;box-shadow:none;
  }
  .possibilities .path-tab strong{font-size:16px;line-height:1.45}
  .possibilities .path-tab small{font-size:14px;line-height:1.7;margin-top:10px}
  .possibilities .path-tab .path-arrow{display:none}
  .possibilities .path-panels{border-radius:14px}
  .possibility-copy{padding:24px 20px}
  .possibilities .possibility-copy h3{font-size:27px;line-height:1.25}
  .possibility-copy>p:not(.eyebrow){font-size:16px;line-height:1.7}
  .possibility-copy .panel-note{font-size:13px!important;line-height:1.7}
  .benefit-navigation{gap:10px}
  .benefit-navigation button{min-height:48px;padding:12px;font-size:13px}

  /* A full-width library card avoids squeezing text beside the big number. */
  .library-art{height:auto;min-height:0;display:flex;flex-direction:column;gap:16px;padding:24px}
  .library-counter{display:flex;flex:none;align-items:center;justify-content:center;gap:20px;width:100%}
  .library-counter>strong{font-size:56px;flex-shrink:0}
  .library-counter>span{font-size:12px;max-width:140px;line-height:1.6;margin:0}
  .library-art .library-sheets{flex:none;width:calc(100% - 16px);max-width:320px;height:224px;margin:10px auto 0}
  .library-sheets>div{padding:20px;transform:none}
  .library-sheets>i:first-child{transform:translate(6px,-10px) rotate(3deg)}
  .library-sheets>i:nth-child(2){transform:translate(3px,-5px) rotate(1.5deg)}
  .library-sheets b{font-size:22px;line-height:1.3;margin:12px 0}
  .library-sheet-row{padding:10px 0;font-size:13px;line-height:1.6}
  .custom-art{height:auto;min-height:320px;padding:28px 20px}
  .custom-art .custom-source,.custom-art .custom-result{flex-shrink:0}
  .option-copy{padding:24px}
  .option-copy h3{font-size:27px;line-height:1.25}
  .option-fit{margin-top:20px;padding-top:16px}
  .option-fit>p{font-size:15px}

  /* All three layers are visible and tappable, without overlapping text. */
  .definition.container{padding:28px 20px;margin-block:24px;border-radius:14px}
  .architecture-board{gap:24px}
  .layer-stack{height:auto;max-width:none;display:grid;gap:10px;perspective:none}
  .architecture-layer,.architecture-layer[aria-selected=true]{
    position:relative;left:auto;top:auto;inset:auto;width:100%;height:auto;
    min-height:86px;padding:16px 42px 16px 18px;transform:none;box-shadow:none;border-radius:10px;
  }
  .architecture-layer[aria-selected=true]{border-color:var(--gold-text);box-shadow:inset 0 0 0 1px var(--gold-text);background:var(--surface)}
  .layer-code{font-size:12px;line-height:1.5;letter-spacing:.04em}
  .layer-name{font-size:22px;line-height:1.3;margin-top:5px}
  .layer-corner{top:18px;right:18px}
  .layer-linework,.layer-detail-number{display:none}
  .layer-copy{padding-top:24px;padding-bottom:4px}
  .layer-copy h3{font-size:26px;max-width:100%}
  .layer-copy>p:last-of-type{font-size:16px;line-height:1.7}
  .review-boundary p{font-size:14px;line-height:1.65}
  .review-boundary small{font-size:12px;line-height:1.65}

  /* A compact founder card, rather than a full-screen close-up. */
  .founder-image{display:grid;grid-template-columns:112px minmax(0,1fr);max-width:none;min-height:140px;padding:0;border-radius:12px;overflow:hidden;background:#151a23}
  .founder-image img{width:112px;height:140px;aspect-ratio:auto;object-fit:cover;object-position:center}
  .founder-image .founder-caption{position:static;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:20px 18px}
  .founder-caption strong{font-size:22px;line-height:1.3}
  .founder-caption small{font-size:12px;letter-spacing:0;line-height:1.6;margin-top:8px}
  .founder-grid{gap:28px}
  #fit .fit-card-heading{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;min-height:0;gap:18px;padding:24px}
  #fit .fit-symbol{width:36px;height:36px;flex-shrink:0;font-size:22px}
  #fit .fit-symbol::after{inset:-4px}
  #fit .fit-card-heading h3{font-size:24px}
  #fit .fit-kicker{font-size:12px;letter-spacing:.05em;line-height:1.6}
  #fit .fit-list{padding:0 20px 12px}
  #fit .fit-list li{padding-block:16px;font-size:15px;line-height:1.7}
  #fit .fit-list li::before{top:18px}

  /* More usable reading width inside FAQs, the app preview and the form. */
  .faq-list summary{grid-template-columns:minmax(0,1fr) 26px;gap:14px;padding:20px;font-size:15px;line-height:1.6}
  .faq-list summary::before{display:none}
  .faq-list details>div{padding:0 20px 20px;font-size:16px;line-height:1.7}
  .phone-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:16px;overscroll-behavior:contain}
  .phone-dialog[open]{display:flex;flex-direction:column;height:calc(100dvh - 16px);overflow:hidden}
  .phone-dialog-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .phone-dialog::backdrop{backdrop-filter:none;background:#111827cf}
  .phone-dialog-header{padding:16px;position:relative;flex-shrink:0}
  .phone-dialog-header h3{font-size:24px}
  .phone-dialog-tabs{padding:12px;gap:8px}
  .phone-dialog-tabs button{font-size:13px;min-height:48px}
  .modal-screen{padding:20px 16px}
  .modal-input,.modal-output{padding:18px}
  .modal-screen>p:first-child,.modal-input>p,.modal-output .tour-result-row>p{font-size:15px;line-height:1.7}
  .phone-dialog-disclosure{padding:16px;font-size:12px;line-height:1.6}
  .easy-intake .application-grid.container{width:calc(100% - 24px)}
  .easy-intake .application-card{padding:24px 18px}
  .easy-intake .application-intro{padding-inline:8px}
  .site-footer{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
}

@media(max-width:760px) and (hover:none){
  .income-scene:hover .access-card{transform:rotate(3deg)}
  .client-scene:hover .application-mini{transform:rotate(2deg)}
}

@media(max-width:360px){
  .mobile-benefit-hint{gap:10px}
  .possibilities .path-tab,.possibilities .path-tab[aria-selected=true]{padding:18px 14px;gap:8px}
  .library-art{padding:20px}
  .library-counter>strong{font-size:50px}
  .library-sheets b{font-size:20px}
  .option-copy{padding:20px}
  .founder-image{grid-template-columns:100px minmax(0,1fr)}
  .founder-image img{width:100px}
  .founder-image .founder-caption{padding:16px}
  .founder-caption strong{font-size:20px}
  #fit .fit-card-heading{padding:20px;gap:16px}
  #fit .fit-card-heading h3{font-size:22px}
  .easy-intake .application-card{padding:22px 16px}
}
