/* Small-screen layouts: readable content, simple controls, generous touch targets. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.mobile-category { display: none; }
.comparison-label { display: none; }
.dialog-close { width: 44px; height: 44px; }
.concept-dialog .dialog-close { position: sticky; grid-column: 1 / -1; justify-self: end; align-self: start; top: 10px; right: auto; margin: 10px 10px -54px auto; }
.announcement a { min-width: 44px; min-height: 28px; align-items: center; justify-content: center; }

@media (max-width: 680px) {
  html { scroll-behavior: auto; scroll-padding-top: 88px; scroll-padding-bottom: 110px; }
  .container { width: calc(100% - 40px); }
  .header-inner { padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); gap: 16px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; width: 44px; height: 44px; }
  .mobile-nav { max-height: calc(100dvh - 108px); overflow-y: auto; padding: 0 20px 20px; }
  .mobile-nav a { font-size: 16px; padding: 14px 0; min-height: 48px; border-bottom: 1px solid var(--line); }
  .hero-copy { padding: 34px 20px 0; }
  .hero h1 { font-size: clamp(43px, 12.4vw, 54px); letter-spacing: -.06em; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .65px; margin-bottom: 22px; }
  .hero-description { font-size: 16px; line-height: 1.75; margin-top: 22px; max-width: 370px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { min-height: 60px; font-size: 17px; padding: 17px 20px; }
  .hero-assurances { flex-wrap: wrap; white-space: normal; font-size: 12px; gap: 8px 15px; margin-top: 18px; }
  .hero-assurances > span:last-child { display: none; }
  .codeless-trust { margin-top: 22px; }
  .codeless-trust > a { display: inline-grid; grid-template-columns: auto 1fr; gap: 3px 12px; padding: 12px 16px; text-align: left; font-size: 13px; }
  .codeless-mini-mark { grid-row: 1 / 3; align-self: center; font-size: 20px; }
  .codeless-trust > a > span:nth-child(4) { grid-column: 2; }
  .trust-divider, .codeless-trust > a > .icon { display: none; }
  .hero-stage { height: 310px; margin-top: 34px; }
  .hero-browser-left, .hero-browser-right, .expert-stamp, .stage-caption, .benefits-ribbon, .peace-visual { display: none; }
  .hero-browser-main { width: calc(100% - 40px); max-width: 390px; left: 50%; transform: translateX(-50%); }
  .hero-browser-main:hover { transform: translateX(-50%); }
  .section-pad, .expert-section { padding-block: 58px; }
  .section-heading { margin-bottom: 30px; }
  .eyebrow { align-items: flex-start; }
  .section-number { white-space: nowrap; }
  .pain-layout { margin-top: 20px; }
  .pain-list article { gap: 14px; }
  .pain-list h3 { font-size: 23px; line-height: 1.2; }
  .wordpress-note { margin-top: 20px; }

  .gallery-tools { gap: 20px; margin-bottom: 16px; }
  .gallery-intro { font-size: 15px; }
  .gallery-total { font-size: 54px; }
  .gallery-search { width: 100%; min-height: 54px; }
  .gallery-search input { min-width: 0; font-size: 16px; }
  .filter-bar, .popular-searches { display: none; }
  .mobile-category { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
  .mobile-category select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cdd2c1; border-radius: 7px; background: #fffef9; color: var(--ink); font-size: 16px; }
  .gallery-style-row { margin-bottom: 16px; gap: 0; }
  .style-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 5px; }
  .style-filter > span, .style-option > span { display: none; }
  .style-option { font-size: 14px; padding: 10px 6px; min-height: 46px; white-space: nowrap; }
  .gallery-results { margin-bottom: 20px; }
  .gallery-results p { font-size: 14px; }
  .concept-grid { gap: 30px; }
  .concept-info b, .concept-grid .concept-info b { font-size: 21px; }
  .concept-info small, .concept-grid .concept-info small { font-size: 15px; }
  .gallery-more .button { width: 100%; }
  .work-footer { flex-direction: column; align-items: stretch; }
  .work-footer p { max-width: none; }
  .work-footer .text-link { align-self: flex-start; min-height: 44px; white-space: normal; }

  .expert-art { min-height: 270px; padding: 26px; }
  .expert-art .years { font-size: 148px; max-width: 240px; }
  .expert-art > p { font-size: 25px; right: 26px; top: 122px; }
  .expert-art-bottom { display: none; }
  .theme-proof-info p { font-size: 14px; min-height: 44px; }
  .theme-proof-image .browser-bar { display: none; }
  .theme-sales > span { font-size: 12px; }
  .codeless-proof-footer .text-link { min-height: 44px; }
  .content-preview-top { padding: 17px; font-size: 11px; }
  .content-example-options { padding: 16px 12px 0; gap: 2px; justify-content: center; }
  .content-example-options button { font-size: 14px; padding: 10px; min-height: 46px; }
  .search-preview { margin-inline: 14px; padding: 18px; }
  .search-site small { overflow-wrap: anywhere; }
  .seo-example-key { display: none; }
  .content-rights.rights-concise { padding: 24px 20px; }
  .rights-concise .rights-mark { display: none; }
  .content-rights h3 { font-size: 24px; }
  .content-bottom > p { font-size: 16px; }
  .feature, .feature-design, .feature-mobile { min-height: 0; height: auto; padding: 25px; }
  .feature-design, .feature-mobile { min-height: 420px; }
  .feature-top { margin-bottom: 22px; }
  .micro-label { font-size: 11px; }
  .steps article { gap: 14px; }
  .steps h3 { font-size: 26px; }
  .step-index { width: 34px; height: 34px; flex-shrink: 0; }
  .steps article:not(:last-child)::before { left: 16px; top: 43px; }
  .step-tags { display: none; }
  .process-intro .button { width: 100%; justify-content: space-between; }
  .editor-site-nav > span, .demo-badge { display: none; }
  .editor-top { padding: 17px; }
  .editor-publish { align-items: stretch; flex-direction: column; gap: 12px; }
  .editor-publish button { min-height: 46px; justify-content: center; }

  /* Each comparison row becomes a readable two-option card. */
  .comparison-wrap { width: calc(100% - 40px); }
  .comparison-table, .comparison-table tbody { display: block; width: 100%; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
  .comparison-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border: 1px solid #dce2d1; border-radius: 10px; overflow: hidden; }
  .comparison-table tbody th { grid-column: 1 / -1; width: auto; background: #f0f2e9; font-weight: 600; font-size: 16px !important; padding: 16px !important; border-bottom: 1px solid #dce2d1; }
  .comparison-table tbody td:nth-child(2), .comparison-table tbody td:last-child { width: auto; padding: 16px !important; font-size: 15px !important; line-height: 1.65; border: 0; border-radius: 0; }
  .comparison-table tbody td:nth-child(2) { color: #68705d; background: #fffef9; }
  .comparison-table tbody td:last-child { border-left: 1px solid #dce2d1; }
  .comparison-label { display: block; margin-bottom: 10px; color: #68705d; font-size: 12px; line-height: 1.4; font-weight: 600; }
  .comparison-table td:last-child .comparison-label { color: #42592c; }
  .comparison-note { padding: 0; font-size: 13px; }
  .price-card { padding: 25px; }
  .price-card-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .price-plan { font-size: 18px; }
  .launch-badge { font-size: 11px; }
  .price-line > div { margin-left: 14px; min-width: 0; }
  .price-line > div > span { font-size: 14px; }
  .price-line > div > small { font-size: 12px; }
  .price-card .button { font-size: 16px; padding-inline: 18px; }
  .price-features li { align-items: flex-start; }
  .price-features .icon { margin-top: 5px; }
  .faq-list summary { gap: 16px; font-size: 18px; padding-block: 22px; }
  .faq-list details p { font-size: 16px; padding-right: 0; }
  .final-cta-bottom > p { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .footer-main > p { font-size: 14px; }
  .footer-main nav { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 4px 20px; margin-top: 5px; }
  .footer-main nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  .footer-bottom > div { width: 100%; justify-content: space-between; gap: 10px; }
  .footer-bottom button, .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-bottom { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .sticky-offer { bottom: max(12px, env(safe-area-inset-bottom)); padding: 10px 12px; width: calc(100% - 24px); gap: 12px; }
  .sticky-offer > div > span { font-size: 15px; }
  .sticky-offer .button { min-height: 50px; font-size: 16px; padding-inline: 16px; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); width: calc(100% - 40px); max-width: 390px; font-size: 15px; }
  .concept-dialog { max-width: calc(100% - 24px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 12px; }
  .concept-dialog[open] { display: block; }
  .concept-dialog .dialog-close { position: sticky; display: grid; top: 10px; margin: 10px 10px -54px auto; z-index: 8; background: #fffef9; }
  .concept-dialog-visual { padding: 18px; }
  .concept-dialog-content { padding: 26px 24px; }
  .concept-dialog-content > p { font-size: 16px; }
  .concept-dialog-content .button { width: 100%; justify-content: space-between; font-size: 16px; padding-inline: 18px; }
  .info-dialog { padding: 62px 24px 24px; max-height: calc(100dvh - 32px); }
  .info-dialog .dialog-close { position: sticky; top: 10px; right: auto; margin: -50px -12px 6px auto; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 41px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-assurances { font-size: 11px; gap: 10px; }
  .hero-stage { height: 300px; }
  .style-option { font-size: 12px; }
  .content-example-options button { font-size: 13px; padding-inline: 8px; }
  .comparison-table tbody td:nth-child(2), .comparison-table tbody td:last-child { padding: 13px !important; font-size: 14px !important; }
  .price-card { padding: 20px; }
  .price-line > strong { font-size: 82px; }
  .price-line > div { margin-left: 10px; }
  .price-line > div > span { font-size: 13px; }
  .price-line > div > small { font-size: 11px; }
  .price-card .button { font-size: 15px; padding-inline: 14px; }
}

@media (max-height: 500px) and (max-width: 950px) {
  .sticky-offer { display: none; }
  .site-header { position: relative; }
  .mobile-nav { max-height: 70dvh; }
}

@media (hover: none) {
  .button:hover { transform: none; }
  .preview-pill { display: none; }
}
