/* cleanwiz.app — the app's own look: iOS system colours, serif headlines, mono counters.
   No scripts, no remote assets. */

:root {
  --blue: #007aff;
  --blue-deep: #0a6cf0;
  --blue-text: #0062cc;
  --blue-soft: rgba(0, 122, 255, 0.10);
  --green: #34c759;
  --green-text: #248a3d;
  --orange: #ff9500;
  --red: #ff3b30;
  --purple: #af52de;
  --pink: #ff2d55;
  --indigo: #5856d6;

  --bg: #f2f2f7;            /* systemGroupedBackground */
  --card: #ffffff;          /* secondarySystemGroupedBackground */
  --fill: #e5e5ea;          /* systemGray5 */
  --text: #000000;
  --text-2: rgba(60, 60, 67, 0.62);
  --hairline: rgba(60, 60, 67, 0.18);

  --phone-frame: #1c1c1e;

  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --radius: 24px;
  --shell: 1120px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #0a84ff;
    --blue-deep: #0a6cf0;
    --blue-text: #4da3ff;
    --blue-soft: rgba(10, 132, 255, 0.16);
    --green: #30d158;
    --green-text: #30d158;
    --orange: #ff9f0a;
    --red: #ff453a;
    --purple: #bf5af2;
    --pink: #ff375f;
    --indigo: #5e5ce6;

    --bg: #000000;
    --card: #1c1c1e;
    --fill: #2c2c2e;
    --text: #ffffff;
    --text-2: rgba(235, 235, 245, 0.62);
    --hairline: rgba(84, 84, 88, 0.6);

    --phone-frame: #3a3a3c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }
.mono { font-family: var(--mono); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .shell { padding: 0 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header { padding: 18px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 22px; }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--text); font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--fill); text-decoration: none; }
.site-nav .pill { background: var(--text); color: var(--bg); font-weight: 600; }
.site-nav .pill:hover { background: var(--text); opacity: 0.85; }
.site-nav a { white-space: nowrap; }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } .site-nav a { padding: 8px 10px; } }
@media (max-width: 380px) { .wordmark { font-size: 19px; } .wordmark img { width: 30px; height: 30px; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 16px;
  font-size: 17px; font-weight: 600; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--quiet { background: var(--card); color: var(--text); }
.btn--quiet:hover { background: var(--fill); }

/* ---------- Hero ---------- */

.hero { padding: 40px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: 56px; } }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--blue-text);
  background: var(--blue-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(46px, 7.2vw, 84px); margin-top: 22px; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--blue-text); }
.hero__lede { font-size: 20px; color: var(--text-2); max-width: 30em; margin-top: 22px; }
.hero__actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero__ledger {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start;
  border-top: 1px solid var(--hairline); padding-top: 22px;
}
.hero__ledger b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.hero__ledger span { font-size: 14px; color: var(--text-2); }
@media (max-width: 480px) { .hero__ledger { grid-template-columns: repeat(3, 1fr); gap: 14px; } .hero__ledger b { font-size: 20px; } }

.hero__stage { position: relative; display: flex; justify-content: center; padding: 30px 0 0; }
.hero__stage .spark { position: absolute; color: var(--blue); }
.hero__stage .spark--1 { width: 54px; top: 2%; left: 4%; }
.hero__stage .spark--2 { width: 30px; top: 22%; right: 4%; opacity: 0.7; }
.hero__stage .spark--3 { width: 22px; bottom: 34%; left: 0; opacity: 0.5; }

/* ---------- Phone mockup ---------- */

