/* Unmatch: Swipe Photo Cleaner. Tokens mirror ios/Unmatch/Components/Theme.swift. */

:root {
  color-scheme: light dark;

  --brand: #ff6f61;
  --brand-peach: #ffb088;
  --brand-deep: #e8554a;
  --unmatch: #ff4d6e;
  --keep: #21cc94;
  --crush: #ffbd33;

  --bg: #fff7f2;
  --bg-tint: #ffe9df;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #5f5b62;
  --hairline: rgba(28, 28, 30, 0.09);
  --link: #c4413a;
  --shadow: 0 1px 2px rgba(60, 20, 10, 0.06), 0 12px 32px rgba(232, 85, 74, 0.12);
  --on-brand: #ffffff;

  --radius-card: 26px;
  --radius-row: 20px;
  --radius-chip: 14px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131113;
    --bg-tint: #2a1a18;
    --surface: #1f1c1f;
    --ink: #f6f2f0;
    --ink-2: #aba5ab;
    --hairline: rgba(255, 255, 255, 0.1);
    --link: #ff9184;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

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

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav > a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}

.topnav > a:hover,
.topnav > a[aria-current="page"] {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px;
  border-radius: 999px;
  background: var(--hairline);
}

.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }
  .topnav > a {
    padding: 8px 7px;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  color: var(--on-brand);
  box-shadow: 0 8px 24px rgba(255, 111, 97, 0.35);
  text-shadow: 0 1px 1px rgba(160, 50, 40, 0.25);
}

.button-primary:hover {
  box-shadow: 0 10px 30px rgba(255, 111, 97, 0.45);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.button svg {
  width: 22px;
  height: 22px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--brand-peach) 38%, transparent), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    var(--bg);
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.gradient-text {
  background: linear-gradient(120deg, var(--brand), var(--brand-peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
}

/* Card stack */

.stack {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}

.stack .card {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(120, 40, 30, 0.22);
}

.stack .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack .card-back-2 {
  transform: rotate(-9deg) translate(-26px, 10px) scale(0.94);
}

.stack .card-back-1 {
  transform: rotate(6deg) translate(22px, 4px) scale(0.97);
}

.stack .card-top {
  transform: rotate(-2deg);
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px 9px 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.chip .dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
}

.chip .dot svg {
  width: 15px;
  height: 15px;
}

.chip-unmatch {
  left: -14%;
  top: 38%;
  transform: rotate(-6deg);
}

.chip-keep {
  right: -12%;
  top: 56%;
  transform: rotate(5deg);
}

.chip-crush {
  left: 50%;
  top: -5%;
  transform: translateX(-50%) rotate(-2deg);
}

.bg-unmatch {
  background: var(--unmatch);
}

.bg-keep {
  background: var(--keep);
}

.bg-crush {
  background: var(--crush);
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 64px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-copy {
    text-align: center;
  }
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .chip-unmatch {
    left: -8%;
  }
  .chip-keep {
    right: -6%;
  }
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.1rem;
}

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

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.tile {
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile p {
  color: var(--ink-2);
  margin: 0;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
}

.tile-icon svg {
  width: 28px;
  height: 28px;
}

.tile .gesture {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tile-plain .tile-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
}

/* Privacy band */

.promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  color: #fff;
  box-shadow: 0 20px 50px rgba(255, 111, 97, 0.3);
}

.promise h2 {
  color: #fff;
}

.promise p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

.promise .shield {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.22);
}

.promise .shield svg {
  width: 52px;
  height: 52px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 0.92rem;
}

.promise a {
  color: #fff;
}

@media (max-width: 700px) {
  .promise {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }
  .promise .shield {
    margin: 0 auto;
  }
  .checks {
    justify-content: center;
  }
}

/* Closing call to action */

.cta {
  text-align: center;
}

.cta img {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cta .hero-actions {
  justify-content: center;
}

/* Documents: privacy, support, terms */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.doc-head {
  margin-bottom: 32px;
}

.doc-head .meta {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 0;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.doc li {
  margin-bottom: 0.45em;
}

.summary-box {
  padding: 20px 22px;
  border-radius: var(--radius-row);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-box p:last-child,
.summary-box ul:last-child {
  margin-bottom: 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius-row);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hairline);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-2);
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--ink-2);
}

.faq .answer p:last-child,
.faq .answer ol:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

.contact-card {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--brand), var(--brand-peach));
  color: #fff;
  text-align: center;
}

.contact-card h2 {
  margin-top: 0;
  color: #fff;
}

.contact-card a {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* 404 */

.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.not-found .big {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--unmatch);
  color: #fff;
}

.not-found .big svg {
  width: 48px;
  height: 48px;
}

.not-found p {
  color: var(--ink-2);
}

.not-found .hero-actions {
  justify-content: center;
}

/* Footer */

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--ink-2);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--ink);
}

.footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
