/* getsorts.com. Values come from docs/design-system.md: true black, the
   system font, and the shelf colours meaning the same thing they mean in the
   app. No webfont, no framework, no build step. */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #141414;
  --control: #1c1c1e;
  --edge: #2c2c2e;
  --divider: #1f1f21;
  --text: #fff;
  --text-2: #8e8e93;
  --text-bright: #c7c7cc;
  --reminder: #4fc168;
  --keep: #f5c451;
  --bin: #6e6e73;
  --green-surface: #12251a;
  --amber-surface: #2a2313;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 28px;
  --page: min(1180px, 100% - 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist",
               "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--keep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--page); margin-inline: auto; }

/* --- nav ----------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--divider); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* --- buttons ------------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 inherit; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--text); color: #000; text-decoration: none; border: 0;
  transition: transform .2s var(--ease), opacity .2s;
}
a.pill:hover { opacity: .9; }
a.pill:active { transform: scale(0.98); }
.pill.soon { background: var(--control); color: var(--text-bright); cursor: default; }

/* --- hero ---------------------------------------------------------------- */

.hero { padding: 56px 0 96px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  min-height: min(calc(100dvh - 64px - 152px), 760px);
}
.hero h1 {
  font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.055em;
  font-weight: 700;
}
.hero h1 span { display: block; color: var(--text-2); }
.hero p { margin: 26px 0 36px; font-size: 21px; line-height: 1.45; color: var(--text-bright); max-width: 30ch; letter-spacing: -0.01em; }

/* --- the deck: the site's own copy of the app's swipe ------------------
   A card is what the app's deck shows: the screenshot, then a caption with
   the title Sorts read and the day it was taken. */

.deck { position: relative; width: min(340px, 100%, calc((100dvh - 64px - 250px) * 0.6)); margin-inline: auto; user-select: none; -webkit-user-select: none; }
.stack { position: relative; aspect-ratio: 34 / 56; touch-action: none; }
.card {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--edge); background: var(--surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 100%;
  will-change: transform;
  cursor: grab;
}
.card:active { cursor: grabbing; }
.card .shot { flex: 1; min-height: 0; position: relative; }
.card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.card .cap { padding: 14px 18px 16px; background: var(--surface); border-top: 1px solid var(--divider); }
.card .cap b { display: block; font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cap span { font-size: 13px; color: var(--text-2); }
/* While dragging, the card takes the colour of the shelf it would land on. */
.card .tint { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .12s; }
.card .tint.keep { background: linear-gradient(135deg, transparent 40%, rgba(245, 196, 81, .55)); }
.card .tint.binned { background: linear-gradient(225deg, transparent 40%, rgba(110, 110, 115, .7)); }
.card .tint.reminder { background: linear-gradient(0deg, transparent 40%, rgba(79, 193, 104, .55)); }
.card .stamp {
  position: absolute; top: 18px; display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #000;
  opacity: 0; transition: opacity .12s; pointer-events: none;
}
.card .stamp svg { width: 15px; height: 15px; }
.card .stamp.keep { right: 16px; background: var(--keep); }
.card .stamp.binned { left: 16px; background: #d1d1d6; }
.card .stamp.reminder { left: 50%; translate: -50% 0; background: var(--reminder); }
/* The pile: the next two cards peek out below, dimmed, so the top one reads first. */
.card.under { cursor: default; transition: transform .45s var(--ease), filter .45s var(--ease); }
.card.under.n1 { transform: translateY(14px) scale(.95); filter: brightness(.55); }
.card.under.n2 { transform: translateY(26px) scale(.9); filter: brightness(.35); }

/* Above the cards (z-index up to 100), so their shadow does not dim the buttons. */
.shelves { position: relative; z-index: 150; display: flex; justify-content: center; gap: 22px; margin-top: 46px; }
.shelf {
  display: grid; justify-items: center; gap: 8px; background: none; border: 0; padding: 0;
  color: var(--text-2); font: 500 12px/1 inherit; letter-spacing: .01em; cursor: pointer;
}
.shelf svg {
  box-sizing: content-box; width: 24px; height: 24px; padding: 19px; border-radius: 50%;
  background: var(--control); border: 1px solid var(--edge);
  transition: transform .18s var(--ease), background .15s, color .15s, border-color .15s;
}
.shelf[data-shelf="binned"] svg { color: #d1d1d6; }
.shelf[data-shelf="reminder"] svg { color: var(--reminder); width: 26px; height: 26px; padding: 22px; }
.shelf[data-shelf="keep"] svg { color: var(--keep); }
.shelf:hover svg { transform: translateY(-2px); }
.shelf:active svg { transform: scale(.94); }
.shelf.lit svg { transform: scale(1.08); }
.shelf.lit[data-shelf="binned"] svg { background: #d1d1d6; color: #000; border-color: #d1d1d6; }
.shelf.lit[data-shelf="reminder"] svg { background: var(--reminder); color: #000; border-color: var(--reminder); }
.shelf.lit[data-shelf="keep"] svg { background: var(--keep); color: #000; border-color: var(--keep); }
.shelf:disabled { opacity: .35; cursor: default; }
.shelf:disabled svg { transform: none; }

.hint { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-2); min-height: 21px; white-space: nowrap; }
.hint b { font-weight: 600; }
.hint .r { color: var(--reminder); } .hint .k { color: var(--keep); } .hint .g { color: var(--text-bright); }

.done {
  position: absolute; inset: 0; border-radius: var(--radius);
  border: 1px dashed var(--edge);
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.done.show { opacity: 1; pointer-events: auto; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-surface); display: grid; place-items: center; color: var(--reminder); font-size: 30px; font-weight: 700; }
.done h3 { font-size: 26px; letter-spacing: -0.03em; }
.done p { color: var(--text-bright); font-size: 15px; line-height: 1.5; }
.done p b { display: block; }
.again { background: none; border: 1px solid var(--edge); color: var(--text); height: 42px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 inherit; cursor: pointer; }

/* --- statement ----------------------------------------------------------- */

.statement { padding: 120px 0 128px; border-top: 1px solid var(--divider); }
.statement h2 {
  font-size: clamp(36px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 700;
  max-width: 19ch;
}
.statement h2 em { font-style: normal; color: var(--text-2); }
.statement p { margin-top: 30px; font-size: 21px; color: var(--text-bright); max-width: 52ch; line-height: 1.5; }

/* --- the three shelves --------------------------------------------------- */

.shelves-section { padding: 0 0 128px; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 700; margin-bottom: 36px; }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 34px; min-height: 300px; display: flex; flex-direction: column;
}
.tile h3 { font-size: 30px; letter-spacing: -0.035em; line-height: 1.05; }
.tile p { margin-top: 10px; color: var(--text-bright); max-width: 32ch; }
.tile .gesture { margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.tile.reminder { grid-row: span 2; background: var(--green-surface); }
.tile.reminder .gesture { color: var(--reminder); }
.tile.keep { background: var(--amber-surface); }
.tile.keep .gesture { color: var(--keep); }
.tile.bin { background: var(--surface); }
.tile.bin .gesture { color: var(--text-2); }
.tile .shot {
  width: 62%; margin: 34px auto -120px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: rotate(-4deg);
}
.tile.keep .mini, .tile.bin .mini {
  position: absolute; right: -30px; bottom: -70px; width: 150px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08); transform: rotate(9deg); opacity: .9;
}
.tile.bin .mini { filter: grayscale(1) brightness(.6); transform: rotate(-11deg); }
.tile.keep p, .tile.bin p { max-width: 24ch; }

/* --- find it later ------------------------------------------------------- */

.later { padding: 0 0 128px; }
.later .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.phone {
  width: min(340px, 100%); margin-inline: auto; border-radius: 44px; padding: 10px;
  background: #0b0b0c; border: 1px solid var(--edge); box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.phone img { border-radius: 36px; width: 100%; }
.phone.slot { aspect-ratio: 1320 / 2868; }
.later h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1.02; }
.later .lines { margin-top: 30px; display: grid; gap: 24px; }
.later .lines div { padding-left: 18px; border-left: 2px solid var(--edge); }
.later .lines b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.later .lines span { color: var(--text-2); }

/* --- tags --------------------------------------------------------------- */

.tags { padding: 0 0 128px; }
.tags .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tags h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1.02; }
.tags .lede { margin-top: 18px; font-size: 19px; color: var(--text-bright); max-width: 44ch; }
.tags .points { margin-top: 30px; display: grid; gap: 22px; }
.tags .points b { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.tags .points b svg { width: 18px; height: 18px; color: var(--keep); }
.tags .points span { color: var(--text-2); display: block; max-width: 52ch; }
.routes { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.route { display: grid; grid-template-columns: 116px 28px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--bg); border: 1px solid var(--divider); }
.chip { justify-self: start; font-weight: 600; font-size: 15px; padding: 7px 13px; border-radius: 999px; background: var(--control-2, #1f1f21); }
.chip::before { content: "#"; opacity: .55; margin-right: 1px; }
.chip.c1 { color: #f2a36b; } .chip.c2 { color: #a78be8; } .chip.c3 { color: #7b8fe8; } .chip.c4 { color: #8ce0a3; }
.arrow { height: 1px; background: var(--edge); position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--edge); }
.dests { display: flex; flex-wrap: wrap; gap: 8px; }
.dests span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-bright); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--edge); }
.dests svg { width: 15px; height: 15px; color: var(--text); }
.routes-note { font-size: 13px; color: var(--text-3, #6e6e73); padding: 2px 4px 0; }

/* --- integrations ------------------------------------------------------- */

.integrations { padding: 112px 0; border-top: 1px solid var(--divider); }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.groups h3 { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.groups ul { list-style: none; }
.groups li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--divider); }
.groups li svg { flex: none; width: 22px; height: 22px; padding: 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); box-sizing: content-box; }
.groups li b { display: block; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 2px; }
.groups li span { color: var(--text-2); }
.groups > div:first-child li svg { color: var(--reminder); }
.groups > div:last-child li svg { color: var(--keep); }
.integrations-note { margin-top: 32px; color: var(--text-bright); }

/* --- privacy ------------------------------------------------------------- */

.private { padding: 112px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.private .big { display: grid; gap: 4px; }
.private .big div {
  font-size: clamp(40px, 7vw, 96px); font-weight: 700; letter-spacing: -0.055em; line-height: 1;
  color: var(--text);
}
.private .big div:nth-child(2) { color: var(--text-bright); }
.private .big div:nth-child(3) { color: var(--text-2); }
.private p { margin-top: 36px; max-width: 56ch; color: var(--text-bright); font-size: 19px; }
.private p a { color: var(--text); }

/* --- faq ----------------------------------------------------------------- */

.faq { padding: 112px 0 96px; }
.faq .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; line-height: 1.05; position: sticky; top: 100px; }
details { border-bottom: 1px solid var(--divider); }
details:first-of-type { border-top: 1px solid var(--divider); }
summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 26px; font-weight: 300; color: var(--text-2); transition: rotate .3s var(--ease);
}
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 40px 24px 0; color: var(--text-bright); max-width: 60ch; }

/* --- closing ------------------------------------------------------------- */

.closing { padding: 40px 0 120px; }
.closing .wrap {
  border-radius: 36px; padding: 72px 56px; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--edge);
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.closing img { width: 104px; height: 104px; border-radius: 24px; }
.closing h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.045em; line-height: 1.02; }
.closing p { color: var(--text-2); margin-top: 8px; }

footer { border-top: 1px solid var(--divider); padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* --- document pages (privacy, support) ------------------------------------ */

.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.05em; line-height: 1; }
.doc .updated { color: var(--text-2); margin: 16px 0 48px; }
.doc h2 { font-size: 24px; letter-spacing: -0.03em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text-bright); }
.doc p + p, .doc ul + p { margin-top: 14px; }
.doc ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.doc a { color: var(--text); }
.doc .lead { font-size: 21px; color: var(--text); line-height: 1.45; }

/* --- reveal on scroll ---------------------------------------------------- */

/* Hidden only once site.js has run (it sets .js on <html>), so a page whose
   script fails still shows everything. The hero animates in with CSS alone. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
  .hero .reveal { opacity: 1; translate: 0 0; animation: rise .9s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .deck.reveal { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; translate: 0 28px; } }
}

/* --- small screens -------------------------------------------------------- */

@media (max-width: 860px) {
  .hero { padding: 28px 0 72px; }
  .hero .wrap, .later .wrap, .faq .wrap { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .hero p { font-size: 19px; }
  .nav-links a.hide-sm { display: none; }
  .statement { padding: 88px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile.reminder { grid-row: auto; }
  .tile { min-height: 240px; padding: 28px; }
  .later .phone { order: 2; }
  .tags .wrap, .groups { grid-template-columns: 1fr; gap: 40px; }
  .route { grid-template-columns: 1fr; gap: 8px; }
  .arrow { display: none; }
  .integrations { padding: 88px 0; }
  .faq h2 { position: static; }
  .closing .wrap { grid-template-columns: 1fr; padding: 44px 28px; text-align: left; }
  .private { padding: 88px 0; }
}