.phone {
  position: relative; width: 310px; aspect-ratio: 9 / 19.5;
  border-radius: 52px; padding: 10px; background: var(--phone-frame);
  box-shadow: 0 50px 90px -40px rgba(0, 40, 120, 0.5);
  margin-bottom: -120px;
}
.phone__screen {
  height: 100%; border-radius: 43px; overflow: hidden; background: var(--bg);
  padding: 50px 14px 14px; position: relative;
}
.phone__island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; }
.phone__status { position: absolute; top: 15px; left: 28px; font-size: 14px; font-weight: 600; }
.ph-head { display: flex; align-items: center; gap: 8px; }
.ph-head img { width: 26px; height: 26px; border-radius: 7px; }
.ph-title { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.ph-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.ph-sub b { font-family: var(--mono); color: var(--text); font-weight: 600; font-size: 13px; }
.ph-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 10px 0 12px; background: var(--fill); }
.ph-bar span:nth-child(1) { width: 26%; background: var(--blue); }
.ph-bar span:nth-child(2) { width: 12%; background: rgba(0, 122, 255, 0.45); }
.ph-bar span:nth-child(3) { width: 34%; background: var(--text-2); opacity: 0.35; }
.ph-junk {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--blue-soft); border-radius: 14px; padding: 11px 13px; margin-bottom: 10px;
}
.ph-junk strong { display: block; font-family: var(--serif); font-size: 16px; }
.ph-junk small { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.ph-junk em { font-style: normal; font-size: 20px; color: var(--blue-text); }
.ph-q { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 4px 2px 8px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tile { background: var(--card); border-radius: 14px; padding: 10px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.ph-tile i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.ph-tile i svg { width: 15px; height: 15px; }
.ph-tile b { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.ph-tile small { display: block; font-family: var(--mono); font-size: 10px; color: var(--text-2); }

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section--card { background: var(--card); }
.hero + .section { padding-top: 200px; }
@media (max-width: 600px) { .section { padding: 76px 0; } .hero + .section { padding-top: 170px; } }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; letter-spacing: -0.015em; }
.section__head p { font-size: 19px; color: var(--text-2); margin-top: 14px; }

/* Chapter index: a table of contents, not a feature grid */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.index li {
  display: grid; grid-template-columns: 56px 52px 1fr 1.4fr auto; gap: 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--hairline);
}
.index__no { font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.index__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.index__icon svg { width: 26px; height: 26px; }
.index h3 { font-size: 30px; }
.index p { color: var(--text-2); }
.index__stat { font-family: var(--mono); font-size: 14px; color: var(--text-2); text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .index li { grid-template-columns: 52px 1fr; grid-template-areas: "icon title" "icon text"; gap: 4px 18px; align-items: start; }
  .index__no, .index__stat { display: none; }
  .index__icon { grid-area: icon; }
  .index h3 { grid-area: title; font-size: 26px; }
  .index p { grid-area: text; }
}

.c-blue { background: var(--blue); }
.c-green { background: var(--green); }
.c-orange { background: var(--orange); }
.c-purple { background: var(--purple); }
.c-pink { background: var(--pink); }
.c-red { background: var(--red); }
.c-indigo { background: var(--indigo); }

/* Safety: a split with a checklist */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split .section__head { margin-bottom: 0; position: sticky; top: 32px; }
@media (max-width: 860px) { .split .section__head { position: static; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { background: var(--bg); border-radius: 20px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.checks__tag {
  grid-row: span 2; align-self: start;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue-text);
  background: var(--blue-soft); padding: 6px 10px; border-radius: 8px; min-width: 76px; text-align: center;
}
.checks h3 { font-size: 22px; }
.checks p { color: var(--text-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border-radius: var(--radius); padding: 26px 24px 28px; }
.steps__no { font-family: var(--mono); font-size: 13px; color: var(--blue-text); }
.steps h3 { font-size: 24px; margin: 14px 0 8px; }
.steps p { color: var(--text-2); font-size: 16px; }

/* Privacy band: the one loud section */
.privacy-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #4aa8ff 0%, #0a6cf0 60%, #0750b8 100%);
}
.privacy-band .shell { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .privacy-band .shell { grid-template-columns: 1fr; } }
.privacy-band .eyebrow { color: rgba(255, 255, 255, 0.75); }
.privacy-band h2 { font-size: clamp(38px, 5.6vw, 64px); margin-top: 12px; }
.privacy-band p { font-size: 19px; color: rgba(255, 255, 255, 0.85); margin-top: 18px; max-width: 34em; }
.privacy-band__mark { width: 100%; max-width: 320px; justify-self: center; opacity: 0.95; }
@media (max-width: 860px) { .privacy-band__mark { max-width: 180px; justify-self: start; order: -1; } }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; list-style: none; padding: 0; }
.facts li { background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border-radius: var(--radius); padding: 32px 30px; }
.plan--pro { background: var(--text); color: var(--bg); }
.plan--pro .plan__price, .plan--pro li { color: var(--bg); }
.plan--pro .plan__price { opacity: 0.7; }
.plan h3 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.plan h3 img { width: 30px; height: 30px; border-radius: 8px; }
.plan__price { font-family: var(--mono); font-size: 14px; color: var(--text-2); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--blue); font-size: 14px; }
.fine { font-size: 13px; color: var(--text-2); margin-top: 22px; max-width: 680px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 60ch; }

/* CTA */
.cta__card {
  background: var(--card); border-radius: 32px; padding: 56px 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 760px) { .cta__card { grid-template-columns: 1fr; padding: 40px 28px; gap: 22px; } }
.cta__card img { width: 104px; height: 104px; border-radius: 24px; }
.cta__card h2 { font-size: clamp(32px, 4.4vw, 46px); }
.cta__card p { color: var(--text-2); margin-top: 8px; }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { padding: 48px 0 100px; }
.doc .shell { max-width: 760px; }
.doc h1 { font-size: clamp(42px, 6vw, 60px); letter-spacing: -0.02em; }
.doc__meta { font-family: var(--mono); font-size: 14px; color: var(--text-2); margin-top: 12px; }
.doc__summary { background: var(--card); border-radius: 20px; padding: 24px 26px; margin: 32px 0 8px; font-size: 19px; line-height: 1.5; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }

.support-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
@media (max-width: 600px) { .support-cards { grid-template-columns: 1fr; } }
.support-card { background: var(--card); border-radius: 20px; padding: 24px; }
.support-card h2 { font-size: 22px; margin: 0 0 6px; }
.support-card p { color: var(--text-2); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0 44px; font-size: 14px; color: var(--text-2); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
