:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #20262b;
  --muted: #626b73;
  --accent: #17634d;
  --line: #e2e6e8;
  --subtle: #f6f7f8;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; }
h1 { font-size: 30px; font-weight: 650; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
.container { width: min(960px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--muted); }
.site-header nav a:hover, .site-footer a:hover, .breadcrumb a:hover { color: var(--accent); }
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.lede { color: var(--muted); max-width: 680px; margin-top: 10px; }
.home-hero { padding: 28px 0 22px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title .eyebrow { margin: 0; }
.section-note { color: var(--muted); font-size: 12px; }

.app-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.slot-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 24px; }
.app-identity { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 56px; height: 56px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.app-identity h2 { font-size: 22px; }
.platform { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.slot-copy > p { color: var(--muted); max-width: 760px; margin-top: 14px; }
.slot-copy .actions { margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 18px; }
.tag { color: #4f5961; background: var(--subtle); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; font-size: 11px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}
.button:hover { background: #104c3a; border-color: #104c3a; }
.text-link { color: var(--accent); font-size: 13px; text-underline-offset: 3px; }
.text-link:hover { text-decoration: underline; }
.slot-art { display: flex; align-items: center; gap: 12px; padding: 22px 24px 22px 0; }
.slot-shot { width: 110px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 5px; }
.support-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.support-band h2 { font-size: 18px; }
.support-band p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding: 17px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.breadcrumb span[aria-hidden] { color: #939ba1; }
.app-hero { padding: 24px 0; }
.app-hero .app-name { font-size: 17px; font-weight: 650; }
.app-hero > div > h1 { margin-top: 16px; }
.app-hero h1 em { font-style: normal; }
.app-hero .actions { margin-top: 16px; }
.compatibility { font-size: 12px; color: var(--muted); margin-top: 12px; }
.feature-section { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.feature-mark { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.feature-grid h3 { font-size: 15px; }
.feature-grid p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 7px; }
.screens-section { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.screens-section > p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.screenshot-card { min-width: 0; }
.screenshot-card img { width: 100%; aspect-ratio: 1 / 2; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; }
.screenshot-card:hover img { outline: 2px solid var(--accent); outline-offset: 2px; }
.screenshot-card h3 { font-size: 12px; line-height: 1.4; letter-spacing: 0; margin-top: 10px; }
.screenshot-card p { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.privacy-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 6px; }
.privacy-band h2 { font-size: 18px; }
.privacy-band p { color: var(--muted); font-size: 13px; margin-top: 5px; max-width: 650px; }
.privacy-band .button, .privacy-band .text-link { flex-shrink: 0; }

.preview-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: none;
  margin: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-dialog::backdrop { background: #000b; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-shrink: 0; }
.dialog-toolbar h2 { font-size: 16px; letter-spacing: 0; }
.icon-button { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 4px; border: 1px solid #cbd2d6; border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--subtle); }
.dialog-image { flex: 1; min-height: 0; width: 100%; object-fit: contain; margin: 12px auto; }
.dialog-controls { display: flex; justify-content: center; align-items: center; flex-shrink: 0; gap: 16px; font-size: 13px; color: var(--muted); }

.policy-page { background: #fff; }
.policy-container { width: min(780px, calc(100% - 48px)); }
.policy-back { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 20px; color: var(--accent); font-size: 13px; font-weight: 600; }
.policy-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.policy-intro { margin-bottom: 26px; }
.policy-intro .eyebrow { margin-bottom: 6px; }
.policy-intro > p:last-child { margin-top: 16px; }
.policy-date { color: var(--muted); font-size: 12px; margin-top: 10px; }
.policy-body { min-width: 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.65; }
.policy-body section + section { margin-top: 24px; }
.policy-body h2 { font-size: 18px; margin-bottom: 10px; }
.policy-body p + p { margin-top: 10px; }
.policy-body ul { padding-left: 19px; margin: 10px 0; }
.policy-body li + li { margin-top: 8px; }
.policy-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy-footer { padding: 18px 0 26px; color: var(--muted); font-size: 12px; }
.not-found { padding: 64px 0; }
.not-found p { color: var(--muted); margin: 14px 0 20px; max-width: 460px; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .privacy-band { align-items: flex-start; }
}

@media (max-width: 620px) {
  .app-slot { grid-template-columns: 1fr; }
  .slot-art { padding: 0 24px 22px; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .site-header { gap: 12px; padding-block: 16px; }
  .wordmark { font-size: 14px; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .home-hero { padding: 24px 0 20px; }
  .section-note { display: none; }
  .app-slot { grid-template-columns: 1fr; }
  .slot-copy { padding: 18px 18px 16px; }
  .app-identity { gap: 12px; }
  .app-identity h2 { font-size: 21px; }
  .app-icon { width: 50px; height: 50px; border-radius: 8px; }
  .slot-copy > p { font-size: 14px; }
  .slot-art { padding: 0 18px 18px; }
  .slot-shot { width: 100px; }
  .support-band { display: block; padding: 22px 0 0; }
  .support-band .text-link { display: inline-block; margin-top: 10px; }
  .site-footer { align-items: flex-start; font-size: 11px; }
  .breadcrumb { margin-top: 16px; font-size: 11px; }
  .app-hero { padding: 20px 0; }
  .feature-grid { gap: 20px 16px; }
  .feature-grid p { font-size: 12px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .privacy-band { display: block; padding: 16px; }
  .privacy-band .button, .privacy-band .text-link { display: inline-flex; margin-top: 12px; }
  .preview-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); padding: 12px; border-radius: 6px; }
  .dialog-toolbar h2 { font-size: 14px; }
  .policy-container { width: calc(100% - 32px); }
  .policy-back { margin: 20px 0 16px; }
  .policy-body { padding: 20px 18px; border-radius: 8px; }
  .policy-intro { margin-bottom: 22px; }
  .policy-body h2 { font-size: 18px; }
  .not-found { padding: 42px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .policy-page { background: #fff; }
  .policy-back, .policy-footer { display: none; }
  .policy-body { padding: 0; border: 0; }
  .container { width: 100%; }
}
