/* File Sorter: Swipe to Delete — filesorterapp.online
   Warm manila design system. No frameworks, no build step. */

:root {
  --manila: #E8DCC4;
  --tab: #C9B896;
  --ink: #2B2622;
  --bg: #FFFFFF;
  --surface: #FAF7F0;
  --surface-2: #F3EDE0;
  --muted: #6E655B;
  --line: #E6DECD;
  --shadow: 0 1px 2px rgba(43, 38, 34, 0.06), 0 12px 32px rgba(43, 38, 34, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --manila: #E8DCC4;
    --tab: #C9B896;
    --ink: #F1EAE0;
    --bg: #1C1917;
    --surface: #262019;
    --surface-2: #2E2820;
    --muted: #A89C8C;
    --line: #38312A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1020px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand svg { flex: none; }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-links a.nav-cta {
  color: var(--ink);
  background: var(--manila);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links a.nav-cta:hover { background: var(--tab); }

@media (prefers-color-scheme: dark) {
  .nav-links a.nav-cta { color: #2B2622; }
}

@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav-links a.nav-hide-sm { display: none; }
}

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

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 18px;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  line-height: 1.2;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.appstore-badge:hover { transform: translateY(-1px); opacity: 0.92; }

.appstore-badge .badge-small { display: block; font-size: 11px; opacity: 0.85; }
.appstore-badge .badge-big { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

@media (prefers-color-scheme: dark) {
  .appstore-badge { background: #F1EAE0; color: #1C1917; }
}

.cta-note {
  font-size: 14px;
  color: var(--muted);
}

/* Hero art */

.hero-art { display: flex; justify-content: center; }

.hero-art svg { width: min(400px, 88vw); }

.card-back { fill: var(--surface-2); stroke: var(--line); }
.card-front { fill: var(--surface); stroke: var(--line); }
.doc-body { fill: var(--manila); }
.doc-tab { fill: var(--tab); }
.doc-line { fill: var(--ink); opacity: 0.22; }
.art-title { fill: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.art-meta { fill: var(--muted); font-size: 13px; }
.art-circle-del { fill: none; stroke: var(--tab); stroke-width: 2; }
.art-circle-keep { fill: var(--manila); }
.art-glyph { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-arrow { stroke: var(--tab); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-arrow-label { fill: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }

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

section { padding: 76px 0; }

section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 620px; margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 750;
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 18px; }

/* Swipe explainer */

.swipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.swipe-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.swipe-card .gesture {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.gesture-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.gesture-icon.delete { border: 1.5px solid var(--tab); }
.gesture-icon.keep { background: var(--manila); }
.gesture-icon svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-color-scheme: dark) {
  .gesture-icon.keep svg { stroke: #2B2622; }
}

.swipe-card p { color: var(--muted); }

.undo-note {
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px dashed var(--tab);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
}

section.alt .swipe-card, section.alt .undo-note { background: var(--bg); }

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}

section.alt .feature-card { background: var(--bg); box-shadow: var(--shadow); }

.feature-card h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 16px 0 10px;
}

.feature-card p { color: var(--muted); font-size: 16px; }

.feature-card p + p { margin-top: 10px; }

.tier {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}

.tier.free { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tier.plus { background: var(--manila); color: #2B2622; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--manila);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  vertical-align: middle;
}

.feature-icon svg { width: 22px; height: 22px; stroke: #2B2622; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.feature-card-top { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

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

/* Plan cards styled as manila folders with a tab */

.plan {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 34px 30px 30px;
  margin-top: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.plan::before {
  content: attr(data-tab);
  position: absolute;
  top: -33px;
  left: -1px;
  height: 33px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan.featured { border-color: var(--tab); }

.plan.featured::before {
  background: var(--manila);
  border-color: var(--tab);
  color: #2B2622;
}

.plan .price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan .price small {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .price-sub { color: var(--muted); font-size: 15px; margin: 6px 0 22px; }

.plan ul { list-style: none; margin-bottom: 8px; flex: 1; }

.plan li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: var(--ink);
  font-size: 16px;
  border-top: 1px solid var(--line);
}

.plan li:first-child { border-top: none; }

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--tab);
  border-bottom: 2px solid var(--tab);
  transform: rotate(-45deg);
}

.plan li.dim { color: var(--muted); }

.plan li.dim::before { border-color: var(--line); }

.fineprint {
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 58em;
}

.fineprint a { color: var(--muted); }

/* Privacy teaser strip */

.privacy-strip {
  text-align: center;
  padding: 70px 0;
}

.privacy-strip h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-bottom: 12px;
}

.privacy-strip p {
  color: var(--muted);
  font-size: 17px;
  max-width: 38em;
  margin: 0 auto 22px;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tab);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-meta { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 30em; }

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

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

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

.page-header { padding: 64px 0 8px; }

.page-header h1 { font-size: clamp(30px, 4.5vw, 44px); }

.page-header .updated { color: var(--muted); font-size: 15px; margin-top: -6px; }

.legal { padding: 24px 0 80px; }

.legal-body { max-width: 720px; }

.summary-box {
  background: var(--surface);
  border: 1px solid var(--tab);
  border-left: 5px solid var(--tab);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  margin: 28px 0 40px;
}

.summary-box strong { display: block; margin-bottom: 8px; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

.summary-box p { font-size: 16.5px; }

.legal-body h2 {
  font-size: 23px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 44px 0 12px;
}

.legal-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.legal-body p { color: var(--ink); margin-bottom: 14px; }

.legal-body p.soft, .legal-body li { color: var(--ink); }

.legal-body ul { margin: 0 0 16px 22px; }

.legal-body li { margin-bottom: 8px; }

.legal-body a { color: var(--ink); text-decoration-color: var(--tab); text-underline-offset: 3px; }

/* FAQ */

.faq { max-width: 720px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--tab);
  border-bottom: 2px solid var(--tab);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }

.faq .answer { padding: 0 22px 20px; color: var(--muted); }

.faq .answer p { margin-bottom: 10px; }

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

.contact-card {
  max-width: 720px;
  margin-top: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.contact-card h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.015em; }

.contact-card p { color: var(--muted); margin-bottom: 18px; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.button:hover { opacity: 0.85; }
