/* Mobile is a reflowed Word workspace, not a scaled desktop canvas. */
.hero .button-ghost:hover {
  background: #f5f9fe;
  border-color: #185abd;
  color: #1d2c3c;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 40px, 720px);
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }
  .main-nav,
  .header-actions .login,
  .header-actions .button {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .mobile-menu {
    position: absolute;
    display: grid;
    gap: 2px;
    left: 0;
    right: 0;
    padding: 14px 20px 20px;
    border-bottom: 1px solid #d5e1ed;
    background: #fff;
    box-shadow: 0 12px 20px rgba(20, 53, 87, 0.08);
  }
  .mobile-menu a:not(.button) {
    padding: 11px 4px;
    color: #283849;
    font-size: 15px;
  }
  .mobile-menu .button {
    margin-top: 7px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 36px);
  }
  .site-header {
    position: sticky;
  }
  .header-inner {
    min-height: 58px;
  }
  .brand {
    gap: 8px;
  }
  .brand img.word-mark {
    width: 42px;
    height: 32px;
  }
  .brand .brand-copy small {
    display: none;
  }
  .brand .brand-copy strong {
    font-size: 15px;
    letter-spacing: -0.025em;
  }

  .hero {
    padding: 46px 0 0;
  }
  .hero-grid {
    gap: 31px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(36px, 10vw, 40px);
    line-height: 1.04;
  }
  .hero .lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }
  .hero-actions {
    display: grid;
    gap: 10px;
  }
  .hero .button {
    min-height: 50px;
    width: 100%;
  }

  .hero-scenario {
    margin-top: 20px;
    padding-top: 15px;
  }
  .hero-scenario-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-scenario-tabs button {
    min-height: 44px;
    padding: 0 3px;
    font-size: 11px;
  }
  .hero-scenario-result {
    min-height: 63px;
    padding: 11px 12px;
  }
  .hero-scenario-result strong {
    font-size: 13px;
  }
  .hero-scenario-result span {
    font-size: 11px;
  }

  .hero-product {
    width: calc(100% + 36px);
    max-width: none;
    margin: 0 -18px;
  }
  .hero-product::before,
  .hero-product::after {
    display: none;
  }
  .hero-visual {
    width: 100%;
    filter: none;
  }
  .hero-save-popover,
  .hero-writing-popover {
    display: none;
  }
  .hero-collaborator-cursor,
  .hero-text-selection {
    display: none;
  }

  .start-work,
  .editor-section,
  .documents-section,
  .features,
  .word-online-copy,
  .docx-guide,
  .faq-section {
    padding: 56px 0;
  }
  .start-layout,
  .split-layout,
  .documents-layout,
  .workflow,
  .reading-layout,
  .guide-layout,
  .faq-layout {
    gap: 30px;
  }
  .start-title h2,
  .section-copy h2,
  .documents-intro h2,
  .workflow-intro h2,
  .reading-content h2,
  .guide-layout h2,
  .faq-layout h2 {
    font-size: 31px;
    line-height: 1.1;
  }

  .work-choice {
    border-left: 1px solid #d5e1ed;
    border-right: 1px solid #d5e1ed;
  }
  .work-row,
  .work-row + .work-row {
    min-height: 100px;
    padding: 15px 12px;
  }
  .upload-panel {
    padding: 14px;
  }
  .upload-visual {
    max-width: 260px;
    margin: 0 auto;
  }
  .upload-copy {
    padding: 20px 5px 7px;
  }
  .upload-copy h3 {
    font-size: 23px;
  }
  .upload-button {
    min-height: 46px;
    width: 100%;
  }

  .document-list > a {
    min-height: 96px;
  }
  .library-visual {
    width: min(100%, 320px);
    margin: 18px 0 12px;
  }
  .workflow-steps article {
    align-items: start;
    padding: 18px 0;
  }
  .workflow-steps p {
    line-height: 1.5;
  }

  .word-online-visual {
    max-width: none;
    margin: 24px 0 0;
  }
  .word-online-visual svg {
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  .word-online-visual figcaption span {
    min-height: 42px;
    padding: 8px 4px;
    font-size: 10px;
    line-height: 1.2;
  }
  .copy-facts {
    gap: 18px;
  }
  .copy-facts div {
    padding: 0;
  }

  .guide-layout ol,
  .faq-list {
    width: 100%;
  }
  .guide-layout li {
    grid-template-columns: 26px 42px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
  }
  .faq-list summary {
    min-height: 62px;
    padding: 12px 0;
    font-size: 15px;
  }
  .faq-list p {
    margin-right: 0;
  }

  .product-tryout {
    padding: 58px 0;
  }
  .tryout-copy h2 {
    font-size: clamp(38px, 11vw, 46px);
  }
  .tryout-preview {
    overflow: hidden;
  }
  .tryout-status {
    right: 0;
  }

  .site-footer {
    padding: 38px 0 24px;
  }
  .site-footer .footer-top {
    display: block;
  }
  .footer-top > div {
    margin-top: 28px;
  }
  .footer-brand {
    min-width: 0;
  }
  .footer-brand img.word-mark {
    width: 50px;
    height: 38px;
  }
  .footer-brand .brand-copy strong {
    font-size: 20px;
  }
  .footer-brand .brand-copy small {
    font-size: 12px;
  }
  .top-links {
    display: grid;
    gap: 9px;
  }
  .footer-rule {
    margin: 28px 0 0;
  }
  .footer-grid {
    display: block;
  }
  .footer-grid details {
    border-bottom: 1px solid #383f47;
    padding: 15px 0;
  }
  .footer-grid summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin: 0;
    font-size: 15px;
  }
  .footer-grid summary span {
    display: inline;
    color: #a8c9ed;
    font-size: 21px;
    line-height: 1;
  }
  .footer-grid details[open] summary {
    margin-bottom: 13px;
  }
  .footer-grid details[open] summary span {
    transform: rotate(45deg);
  }
  .footer-grid a {
    margin-bottom: 11px;
    font-size: 14px;
  }
  .footer-bottom {
    display: grid;
    gap: 5px;
    margin-top: 28px;
    padding-top: 17px;
  }
}

@media (min-width: 681px) and (max-width: 1000px) {
  .tryout-preview {
    overflow: hidden;
  }

  .tryout-status {
    right: 16px;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .hero-grid {
    gap: 34px;
  }
  .hero h1 {
    font-size: clamp(42px, 4.2vw, 48px);
  }
  .hero .lead {
    font-size: 17px;
  }
}
