/* Colors follow the app: blue → violet gradient, one yellow for the pick ★. */
:root {
  --blue: #2563eb;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --star: #facc15;
  --delete: #dc2626;
  --keep: #22c55e;

  --bg: #ffffff;
  --bg-soft: #f5f5fa;
  --text: #0f0f1a;
  --muted: #5b5b70;
  --line: #e4e4ee;
  --card: #ffffff;
  --phone-frame: #0f0f1a;
  --gradient: linear-gradient(120deg, var(--blue), var(--violet));

  --radius: 20px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c14;
    --bg-soft: #14141f;
    --text: #f2f2f7;
    --muted: #a0a0b8;
    --line: #26263a;
    --card: #181826;
    --phone-frame: #2a2a3d;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: flex;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang a {
  padding: 4px 10px;
  text-decoration: none;
  color: var(--muted);
}

.lang a[aria-current="true"] {
  background: var(--text);
  color: var(--bg);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--indigo) 70%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--indigo) 80%, transparent);
}

.button:focus-visible,
.lang a:focus-visible {
  outline: 3px solid var(--star);
  outline-offset: 3px;
}

.button.small {
  padding: 8px 16px;
  font-size: 15px;
  box-shadow: none;
}

.button.light {
  background: #fff;
  color: var(--indigo);
  box-shadow: none;
}

/* Hero */

.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 650;
  color: var(--indigo);
  background: color-mix(in srgb, var(--indigo) 10%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow {
    color: #a5b4fc;
    background: color-mix(in srgb, var(--indigo) 25%, transparent);
  }
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 64px);
  font-weight: 800;
}

.hero .lead {
  margin-top: 20px;
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--muted);
  max-width: 34em;
}

.hero .cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}

.facts li::before {
  content: "✓ ";
  color: var(--keep);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -10% 0;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.35;
  border-radius: 50%;
}

/* Phone frame around screenshots */

.phone {
  position: relative;
  width: 100%;
  max-width: 290px;
  padding: 9px;
  background: var(--phone-frame);
  border-radius: 38px;
  box-shadow: 0 30px 60px -20px rgba(15, 15, 40, 0.45);
}

.phone img {
  border-radius: 30px;
  width: 100%;
}

.hero .phone {
  transform: rotate(3deg);
}

/* Sections */

section {
  padding: 88px 0;
}

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

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

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  counter-increment: step;
}

.steps .phone {
  max-width: 250px;
  margin-bottom: 28px;
}

.steps h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 22em;
}

.gestures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.gestures li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* Template finder (the part no other sorting app has) */

.usp {
  background: var(--gradient);
  color: #fff;
}

.usp .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.usp .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.usp h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}

.usp p {
  margin-top: 18px;
  font-size: 19px;
  opacity: 0.92;
}

.usp .points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.usp .points li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.usp .points li::before {
  content: "★";
  color: var(--star);
}

.usp .phone {
  justify-self: center;
  max-width: 280px;
  transform: rotate(-2deg);
}

/* Storage */

.storage .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Two overlapping phones: screenshot grid behind, "freed" result in front. */
.duo {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.duo .phone {
  max-width: 230px;
}

.duo .phone:first-child {
  transform: rotate(-5deg) translateX(24px);
}

.duo .phone:last-child {
  transform: rotate(4deg) translate(-24px, 36px);
  z-index: 1;
}

.storage h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}

.storage p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.freed {
  margin-top: 28px;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.freed small {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

/* Trust */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.trust .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  color: var(--indigo);
  margin-bottom: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trust .icon {
    color: #a5b4fc;
    background: color-mix(in srgb, var(--indigo) 28%, transparent);
  }
}

.trust h3 {
  font-size: 19px;
}

.trust p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* Beta call to action */

.beta {
  padding: 0 0 96px;
}

.beta-card {
  background: var(--gradient);
  color: #fff;
  border-radius: 32px;
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.beta-card h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}

.beta-card p {
  margin: 16px auto 0;
  max-width: 34em;
  font-size: 18px;
  opacity: 0.92;
}

.beta-card .button {
  margin-top: 30px;
}

.beta-card .note {
  font-size: 15px;
  opacity: 0.8;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.disclaimer {
  flex-basis: 100%;
  font-size: 13px;
  opacity: 0.8;
}

/* Responsive */

@media (max-width: 860px) {
  .hero {
    padding-top: 32px;
  }

  .hero .wrap,
  .usp .wrap,
  .storage .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero .phone {
    max-width: 240px;
  }

  .steps,
  .trust {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .trust {
    gap: 14px;
  }

  .duo {
    order: 2;
    padding-bottom: 36px;
  }

  .duo .phone {
    max-width: 180px;
  }

  .usp .phone {
    max-width: 240px;
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 16px;
  }

  .header-actions .button {
    display: none;
  }

  .beta-card {
    padding: 44px 20px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
