/* File Sorter sales page. Own theme: warm sand, ink and one sea-glass accent. */
:root {
  --sand: #f3e3bf;
  --sand-2: #ead4a4;
  --paper: #fff8e9;
  --ink: #1d1912;
  --muted: #5d5340;
  --accent: #0b6e64;
  --accent-hover: #09574f;
  --on-accent: #fff8e9;
  --warn: #8c2f12;
  --line: rgba(29, 25, 18, 0.16);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; border-radius: 12px; background: var(--sand-2); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--sand-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; text-decoration: none; text-align: center;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.small { font-size: 0.92rem; color: var(--muted); }
.link { font: inherit; font-weight: 700; color: var(--accent); background: none; border: 0; min-height: 44px; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(243, 227, 191, 0.94);
  border-bottom: 1px solid var(--line);
}
.top__brand { font-weight: 800; text-decoration: none; white-space: nowrap; }
.top__brand span { color: var(--muted); font-weight: 500; }
.top__links { display: flex; gap: 22px; }
.top__links a { text-decoration: none; }
.top__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

main > section { padding: clamp(48px, 8vw, 96px) max(var(--gutter), calc(50% - 560px)); }

.hero {
  padding-bottom: 28px !important;
  padding-left: max(var(--gutter), calc(50% - 640px)) !important;
  padding-right: max(var(--gutter), calc(50% - 640px)) !important;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.tag { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); max-width: 15ch; }
.lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.28; max-width: 34ch; margin: 22px 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__more { flex-basis: 100%; }

.laptop { min-width: 0; padding: 0 3%; }
.laptop__screen { background: #1d1912; border-radius: 14px 14px 0 0; padding: 0 8px 8px; box-shadow: 0 18px 40px rgba(29, 25, 18, 0.22); }
.laptop__bar { display: flex; gap: 6px; padding: 9px 4px; }
.laptop__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e0654f; }
.laptop__bar i:nth-child(2) { background: #e6b34a; }
.laptop__bar i:nth-child(3) { background: #62b86b; }
.laptop video { display: block; width: 100%; height: auto; border-radius: 3px; background: #e6cd9b; }
.laptop__note { margin-top: 10px; text-align: right; }
.laptop__base { height: 14px; margin: 0 -3.2%; background: linear-gradient(#cfc6b4, #a79d8a); border-radius: 0 0 12px 12px; box-shadow: 0 8px 14px rgba(29, 25, 18, 0.18); }

.demo { padding-top: 28px !important; }
.demo__intro, .how__intro { margin-top: 12px; margin-bottom: 22px; max-width: 58ch; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab {
  font: inherit; font-weight: 700; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  color: var(--ink); background: transparent; border: 2px solid var(--ink); cursor: pointer;
}
.tab.is-on { background: var(--ink); color: var(--paper); }
.player video { width: 100%; box-shadow: 0 18px 50px rgba(60, 40, 10, 0.25); }
.player figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

.themed { background: var(--paper); }

.me__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.me__grid p { margin-top: 16px; max-width: 54ch; }

.does { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.card p { margin-top: 10px; font-size: 1rem; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: clamp(32px, 5vw, 56px); }
.step { counter-increment: step; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.step__text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.step__text h3::before { content: counter(step); display: block; font-family: var(--mono); font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.step__text p { margin-top: 10px; }

.moves { background: var(--ink); color: var(--paper); }
.moves code { color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.cols p { margin-top: 8px; }
.warn { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 248, 233, 0.1); border: 1px solid rgba(255, 248, 233, 0.26); }

.buy { background: var(--paper); text-align: center; }
.buy h2 { font-size: clamp(3rem, 9vw, 6rem); }
.buy p { max-width: 48ch; margin: 14px auto 0; }
.buy .btn { margin-top: 24px; }
.buy .small { margin-top: 16px; }

.foot { padding: 28px var(--gutter) 40px; font-size: 0.9rem; color: var(--muted); display: grid; gap: 6px; }
.stick { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 7.4vw, 4.9rem); }
  .laptop { max-width: 560px; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .cols, .me__grid { grid-template-columns: minmax(0, 1fr); }
  .me__grid img { max-width: min(100%, 320px); }
  .top__links { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .top__brand span { display: none; }
  .tab { flex: 1 1 auto; padding: 10px 12px; }
  .hero__cta .btn { width: 100%; }
  body { padding-bottom: 76px; }
  .stick {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 20;
    min-height: 52px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
    font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
