:root {
  color-scheme: light;
  --paper: #ffffff;
  --panel: #f8f9fb;
  --line: #e5e5ea;
  --ink: #111111;
  --muted: #737378;
  --blue: #2452f5;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { margin: 0; background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.landing { width: 100%; max-width: 390px; margin: 0 auto; padding: max(20px,env(safe-area-inset-top)) 24px max(20px,env(safe-area-inset-bottom)); }
.brand { height: 26px; display: flex; align-items: center; gap: 7px; }
.brand-icon { display: block; width: 26px; height: 26px; border-radius: 7px; }
.brand-name { font-size: 21px; line-height: 26px; font-weight: 600; letter-spacing: -.6px; }
.brand-name span { color: var(--blue); }
.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.trust-strip strong { color: var(--ink); font-weight: 600; }
.rating { display: flex; align-items: center; gap: 4px; }
.rating > span { font-size: 12px; letter-spacing: -1px; color: var(--blue); }

.scanner { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 26px; background: #f2f2f7; }
.storage-heading { position: relative; display: flex; align-items: center; justify-content: center; height: 22px; margin-bottom: 14px; }
.storage-heading h1 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 0; letter-spacing: -.4px; }
.storage-card { padding: 12px; border-radius: 16px; background: #fff; }
.storage-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; line-height: 20px; }
.storage-summary > span { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.storage-bar { position: relative; display: flex; height: 17px; overflow: hidden; margin-top: 9px; border-radius: 4px; background: #f2f2f7; }
.segment { flex: var(--size) 0 0; min-width: 0; height: 100%; border-right: .5px solid #ffffffa6; }
.applications { background: #ff3b30; }
.photos { background: #ff9500; }
.media { background: #ffcc00; }
.system { background: #c7c7cc; }
.free { background: #f2f2f7; }
.scan-sweep { display: none; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 20%,#ffffffd9 50%,transparent 80%); transform: translateX(-100%); }
.scanner[data-state='scanning'] .scan-sweep { display: block; animation: scan-sweep 1.15s ease-in-out infinite; }
@keyframes scan-sweep { to { transform: translateX(100%); } }
.storage-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 16px; }
.storage-legend > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.storage-legend i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.scan-result { margin-top: 12px; overflow: hidden; border-radius: 16px; background: #fff; padding: 0 12px; }
.storage-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; font-size: 16px; line-height: 24px; }
.storage-value strong { font-size: 20px; font-weight: 600; letter-spacing: -.3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.storage-number { font: inherit; }
.scan-action-meta { display: flex; align-items: center; gap: 5px; }
.scan-percent { color: var(--muted); font-size: 12px; line-height: 18px; font-variant-numeric: tabular-nums; }
.scan-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0; border: 0; border-top: .5px solid #c6c6c8; border-radius: 0; background: #fff; color: #007aff; font-size: 16px; font-weight: 400; cursor: pointer; }
.scan-button:disabled { cursor: progress; }
.scan-button-mark { color: #c7c7cc; font-size: 24px; font-weight: 400; line-height: 1; }
.scanner[data-state='scanning'] .scan-button-mark { opacity: 0; }
.scan-button:not(:disabled):hover { color: #005fcc; }

.reviews { height: 168px; margin-top: 12px; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); overflow: hidden; position: relative; }
.review-window { height: 122px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.review-window::-webkit-scrollbar { display: none; }
.review-track { display: flex; height: 100%; }
.review-slide { flex: 0 0 100%; min-width: 0; width: 100%; padding: 22px 20px 0; text-align: center; scroll-snap-align: start; scroll-snap-stop: always; }
.publication { height: 26px; display: flex; justify-content: center; align-items: center; }
.publication img { display: block; max-width: 100%; object-fit: contain; filter: brightness(0); }
.logo-wsj { width: 222px; height: 20px; }
.logo-forbes { width: 95px; height: 26px; }
.logo-nyt { width: 198px; height: 27px; }
blockquote { min-height: 66px; margin: 6px 0 0; padding: 0; border: 0; display: grid; place-items: center; color: var(--ink); font: inherit; font-size: 17px; line-height: 22px; letter-spacing: -.2px; text-wrap: pretty; }
.review-pagination { height: 44px; position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; }
.review-dot { width: 44px; height: 44px; border: 0; border-radius: 10px; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.review-dot span { display: block; width: 32px; height: 6px; border-radius: 6px; background: #d3dceb; }
.review-dot[aria-selected='true'] span { background: linear-gradient(90deg, var(--blue) 0%, var(--blue) calc(var(--review-progress,0) * 100%), #c8d6ff calc(var(--review-progress,0) * 100%), #c8d6ff 100%); }
.review-dot:focus-visible { outline-offset: -5px; }

.conversion { margin-top: 12px; text-align: center; }
.apple-badge { width: fit-content; height: 28px; margin: 0 auto; padding: 5px 12px; border: 1px solid var(--line); border-radius: 30px; display: flex; align-items: center; gap: 6px; color: var(--muted); background: var(--panel); font-size: 12px; line-height: 16px; }
.apple-badge img { width: 12px; height: 15px; display: block; object-fit: contain; filter: brightness(0); }
.download { width: 100%; height: 56px; margin-top: 10px; padding: 0 10px 0 18px; border-radius: 30px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: #fff; background: var(--blue); font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: -.3px; }
.apple-circle { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 50%; background: #1439cf; }
.apple-circle img { display: block; width: 25px; height: 27px; object-fit: contain; filter: brightness(0) invert(1); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 359px) {
  .landing { padding-left: 20px; padding-right: 20px; }
  .trust-strip { gap: 5px; }
  .rating { gap: 3px; }
  .rating > span { font-size: 12px; }
  .scanner { padding: 12px; }
  .storage-legend { gap: 4px 8px; }
  .storage-legend > span { gap: 3px; }
  .review-slide { padding-left: 17px; padding-right: 17px; }
  blockquote { font-size: 16px; line-height: 22px; }
}
@media (max-height: 670px) {
  .landing { padding-top: max(12px,env(safe-area-inset-top)); padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .trust-strip { margin-top: 8px; }
  .scanner { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-sweep { animation: none !important; }
  .review-dot span { transition: none; }
  .review-dot[aria-selected='true'] span { background: var(--blue); }
}
