/* Scratchy — scratchy-scratchy.org
   No web fonts, no scripts, no third-party requests: the site is as private as the app. */

:root {
  --blue: #165bff;
  --blue-deep: #0b3bd6;
  --sky: #5ac8ff;
  --navy: #0b1638;
  --text: #0b1638;
  --muted: #5b6478;
  --line: rgba(11, 22, 56, 0.09);
  --bg: #f5f8ff;
  --card: #ffffff;
  --radius: 28px;
  --gutter: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

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

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

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

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.accent { color: var(--blue); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 248, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(22, 91, 255, 0.25); }

.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); text-decoration: none; }

.nav-cta {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue-deep); text-decoration: none; }

/* ---------- App Store badge ---------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 11px 22px 11px 18px;
  transition: transform 0.15s ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 12px; opacity: 0.85; }
.store-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

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

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
}
.hero::before { width: 620px; height: 620px; background: rgba(90, 200, 255, 0.35); top: -180px; left: -160px; }
.hero::after { width: 560px; height: 560px; background: rgba(22, 91, 255, 0.18); bottom: -220px; right: -120px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(22, 91, 255, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; }

.hero .lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 22px 0 32px;
}

.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero .cta p { margin: 0; font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: min(320px, 78vw); transform: rotate(3deg); }
.hero-visual .float-brush { position: absolute; width: 46%; top: -6%; right: -4%; transform: rotate(-10deg); }
.hero-visual .float-sparkle { position: absolute; width: 18%; left: 2%; top: 30%; transform: rotate(-14deg); }
.hero-visual .float-sparkle.small { width: 10%; left: auto; right: 6%; top: auto; bottom: 10%; transform: rotate(12deg); }

.float-brush, .float-sparkle, .privacy-band .shield, .pro-card .vault {
  filter: drop-shadow(0 18px 30px rgba(22, 91, 255, 0.28));
}

@media (prefers-reduced-motion: no-preference) {
  .float-brush { animation: bob 5s ease-in-out infinite; }
  .float-sparkle { animation: bob 4s ease-in-out infinite reverse; }
  @keyframes bob { 50% { translate: 0 -10px; } }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  padding: 11px;
  background: #121318;
  border-radius: 52px;
  box-shadow: 0 30px 60px rgba(11, 22, 56, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.phone img { width: 100%; border-radius: 42px; aspect-ratio: 1206 / 2622; object-fit: cover; background: #e9eef8; }

/* ---------- Trust strip ---------- */

.trust { padding: 8px 0 24px; }
.trust ul {
  list-style: none;
  margin: 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(11, 22, 56, 0.05);
}
.trust li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; }
.trust svg { width: 22px; height: 22px; color: var(--blue); flex: none; }

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

section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; }
.section-head p { font-size: 19px; color: var(--muted); margin: 16px 0 0; }

/* Features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(11, 22, 56, 0.05);
}
.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--sky), var(--blue) 60%, var(--blue-deep));
  box-shadow: 0 8px 18px rgba(22, 91, 255, 0.28);
  margin-bottom: 22px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.features-more { text-align: center; color: var(--muted); margin: 32px auto 0; max-width: 640px; }

/* Steps */

.steps-section { background: var(--card); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
  background: rgba(22, 91, 255, 0.1);
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* Gallery */

.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Room for the phones' shadows, which a scrolling box would otherwise clip. */
  padding: 30px var(--gutter) 60px;
  margin: -20px calc(var(--gutter) * -1) -30px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 250px; scroll-snap-align: center; }
