/* Sift — darkroom.
   Palette lifted verbatim from Sift/DesignSystem/Palette.swift so the site and the
   app are demonstrably the same product. */

:root {
  --void: #0a0a0c;
  --surface: #141417;
  --surface-raised: #1e1e23;
  --hairline: #2c2c33;

  --ink: #ffffff;
  --ink-secondary: rgba(255, 255, 255, 0.62);
  --ink-tertiary: rgba(255, 255, 255, 0.38);

  --amber: #e8a33d;
  --ember: #ff453a;
  --sage: #30d158;
  --gold: #ffd60a;
  --sky: #0a84ff;

  --measure: 68ch;
  --shell: 1080px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
    system-ui, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- shell ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 640;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.masthead nav {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  font-size: 0.9375rem;
}

.masthead nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--ink);
}

.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* ---------- type ---------- */

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

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  font-weight: 660;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--measure);
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong {
  font-weight: 620;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-secondary);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 640;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}

/* ---------- sections ---------- */

section {
  padding-block: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--hairline);
}

section:first-of-type {
  border-top: none;
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-head p {
  color: var(--ink-secondary);
  margin-bottom: 0;
  margin-top: 14px;
}

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

.hero {
  padding-block: clamp(64px, 11vw, 128px) clamp(56px, 9vw, 104px);
  border-top: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 800px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero p {
  margin-bottom: 0;
}

.hero .lede {
  margin-top: 24px;
}

/* The card stack from the app icon, rebuilt in CSS. */

.stack {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 400px);
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.stack__card {
  position: absolute;
  width: 54%;
  height: 68%;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
}

.stack__card--back {
  background: #4a3a1c;
  transform: rotate(-13deg) translate(-16%, 9%);
}

.stack__card--mid {
  background: #6d5424;
  transform: rotate(-6.5deg) translate(-8%, 5%);
}

.stack__card--front {
  background: linear-gradient(158deg, #f2bd63 0%, #e8a33d 52%, #dd8f22 100%);
  transform: rotate(5deg);
}

/* ---------- gestures ---------- */

.gestures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gesture {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gesture__arrow {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  margin-bottom: 4px;
}

.gesture__name {
  font-weight: 620;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.gesture p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.g-delete .gesture__arrow {
  color: var(--ember);
}
.g-keep .gesture__arrow {
  color: var(--sage);
}
.g-undo .gesture__arrow {
  color: var(--amber);
}
.g-file .gesture__arrow {
  color: var(--sky);
}

/* ---------- feature list ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 44px);
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 0.9688rem;
}

/* ---------- callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--amber);
  border-radius: 4px 14px 14px 4px;
  padding: 24px 26px;
  margin-block: 32px;
}

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

.callout--quiet {
  border-left-color: var(--hairline);
}

/* ---------- prose (support + privacy) ---------- */

.prose {
  padding-block: clamp(48px, 7vw, 76px) clamp(64px, 9vw, 104px);
}

.prose h2 {
  margin-top: clamp(44px, 6vw, 64px);
  margin-bottom: 16px;
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--hairline);
}

.prose h3 {
  margin-top: 34px;
  margin-bottom: 8px;
}

.prose ul {
  max-width: var(--measure);
  padding-left: 1.2em;
  margin: 0 0 1.15em;
  color: var(--ink-secondary);
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--ink-tertiary);
}

.page-head {
  padding-block: clamp(48px, 8vw, 88px) 0;
}

.page-head .lede {
  margin-top: 20px;
}

.updated {
  color: var(--ink-tertiary);
  font-size: 0.875rem;
  margin-top: 20px;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--hairline);
  max-width: var(--measure);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 580;
  font-size: 1.0312rem;
  letter-spacing: -0.011em;
  position: relative;
  line-height: 1.4;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--amber);
}

.faq__body {
  padding: 0 0 22px;
  color: var(--ink-secondary);
}

.faq__body p:last-child,
.faq__body ul:last-child {
  margin-bottom: 0;
}

.faq__body ul {
  color: inherit;
}

/* ---------- contact ---------- */

.contact {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 36px);
  max-width: var(--measure);
}

.contact h2 {
  margin: 0 0 12px;
  border: none;
  padding: 0;
  font-size: 1.375rem;
}

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

.contact__address {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 600;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding-block: 40px 56px;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a {
  color: var(--ink-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- focus ---------- */

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}
