/* SellMacBook.in V6.1 — scoped mobile layout consolidation.
   Loaded after styles.css, extras.css, layout-v5-1.css and mobile-v5-2.css.
   No desktop styling or application logic is changed. */
@media (max-width: 800px) {
  html {scroll-padding-top: 82px}
  body {overflow-x:clip}
  body, .site-header, main, .section, .hero, .device-finder, .site-footer {max-width:100%}
  .container {width:calc(100% - 32px);max-width:100%;margin-inline:auto}
  .site-header .brand {min-width:0;white-space:nowrap}
  .site-header .header-actions {min-width:0}
  .site-header .location-trigger {max-width:145px;min-width:0}
  .site-header #locationLabel {max-width:84px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
  .site-header .menu-btn {flex:0 0 40px;min-width:40px}
  .section {padding:50px 0}
  .section-heading {margin-bottom:22px}
  .section-heading h2, .faq-layout h2, .feature-content h2, .eligibility-layout h2 {font-size:clamp(26px,6vw,35px);letter-spacing:-1.1px;line-height:1.16}
  .section-heading p, .faq-layout>div>p {font-size:13px;line-height:1.55}
  .steps-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .step-card {min-width:0;min-height:0;padding:17px;border-radius:17px}
  .step-illustration {width:56px;height:56px;margin:12px 0 14px;border-radius:17px;font-size:26px}
  .step-card h3 {font-size:14px;line-height:1.3;overflow-wrap:break-word}
  .step-card p {font-size:12px;line-height:1.55;overflow-wrap:break-word}
  .feature-layout, .eligibility-layout, .faq-layout {grid-template-columns:minmax(0,1fr);gap:20px}
  .feature-visual {min-height:240px;max-width:100%;overflow:hidden}
  .faq-list details {padding:14px 0}
  .faq-list summary {font-size:13px;line-height:1.4}
  .faq-list p {font-size:12px;line-height:1.65}
  .footer-upper {display:block}
  .footer-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;justify-content:initial}
  .footer-links>div {min-width:0;gap:11px}
  .footer-links a {overflow-wrap:anywhere;line-height:1.4}
  .footer-bottom {display:grid;gap:8px;line-height:1.5}
  .device-finder .category-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .device-finder .category-card {min-width:0}
  .device-finder .seo-discover {line-height:1.7;gap:4px 11px}
  .device-finder .finder-head {gap:8px}
  .hero .hero-content {min-width:0}
  .hero .hero-actions .btn {white-space:normal;text-align:center}
  .hero .hero-visual {pointer-events:none}
  .wizard, .wizard-body, .wizard-top, .wizard-bottom {min-width:0}
  .wizard-body {overscroll-behavior:contain}
  .wizard-bottom {padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .smb-picker-dialog, .smb-accessory-modal {max-width:calc(100vw - 24px)}
  .smb-picker-options, .smb-accessory-grid {overscroll-behavior:contain}
  .smb-config-options {grid-template-columns:repeat(2,minmax(0,1fr))}
  .smb-config-option {min-width:0;overflow-wrap:anywhere}
}
@media(max-width:480px){
  .container {width:calc(100% - 28px)}
  .announcement {padding-inline:7px;gap:5px;font-size:8px;line-height:1.15}
  .site-header .nav-wrap {gap:5px}
  .site-header .brand {font-size:15px;gap:6px;letter-spacing:-.7px}
  .site-header .brand-mark {width:32px;height:32px}
  .site-header .brand small {font-size:5.5px;letter-spacing:.08em;white-space:normal}
  .site-header .header-actions {gap:5px}
  .site-header .location-trigger {max-width:112px;padding:6px 7px;min-height:35px}
  .site-header #locationLabel {max-width:65px}
  .site-header .menu-btn {width:37px;min-width:37px;flex-basis:37px;height:38px}
  .device-finder {padding:22px 0 18px}
  .device-finder .finder-intro h2 {font-size:25px;line-height:1.17}
  .device-finder .finder-intro p {font-size:12px}
  .device-search-wrap {min-width:0}
  .device-finder .finder-head {margin-top:15px;margin-bottom:9px}
  .device-finder .category-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .device-finder .category-card {min-height:104px;padding:7px 2px;overflow:hidden;border-radius:12px}
  .device-finder .category-card .category-art {height:59px}
  .device-finder .category-card .device-svg {max-width:100%;height:54px}
  .device-finder .category-card strong {font-size:10px;line-height:1.3;overflow-wrap:anywhere}
  .device-finder .seo-discover {font-size:11px;margin-top:12px}
  .hero .hero-layout {grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:0;min-height:225px}
  .hero .hero-content {padding:22px 0;min-width:0}
  .hero h1 {font-size:clamp(21px,6vw,27px);line-height:1.17;letter-spacing:-.8px}
  .hero .hero-copy {font-size:11px;line-height:1.52}
  .hero .hero-visual {height:180px;min-height:180px}
  .section {padding:38px 0}
  .section-heading {margin-bottom:20px}
  .section-kicker {font-size:9px;letter-spacing:1.35px}
  .section-heading h2 {font-size:27px;letter-spacing:-1px;margin:8px 0}
  /* Most important correction: readable full-width process rows on narrow phones. */
  .steps-grid {grid-template-columns:minmax(0,1fr);gap:10px}
  .step-card {display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:4px;align-items:center;min-height:0;padding:13px 14px;border-radius:16px}
  .step-card .step-number {position:absolute;top:10px;right:13px;font-size:10px}
  .step-card .step-illustration {grid-column:1;grid-row:1 / span 2;margin:0;width:52px;height:52px;border-radius:15px;font-size:23px}
  .step-card h3 {grid-column:2;grid-row:1;margin:0;padding-right:22px;font-size:14px;line-height:1.3;letter-spacing:-.2px}
  .step-card p {grid-column:2;grid-row:2;margin:0;font-size:11.5px;line-height:1.5;color:#737d90}
  .feature-visual {min-height:215px;border-radius:20px}
  .faq-layout {gap:12px}
  .site-footer {padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .footer-links {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
  .footer-links strong {font-size:12px}
  .footer-links a {font-size:11.5px}
  .mobile-cta {padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:25}
  .mobile-cta button {min-height:46px;height:46px;font-size:13px}
  #wizardBackdrop:not(.smb-config-mode) {padding:7px}
  #wizardBackdrop:not(.smb-config-mode) .wizard {height:calc(100dvh - 14px);max-height:calc(100dvh - 14px);border-radius:17px}
  #wizardBackdrop .wizard-top {padding:12px 14px}
  #wizardBackdrop .wizard-progress {padding:11px 14px 0}
  #wizardBackdrop:not(.smb-config-mode) .wizard-body {padding:15px 13px 20px}
  #wizardBackdrop .wizard-bottom {padding:10px 13px max(10px,env(safe-area-inset-bottom));gap:8px}
  #wizardBackdrop .wizard-bottom .btn {min-width:0;padding:10px 12px}
  .smb-accessory-grid {gap:8px;padding:11px}
  .smb-accessory-card {min-height:100px}
  .smb-picker-dialog {max-height:calc(100dvh - 32px)}
}
@media(max-width:350px){
  .site-header .brand {font-size:13px}
  .site-header .location-trigger {max-width:93px}
  .site-header #locationLabel {max-width:46px}
  .step-card {padding:12px;column-gap:10px}
  .step-card h3 {font-size:13px}
  .step-card p {font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .step-card,.category-card {transition:none!important}
}
