body {
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 7px; }
.gallery-page { display: grid; grid-template-rows: auto 1fr auto; padding: 24px; }
.site-header { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #9be06c, var(--accent));
  box-shadow: 0 4px 12px rgba(85, 184, 74, 0.22);
  text-decoration: none;
}
.brand img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(255, 251, 243, 0.95); object-fit: cover; object-position: center 72%; }
.gallery {
  width: min(100%, 420px);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 48px 28px;
}
.app-icon {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  transition: transform 180ms ease;
}
.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}
.app-icon:hover { transform: translateY(-4px); }
.site-footer { padding: 24px 0; text-align: center; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.site-footer a:hover { border-color: rgba(85, 184, 74, 0.35); background: rgba(255, 255, 255, 0.92); }
.document { width: min(100% - 48px, 640px); margin: 24px auto 48px; }
.document h1 { margin: 0 0 16px; font-size: clamp(24px, 5vw, 32px); line-height: 1.5; font-weight: 600; letter-spacing: -0.03em; }
.document h2 { margin: 36px 0 12px; font-size: 18px; font-weight: 600; }
.document p { line-height: 1.9; font-size: 15px; }
.eyebrow { color: var(--muted); font-size: 13px !important; margin-bottom: 8px; }
.draft { padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.72); }
.policy-list { list-style: none; margin: 32px 0; padding: 0; }
.policy-list li { border-bottom: 1px solid var(--line); }
.policy-list a { display: flex; align-items: center; gap: 16px; padding: 20px 0; text-decoration: none; }
.policy-list a:hover span { text-decoration: underline; text-underline-offset: 5px; }
.policy-list img { width: 44px; height: 44px; border-radius: 10px; }
.back { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
form { margin: 32px 0; }
form > label, .device-details label { display: block; margin: 24px 0 8px; font-size: 14px; }
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.72); color: var(--text); font-size: 16px;
}
textarea { resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 50px;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23697060' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
@media (forced-colors: active) {
  select { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #357c2c; outline-offset: 3px; }
.field-hint { font-size: 13px !important; color: var(--muted); }
.device-details { margin: 24px 0; font-size: 14px; }
summary { cursor: pointer; padding: 12px 0; }
.consent { display: flex !important; align-items: flex-start; gap: 10px; line-height: 1.7; }
.consent input { width: 20px; height: 20px; margin: 2px 0; flex-shrink: 0; accent-color: #357c2c; }
button { margin-top: 20px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.72); color: var(--text); font-weight: 500; cursor: pointer; }
button:hover:not(:disabled) { border-color: rgba(85, 184, 74, 0.35); background: rgba(255, 255, 255, 0.92); }
#submit { background: #e0efcf; border-color: #c3d8af; color: #30482b; }
#submit:hover:not(:disabled) { background: #d3e7bd; border-color: #a9c492; }
button:disabled { opacity: .45; cursor: default; }
#status { font-size: 14px; overflow-wrap: anywhere; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  .site-header { padding: 16px 24px; }
  .gallery-page { padding: 24px; }
  .gallery-page .site-header { padding: 0; }
  .gallery { gap: 28px; padding: 40px 20px; }
  .app-icon { width: clamp(80px, 24vw, 104px); height: auto; aspect-ratio: 1; border-radius: 23px; flex-shrink: 0; }
  .document { margin-top: 16px; }
  .site-footer a { margin: 4px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-icon { transition: none; }
  .app-icon:hover { transform: none; }
}

.document h3 { margin: 28px 0 12px; font-size: 16px; font-weight: 600; line-height: 1.6; }
.document li { margin: 10px 0; line-height: 1.9; font-size: 15px; }
.document ul { padding-left: 22px; }
.policy-table { overflow-x: auto; margin: 20px 0; }
.policy-table table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.policy-table th, .policy-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { font-weight: 600; background: rgba(255,255,255,.45); }

.app-detail { width: min(100% - 48px, 720px); }
.app-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.detail-icon { width: 104px; height: 104px; flex-shrink: 0; border-radius: 24px; box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.app-heading h1 { margin-bottom: 4px; overflow-wrap: anywhere; }
.app-heading .eyebrow { margin: 0 0 4px; }
.app-heading .app-tagline { margin: 0; color: var(--muted); }
.store-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid #c3d8af; border-radius: 16px; background: #e0efcf; color: #30482b; font-weight: 500; text-decoration: none; }
.store-link:hover { background: #d3e7bd; border-color: #a9c492; }
.document .resource-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.resource-list li { margin: 12px 0; }
.resource-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .65); text-decoration: none; }
.resource-list a:hover { background: rgba(255, 255, 255, .92); border-color: rgba(85, 184, 74, .35); }
.resource-title { font-weight: 600; }
.resource-description { grid-column: 1; font-size: 13px; line-height: 1.8; color: var(--muted); }
.resource-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
@media (max-width: 480px) {
  .app-heading { gap: 16px; align-items: flex-start; }
  .detail-icon { width: 72px; height: 72px; border-radius: 16px; }
  .app-heading h1 { font-size: 24px; }
  .app-heading .app-tagline { font-size: 13px; }
  .resource-list a { padding: 16px; }
}
