/**
 * @file Presentation layer for small smartphone.
 *
 * Mobile-first responsive styling only; preserve touch targets, fluid containment and the seven-breakpoint contract.
 */

/* Compact phone surface remains continuous through the complete T2 range. */
@media (max-width:599px){
  html{font-size:16px;overflow-x:hidden}body{min-width:0;overflow-x:hidden}
  body:has(>.topbar)>.ufm-global-controls{top:7px!important;right:9px!important;left:auto!important;width:44px!important;max-width:44px!important;transform:none!important}
  body:has(>.topbar)>.ufm-global-controls .ufm-language-menu>summary{width:42px;min-width:42px;height:42px;padding:0;justify-content:center}
  body:has(>.topbar)>.ufm-global-controls .ufm-language-menu>summary img,body:has(>.topbar)>.ufm-global-controls .ufm-language-menu>summary i{display:none}
  .topbar{height:58px;min-height:58px;padding:0 62px 0 12px;justify-content:flex-start}.topbar>.logo{margin:0}.topbar>.logo img{width:112px}
  .mobile-cart-trigger{right:58px;min-width:40px;min-height:40px;padding:0 8px}.mobile-cart-trigger span{display:none}
  .hero{height:auto!important;min-height:0!important;padding:18px 14px 24px!important;display:block!important;overflow:hidden}.hero-copy{width:100%;text-align:left}
  .hero .kicker{max-width:240px;margin:0 0 10px;font-size:.61rem!important;line-height:1.45}.hero .hero-promise,.hero h1{max-width:290px;font-size:2.16rem!important;line-height:1.04!important;letter-spacing:-.045em!important}
  .hero-copy>p:not(.kicker){max-width:100%!important;margin:13px 0!important;font-size:.84rem!important;line-height:1.52!important}
  .hero .actions{display:grid;grid-template-columns:1fr;gap:8px}.hero .actions>*{width:100%;min-height:46px;padding:0 14px;font-size:.73rem!important}
  .hero .proof{display:grid;grid-template-columns:1fr 1fr;gap:7px 8px;margin-top:13px;font-size:clamp(.7rem,3.45vw,.76rem);line-height:1.4}.hero .proof li{min-width:0;min-height:38px;padding:7px 6px;display:flex;align-items:center}
  .hero-price{max-width:100%;margin-top:11px;padding:10px;gap:8px}.hero-price strong{font-size:1rem}.hero-price small{font-size:.52rem}
  .hero-product{height:315px;min-height:315px;margin:-10px 0 -35px;transform:scale(.55)!important;transform-origin:center top}
  .mobile-app-nav{height:calc(64px + env(safe-area-inset-bottom));padding:4px 2px calc(4px + env(safe-area-inset-bottom));grid-template-columns:repeat(5,minmax(0,1fr))}
  .mobile-app-nav>button{min-width:0;height:52px;padding:4px 1px;gap:3px;border-radius:10px;font-size:.54rem!important}.mobile-app-nav>button>img{width:18px!important;height:18px!important}.mobile-app-nav>button>span{max-width:58px}
  .mobile-menu-sheet{right:6px;bottom:calc(70px + env(safe-area-inset-bottom));left:6px;max-height:calc(100svh - 82px);padding:12px;border-radius:20px;gap:10px}
  .mobile-menu-sheet>header img{width:122px}.mobile-menu-sheet>header button{width:38px;height:38px}.mobile-sheet-routes{grid-template-columns:1fr 1fr;gap:7px}
  .mobile-sheet-routes button,.mobile-sheet-routes>a:is(.mobile-test-now,.mobile-wall-of-fame){min-height:58px;padding:9px 8px;grid-template-columns:20px minmax(0,1fr) auto;gap:6px;border-radius:13px;font-size:.67rem!important}.mobile-sheet-routes img{width:18px;height:18px}
  .mobile-sheet-account{grid-template-columns:1fr 1fr;gap:7px}.mobile-sheet-account a{min-height:44px;padding:0 7px;font-size:.62rem!important}.mobile-sheet-languages{gap:7px}.mobile-sheet-languages a{width:38px;height:38px;flex-basis:38px}
  body.mobile-menu-open .gdpr-alert,body.mobile-menu-open .ufm-help-button{display:none!important}
  .view-heading,.principle-view,.chat-principle,.test-studio,.help-view{padding-inline:14px!important}.view-heading{padding-top:24px;display:grid;gap:12px}.view-heading h1{font-size:2.15rem!important}
  .principle-view,.chat-principle{grid-template-columns:1fr!important;gap:18px!important}.principle-copy h1,.chat-principle-copy h1{font-size:2.2rem!important;line-height:1.04!important}
  .principle-visual,.chat-principle-visual{min-width:0;transform:scale(.82);transform-origin:center top}.fields{grid-template-columns:1fr}.fields .wide{grid-column:auto}
  .layout-grid{grid-template-columns:1fr 1fr!important;padding-inline:8px!important;gap:8px!important}.layout-card{padding:6px;border-radius:15px}.layout-filters{padding-inline:10px;overflow-x:auto;scrollbar-width:none}
  .test-studio{padding-top:20px!important}.test-studio-head h1{font-size:2rem!important}.test-studio .steps button span{display:none}.test-studio .editor-section{padding:18px 14px}.test-studio .phone{width:min(270px,100%)}
  .ufm-footer-grid{gap:24px}.ufm-footer-brand img{width:165px}.ufm-footer p{font-size:.84rem;line-height:1.55}
  .ufm-footer nav{gap:7px}.ufm-footer a{font-size:.78rem}.ufm-footer-trust{margin-top:28px;padding:14px}.ufm-footer-trust>a{margin-left:0}.ufm-footer-bottom{font-size:.68rem;line-height:1.5}
}
@media (max-width:340px){.hero .hero-promise,.hero h1{font-size:2rem!important}.hero-copy>p:not(.kicker){font-size:.79rem!important}.mobile-sheet-routes button,.mobile-sheet-routes>a:is(.mobile-test-now,.mobile-wall-of-fame){font-size:.61rem!important}.layout-grid{grid-template-columns:1fr!important;padding-inline:16px!important}}
/* The compact reassurance copy must remain readable on both small and large
   phones; older 390–520 px rules otherwise shrink it below 9 px. */
@media (min-width:390px) and (max-width:520px){
  .hero .proof{gap:7px 9px!important;margin-top:13px!important;font-size:clamp(.7rem,2.9vw,.76rem)!important;line-height:1.4!important}
  .hero .proof li{min-width:0;min-height:40px;padding:7px 6px;display:flex;align-items:center}
}
/* Visibility is application state. Never let a viewport-specific display
   declaration revive an inactive marketing view. */
[hidden]{display:none!important}

/* Brand pronunciation: informative, deliberately quieter than the mark. */
.topbar>.logo{display:inline-flex;align-items:center;flex-direction:column;gap:2px;text-decoration:none}
.topbar>.logo .brand-pronunciation{display:block;color:#77717d;font-size:.56rem;font-weight:400;line-height:1;letter-spacing:.045em;white-space:nowrap}
@media(max-width:520px){.topbar>.logo .brand-pronunciation{font-size:.5rem;letter-spacing:.035em}}
