/* Mobile layout and shared controls. Billing data stays in the PHP config. */
html { scroll-padding-top: 0; }
.onn-setup-actions { flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.onn-guide-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; color: #96ceff; font-size: 14px; }
.onn-guide-link:hover { color: #fff; }
.onn-home .onn-platforms { gap: 8px; }
.onn-platforms a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--onn-line); border-radius: 8px; }
.onn-platforms a:hover { background: #17212a; border-color: #79b9ed; }
@media (max-width: 680px) {
    .onn-setup-actions { flex-direction: column; gap: 6px; }
    .onn-setup-actions > a { width: 100%; }
    .onn-setup-actions .onn-guide-link { justify-content: center; }
    .onn-home .onn-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .onn-home .onn-platforms a { justify-content: center; padding-inline: 6px; width: 100%; font-size: 13px; }
}
.onn-plan-switch, .onn-purchase-bar, .header-plans { display: none; }
.onn-tariff-note > a { display: inline-block; margin-inline: 8px; }
.onn-plan-layout { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.onn-home .onn-plan-grid, .onn-plan-more, .onn-plan-more-grid { display: contents; }
.onn-plan-more::details-content { display: contents; }
.onn-plan-more > summary, .onn-plan-dots { display: none; }
.onn-plan-layout .onn-plan[data-plan-code="trial"] { order: 1; }
.onn-plan-layout .onn-plan[data-plan-code="month"] { order: 2; }
.onn-plan-layout .onn-plan[data-plan-code="quarter"] { order: 3; }
.onn-plan-layout .onn-plan[data-plan-code="halfyear"] { order: 4; }
.onn-plan-layout .onn-plan[data-plan-code="year"] { order: 5; }
.onn-account-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-top: 16px; font-size: 14px; color: #b8c8d4; max-width: 420px; }
.onn-account-help:hover, .onn-footer-links a:hover, .onn-footer-documents a:hover { color: #fff; }
.onn-home-footer .onn-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.onn-home-footer .logo img { width: 36px; height: 36px; }
.onn-home-footer .logo strong { font-size: 21px; }
.onn-footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.onn-footer-links a, .onn-footer-documents a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: #b8c8d4; }
.onn-footer-legal { margin-top: 20px; border-top: 1px solid var(--onn-line); }
.onn-footer-legal summary, .onn-plan-more summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; font-size: 14px; list-style: none; cursor: pointer; }
.onn-footer-legal summary::-webkit-details-marker, .onn-plan-more summary::-webkit-details-marker { display: none; }
.onn-footer-legal summary i, .onn-plan-more summary i { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.onn-footer-legal summary i::before, .onn-footer-legal summary i::after,
.onn-plan-more summary i::before, .onn-plan-more summary i::after { content: ""; position: absolute; top: 8px; left: 2px; width: 14px; height: 2px; background: #a2b3c2; }
.onn-footer-legal summary i::after, .onn-plan-more summary i::after { transform: rotate(90deg); }
.onn-footer-legal[open] summary i::after, .onn-plan-more[open] summary i::after { transform: none; }
.onn-plan-more > summary { display: none; }
.onn-footer-documents { display: flex; flex-wrap: wrap; gap: 0 24px; }
.onn-footer-legal > p { margin: 12px 0; font-size: 13px; color: var(--onn-muted); overflow-wrap: anywhere; }
.onn-footer-copy { margin-top: 16px; color: var(--onn-muted); font-size: 13px; }
@media (min-width: 681px) and (max-width: 1100px) {
    .onn-plan-layout { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .onn-plan-layout .onn-plan { grid-column: span 2; }
    .onn-plan-layout .onn-plan[data-plan-code="halfyear"], .onn-plan-layout .onn-plan[data-plan-code="year"] { grid-column: span 3; }
}
@media (max-width: 680px) {
    html:has(.onn-home) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .onn-home { font-size: 16px; }
    .onn-home .header-wrap { gap: 8px; }
    .onn-home .header-plans { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 60px; margin-left: auto; padding: 8px; font-size: 14px; color: #96ceff; }
    .onn-home .header-wrap > .header-login { display: flex; align-items: center; justify-content: center; min-width: 64px; margin-left: 0; padding-inline: 4px; font-size: 14px; }
    .onn-home section { scroll-margin-top: 80px; }
    .onn-home .onn-hero { padding: 20px 0 24px; }
    .onn-home .onn-status { font-size: 13px; line-height: 20px; margin-bottom: 12px; }
    .onn-home .onn-hero h1 { font-size: 32px; line-height: 1.1; max-width: 360px; }
    .onn-home .onn-hero-description { display: contents; }
    .onn-home .onn-hero-description > p:first-child { grid-row: 3; font-size: 15px; line-height: 1.45; margin: 12px auto 0; max-width: 320px; text-align: center; }
    .onn-home .onn-hero-description > p + p { grid-row: 6; font-size: 13px; line-height: 1.5; margin: 4px 0 0; text-align: center; }
    .onn-home .onn-hero-offer { grid-row: 4; display: block; margin-top: 16px; }
    .onn-home .onn-hero-offer .btn { min-height: 52px; font-size: 16px; gap: 16px; }
    .onn-home .onn-offer-price { display: none; }
    .onn-home .onn-character-hero { grid-row: 5; width: 236px; max-width: 100%; margin: 12px auto 0; }
    .onn-home .onn-character-hero .onn-art-caption { display: none; }
    .onn-home .onn-service-float { width: 44px; height: 44px; }
    .onn-home .onn-service-float img { width: 28px; height: 28px; }
    .onn-home .onn-benefits { padding: 24px 0; }
    .onn-home .onn-benefits-title { text-align: left; font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--onn-text); margin-bottom: 14px; }
    .onn-home .onn-benefit-grid { gap: 0; grid-auto-rows: 1fr; }
    .onn-home .onn-benefit { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 1fr; gap: 12px; min-height: 100px; background: none; border: 0; border-bottom: 1px solid var(--onn-line); border-radius: 0; }
    .onn-home .onn-benefit:last-child { border-bottom: 0; }
    .onn-home .onn-benefit-visual { min-height: 0; height: auto; background: none; overflow: visible; }
    .onn-home .onn-benefit-visual .onn-artwork { width: 72px; height: 72px; }
    .onn-home .onn-benefit-copy { padding: 14px 0; }
    .onn-home .onn-benefit h3 { font-size: 17px; margin-bottom: 5px; }
    .onn-home .onn-benefit p { font-size: 14px; line-height: 1.45; max-width: none; }
    .onn-home .onn-section h2 { font-size: 28px; line-height: 1.15; }
    .onn-home .onn-eyebrow { font-size: 13px; margin-bottom: 8px; }
    .onn-home .onn-section-heading { margin-bottom: 18px; }
    .onn-home .onn-section-heading > p:last-child:not(.onn-eyebrow) { font-size: 14px; line-height: 1.5; margin-top: 10px; }
    .onn-home .onn-tariffs { padding: 24px 0 28px; border-block: 1px solid var(--onn-line); }
    .onn-home .onn-tariffs .onn-section-heading { margin-bottom: 14px; }
    .onn-home .onn-tariffs .onn-eyebrow, .onn-home .onn-tariff-support { display: none; }
    .onn-home .onn-plan-layout { display: block; }
    .onn-home .onn-plan-switch:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid #2b3843; border-radius: 8px; background: #11191f; }
    .onn-plan-switch button { min-height: 44px; padding: 8px 4px; border: 0; border-radius: 5px; background: none; color: #b8c8d4; font-size: 15px; font-weight: 500; }
    .onn-plan-switch button[aria-pressed="true"] { background: #263b4d; color: #fff; box-shadow: inset 0 -2px #55aeff; }
    .onn-home .onn-plan-grid { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
    .onn-home .onn-plan-grid::-webkit-scrollbar { display: none; }
    .onn-home .onn-plan-layout .onn-plan { display: flex; flex-direction: column; align-items: stretch; order: initial; flex: 0 0 86%; max-width: 360px; min-height: 280px; padding: 18px; gap: 10px; scroll-snap-align: start; }
    .onn-home .onn-plan-heading { min-height: 24px; }
    .onn-home .onn-plan-heading h3 { font-size: 18px; font-weight: 600; color: #edf3f8; }
    .onn-home .onn-plan-heading > span { font-size: 12px; }
    .onn-home .onn-plan .onn-plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
    .onn-home .onn-plan-price strong { font-size: 34px; }
    .onn-home .onn-plan-price > span { font-size: 14px; }
    .onn-home .onn-plan-description { min-height: 0; font-size: 14px; }
    .onn-home .onn-plan-featured .onn-plan-description { color: #96ceff; }
    .onn-home .onn-plan ul { display: grid; font-size: 14px; gap: 7px; margin: 0 0 4px; }
    .onn-home .onn-plan li:nth-child(n+3) { display: none; }
    .onn-home .onn-plan .btn { min-height: 48px; font-size: 15px; padding: 12px 6px; }
    .onn-home .onn-plan-grid[data-ready="true"] + .onn-plan-dots { display: flex; align-items: center; justify-content: center; height: 44px; }
    .onn-plan-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
    .onn-plan-dots button span { width: 8px; height: 8px; border-radius: 5px; background: #576773; transition: width .15s, background .15s; }
    .onn-plan-dots button[aria-current="true"] span { width: 24px; background: #55aeff; }
    .onn-home .onn-plan-more { display: block; border-top: 1px solid var(--onn-line); border-bottom: 1px solid var(--onn-line); }
    .onn-home .onn-plan-more::details-content { display: block; }
    .onn-home .onn-plan-more > summary { display: flex; font-size: 14px; min-height: 52px; }
    .onn-home .onn-plan-more-grid { display: grid; gap: 12px; padding: 0 0 16px; }
    .onn-home .onn-plan-more .onn-plan { display: grid; grid-template-columns: 1fr auto; min-height: 0; max-width: none; gap: 8px 12px; padding: 16px; }
    .onn-home .onn-plan-more .onn-plan-price { grid-column: 1; grid-row: 2; gap: 6px; }
    .onn-home .onn-plan-more .onn-plan-price strong { font-size: 26px; }
    .onn-home .onn-plan-more .onn-plan-heading { grid-column: 1; }
    .onn-home .onn-plan-more .onn-plan-heading h3 { font-size: 16px; }
    .onn-home .onn-plan-more .onn-plan .btn { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; padding: 12px; font-size: 14px; }
    .onn-home .onn-plan-more .onn-plan-description, .onn-home .onn-plan-more .onn-plan ul { display: none; }
    .onn-home .onn-tariff-note { display: grid; font-size: 13px; line-height: 1.5; margin-top: 8px; }
    .onn-home .onn-tariff-note > a { display: flex; justify-content: center; align-items: center; min-height: 44px; margin: 0; padding: 6px 0; }
    .onn-home .onn-steps { padding: 28px 0; }
    .onn-home .onn-step-grid { gap: 0; grid-auto-rows: 1fr; }
    .onn-home .onn-step { grid-template-columns: 84px minmax(0, 1fr); min-height: 108px; gap: 14px; border: 0; border-bottom: 1px solid var(--onn-line); border-radius: 0; background: none; }
    .onn-home .onn-step:last-child { border-bottom: 0; }
    .onn-home .onn-step-visual { min-height: 0; height: 100%; background: none; }
    .onn-home .onn-step-visual .onn-artwork { width: 84px; height: 100px; padding: 8px 0 0; }
    .onn-home .onn-step-visual > span { top: 4px; left: 0; font-size: 12px; }
    .onn-home .onn-step-copy { padding: 14px 0; }
    .onn-home .onn-step h3 { font-size: 17px; }
    .onn-home .onn-step p { font-size: 14px; line-height: 1.45; }
    .onn-home .onn-section-action { margin-top: 16px; }
    .onn-home .onn-section-action .btn { min-height: 44px; font-size: 15px; }
    .onn-home .onn-everywhere { padding: 28px 0; }
    .onn-home .onn-everywhere-grid { gap: 20px; }
    .onn-home .onn-everywhere .onn-section-lead { font-size: 15px; line-height: 1.5; }
    .onn-home .onn-platforms { margin: 18px 0; gap: 12px; }
    .onn-home .onn-platforms li { font-size: 13px; }
    .onn-home .onn-everywhere .btn { min-height: 48px; font-size: 15px; width: 100%; }
    .onn-home .onn-lifestyle-services { margin-top: 12px; font-size: 13px; }
    .onn-home .onn-faq { padding: 28px 0; }
    .onn-home .onn-faq summary { font-size: 16px; min-height: 64px; padding: 16px 0; }
    .onn-home .onn-faq details > p { font-size: 15px; line-height: 1.6; padding-right: 12px; }
    .onn-home .onn-faq-help { font-size: 14px; margin-top: 18px; }
    .onn-home .onn-support { padding: 28px 0 20px; }
    .onn-home .onn-support-copy > p:not(.onn-eyebrow) { font-size: 15px; line-height: 1.5; }
    .onn-home .onn-support-grid { grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; }
    .onn-home .onn-support-character { width: 64px; height: 80px; }
    .onn-home .onn-support-telegram { display: none; }
    .onn-home .onn-support-link { min-height: 64px; padding: 8px 0; }
    .onn-home .onn-support-link small { font-size: 13px; }
    .onn-home .onn-support-link strong { font-size: 19px; }
    .onn-home .onn-account-help { grid-column: 1 / -1; grid-row: 5; font-size: 15px; min-height: 52px; margin-top: 12px; border-top: 1px solid var(--onn-line); }
    .onn-home .onn-home-footer { padding: 24px 0 calc(88px + env(safe-area-inset-bottom)); }
    .onn-home-footer .onn-footer-top { display: block; }
    .onn-home-footer .onn-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 16px; }
    .onn-footer-legal { margin-top: 12px; }
    .onn-footer-documents { display: grid; gap: 0; }
    .onn-footer-documents a { font-size: 13px; }
    .onn-home .onn-faq-help a { display: inline-flex; align-items: center; min-height: 44px; }
    .onn-home .onn-purchase-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: stretch; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #34414c; background: #0d141b; visibility: hidden; pointer-events: none; }
    .onn-home .onn-purchase-bar[data-visible="true"] { visibility: visible; pointer-events: auto; }
    .onn-home.menu-open .onn-purchase-bar, .onn-home.modal-open .onn-purchase-bar { visibility: hidden; pointer-events: none; }
    .onn-home .onn-purchase-plans { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #34414c; border-radius: 8px; color: #d6e3ed; font-size: 14px; }
    .onn-home .onn-purchase-bar .sticky-cta { position: static; flex-direction: column; gap: 0; min-height: 52px; padding: 6px 8px; font-size: 16px; line-height: 1.4; text-align: center; box-shadow: none; }
    .onn-sticky-caption { font-size: 12px; font-weight: 400; line-height: 1.4; }
}
@media (max-width: 374px) {
    .onn-home .onn-hero h1 { font-size: 30px; }
    .onn-home .onn-support-link strong { font-size: 18px; }
    .onn-home .onn-character-hero { width: 210px; }
    .onn-home .onn-plan-layout .onn-plan { padding: 16px; }
    .onn-home .onn-plan-more .onn-plan { padding: 12px; gap: 8px; }
    .onn-home .onn-plan-more .onn-plan .btn { font-size: 13px; padding: 10px; }
    .onn-home .onn-plan-more .onn-plan-price { display: grid; }
}
@media (max-width: 680px) and (max-height: 700px) and (orientation: portrait) {
    .onn-home .onn-hero { padding-top: 12px; padding-bottom: 16px; }
    .onn-home .onn-status { margin-bottom: 8px; }
    .onn-home .onn-hero-description > p:first-child { margin-top: 8px; }
    .onn-home .onn-hero-offer { margin-top: 12px; }
    .onn-home .onn-character-hero { width: 202px; margin-top: 8px; }
}
@media (max-width: 1023px) {
    .onn-home .site-header { background: #090d11; backdrop-filter: none; }
    .onn-home .mobile-menu { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
    .onn-home .mobile-menu nav { gap: 4px; }
    .onn-home .mobile-menu nav > a { min-height: 48px; padding: 12px 14px; font-size: 16px; }
    .onn-home .mobile-menu .header-login { justify-content: flex-start; margin: 4px 0; background: #17212a; border-color: #35414b; }
    .onn-home .burger { position: relative; }
    .onn-home .burger span { position: absolute; top: 20px; left: 12px; margin: 0; transition: none; }
    .onn-home .burger span:nth-child(1) { transform: translateY(-6px); }
    .onn-home .burger span:nth-child(3) { transform: translateY(6px); }
    .onn-home .burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
    .onn-home .burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
}
