/* Responsive reconstruction: intrinsic content, measured reference breakpoints. */
:root { --header: 64px; --page-gutter: clamp(16px, 2.4vw, 36px); }
html { scroll-padding-top: calc(var(--header) + 24px); }
body { overflow-x: hidden; }
.site-header, .header-actions { min-width: 0; }
.mobile-drawer { overscroll-behavior: contain; }
.mega-menu { max-height: calc(100dvh - var(--header)); overflow-y: auto; overscroll-behavior: contain; }
.local-notice p { font-size: 14px; line-height: 22px; }
.local-notice .btn { min-height: 40px; font-size: 14px; }

/* The reference keeps a desktop grid at 1024px, and stacks it below that. */
@media (min-width: 1024px) {
  .site-header { height: var(--header); padding: 0 24px; gap: 36px; }
  .header-nav { display: flex; height: 64px; gap: 32px; }
  .hamburger { display: none; }
  .header-actions { position: static; height: auto; border: 0; gap: 12px; }
  .header-actions .search-open { position: static; }
  .admin-link { margin-right: 0; }
  .mobile-drawer { display: none; }
  .mega-menu:not([hidden]) { display: grid; }
}
@media (min-width: 1024px) and (max-width: 1339.98px) {
  :root { --header: 128px; }
  .site-header { padding-bottom: 64px; gap: 28px; }
  .brand { min-width: 170px; }
  .header-nav { gap: clamp(22px, 2.4vw, 32px); }
  .header-actions { position: absolute; bottom: 0; left: 24px; right: 24px; height: 64px; border-top: 1px solid #E9EFEB; justify-content: flex-end; }
  .header-actions .admin-link { margin-right: auto; }
  .header-actions .search-open { position: absolute; right: 0; top: -50px; }
  .search-popover { top: 64px; right: 24px; }
}

.home .announcement { height: auto; min-height: 44px; padding: 10px 24px; }
.home .home-intro { height: auto; padding-top: 36px; }
.home .hero-wrap { width: calc(83.333333% - 44px); max-width: 1156px; height: auto; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: center; }
.home .hero-copy { min-width: 0; padding-right: 36px; }
.home .hero-copy h1 { font-size: 54px; line-height: 1.1852; letter-spacing: -1.7px; max-width: 100%; text-wrap: balance; }
.home .hero-copy h1 br { display: none; }
.home .hero-copy p { font-size: 18px; line-height: 28px; margin-top: 16px; max-width: 100%; }
.home .hero-copy .btn { margin-top: 18px; }
.home .hero-art { width: 100%; max-width: none; height: auto; aspect-ratio: 566 / 392; margin: 0; }
.home .hero-play { bottom: 66px; right: max(24px, calc((100% - 1156px) / 2)); }
.home .anchor-nav { position: relative; inset: auto; transform: none; margin: 60px auto 0; width: min(680px, calc(100% - 48px)); height: auto; min-height: 52px; gap: clamp(20px, 3vw, 48px); padding: 14px 24px; flex-wrap: wrap; }
.home .anchor-nav a { white-space: nowrap; }
.home .anchor-nav a { color: var(--muted); font-weight: 400; }
.home .anchor-nav a.active { color: var(--ink); font-weight: 600; }
.home .tools-section { height: auto; min-height: 0; padding: 120px 24px 92px; }
.home .tools-section > h2 { max-width: 700px; }
.home .benefit-tabs { height: auto; max-width: 1156px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(24px,4vw,60px); padding: 0; }
.home .benefit { min-width: 0; }
.home .included-apps { margin: 36px auto 0; max-width: 1392px; }
.home .full-apps { display: grid; grid-template-columns: repeat(16,minmax(0,1fr)); gap: 12px; max-width: 1392px; padding: 0; margin-inline: auto; }
.home .full-apps .app-item { min-width: 0; white-space: normal; transform: none; font-size: 10px; }
.home .full-apps .app-icon { width: 34px; height: 34px; margin-bottom: 10px; font-size: 24px; }
.home .premium-section { height: auto; min-height: 0; padding: 0 0 92px; overflow: hidden; }
.home .premium-section > h2 { padding-inline: 24px; text-align: center; }
.home .feature-carousel { margin-top: 36px; overflow: visible; position: relative; }
.home .feature-track { position: relative; display: flex; width: 100%; max-width: 100%; gap: 16px; padding: 0 36px 8px; overflow-x: auto; overflow-y: hidden; transform: none !important; transition: none; scroll-snap-type: x mandatory; scroll-padding-inline: 36px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.home .feature-track::-webkit-scrollbar, .home .news-cards::-webkit-scrollbar { display: none; }
.home .feature-card { width: 507px; flex: 0 0 507px; height: auto; min-height: 667px; scroll-snap-align: start; display: flex; flex-direction: column; }
.home .feature-art { height: 392px; flex: 0 0 392px; }
.home .feature-copy { flex: 1; }
.home .carousel-prev, .home .carousel-next { display: block; transition: opacity .18s ease, background .18s ease; }
.home .carousel-prev:disabled, .home .carousel-next:disabled { opacity: 0; pointer-events: none; }
.home .carousel-dots button, .home .news-dots button { transition: background .18s ease, transform .18s ease; }
.home .carousel-dots button[aria-pressed="true"], .home .news-dots button[aria-pressed="true"] { transform: scale(1.15); }
.home .pricing-section { height: auto; min-height: 0; padding-bottom: 80px; }
.home .pricing-title { height: auto; padding: 0 24px 60px; }
.home .pricing-title h2 { max-width: 690px; margin: auto; text-wrap: balance; }
.home .pricing-board { height: auto; padding: 24px; border-radius: 36px; }
.home .pricing-toolbar { height: auto; min-height: 50px; gap: 24px; }
.home .plans { height: auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: auto; align-items: stretch; gap: 0; }
.home .plan { height: auto; min-height: 56rem; min-width: 0; }
.home .plan li { overflow-wrap: anywhere; }
.home .pricing-fine { height: auto; padding-top: 16px; }
.home .pricing-notes { margin-top: 36px; }
.home .migration { height: auto; min-height: 0; padding-top: 0; padding-bottom: 80px; grid-template-columns: minmax(0,448px) minmax(0,1fr); gap: clamp(36px,7.8vw,112px); }
.home .shield-art { max-width: 100%; }
.home .shield-art .file-pill { left: 44%; width: 46%; min-width: 0; }
.home .faq-section, .home .faq-section:has(details[open]) { height: auto; min-height: 0; padding: 80px 0; }
.home .faq-section:has(.faq-question[aria-pressed="true"]) { height: auto; min-height: 0; }
.home .faq-grid { grid-template-columns: minmax(0,684px) minmax(240px,304px); gap: clamp(28px,4.2vw,60px); }
.home .faq-question { height: auto; min-height: 96px; padding-block: 24px; overflow-wrap: anywhere; }
.home .faq-item > p { height: auto; }
.home .faq-grid aside article { min-height: 0; }
.home .news-section { height: auto; padding: 80px 0; }
.home .news-card { height: auto; min-height: 409px; }
.home .news-copy .text-link { margin-top: auto; padding-top: 24px; }
.home .trial-section { height: auto; min-height: 0; padding: 80px 16px; }
:is(.home,.landing-shell) .newsletter { height: auto; padding: 80px 24px; }
:is(.home,.landing-shell) .site-footer { min-height: 0; }
:is(.home,.landing-shell) .footer-search { max-width: 32%; }
.home .field-demo { min-width: 0; }
.home .news-dots { gap: 12px; }
.home .news-dots button, .home .carousel-dots button { position: relative; min-width: 8px; min-height: 8px; }
.home .news-dots button::after, .home .carousel-dots button::after { content: ''; position: absolute; inset: -12px; }

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .home .hero-copy h1 { font-size: 48px; line-height: 1.20833; }
  .home .tools-section > h2, .home .premium-section > h2 { font-size: 34px; line-height: 42px; }
  .home .benefit button { font-size: 20px; line-height: 28px; }
  .home .full-apps { grid-template-columns: repeat(8,minmax(0,1fr)); max-width: 800px; gap: 24px; }
  .home .pricing-title h2, .home .faq-section > h2 { font-size: 38px; line-height: 46px; }
  .home .plans { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home .plan { padding-inline: 16px; }
  .home .faq-grid { grid-template-columns: minmax(0,1fr) 280px; }
  :is(.home,.landing-shell) .newsletter h2 { font-size: 32px; line-height: 40px; }
}

@media (max-width: 1023.98px) {
  :root { --header: 112px; }
  .site-header { height: 112px; padding: 0 16px 56px; gap: 16px; }
  .header-nav { display: none; }
  .hamburger { display: block; }
  .header-actions { position: absolute; bottom: 0; left: 16px; right: 16px; height: 56px; border-top: 1px solid #E9EFEB; justify-content: flex-end; }
  .header-actions .admin-link { margin-right: auto; }
  .header-actions .search-open { position: absolute; right: 0; top: -46px; }
  .mega-menu { display: none; }
  .mobile-drawer:not([hidden]) { display: block; top: 56px; padding-bottom: max(32px,env(safe-area-inset-bottom)); }
  .mobile-drawer { max-height: calc(100dvh - 56px); }
  .search-popover { top: 56px; max-width: calc(100% - 32px); }
  .home .announcement { min-height: 0; display: block; padding: 20px 26px; font-size: 16px; line-height: 24px; }
  .home .announcement button { display: block; margin-top: 12px; }
  .home .home-intro { padding-top: 66px; }
  .home .hero-wrap { width: calc(100% - 52px); display: flex; flex-direction: column; gap: 64px; text-align: center; }
  .home .hero-copy { padding-right: 0; width: 100%; }
  .home .hero-copy h1 { max-width: 580px; width: max-content; margin-inline: auto; font-size: 48px; line-height: 58px; letter-spacing: -1.8px; }
  .home .hero-copy p { max-width: 600px; margin: 16px auto 0; }
  .home .hero-copy .btn { margin-top: 24px; }
  .home .hero-art { max-width: 768px; aspect-ratio: 768 / 490; margin: 0 auto; }
  .home .anchor-nav { margin-top: 60px; width: calc(100% - 52px); max-width: 680px; min-height: 44px; padding: 12px 18px; gap: clamp(16px,3.5vw,38px); }
  .home .hero-play { bottom: 66px; right: 26px; }
  .home .tools-section { padding: 92px 26px; background: none; }
  .home .tools-section > h2 { font-size: 34px; line-height: 42px; max-width: 650px; text-wrap: balance; }
  .home .benefit-tabs { display: block; height: auto; margin-top: 36px; max-width: 600px; text-align: left; }
  .home .benefit { padding: 16px 20px; }
  .home .benefit.active { padding: 15px 19px; }
  .home .benefit p { margin-top: 10px; }
  .home .full-apps { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 24px; max-width: 690px; }
  .home .full-apps .app-item { font-size: 12px; }
  .home .premium-section { padding-bottom: 60px; }
  .home .premium-section > h2 { font-size: 34px; line-height: 42px; max-width: 650px; margin-inline: auto; }
  .home .feature-track { padding-inline: 26px; scroll-padding-inline: 26px; gap: 16px; }
  .home .feature-card { width: 350px; flex-basis: 350px; min-height: 626px; }
  .home .feature-art { height: 322px; flex-basis: 322px; }
  .home .carousel-prev, .home .carousel-next { display: none; }
  .home .carousel-dots { display: flex; margin-top: 30px; }
  .home .pricing-section { padding-bottom: 60px; }
  .home .pricing-title { padding: 0 26px 48px; }
  .home .pricing-title h2 { font-size: 38px; line-height: 46px; }
  .home .pricing-title h2 br { display: none; }
  .home .pricing-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-bottom: 28px; }
  .home .pricing-toolbar .mini-apps { margin: 0; }
  .home .pricing-toolbar label { width: 100%; max-width: none; min-height: 28px; font-size: 14px; line-height: 22px; padding-right: 54px; margin: 0; }
  .home .plans { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 24px; height: auto; }
  .home .plan { min-height: 44rem; padding: 28px 20px; border-radius: 16px; }
  .home .pricing-board { padding: 24px; border-radius: 36px; }
  .home .pricing-notes { margin: 24px 26px 0; }
  .home .migration { display: flex; flex-direction: column; width: calc(100% - 52px); text-align: center; gap: 24px; padding: 0 0 60px; }
  .home .migration p { max-width: 600px; }
  .home .shield-art { margin: 0; width: min(460px,100%); height: 270px; transform: none; }
  .home .faq-section, .home .faq-section:has(details[open]) { padding: 60px 0; min-height: 0; }
  .home .faq-grid { display: block; width: calc(100% - 52px); margin-top: 20px; }
  .home .faq-section > h2 { font-size: 38px; line-height: 46px; }
  .home .faq-grid aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home .news-section { padding: 60px 0; }
  .home .news-grid { display: block; width: 100%; max-width: none; padding: 0; }
  .home .news-intro { margin-bottom: 40px; }
  .home .news-cards { position: relative; display: flex; gap: 16px; padding-inline: 28px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 28px; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; }
  .home .news-card { flex: 0 0 350px; min-width: 0; min-height: 400px; scroll-snap-align: start; }
  .home .news-dots { display: flex; margin-top: 28px; }
  .home .trial-section { padding: 60px 16px; margin: 0; }
  :is(.home,.landing-shell) .newsletter { padding: 48px 28px; }
  :is(.home,.landing-shell) .newsletter-inner { display: block; max-width: 600px; }
  :is(.home,.landing-shell) .footer-search { max-width: none; }
}

@media (max-width: 599.98px) {
  :root { --header: 56px; }
  .site-header { height: 56px; padding: 0 14px; gap: 12px; }
  .header-actions { position: static; height: auto; border: 0; margin-left: auto; }
  .header-actions .search-open { position: static; }
  .header-actions .admin-link, .header-actions > .btn { display: none; }
  .brand { font-size: 20px; min-width: 0; }
  .home .announcement { padding: 12px 16px; font-size: 14px; line-height: 20px; }
  .home .announcement button { margin-top: 12px; font-size: 14px; }
  .home .hero-wrap { width: calc(100% - 32px); gap: 64px; }
  .home .hero-copy h1 { max-width: 100%; font-size: 36px; line-height: 44px; letter-spacing: -1.1px; }
  .home .hero-copy p { max-width: 500px; font-size: 18px; line-height: 24px; margin-top: 16px; }
  .home .hero-copy .btn { min-height: 46px; margin-top: 18px; }
  .home .hero-art { max-width: 360px; aspect-ratio: 360 / 250; }
  .home .home-intro { padding-bottom: 0; }
  .home .anchor-nav { display: none; }
  .home .hero-play { bottom: 8px; right: 18px; }
  .home .tools-section { padding: 92px 16px 60px; }
  .home .tools-section > h2 { font-size: 28px; line-height: 36px; max-width: 360px; }
  .home .benefit-tabs { margin-top: 36px; }
  .home .benefit { padding: 16px; }
  .home .benefit.active { padding: 15px; }
  .home .full-apps { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 12px; }
  .home .full-apps .app-item { font-size: 10px; transform: none; }
  .home .included-apps h3 { margin-bottom: 24px; }
  .home .premium-section > h2 { max-width: 360px; padding-inline: 16px; font-size: 28px; line-height: 36px; }
  .home .feature-track { padding-inline: 42px; scroll-padding-inline: 42px; gap: 20px; }
  .home .feature-card { flex-basis: calc(100vw - 84px); width: calc(100vw - 84px); min-height: 512px; }
  .home .feature-art { height: clamp(220px,66.15vw,288px); flex-basis: clamp(220px,66.15vw,288px); }
  .home .feature-copy { padding: 18px 20px 24px; }
  .home .feature-copy h3 { font-size: 24px; line-height: 30px; }
  .home .feature-copy p { font-size: 14px; line-height: 21px; }
  .home .carousel-dots { margin-top: 28px; }
  .home .pricing-title { padding: 0 16px 44px; }
  .home .pricing-title h2 { font-size: 30px; line-height: 38px; max-width: 480px; }
  .home .pricing-title p { font-size: 18px; line-height: 28px; }
  .home .pricing-board { width: calc(100% - 32px); padding: 20px 16px; border-radius: 24px; }
  .home .pricing-toolbar { gap: 22px; padding-bottom: 24px; }
  .home .pricing-toolbar label { font-size: 11px; line-height: 18px; min-height: 22px; }
  .home .plans { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
  .home .plan, .home .plan:nth-child(n) { height: auto; min-height: 0; padding: 26px 22px 32px; }
  .home .plan ul { gap: 20px; }
  .home .pricing-fine { gap: 16px; flex-wrap: wrap; font-size: 10px; }
  .home .pricing-notes { margin: 24px 24px 0; }
  .home .migration { width: calc(100% - 32px); gap: 28px; }
  .home .migration h2 { font-size: 24px; line-height: 30px; }
  .home .shield-art { width: min(350px,100%); height: 230px; margin-left: 0; transform: scale(.8); transform-origin: center; }
  .home .shield-art .file-pill { left: 44%; width: 46%; min-width: 0; }
  .home .faq-section > h2 { font-size: 30px; line-height: 38px; padding-inline: 16px; }
  .home .faq-grid { width: calc(100% - 32px); }
  .home .faq-question { min-height: 96px; font-size: 16px; line-height: 24px; }
  .home .faq-grid aside { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
  .home .faq-grid aside article { margin: 0; }
  .home .news-card { flex-basis: calc((100vw - 56px) * .875); min-height: 400px; }
  .home .news-art { height: auto; min-height: 170px; aspect-ratio: 1.7; }
  .home .trial-section h2 { font-size: 30px; line-height: 38px; }
  :is(.home,.landing-shell) .newsletter h2 { font-size: 28px; line-height: 36px; }
  .local-notice { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
  .local-notice p { font-size: 12px; line-height: 18px; padding: 0; }
  .local-notice .btn { margin-left: auto; width: auto; min-height: 34px; padding: 6px 16px; font-size: 12px; }
}

@media (max-width: 359.98px) {
  .home .hero-copy h1 { font-size: 32px; line-height: 40px; }
  .home .hero-copy p { font-size: 16px; line-height: 24px; }
  .home .feature-track { padding-inline: 28px; scroll-padding-inline: 28px; }
  .home .feature-card { width: calc(100vw - 56px); flex-basis: calc(100vw - 56px); }
  .home .pricing-toolbar .mini-apps { gap: 10px; }
  .home .social-links { gap: 22px; }
}
/* Google uses the compact header/bar through 600px, while type changes at 600. */
@media (max-width: 600px) {
  :root { --header: 56px; }
  .site-header { height: 56px; padding: 0 14px; }
  .header-actions { position: static; height: auto; border: 0; margin-left: auto; }
  .header-actions .search-open { position: static; }
  .header-actions .admin-link, .header-actions > .btn { display: none; }
  .home .announcement { padding: 12px 16px; font-size: 14px; line-height: 20px; }
  .home .announcement button { font-size: 14px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home .feature-track, .home .news-cards { scroll-behavior: auto; }
}
