.skip { position: absolute; top: 8px; left: 16px; z-index: 5; padding: 10px 16px; color: var(--color-paper); background: var(--color-accent); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.skip:hover, .skip:active { color: var(--color-paper); }
header, footer { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header { min-height: 96px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-family: var(--font-display); font-size: 30px; }
.brand img { width: 32px; height: 32px; }
nav, footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 32px); }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--text-sm); }
nav a:hover, nav a[aria-current], footer a:hover { text-decoration: underline; }
.language { color: var(--color-ink); }
.home-header { position: relative; min-height: 72px; justify-content: flex-start; }
.home-header nav { gap: 28px; }
.home-header a { color: var(--color-ink); }
.hero { position: relative; max-width: 1800px; margin-inline: auto; }
.hero-art { display: block; mask-image: linear-gradient(#000 82%, transparent); }
.hero-art img { width: 100%; aspect-ratio: 1672 / 941; }
.hero-identity { position: absolute; left: 7%; top: 50%; }
.hero h1 { font-family: var(--font-display); font-size: clamp(72px, 7.5vw, 108px); line-height: 1.05; letter-spacing: -.025em; color: #f4e3b5; }
.hero-actions { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 9px 24px; border: 1px solid #d8c59199; border-radius: 999px; background: #10271fe6; color: var(--color-accent); font: inherit; font-size: 15px; cursor: default; }
.store-button:disabled { opacity: 1; -webkit-text-fill-color: var(--color-accent); }
.store-button svg { width: 17px; height: 17px; }
.hero-actions p { color: var(--color-muted); font-size: 12px; }
.showcases { margin: 100px auto 0; }
.showcase { margin: 0 0 148px; }
.showcase figcaption { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin: 0 auto 36px; }
.showcase h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.4; letter-spacing: -.025em; }
.showcase p { color: var(--color-muted); margin-top: 10px; font-size: 16px; }
/* A window onto a large device: keep original UI readable, crop the unused desktop.
   At 1440px the top PNG is 1780–1820px wide / 3840px = 0.464–0.474×. */
/* Desktop: the whole Mac stays in view and centered; only the empty lower desktop fades out. */
.device-window { height: min(560px, 42vw); overflow: hidden; position: relative; mask-image: linear-gradient(#000 78%, transparent); }
.device-window-right { height: auto; mask-image: none; }
.mac { width: min(1360px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.device-window-right .mac { width: min(1040px, calc(100% - var(--gutter) * 2)); }
.mac-laptop .lid { width: 100%; border-radius: 20px 20px 5px 5px; }
.lid { padding: 10px; background: var(--color-bezel); box-shadow: var(--shadow-device); }
.mac-display .lid { border-radius: 15px; padding: 12px 12px 30px; }
.screen { --menu-height: 32px; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-paper-2) url("assets/forest-desktop.webp") 28% 75% / cover; border-radius: 5px; }
.menu-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: var(--menu-height); padding: 0 1.1%; background: #132d22d9; color: #e4dfc9; font-size: 12px; line-height: 1; white-space: nowrap; }
.menu-bar span:last-child { margin-left: auto; }
.menu-bar strong { font-weight: 600; }
.panel-image { position: absolute; left: 0; top: var(--menu-height); width: 100%; max-width: none; background: var(--color-panel-backing); border-radius: 0 0 8px 8px; box-shadow: 0 16px 28px #00140d66; }
.panel-right { top: var(--menu-height); right: 0; left: auto; width: auto; height: calc(100% - var(--menu-height)); border-radius: 8px 0 0 8px; }
.laptop-base { position: relative; height: 16px; background: linear-gradient(#758177, #3d4d43 45%, #1e2a23); border-radius: 2px 2px 50% 50% / 2px 2px 12px 12px; }
.laptop-base::before { content: ""; display: block; width: 14%; height: 5px; margin-inline: auto; background: #18271f; border-radius: 0 0 8px 8px; }
.display-stand { width: 18%; height: 66px; margin: 0 auto; background: linear-gradient(90deg, #293a30, #5b6e5e 50%, #293a30); }
.display-foot { width: 28%; height: 9px; margin: 0 auto; background: #56675a; border-radius: 50% 50% 2px 2px; }
footer { min-height: 128px; border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); padding-block: 28px; }
.document { width: min(calc(100% - var(--gutter) * 2), 760px); margin: 64px auto 112px; overflow-wrap: anywhere; }
.document h1 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 60px); line-height: 1.25; margin-bottom: 28px; }
.document h2 { font-size: 23px; line-height: 1.4; margin-top: 48px; margin-bottom: 14px; }
.document p + p { margin-top: 18px; }
.document .lead { font-size: 20px; color: var(--color-accent); }
.document .small { font-size: var(--text-sm); color: var(--color-muted); }
.document table { border-collapse: collapse; width: 100%; font-size: 14px; margin-block: 24px; table-layout: fixed; }
.document th, .document td { border-bottom: 1px solid var(--color-rule); padding: 12px 10px; text-align: left; vertical-align: top; }
.document th:first-child, .document td:first-child { width: 22%; padding-left: 0; }
.document th { color: var(--color-accent); font-weight: 500; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .87em; color: var(--color-accent); overflow-wrap: anywhere; }
@media (min-width: 1800px) { .hero { margin-top: 0; } }
@media (max-width: 700px) {
  header { min-height: 82px; gap: 12px; }
  .brand { font-size: 26px; }
  .brand img { width: 28px; height: 28px; }
  nav, footer > div { gap: 18px; }
  nav a, footer a { font-size: 13px; }
  .home-header { position: relative; inset: auto; min-height: 64px; }
  .hero-art img { aspect-ratio: 900 / 720; }
  .hero-identity { position: relative; inset: auto; padding: 4px var(--gutter) 0; margin-top: -22px; text-align: center; }
  .hero h1 { font-size: 80px; }
  .hero-actions { align-items: center; margin-top: 20px; gap: 13px; }
  .showcases { margin-top: 100px; }
  .showcase { margin-bottom: 82px; }
  .showcase figcaption { margin: 0 auto 24px; }
  .device-window { height: 390px; mask-image: linear-gradient(#000 84%, transparent); }
  .device-window-right { height: calc(192vw + 80px); }
  .device-window-right .mac { width: 1560px; }
  .mac { width: 1560px; margin-left: 16px; }
  .device-window-right .mac { margin-left: calc(100% - 1576px); }
  .showcase p { font-size: 14px; margin-top: 8px; }
  .lid { padding: 5px; }
  .mac-laptop .lid { width: 100%; border-radius: 9px 9px 3px 3px; }
  .mac-display .lid { padding: 5px 5px 12px; border-radius: 8px; }
  .screen { border-radius: 3px; }
  .menu-bar { gap: 5px; }
  .panel-image { border-radius: 0 0 3px 3px; }
  .panel-right { height: 192vw; border-radius: 3px 0 0 3px; }
  .laptop-base { height: 7px; }
  .laptop-base::before { height: 2px; }
  .display-stand { height: 26px; }
  .display-foot { height: 5px; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 24px; }
  .document { margin-top: 40px; margin-bottom: 72px; }
  .document h2 { margin-top: 38px; font-size: 21px; }
}
@media (max-width: 359px) {
  header:not(.home-header) { flex-wrap: wrap; padding-block: 18px; }
}
