/* ═══════════════════════════════════════════════════════════════
   DeskFold — deskfold site stylesheet
   Dark theme matching the app: #16161C surfaces, #B59CFF purple,
   #3ED598 logo green. System font stack, no external requests.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0f0f13;
  --bg-soft:   #16161c;
  --card:      #1b1b22;
  --card-2:    #22222b;
  --border:    #2e2e38;
  --border-hi: #3c3c4a;
  --text:      #f2f2f7;
  --text-sub:  #a9a9b6;
  --text-dim:  #71717e;
  --accent:    #b59cff;
  --accent-2:  #8f6dff;
  --green:     #3ed598;
  --radius:    16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── ambient glow (echoes the app wallpaper) ─────────────────── */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -5%,  rgba(120, 70, 255, .16), transparent 60%),
    radial-gradient(800px 500px at 90% 10%,  rgba(255, 60, 120, .07), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(62, 213, 152, .06), transparent 60%);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── nav ─────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 15, 19, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 30px; height: 27px; }
nav a.link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: .92rem;
  transition: color .15s;
}
nav a.link:hover { color: var(--text); }
@media (max-width: 720px) { nav a.link { display: none; } }

/* ── buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #17131f;
  box-shadow: 0 8px 28px rgba(143, 109, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(143, 109, 255, .45); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { background: var(--card-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 10px; }

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 84px 0 60px;
}
.hero img.logo {
  width: 190px;
  filter: drop-shadow(0 18px 44px rgba(62, 213, 152, .18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 26px;
  line-height: 1.12;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  color: var(--text-sub);
  font-size: 1.14rem;
  max-width: 640px;
  margin: 18px auto 0;
}
.hero .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero .meta {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: .88rem;
}
.hero .meta span { margin: 0 8px; }

/* ── sections ────────────────────────────────────────────────── */
section { padding: 72px 0; }
.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.01em;
  text-align: center;
}
.sec-sub {
  color: var(--text-sub);
  text-align: center;
  max-width: 620px;
  margin: 12px auto 0;
}

/* ── features grid ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 14px;
  background: rgba(181, 156, 255, .12);
}
.card h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 6px; }
.card p  { color: var(--text-sub); font-size: .9rem; line-height: 1.55; }

/* ── screenshots ─────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.shot {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .18s, border-color .18s;
}
.shot:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot img { width: 100%; display: block; }
.shot figcaption {
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
}

/* lightbox */
dialog.lightbox {
  border: none;
  background: transparent;
  max-width: min(1200px, 94vw);
  padding: 0;
}
dialog.lightbox::backdrop { background: rgba(5, 5, 8, .88); backdrop-filter: blur(6px); }
dialog.lightbox img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
}

/* ── shortcuts ───────────────────────────────────────────────── */
.keys {
  margin: 44px auto 0;
  max-width: 760px;
  display: grid;
  gap: 10px;
}
.keyrow {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
}
.keyrow .combo { display: flex; gap: 5px; flex-shrink: 0; min-width: 190px; }
kbd {
  background: var(--card-2);
  border: 1px solid var(--border-hi);
  border-bottom-width: 2.5px;
  border-radius: 7px;
  padding: 3px 9px;
  font-family: Consolas, monospace;
  font-size: .84rem;
  color: #d8cfff;
}
.keyrow .what { color: var(--text-sub); font-size: .92rem; }
@media (max-width: 560px) {
  .keyrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .keyrow .combo { min-width: 0; }
}

/* ── supporter / pricing ─────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 44px auto 0;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  position: relative;
  transition: transform .18s, border-color .18s;
}
.plan:hover { transform: translateY(-4px); }
.plan.hot { border-color: var(--accent); }
.plan .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #17131f;
  font-size: .74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; font-weight: 650; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 10px 0 2px; }
.plan .per { color: var(--text-dim); font-size: .88rem; }
.plan ul {
  list-style: none;
  margin: 18px 0 22px;
  color: var(--text-sub);
  font-size: .9rem;
  display: grid;
  gap: 7px;
}
.plan ul li::before { content: "✓  "; color: var(--green); font-weight: 700; }
.support-note {
  text-align: center;
  color: var(--text-dim);
  font-size: .88rem;
  max-width: 560px;
  margin: 26px auto 0;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-sub); font-size: .92rem; margin-top: 10px; }

/* ── footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 46px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: .88rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
footer a { color: var(--text-sub); text-decoration: none; }
footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── eyebrow labels + reveal animation ───────────────────────── */
.eyebrow {
  display: block;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── how it works steps ──────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 44px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 2.4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
  display: block;
  margin-bottom: 10px;
  opacity: .9;
}
.step h3 { font-size: 1.04rem; font-weight: 650; margin-bottom: 8px; }
.step p  { color: var(--text-sub); font-size: .92rem; }

/* ── split (text + image) sections ───────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
  margin-top: 54px;
}
.split.flip .split-text  { order: 2; }
.split.flip .split-media { order: 1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.flip .split-text  { order: 1; }
  .split.flip .split-media { order: 2; }
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.split-text h3 { font-size: 1.5rem; font-weight: 720; letter-spacing: -.01em; margin-bottom: 12px; }
.split-text > p { color: var(--text-sub); font-size: .98rem; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li {
  color: var(--text-sub);
  font-size: .93rem;
  padding-left: 26px;
  position: relative;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.ticks li strong { color: var(--text); font-weight: 600; }

/* ── folder-type cards ───────────────────────────────────────── */
.ftypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.ftype {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.ftype .chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(62, 213, 152, .1);
  border: 1px solid rgba(62, 213, 152, .25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ftype .chip.purple { color: var(--accent); background: rgba(181,156,255,.1); border-color: rgba(181,156,255,.28); }
.ftype .chip.amber  { color: #f5c66d; background: rgba(245,198,109,.09); border-color: rgba(245,198,109,.25); }
.ftype h3 { font-size: 1.08rem; font-weight: 660; margin-bottom: 8px; }
.ftype > p { color: var(--text-sub); font-size: .92rem; margin-bottom: 12px; }
.ftype ul { list-style: none; display: grid; gap: 7px; }
.ftype li { color: var(--text-sub); font-size: .88rem; padding-left: 20px; position: relative; }
.ftype li::before { content: "·"; position: absolute; left: 6px; color: var(--accent); font-weight: 900; }
.ftype li strong { color: var(--text); font-weight: 600; }

/* ── comparison table ────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--border); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: .92rem;
  min-width: 560px;
}
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: none; }
.compare th { background: var(--card-2); font-weight: 650; font-size: .88rem; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text-sub); }
.compare th:nth-child(2) { color: var(--accent); }
.compare td.yes  { color: var(--green); font-weight: 700; }
.compare td.no   { color: var(--text-dim); }
.compare td.part { color: #f5c66d; }

/* ── trust strip ─────────────────────────────────────────────── */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.trust .t {
  background: linear-gradient(180deg, rgba(62,213,152,.06), transparent 70%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.trust .t .big { font-size: 1.5rem; margin-bottom: 6px; }
.trust .t h4 { font-size: .98rem; font-weight: 650; margin-bottom: 4px; }
.trust .t p  { color: var(--text-sub); font-size: .86rem; }

/* ── privacy page ────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.doc h1 { font-size: 2rem; font-weight: 750; margin-bottom: 6px; }
.doc .updated { color: var(--text-dim); font-size: .88rem; margin-bottom: 34px; }
.doc h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 34px 0 12px;
  color: var(--accent);
}
.doc p, .doc li { color: var(--text-sub); font-size: .97rem; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--text); }
