/* Photo Cleaner site — single stylesheet, no external fonts */
:root {
  --bg-top: #0D1226;
  --bg-bottom: #000;
  --text: #F2F4FA;
  --muted: #B4BBD0;
  --cyan: #64D2FF;
  --blue: #0A84FF;
  --purple: #BF5AF2;
  --pink: #FF375F;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --max: 1080px;
  --font: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, #070a17 55%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-bottom);
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9be3ff; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: .6rem 1rem; z-index: 100; border-radius: 8px;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 18, 38, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; padding: .25rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; padding: .45rem .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 34px rgba(191, 90, 242, 0.4); }
.btn-sm { padding: .45rem .95rem; font-size: .9rem; box-shadow: none; }
.btn-ghost { background: var(--card); border: 1px solid var(--border); box-shadow: none; }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); overflow-wrap: break-word; margin: .4rem 0 1rem; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 2.6rem 0 .8rem; font-weight: 800; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; font-weight: 700; }
p, li { color: #DDE2F0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 50%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--cyan); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Breadcrumb */
.crumbs { font-size: .88rem; margin: 1.2rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: rgba(255,255,255,.35); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { padding: 2.2rem 0 1rem; display: grid; gap: 2rem; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; font-size: .92rem; color: var(--muted); padding: 0; list-style: none; }
.hero-meta li { color: var(--muted); }
.media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #05070f; box-shadow: 0 30px 80px rgba(10, 132, 255, 0.18);
}
.media video, .media img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 3.5rem; }
}

/* Cards and grids */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.icon-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.icon-dot.pink { background: var(--pink); }

.feature { display: grid; gap: 1.5rem; align-items: center; margin: 2.5rem 0; }
.feature .shot { max-width: 220px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 240px; }
  .feature.flip { grid-template-columns: 240px 1fr; }
  .feature.flip .shot { order: -1; }
}
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 560px; margin: 1.5rem auto; }
.shots img { border-radius: 22px; border: 1px solid var(--border); }
figure { margin: 1.5rem 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; text-align: center; }

/* Reviews */
blockquote.review { margin: 0; }
blockquote.review p { font-size: 1.05rem; color: var(--text); }
blockquote.review footer { color: var(--muted); font-size: .9rem; }
.stars { color: #FFD60A; letter-spacing: .1em; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: .9rem 1.1rem; margin: .6rem 0;
}
summary { cursor: pointer; font-weight: 700; color: var(--text); list-style-position: outside; }
details[open] summary { margin-bottom: .4rem; }
details p { margin: .4rem 0; }

/* Fact block */
.facts {
  margin: 2.5rem 0; padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(100,210,255,.08), rgba(191,90,242,.08));
  border: 1px solid var(--border);
}
.facts h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.facts p { margin: 0 0 .8rem; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }

/* Article */
.article { padding-bottom: 1rem; }
.article ol, .article ul { padding-left: 1.3rem; }
.article li { margin: .35rem 0; }
.updated { font-size: .9rem; color: var(--muted); margin: 0 0 1.2rem; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li {
  counter-increment: step; position: relative; padding: .8rem 1rem .8rem 3.1rem; margin: .6rem 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
}
.steps > li::before {
  content: counter(step); position: absolute; left: .9rem; top: .8rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple));
}
.note { border-left: 3px solid var(--pink); padding: .6rem 1rem; background: rgba(255,55,95,.07); border-radius: 0 12px 12px 0; }
.path { font-weight: 700; color: var(--text); }
kbd, .ui { font-family: inherit; font-weight: 700; color: var(--text); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; margin: 1.2rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .93rem; }
th, td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: rgba(255,255,255,.06); color: var(--text); font-weight: 700; }
tbody th { color: var(--text); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tr.ours { background: rgba(10,132,255,.08); }

/* CTA band */
.cta-band { text-align: center; margin: 3rem 0 2rem; padding: 2rem 1.4rem; }
.cta-band h2 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0 2.5rem; font-size: .92rem; }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .95rem; margin: 0 0 .5rem; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { margin-top: 1.8rem; color: var(--muted); font-size: .85rem; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .glow { animation: glow 8s ease-in-out infinite alternate; }
  @keyframes glow { from { box-shadow: 0 30px 80px rgba(10,132,255,.18); } to { box-shadow: 0 30px 80px rgba(191,90,242,.22); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

main, .wrap { min-width: 0; }
.article, .article * { overflow-wrap: break-word; }

/* Official "Download on the App Store" badge (Apple artwork, unmodified) + app icon */
.store-cta { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; transition: transform .15s ease; }
.store-cta:hover, .store-cta:focus-visible { transform: translateY(-1px); }
.store-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 8px 26px rgba(10, 132, 255, 0.35); }
.store-badge { height: 56px; width: auto; display: block; }
.store-badge-sm { display: inline-flex; line-height: 0; }
.store-badge-sm img { height: 40px; width: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .store-cta, .store-cta:hover { transition: none; transform: none; } }
