/* Keep the frozen homepage stylesheet and all its layout rules unchanged. */
.brand img[src="/brand/word-office/icon.webp"] {
  height: 25px;
  border-radius: 5px;
}

/* Preserve the original app grid; align copy and uncropped media without backing panels. */
.app-card.docs { background: transparent; column-gap: 40px; }
.docs .app-copy { padding: 28px 0; }
.app-screen, .docs .app-screen { background: transparent; padding: 0; }
.app-screen img { border: 1px solid #c5ced8; border-radius: 3px; }
.app-card:not(.docs) { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
.app-card:not(.docs) .app-screen { margin-top: 0; padding: 0; align-self: start; }
.app-card:not(.docs) .app-screen picture { aspect-ratio: 1760 / 1159; display: grid; place-items: center; }
.app-card:not(.docs) .app-screen img { width: 100%; height: 100%; object-fit: contain; border: 1px solid #c5ced8; border-radius: 3px; }
.pdf-item picture { width: min(100%, 144px); }
.pdf-item img { height: auto; aspect-ratio: 360 / 313; object-fit: contain; }
@media (max-width: 599px) {
  .pdf-item picture { width: min(100%, 124px); }
}

/* A factual Android section in the existing site's typography and spacing. */
.word-mobile { border-bottom: 1px solid var(--border); }
.word-mobile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.word-mobile-copy { min-width: 0; }
.word-mobile-intro { margin-top: 24px; font-size: 18px; line-height: 28px; }
.word-mobile-features { padding-inline-start: 20px; margin-block: 24px 16px; color: var(--muted); }
.word-mobile-features li + li { margin-top: 8px; }
.word-mobile-limit { font-size: 14px; line-height: 22px; }
.word-play-link { margin-top: 24px; }
.word-mobile-store { margin-top: 12px; font-size: 12px; }
.word-mobile-store a { text-decoration: underline; text-underline-offset: 3px; }
.word-mobile-artwork { margin: 0; min-width: 0; }
.word-mobile-artwork > div { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; gap: 20px; }
.word-mobile-artwork img { width: 100%; border-radius: 16px; }
.word-mobile-artwork figcaption { margin-top: 16px; font-size: 12px; text-align: center; color: var(--muted); }
.word-mobile-entry { margin-top: 8px; }
.word-language { font-size: 13px; color: var(--muted); }
@media (max-width: 999px) {
  .word-mobile-grid { grid-template-columns: 1fr; gap: 32px; }
  .word-mobile-artwork > div { grid-template-columns: repeat(2, minmax(0, 180px)); }
}

/* Download-only additions; the original hero grid, app images and CSS stay intact. */
.hero-buttons { flex-direction: column; align-items: flex-start; }
.hero-buttons [data-download], .download-options [data-download] { width: min(100%, 354px); display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; text-align: left; justify-items: start; }
[data-download] .word-platform-icon { grid-row: 1 / 3; width: 24px; height: 24px; align-self: center; object-fit: contain; }
[data-download].primary .word-platform-icon { filter: invert(1); }
.hero-buttons [data-download] .os, .download-options [data-download] .os { border: 0; padding: 0; font-size: 12px; line-height: 18px; }
.hero-buttons [data-download] > span:first-of-type, .download-options [data-download] > span:first-of-type { line-height: 20px; }
.word-download-source { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; line-height: 20px; }
.word-download-source svg { color: #007552; width: 17px; height: 17px; flex: 0 0 auto; }
.download-options .word-download-source { margin: 0; }
.word-mobile-entry { margin-top: 20px; }
.word-mobile-label { font-size: 12px; color: var(--muted); }
.word-store-badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; padding-block: 4px; }
.word-store-badges a { display: block; line-height: 0; }
.word-store-badges img { height: 44px; width: auto; display: block; }
.header-download > img { width: 20px; height: 20px; object-fit: contain; }
.header-download.word-header-store > img { width: auto; height: 32px; }
.hero-copy > .word-mobile-entry:has(+ .hero-buttons) { margin-top: 28px; }
.hero-copy > .word-mobile-entry:has(+ .hero-buttons) + .hero-buttons { margin-top: 20px; }
.download-options > .word-mobile-entry { margin: 0 0 8px; }
.word-store-trademarks { font-size: 12px; line-height: 20px; margin-top: 12px; }
.word-install-help { margin-top: 14px; color: var(--muted); font-size: 12px; max-width: 354px; }
.word-install-help summary { cursor: pointer; width: fit-content; padding-block: 4px; color: var(--blue); }
.word-install-help p { margin-block: 8px; }
.word-install-help button { font: inherit; cursor: pointer; color: var(--ink); background: white; border: 1px solid var(--border); border-radius: 5px; padding: 8px 10px; margin: 4px 8px 0 0; }
.word-ios { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 24px; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 32px; }
.word-ios h3 { font-size: 24px; line-height: 32px; margin-block: 8px; }
.word-ios > img { border-radius: 10px; }
.word-ios p { max-width: 650px; }
.word-ios .text-link { white-space: nowrap; }
.word-download-guide { position: fixed; z-index: 100; top: 100px; right: 24px; width: 326px; padding: 24px; background: white; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 48px #0b203326; }
.word-download-guide[hidden] { display: none; }
.word-guide-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.word-download-guide h2 { font-size: 22px; line-height: 28px; padding-right: 12px; margin: 10px 0 12px; }
.word-download-guide p { font-size: 14px; line-height: 22px; }
.word-download-guide .eyebrow { font-size: 10px; letter-spacing: .06em; }
.word-download-guide .word-guide-note { font-size: 12px; line-height: 18px; margin-top: 14px; }
.word-guide-close { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 5px; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); }
.word-guide-arrow { position: absolute; right: 32px; top: -58px; font-size: 54px; line-height: 54px; color: #00895f; }
.word-guide-enter .word-guide-arrow { animation: word-download-point 900ms ease-in-out 3; }
@keyframes word-download-point { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .word-guide-enter .word-guide-arrow { animation: none; } }
@media (max-width: 999px) { .word-ios { grid-template-columns: 48px minmax(0, 1fr); } .word-ios .text-link { grid-column: 2; } }
@media (max-width: 599px) {
  .hero-buttons, .hero-buttons [data-download], .download-options [data-download] { width: 100%; }
  .word-ios { gap: 16px; align-items: start; margin-top: 32px; }
  .word-ios h3 { font-size: 21px; line-height: 28px; }
  .word-ios .text-link { white-space: normal; }
  .word-download-guide { top: auto; bottom: 16px; right: 16px; width: calc(100% - 32px); max-height: calc(100dvh - 80px); overflow: auto; padding: 20px; }
  .word-guide-arrow { display: none; }
}
@media (max-width: 599px) {
  .word-mobile-intro { font-size: 16px; line-height: 24px; margin-top: 20px; }
  .word-mobile-artwork > div { gap: 16px; }
  .word-play-link { width: 100%; }
}
