:root {
  --background: #11212F;
  --text: #E8EFF4;
  --muted: #91A7B8;
  --accent: #1E8FCB;
  --rule: rgba(145, 167, 184, .24);
  --panel: #182d3f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--text); color: var(--background); }
.skip-link:focus { top: 1rem; }

.site-header, main, .site-footer { width: min(100% - 3rem, 820px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; }
.site-header nav a, .site-footer nav a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: .3em; }

main { padding-bottom: 2rem; }
.hero { max-width: 690px; padding: 7rem 0 7.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { max-width: 650px; margin-bottom: 1.35rem; font-size: clamp(2.8rem, 6.5vw, 4.5rem); font-weight: 700; line-height: 1.08; }
.hero p { max-width: 570px; margin-bottom: 1.7rem; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-size: .95rem; font-weight: 650; text-decoration-color: var(--accent); text-underline-offset: .35em; }
.text-link span { color: var(--accent); }

.features, .get-app, .support { border-top: 1px solid var(--rule); }
.features { padding: 4.25rem 0 4.5rem; }
h2 { margin-bottom: 2rem; font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 650; line-height: 1.2; }
.feature { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 1.45fr); gap: 1rem 2rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.feature:last-child { border-bottom: 1px solid var(--rule); }
.feature h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; }
.product-note { margin: 1.65rem 0 0; color: var(--muted); font-size: .9rem; }
.get-app, .support { padding: 3.6rem 0; }
.get-app h2, .support h2 { margin-bottom: .65rem; }
.get-app p, .support p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.65; }
.support a, .legal-content a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: .25em; overflow-wrap: anywhere; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 110px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--text); font-size: .9rem; font-weight: 650; }
.footer-brand span { color: var(--muted); font-size: .78rem; font-weight: 400; }