.gallery figcaption { text-align: center; font-weight: 600; margin-top: 18px; }
.gallery .phone { padding: 8px; border-radius: 40px; box-shadow: 0 18px 36px rgba(11, 22, 56, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.gallery .phone img { border-radius: 33px; }

@media (min-width: 1100px) {
  /* Everything fits: no scrolling, so nothing clips the shadows. */
  .gallery { justify-content: center; overflow: visible; gap: 24px; }
  .gallery figure { flex-basis: 160px; }
}

/* Privacy band */

.privacy-band {
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, #4a92ff 0%, transparent 55%),
    radial-gradient(90% 120% at 100% 100%, #0a2fb5 0%, transparent 60%),
    var(--blue);
  border-radius: 40px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}
.privacy-band h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.privacy-band p { font-size: 19px; opacity: 0.9; margin: 18px 0 26px; }
.privacy-band ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.privacy-band li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.privacy-band li svg { width: 22px; height: 22px; flex: none; }
.privacy-band .button-light {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
}
.privacy-band .button-light:hover { text-decoration: none; background: #eef3ff; }
.privacy-band .shield { width: 100%; max-width: 300px; justify-self: center; }

/* Pro */

.pro-card {
  background: var(--card);
  border-radius: 40px;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 1px 0 var(--line), 0 16px 40px rgba(11, 22, 56, 0.06);
}
.pro-card .vault { width: 100%; max-width: 300px; justify-self: center; }
.pro-card h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.pro-card > div > p { color: var(--muted); font-size: 18px; margin: 14px 0 24px; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checklist svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }

/* FAQ */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border-radius: 20px;
  padding: 0 24px;
  box-shadow: 0 1px 0 var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* Contact card */

.contact {
  text-align: center;
  background: var(--card);
  border-radius: 32px;
  padding: 48px 32px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(11, 22, 56, 0.05);
}
.contact.spaced { margin-top: 40px; margin-bottom: 96px; }
.contact h2 { font-size: 32px; margin-bottom: 10px; }
.contact p { color: var(--muted); margin: 0 0 24px; }
.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
}
.button:hover { background: var(--blue-deep); text-decoration: none; }

/* ---------- Legal & support pages ---------- */

.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero img { width: 96px; margin: 0 auto 22px; filter: drop-shadow(0 14px 24px rgba(22, 91, 255, 0.25)); }
.page-hero h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; }
.page-hero p { color: var(--muted); margin: 14px auto 0; max-width: 620px; font-size: 18px; }

.doc {
  max-width: 820px;
  margin: 0 auto 96px;
  background: var(--card);
  border-radius: 32px;
  padding: 56px 64px;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(11, 22, 56, 0.05);
}
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc .summary {
  background: rgba(22, 91, 255, 0.06);
  border-radius: 20px;
  padding: 22px 26px;
  margin: 0 0 36px;
}
.doc .summary h2 { font-size: 20px; margin: 0 0 10px; }
.doc .summary ul { margin: 0; padding-left: 20px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #2a3350; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .num { color: var(--blue); font-family: var(--display); margin-right: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 8px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--navy); font-weight: 600; background: rgba(22, 91, 255, 0.04); }

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

.footer { padding: 56px 0 48px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 12px; }
.footer p { margin: 0 0 6px; }
.footer h4 { margin: 0 0 12px; color: var(--navy); font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--navy); }

/* ---------- 404 ---------- */

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.not-found img { width: 180px; margin: 0 auto 16px; }
.not-found h1 { font-size: 48px; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin: 0 0 26px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .privacy-band, .pro-card { grid-template-columns: 1fr; padding: 44px 32px; text-align: center; }
  .privacy-band ul, .checklist { justify-items: center; }
  .privacy-band .shield, .pro-card .vault { max-width: 200px; grid-row: 1; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > div:first-child { grid-column: 1 / -1; }
  .doc { padding: 40px 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav .nav-cta { margin-left: auto; }
  .trust ul { grid-template-columns: 1fr; justify-items: start; padding: 18px 22px; }
  .trust li { justify-content: flex-start; }
  .features { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .privacy-band, .pro-card { border-radius: 30px; padding: 36px 22px; }
  .doc { padding: 32px 22px; border-radius: 24px; margin-bottom: 64px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: none; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
