:root {
  color-scheme: light;
  --canvas: #f7f8f1;
  --ink: #152c22;
  --muted: #3d5549;
  --line: #d9e3d7;
  --accent: #245444;
  --dark: #172f27;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #a76818; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 64px), 1280px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 12px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.045em; min-height: 44px; }
.brand img { border-radius: 8px; }
nav { display: flex; gap: clamp(12px, 3vw, 38px); }
nav a, .footer-row > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
nav a:hover, .text-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.hero { display: grid; align-items: center; min-height: calc(100svh - 73px); padding-block: 38px; }
.hero-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.45fr) auto; align-items: center; gap: clamp(20px, 3vw, 44px); }
.hero h1, h2 { font-weight: 650; letter-spacing: -.06em; line-height: .99; text-wrap: balance; }
.hero h1 { font-size: clamp(44px, 4.15vw, 72px); margin-block: 18px 22px; }
.hero-copy > p:last-child, .section-heading p:last-child { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 32ch; }
.app-frame { min-width: 0; position: relative; height: clamp(430px, 69svh, 680px); overflow: hidden; isolation: isolate; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(ellipse at 70% 14%, #e9eed4, transparent 56%), linear-gradient(145deg, #9bb7a2, #345d4e); }
.app-frame img { position: absolute; width: auto; height: 74%; max-width: 49%; object-fit: contain; border-radius: 15px; box-shadow: 0 18px 45px #102e2664; }
.app-frame .hero-owner { left: 10%; top: 10%; }
.app-frame .hero-cashier { right: 10%; bottom: 8%; }
.hero-actions { display: grid; gap: 9px; justify-items: stretch; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font: inherit; font-weight: 700; white-space: nowrap; }
.button { background: var(--accent); color: white; padding-inline: 18px; border: 0; border-radius: 7px; cursor: pointer; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); background: #173d30; }
.button:active { transform: translateY(1px); }
.m-enter .hero [data-visual] { animation: arrive .55s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(9px); } }
h2 { font-size: clamp(35px, 3.65vw, 54px); }
h3 { font-size: 1.25rem; }
.gallery, .download { padding-block: clamp(55px, 8vw, 108px); }
.gallery { background: #edf2e9; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 34px; }
.section-heading h2, .download h2 { margin-block: 12px 13px; }
.previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); }
.previews a { display: grid; gap: 12px; align-content: start; padding: clamp(8px, 1.4vw, 18px); background: #dce8dc; border: 1px solid #cbdccc; border-radius: 12px; font-weight: 650; transition: transform .18s, background .18s; }
.previews a:hover { background: #d3e2d4; transform: translateY(-2px); }
.previews img { width: 100%; max-height: 535px; object-fit: contain; border-radius: 8px; }
.download { background: var(--dark); color: #f7f8f1; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.release { padding: clamp(18px, 3vw, 35px); background: #29453a; border-radius: 14px; min-width: 0; }
.release-heading { display: flex; align-items: center; gap: 12px; }
.release-heading img { border-radius: 10px; }
.download :focus-visible { outline-color: #d4edaf; }
.release p { margin-top: 10px; line-height: 1.5; color: #e1ebe1; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-block: 24px; }
.meta dt { font-size: .86rem; color: #d1e3d6; }
.meta dd { font-weight: 650; }
.release .button { background: #d4edaf; color: var(--ink); }
.release .button:hover { background: #e1f3c9; }
#release-retry { margin-top: 16px; }
details { margin-top: 9px; }
summary { cursor: pointer; padding-block: 12px; }
code { overflow-wrap: anywhere; }
.instructions { line-height: 1.65; }
.instructions ol, .instructions ul { padding-inline-start: 1.35em; }
.instructions li + li { margin-top: 8px; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 1.2fr; }
  .app-frame { grid-column: 2; grid-row: 1 / span 2; }
  .hero-actions { justify-items: start; align-self: start; }
  .hero-copy { align-self: end; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 62px; }
  .hero { min-height: calc(100svh - 63px); padding-block: 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { margin-block: 8px 13px; }
  .hero-copy > p:last-child { max-width: 40ch; }
  .app-frame { grid-area: auto; height: clamp(280px, 40svh, 390px); }
  .hero-actions { grid-row: 2; grid-template-columns: 1fr auto; justify-items: stretch; }
  .previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