/* Legal pages share the site header and palette. Their document content is unchanged. */
body.legal-page { color: var(--text); background: var(--background); line-height: 1.7; }
.legal-page .site-header, .legal-page .site-footer { width: min(100% - 3rem, 1000px); }
.legal-page .legal-content { width: min(100% - 3rem, 820px); margin: 0 auto; padding: 4rem 0 6rem; }
.legal-page .legal-content h1 { margin: 0 0 .5rem; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
.legal-page .legal-content .updated { margin: 0 0 2.5rem; color: var(--muted); font-size: .9rem; }
.legal-page .legal-content h2 { margin: 3rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: 1.55rem; line-height: 1.25; }
.legal-page .legal-content h3 { margin: 2rem 0 .5rem; font-size: 1.1rem; line-height: 1.35; }
.legal-page .legal-content p, .legal-page .legal-content li { margin-bottom: .8rem; }
.legal-page .legal-content ul, .legal-page .legal-content ol { padding-left: 1.5rem; }
.legal-page .legal-content .summary, .legal-page .legal-content .toc { margin: 2rem 0; padding: 1.5rem 1.75rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.legal-page .legal-content .summary h2 { margin: 0 0 .7rem; padding: 0; border: 0; font-size: 1.25rem; }
.legal-page .legal-content .summary ul, .legal-page .legal-content .toc ol { margin: 0; }
.legal-page .legal-content .summary li:last-child { margin-bottom: 0; }
.legal-page .legal-content .toc ol { columns: 2; column-gap: 2rem; }
.legal-page .legal-content .toc li { break-inside: avoid; }
.legal-page .legal-content .tbl { max-width: 100%; overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal-page .legal-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal-page .legal-content th, .legal-page .legal-content td { padding: .7rem .8rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.legal-page .legal-content th { background: var(--panel); }
.legal-page .legal-content .ph { padding: 0 .2rem; border-radius: 3px; background: #fff1a6; color: #5a4700; }

@media (max-width: 680px) {
  .site-header, main, .site-footer, .legal-page .site-header, .legal-page .site-footer, .legal-page .legal-content { width: min(100% - 2rem, 820px); }
  .site-header { min-height: 72px; }
  .site-header nav { gap: .85rem; }
  .hero { padding: 5rem 0 5.5rem; }
  .hero p { font-size: 1rem; }
  .features { padding: 3.3rem 0; }
  .feature { display: block; padding: 1.1rem 0; }
  .feature h3 { margin-bottom: .3rem; }
  .get-app, .support { padding: 3rem 0; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 2rem 0; }
  .legal-page .legal-content { padding: 3rem 0 4rem; }
  .legal-page .legal-content .toc ol { columns: 1; }
}
@media (max-width: 390px) {
  .brand { gap: .45rem; font-size: .9rem; }
  .brand img { width: 28px; height: 28px; }
  .site-header nav a { font-size: .75rem; }
  .legal-page .site-header { flex-wrap: wrap; justify-content: center; gap: .3rem; padding: .8rem 0; }
  .legal-page .site-header nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The landing page follows the AirPrinter page's spatial layout. Legal page
   rules above remain independent of these homepage styles. */
.home { font-family: Arial, Helvetica, sans-serif; }
.home h1, .home h2, .home h3 { letter-spacing: -.025em; }
.home .site-header { position: relative; z-index: 20; width: 100%; height: 56px; min-height: 56px; border: 0; }
.home .header-inner { width: 100%; height: 100%; display: flex; align-items: center; padding: 0 24px; }
.home .brand { gap: 8px; font-family: Arial, Helvetica, sans-serif; font-size: 19px; letter-spacing: -.035em; }
.home .brand img { width: 32px; height: 32px; border-radius: 7px; }
.home .desktop-nav { display: flex; align-items: center; gap: 31px; margin-left: auto; }
.home .desktop-nav a { color: var(--text); font-size: 15px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.home .desktop-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home .mobile-menu { display: none; }
.home main { width: 100%; padding: 0; }
.home .hero { display: grid; grid-template-columns: 31.4% minmax(0, 1fr); column-gap: 3.2%; width: 90.3%; max-width: 1350px; min-height: 804px; margin: 0 auto; padding: 24px 0 0; }
.home .hero-phone { width: 100%; }
.home .hero-phone img { width: 100%; max-width: 363px; height: auto; }
.home .hero-copy { padding-top: 78px; }
.home .hero h1 { max-width: 655px; margin: 0 0 27px; font-size: 45.33px; line-height: 1.2; font-weight: 700; }
.home .hero p { max-width: 625px; margin: 0; color: var(--text); font-size: 18.67px; line-height: 1.667; }
.home .features { width: min(90.3%, 1144px); margin: 0 auto; padding: 0; border: 0; }
.home .features h2 { margin: 0 0 108px; text-align: center; font-size: 36px; line-height: 1.2; font-weight: 700; }
.home .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 75px; row-gap: 151px; }
.home .feature { display: grid; grid-template-columns: 166px minmax(0, 1fr); align-items: center; gap: 30px; padding: 0; border: 0; }
.home .feature:last-child { border: 0; }
.home .feature-icon { display: block; width: 166px; height: 166px; background-image: url("assets/feature-icons.png"); background-repeat: no-repeat; background-size: 432px 432px; }
.home .feature-icon--write { background-position: -44px -35px; }
.home .feature-icon--read { background-position: -234px -35px; }
.home .feature-icon--record { background-position: -40px -230px; }
.home .feature-icon--export { background-position: -240px -236px; }
.home .feature h3 { margin: 0 0 28px; font-size: 20px; line-height: 25px; font-weight: 700; }
.home .feature p { max-width: 248px; margin: 0; color: var(--text); font-size: 14.67px; line-height: 1.667; }
.home .proof { display: grid; grid-template-columns: minmax(0, 396px) minmax(0, 656px); align-items: center; justify-content: space-between; gap: 70px; width: min(90.3%, 1144px); min-height: 396px; margin: 242px auto 0; }
.home .proof-copy h2 { margin: 0 0 28px; font-size: 35px; line-height: 1.22; font-weight: 700; }
.home .proof-copy p { max-width: 370px; margin: 0; font-size: 17px; line-height: 1.65; }
.home .proof > img { width: 100%; max-width: 656px; height: auto; }
.home .get-app { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 176px auto 0; padding: 0; text-align: center; border: 0; }
.home .get-app > img { width: 340px; height: auto; }
.home .get-app h2 { margin: 58px 20px 14px; font-size: 34px; line-height: 1.25; font-weight: 700; }
.home .get-app p { max-width: none; margin: 0 20px 28px; color: var(--text); font-size: 19px; line-height: 1.5; }
.home .availability { display: inline-flex; align-items: center; gap: 9px; min-width: 159px; height: 49px; padding: 5px 13px; border: 1px solid var(--text); border-radius: 8px; color: var(--text); text-align: left; }
.home .availability-icon { font-size: 27px; line-height: 1; }
.home .availability small, .home .availability strong { display: block; line-height: 1.12; }
.home .availability small { font-size: 9px; font-weight: 400; }
.home .availability strong { margin-top: 3px; font-size: 17px; white-space: nowrap; }
.home .site-footer { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 21px; width: 100%; min-height: 178px; margin-top: 84px; padding: 0 20px 50px; border: 0; }
.home .site-footer nav { display: flex; align-items: center; gap: 13px; }
.home .site-footer a, .home .site-footer nav span { color: var(--text); font-size: 14px; text-decoration: none; }
.home .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home .site-footer .contact-link { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; text-align: center; }

@media (max-width: 760px) {
  .home { padding-top: 56px; }
  .home .site-header { position: fixed; top: 0; left: 0; background: var(--background); }
  .home .header-inner { justify-content: flex-start; gap: 17px; padding: 0 18px; }
  .home .desktop-nav { display: none; }
  .home .mobile-menu { display: block; order: 0; }
  .home .brand { order: 1; font-size: 18px; }
  .home .brand img { width: 29px; height: 29px; }
  .home .mobile-menu summary { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 36px; cursor: pointer; list-style: none; }
  .home .mobile-menu summary::-webkit-details-marker { display: none; }
  .home .mobile-menu summary span { width: 21px; height: 2px; border-radius: 2px; background: var(--text); }
  .home .mobile-menu nav { position: absolute; top: 56px; left: 0; display: flex; flex-direction: column; width: min(290px, 82vw); padding: 20px 24px 26px; background: var(--surface, #1B2E40); box-shadow: 4px 12px 22px rgba(0,0,0,.3); }
  .home .mobile-menu nav a { padding: 12px 0; color: var(--text); font-size: 16px; text-decoration: none; }
  .home .hero { display: flex; flex-direction: column; width: calc(100% - 46px); min-height: 0; padding: 24px 0 0; }
  .home .hero-phone { width: 100%; }
  .home .hero-phone img { width: min(100%, 344px); max-width: 344px; margin: 0 auto; }
  .home .hero-copy { padding: 129px 0 0; }
  .home .hero h1 { margin-bottom: 23px; font-size: 32px; line-height: 1.2; }
  .home .hero p { font-size: 18.67px; line-height: 1.667; }
  .home .features { width: calc(100% - 46px); padding-top: 155px; }
  .home .features h2 { margin-bottom: 95px; font-size: 30px; line-height: 1.25; text-align: center; }
  .home .feature-grid { display: flex; flex-direction: column; gap: 90px; }
  .home .feature { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .home .feature-icon { align-self: center; }
  .home .feature h3 { margin-bottom: 26px; font-size: 20px; }
  .home .feature p { max-width: 340px; font-size: 14.67px; }
  .home .proof { display: flex; flex-direction: column; align-items: stretch; gap: 40px; width: calc(100% - 46px); min-height: 0; margin-top: 185px; }
  .home .proof-copy h2 { font-size: 31px; }
  .home .proof-copy p { font-size: 16px; }
  .home .proof > img { width: 100%; }
  .home .get-app { margin-top: 174px; }
  .home .get-app > img { width: min(calc(100% - 46px), 344px); }
  .home .get-app h2 { margin-top: 60px; font-size: 30px; }
  .home .get-app p { font-size: 18px; }
  .home .site-footer { min-height: 140px; margin-top: 88px; padding-bottom: 35px; }
}
