/* Sweepsure pages (sweepsure/ and its comparison page). Brand: gradient #5C38D9 to #D94099, rounded type. */
:root {
  --g1: #5c38d9;
  --g2: #d94099;
  --grad: linear-gradient(120deg, var(--g1), var(--g2));
  --bg: #f8f6fd;
  --surface: #ffffff;
  --surface-2: #f0ecfa;
  --text: #1d1636;
  --muted: #5f5878;
  --line: #e5dff3;
  --accent: #5c38d9;
  --ok: #1f9d63;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(29, 22, 54, .06), 0 12px 32px rgba(92, 56, 217, .10);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100c1f;
    --surface: #1a1530;
    --surface-2: #231c3f;
    --text: #f2effb;
    --muted: #a9a2c4;
    --line: #2e2650;
    --accent: #a891ff;
    --ok: #4fd18e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 36px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #100c1f; --surface: #1a1530; --surface-2: #231c3f; --text: #f2effb; --muted: #a9a2c4;
  --line: #2e2650; --accent: #a891ff; --ok: #4fd18e; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 36px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.back { font-size: .85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--text); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--text); }
.left { display: flex; align-items: center; gap: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; font: 800 1rem var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--g1) 35%, transparent); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: .9rem; box-shadow: none; }
.btn-white { background: #fff; color: #3a1f9e; box-shadow: none; }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; opacity: .9; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; transform: none; }

/* Hero */
.hero { padding: clamp(28px, 5vw, 56px) 0 0; }
.hero-card { background: var(--grad); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr; gap: 28px; overflow: hidden; position: relative; }
.hero-card .icon { width: 88px; height: 88px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.hero-card .eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; opacity: .85; margin: 0; }
.hero-card .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 40em; opacity: .95; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { font-size: .9rem; opacity: .85; margin: 4px 0 0; }
/* The app's screenshots carry their own transparent margin and window shadow. */
.shot { margin: 0 -2%; }
.shot img { width: 100%; }
.pair { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin-top: 8px; }
@media (min-width: 960px) { .pair { grid-template-columns: .8fr 1.2fr; } .pair.flip > :first-child { order: 2; } }
.wide-shot { margin: 28px auto 0; max-width: 980px; }
.license-shot { margin: 18px auto 0; max-width: 460px; }

@media (min-width: 900px) {
  .hero-card { grid-template-columns: 1fr 1.1fr; align-items: center; }
}

/* Sections */
section.block { padding: clamp(56px, 8vw, 104px) 0 0; }
.head { max-width: 680px; margin-bottom: 32px; }
.head p { color: var(--muted); font-size: 1.08rem; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tile p { color: var(--muted); margin: 0; }
.tile .badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 1.15rem; margin-bottom: 14px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.chip span { color: var(--muted); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.price-card { background: var(--surface); border: 2px solid transparent; border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; }
.price { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 6px; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
table { width: 100%; border-collapse: collapse; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td { color: var(--muted); }
tbody th { font-weight: 800; }
tr.us th, tr.us td { color: var(--text); font-weight: 800; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 800px; }
summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

.end { margin: clamp(56px, 8vw, 104px) 0 0; background: var(--grad); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 64px) 24px; text-align: center; }
.end p { opacity: .92; font-size: 1.1rem; }
.end .actions { justify-content: center; }

footer { padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: grid; gap: 6px; }
footer a { color: inherit; }

@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .back { display: none; }
}

/* Comparison page */
.compare-table { min-width: 640px; }
.compare-table td:nth-child(2) { color: var(--text); font-weight: 700; }
.note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-plain { padding: clamp(36px, 6vw, 72px) 0 0; }
.hero-plain h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18em; }
.hero-plain .lead { color: var(--muted); font-size: 1.15rem; max-width: 42em; }
