/* Photo Cleaner+ — aistoragecleaner.com
   Tokens mirror SmartCleanerPro/Config Files/Colors.swift */

:root {
  --bg: #F7F7F9;
  --surface: #FFFFFF;
  --text: #101010;
  --muted: #6B6B73;
  --line: #E4E4E9;
  --blue: #3981F7;
  --blue-deep: #1F5FD6;
  --blue-soft: #E8F0FE;
  --green: #00C26C;
  --red: #F93636;
  --ink: #0F0F12;
  --ink-2: #1C1C22;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 12px 32px -12px rgba(16, 16, 32, .14);
  --maxw: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0E;
    --surface: #16161B;
    --text: #F4F4F6;
    --muted: #9A9AA5;
    --line: #26262E;
    --blue-soft: #14223D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-deep); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }

@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- Generic sections ---------- */
section { padding-block: 96px; scroll-margin-top: 60px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40ch; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin: 14px auto 0; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin: 22px 0 32px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { opacity: .85; }
.micro { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.micro span::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .store-row, .micro { justify-content: center; }
}

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.phone-stage::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(57, 129, 247, .35), transparent);
  filter: blur(20px);
}
.phone {
  position: relative; width: 300px; max-width: 78vw; aspect-ratio: 660 / 1434;
  background: #0A0A0C; border-radius: 48px; padding: 11px;
  box-shadow: 0 0 0 2px #2A2A30, 0 40px 80px -24px rgba(15, 30, 80, .45);
}
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: #F7F7F7; color: #101010; padding: 46px 14px 14px; font-size: 12px; line-height: 1.3;
}
.screen::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #0A0A0C;
}
.scr-title { font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }

.storage-card { background: #fff; border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ring {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--blue) 0 78%, #E6E8EE 78% 100%);
  display: grid; place-items: center;
}
.ring::after { content: "78%"; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.storage-card b { display: block; font-size: 15px; }
.storage-card small { color: #83838A; font-size: 11px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border-radius: 16px; padding: 11px; color: #fff; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.tile b { font-size: 12.5px; font-weight: 700; }
.tile span { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tile small { opacity: .65; font-size: 10px; }
.t-dup { background: linear-gradient(160deg, #3A2E4D, #171226); }
.t-sim { background: linear-gradient(160deg, #2A2E45, #111217); }
.t-vid { background: linear-gradient(160deg, #3A3A3C, #1C1C1E); }
.t-scr { background: linear-gradient(160deg, #2E2F40, #13141D); }
.t-blur { background: linear-gradient(160deg, #243042, #0E1520); }
.t-quick { background: linear-gradient(160deg, #3981F7, #1E3B70); grid-column: span 2; min-height: 58px; flex-direction: row; align-items: center; }

.float-chip {
  position: absolute; z-index: 2; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.float-chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.float-chip small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.chip-a { top: 16%; left: 0; }
.chip-b { bottom: 14%; right: 0; }
@media (max-width: 520px) { .float-chip { display: none; } }

.phone { padding: 0; overflow: hidden; border: 9px solid #0A0A0C; border-radius: 50px; }
.screen-img { width: 100%; height: 100%; object-fit: cover; border-radius: 41px; display: block; }
.step .shot {
  margin-top: 22px; border-radius: 22px 22px 0 0; overflow: hidden; background: #F7F7F7;
  border: 8px solid #0A0A0C; border-bottom: 0; box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.step .shot img { width: 100%; height: auto; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step .num { font-size: 15px; font-weight: 800; color: var(--blue); letter-spacing: .08em; }
.step h3 { margin-top: 6px; }
.step .mini {
  margin-top: 22px; border-radius: 18px; padding: 16px; min-height: 170px;
  background: linear-gradient(160deg, #1E3B70, #0F1F3A); color: #fff; font-size: 13px;
}
.mini-row { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.mini-row b { font-weight: 700; }
.mini-row span { opacity: .75; }
.mini-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin: 14px 0 8px; }
.mini-bar i { display: block; height: 100%; width: 64%; background: linear-gradient(90deg, #6FA6FF, #fff); border-radius: inherit; }
.mini-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-thumbs i { aspect-ratio: 1; border-radius: 9px; background: rgba(255,255,255,.14); position: relative; }
.mini-thumbs i.sel { outline: 2px solid #6FA6FF; }
.mini-thumbs i.sel::after { content: "✓"; position: absolute; right: 4px; top: 2px; font-style: normal; font-size: 11px; font-weight: 800; }
.mini-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }

/* ---------- Privacy band ---------- */
.band {
  background: radial-gradient(120% 140% at 0% 0%, #1E3B70 0%, #0F1F3A 45%, #0B0F1C 100%);
  color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.band .eyebrow { color: #8DB5FF; }
.band p { color: rgba(255,255,255,.72); font-size: 18px; margin: 16px 0 0; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.band li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #00DC7A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F1C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--blue); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .card { padding: clamp(36px, 6vw, 72px); background: linear-gradient(160deg, var(--blue), #1E3B70); color: #fff; border: 0; }
.cta .card p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 46ch; margin: 16px auto 30px; }
.cta .store-row { justify-content: center; }
.cta .micro { justify-content: center; color: rgba(255,255,255,.8); }
.cta .micro span::before { color: #7CF0B9; }
.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { margin-bottom: 8px; }
.site-footer p { margin: 0; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 56px 96px; }
.legal .wrap { max-width: 800px; }
.legal .back { display: inline-flex; gap: 6px; font-weight: 700; margin-bottom: 28px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal .updated { color: var(--muted); margin: 12px 0 36px; font-weight: 600; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -.015em; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .note { background: var(--blue-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Small screens ---------- */
.brand, .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .site-header .wrap { gap: 12px; height: 60px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .site-header .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  section { padding-block: 72px; }
}
@media (max-width: 640px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 4px; margin-bottom: 12px; background: var(--surface); }
  .legal td { border: 0; padding: 6px 12px; }
  .legal td:nth-child(2)::before { content: "Why: "; font-weight: 800; }
  .legal td:nth-child(3)::before { content: "Legal basis: "; font-weight: 800; }
}
