/* SwipeClean website. Plain CSS, no external fonts or requests. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #0f766e;        /* teal, 5.5:1 with white text */
  --primary-soft: #ccfbf1;
  --on-primary-soft: #134e4a;
  --brand: #0ea5a4;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #151b23;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --line: #263241;
    --primary: #2dd4bf;
    --primary-soft: #123c3a;
    --on-primary-soft: #ccfbf1;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { 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: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--text); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 22px; border-radius: 14px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #ffffff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #04201d; } }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.85; }
.btn svg { flex: none; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 56px 0 40px; }
.hero .wrap {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--on-primary-soft);
  font-weight: 700; font-size: 0.85rem; margin-bottom: 16px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Phone frame around a real app screenshot (tool/screenshots) */
.phone {
  margin: 0; width: 100%; padding: 10px; border-radius: 48px;
  background: #0b0f14; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}
@media (prefers-color-scheme: dark) {
  .phone { background: #1e293b; box-shadow: 0 0 0 1px #334155, 0 30px 60px rgba(0, 0, 0, 0.5); }
}
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }
.hero-phone { justify-self: center; width: min(330px, 100%); }

/* Screenshot gallery: a row that scrolls sideways on small screens */
.screens .shots {
  list-style: none; margin: 0 auto; padding: 8px 20px 48px;
  max-width: var(--max);
  display: grid; gap: 24px; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 20px;
}
.screens .shots li { scroll-snap-align: start; }
.screens figure { margin: 0; }
.screens .phone { padding: 8px; border-radius: 36px; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16); }
.screens .phone img { border-radius: 29px; }
.screens figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }
.screens figcaption strong { color: var(--text); }
@media (max-width: 820px) {
  .screens .shots { grid-auto-columns: min(240px, 72vw); }
}

/* Sections ---------------------------------------------------------------- */
section { padding: 56px 0; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--on-primary-soft); margin-bottom: 14px;
}
.feature p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px;
  background: var(--primary); color: #fff; font-weight: 800;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #04201d; } }
.steps p { color: var(--muted); margin: 0; }

.callout {
  background: var(--primary-soft); color: var(--on-primary-soft);
  border-radius: 28px; padding: clamp(24px, 5vw, 44px);
  display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
}
.callout p { margin: 0; }
.callout ul { margin: 0.5em 0 0; padding-left: 1.2em; }

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside;
}
.faq details p { color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer p { color: var(--muted); margin: 0; }

/* Legal pages ------------------------------------------------------------- */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin-bottom: 0.4em; }
.legal .updated { color: var(--muted); }
.note {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; color: var(--muted); font-size: 0.95rem;
}

/* Small screens ----------------------------------------------------------- */
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .lead { max-width: none; }
  .callout { grid-template-columns: 1fr; }
}
