/* MassMask site. One stylesheet for every page. Colours follow the app icon. */
:root {
  --bg: #0a0f1a;
  --bg-2: #0e1524;
  --panel: #131b2c;
  --ink: #f4f5f0;
  --muted: #a3adc2;
  --line: #243049;
  --blue: #3d6bff;
  --blue-soft: #7ea0ff;
  --lime: #d1ff57;
  --lime-ink: #142000;
  --lime-text: #d1ff57;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5ef;
    --bg-2: #eeede5;
    --panel: #ffffff;
    --ink: #0f1628;
    --muted: #4f5b70;
    --line: #dcdfe5;
    --blue: #2f5bff;
    --blue-soft: #2f5bff;
    --lime-text: #3b5c00;
    --shadow: 0 30px 70px rgba(23, 36, 71, .16);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-soft); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue-soft); outline-offset: 4px; border-radius: 6px;
}
p { margin: 0 0 16px; }

.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.5px; }
.brand img { width: 38px; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }

/* Buttons */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lime); color: var(--lime-ink);
  border: 0; border-radius: 12px; padding: 15px 22px;
  font-weight: 750; font-size: 16px; text-decoration: none;
  box-shadow: 0 4px 0 #84a92f; transition: transform .2s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta svg { width: 20px; height: 20px; flex: none; }
.cta.is-soon { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.cta.is-soon:hover { transform: none; }
.textlink { color: var(--ink); font-size: 15px; font-weight: 600; }

.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 750; color: var(--muted); margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 650; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(209, 255, 87, .15); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 56px 0 96px; }
.hero h1 { font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.045em; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--lime-text); }
.hero .lede { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 500px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 30px 0 18px; }

.hero-art { position: relative; min-height: 520px; display: grid; place-items: center; isolation: isolate; }
.glow { position: absolute; inset: 4% -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 107, 255, .55), transparent); z-index: -1; filter: blur(10px); }
.card {
  position: absolute; width: 56%; aspect-ratio: 1; background: #fff;
  border: 8px solid #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card.left { transform: translate(-46%, -14%) rotate(-12deg) scale(.86); }
.card.right { transform: translate(46%, -6%) rotate(11deg) scale(.86); }
.card.main { transform: translateY(14%) rotate(-2deg); z-index: 2; }

/* The centre card sweeps from the original photo to the MassMask result. */
.scan .after { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); animation: reveal 6s ease-in-out infinite; }
.scan .line {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue);
  box-shadow: 0 0 18px 4px rgba(61, 107, 255, .7); opacity: 0; animation: sweep 6s ease-in-out infinite;
}
@keyframes reveal {
  0%, 18% { clip-path: inset(0 0 100% 0); }
  55%, 88% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
@keyframes sweep {
  0%, 17% { top: 0; opacity: 0; }
  19% { top: 0; opacity: 1; }
  54% { top: 100%; opacity: 1; }
  56%, 100% { top: 100%; opacity: 0; }
}
.badge {
  position: absolute; z-index: 3; right: 2%; bottom: 4%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--lime-ink); font-weight: 750; font-size: 13px;
  padding: 10px 16px; border-radius: 10px; transform: rotate(-3deg); box-shadow: var(--shadow);
}

/* Fact strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-block: 1px solid var(--line); padding: 22px 0; font-size: 14px; font-weight: 650; }
.strip span::before { content: "+"; color: var(--lime-text); margin-right: 10px; font-weight: 800; }

/* Sections */
section { padding: 100px 0; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 18px; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin: 16px 0 8px; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-intro p { max-width: 400px; color: var(--muted); margin: 0; }
.section-intro h2 { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step .num { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--blue-soft); }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Batch gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; background: #fff; border-radius: 14px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 1px 0 var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tick {
  position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink); display: grid; place-items: center;
  font-size: 15px; font-weight: 900; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.js .tile { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .5s ease; }
.js .tile.in { opacity: 1; transform: none; }
.gallery-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.gallery-foot strong { color: var(--ink); }

/* Before / after */
.compare-section { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.compare { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); --cut: 50%; box-shadow: var(--shadow); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 0; border-left: 2px solid var(--blue); pointer-events: none; }
.compare .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.compare-tags { position: absolute; inset: 14px 14px auto; display: flex; justify-content: space-between; pointer-events: none; }
.compare-tags span { background: rgba(15, 22, 40, .85); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 650; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-copy p { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 24px 0 0; font-size: 16px; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li::before { content: "+"; color: var(--blue-soft); font-weight: 800; margin-right: 14px; }

/* Privacy band */
.privacy-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.privacy-band h2 { max-width: 760px; }
.privacy-band .lede { color: var(--muted); font-size: 19px; max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.fact .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--lime-text); line-height: 1.1; }
.fact p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 52px; }
.pricing p { color: var(--muted); }
.trial { display: inline-block; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 14px 0 6px; }
.price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pricing .cta { margin: 18px 0 14px; }
.pricing ul { padding-left: 20px; margin: 0; line-height: 2.1; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; }

/* Plain text pages (privacy, support) */
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.035em; line-height: 1.1; margin: 48px 0 10px; }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .muted { color: var(--muted); }
.doc .box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin: 28px 0; }
.doc .box p:last-child { margin-bottom: 0; }
.doc .box .cta { margin-bottom: 16px; }
code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan .after { animation: none; clip-path: none; }
  .scan .line { display: none; }
  .js .tile { opacity: 1; transform: none; transition: none; }
  .cta { transition: none; }
}

@media (max-width: 860px) {
  .site-nav { gap: 16px; }
  .site-nav .optional { display: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 0 56px; gap: 8px; }
  .hero-art { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .strip { grid-template-columns: 1fr 1fr; font-size: 13px; }
  section { padding: 64px 0; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 14px; max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .compare-section { grid-template-columns: 1fr; gap: 32px; }
  .compare-copy { order: -1; }
  .facts { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .hero-art { min-height: 330px; }
  .cta { font-size: 15px; padding: 14px 18px; }
  .brand { font-size: 19px; }
  .gallery-foot { flex-direction: column; gap: 4px; }
}
