/* siftbox website. Colors come from the app: chrome #1C2454 (header navy),
   accent #5C66F2 (buttons, sent bubbles), mark #9EA8FF (the sieve beside "siftbox"),
   icon #2B3A8F (the main page's icons). Type is SF Pro Rounded, like the wordmark. */
:root {
  --chrome: #1C2454;
  --chrome-deep: #141a3f;
  --accent: #5C66F2;
  --mark: #9EA8FF;
  --icon: #2B3A8F;
  --text: #15182b;
  --muted: #5d6275;
  --bg: #ffffff;
  --grouped: #f2f2f7;
  --card: #ffffff;
  --tile: #f4f5fb;
  --green: #34c759;
  --radius: 24px;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--rounded);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── Top bar: the app's navy header with the sieve and wordmark ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(28, 36, 84, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.topbar .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 24px; height: 24px; color: var(--mark); }
.wordmark span { font-weight: 600; font-size: 25px; letter-spacing: -0.6px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topbar nav a { color: rgba(255, 255, 255, 0.78); font-weight: 500; font-size: 15px; }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar nav a.pill {
  color: var(--chrome); background: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600;
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(92, 102, 242, 0.55), transparent 65%),
    radial-gradient(700px 400px at 10% 110%, rgba(158, 168, 255, 0.25), transparent 70%),
    linear-gradient(180deg, var(--chrome) 0%, var(--chrome-deep) 100%);
  color: #fff;
  margin-top: -64px; padding-top: 64px;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--mark); background: rgba(158, 168, 255, 0.12);
  border: 1px solid rgba(158, 168, 255, 0.28);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -2px;
  margin: 22px 0 20px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--mark); }
.hero .lede { font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 999px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(92, 102, 242, 0.45); }
.btn-primary:hover { background: #6a73f5; }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.hero .note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

.hero-phones { position: relative; height: 620px; }
.hero-phones .phone { position: absolute; width: 290px; }
.hero-phones .phone.front { right: 150px; top: 20px; z-index: 2; transform: rotate(-4deg); }
.hero-phones .phone.back { right: -10px; top: 90px; z-index: 1; transform: rotate(6deg); opacity: 0.92; }

/* ── Phone frame around real screenshots ── */
.phone {
  background: #0b0d18; padding: 11px; border-radius: 54px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -20px rgba(12, 16, 48, 0.55),
    0 18px 36px -18px rgba(12, 16, 48, 0.5);
}
.phone img { border-radius: 44px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }

/* ── Promise strip ── */
.promises { background: var(--chrome-deep); color: #fff; padding: 0 0 64px; }
.promises .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise-item {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(158, 168, 255, 0.16);
  border-radius: var(--radius); padding: 24px;
}
.promise-item .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(158, 168, 255, 0.14); color: var(--mark); margin-bottom: 14px;
}
.promise-item .ico svg { width: 24px; height: 24px; }
.promise-item h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.3px; }
.promise-item p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 15px; line-height: 1.55; }

/* ── Feature rows ── */
section.features { padding: 112px 0 40px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.2px; }
.section-head h2, .row h2 {
  font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -1.2px; margin: 10px 0 14px; font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
  padding: 56px 0;
}
.row.flip .row-text { order: 2; }
.row-text p { color: var(--muted); font-size: 18px; margin: 0 0 22px; max-width: 470px; }
.row-media {
  position: relative; display: grid; place-items: center;
  border-radius: 36px; padding: 56px 0;
  background: radial-gradient(420px 320px at 50% 40%, rgba(92, 102, 242, 0.18), transparent 70%), var(--grouped);
}
.row-media .phone { width: 300px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* Small chips that echo the app's tiles ("3 safe to block") */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: rgba(52, 199, 89, 0.14); color: #1f8f3d;
}

/* ── More features grid ── */
section.more { padding: 64px 0 112px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--tile); border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(28, 36, 84, 0.35); }
.tile .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--chrome); color: var(--mark); margin-bottom: 16px;
}
.tile .ico svg { width: 23px; height: 23px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.3px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ── Gmail access + contact (plain, on navy) ── */
section.access { background: var(--grouped); padding: 96px 0; }
.access-card { background: var(--card); border-radius: 32px; padding: 44px; }
.access-card h2 { font-size: 32px; letter-spacing: -0.8px; margin: 8px 0 14px; line-height: 1.15; }
.access-card p { color: var(--muted); margin: 0 0 16px; }
.scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 20px; }
.scope { background: var(--tile); border-radius: 18px; padding: 18px 20px; }
.scope strong { display: block; font-size: 16px; margin-bottom: 4px; }
.scope code { font-size: 13px; color: var(--icon); background: rgba(92, 102, 242, 0.1); padding: 2px 7px; border-radius: 6px; }
.scope p { font-size: 15px; margin: 8px 0 0; }

section.contact {
  color: #fff; text-align: center; padding: 104px 0;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(92, 102, 242, 0.45), transparent 70%),
    var(--chrome);
}
section.contact h2 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -1.2px; margin: 0 0 12px; }
section.contact p { color: rgba(255, 255, 255, 0.72); font-size: 18px; margin: 0 0 28px; }

/* ── Footer ── */
footer { background: var(--chrome-deep); color: rgba(255, 255, 255, 0.6); font-size: 15px; }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 24px; }
footer .wordmark span { font-size: 20px; }
footer .wordmark svg { width: 20px; height: 20px; }
footer nav { margin-left: auto; display: flex; gap: 22px; }
footer a { color: rgba(255, 255, 255, 0.75); }

/* ── Privacy policy page ── */
.doc-hero {
  color: #fff; margin-top: -64px; padding: 128px 0 56px;
  background:
    radial-gradient(700px 360px at 80% 20%, rgba(92, 102, 242, 0.45), transparent 70%),
    var(--chrome);
}
.doc-hero h1 { font-size: clamp(38px, 5vw, 54px); letter-spacing: -1.5px; margin: 0 0 8px; line-height: 1.1; }
.doc-hero .updated { color: rgba(255, 255, 255, 0.65); margin: 0; font-size: 15px; }
.doc { padding: 48px 24px 96px; }
.doc h2 { font-size: 26px; letter-spacing: -0.5px; margin: 48px 0 10px; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: #2b2f42; }
.doc li { margin: 4px 0; }
.doc .promise {
  background: var(--tile); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0;
  border-left: 5px solid var(--accent);
}
.doc .promise strong { color: var(--icon); }
.doc table { border-collapse: separate; border-spacing: 0 8px; width: 100%; font-size: 15px; margin: 6px 0; }
.doc th { text-align: left; color: var(--muted); font-weight: 600; padding: 0 16px; }
.doc td { background: var(--tile); vertical-align: top; padding: 14px 16px; }
.doc td:first-child { border-radius: 14px 0 0 14px; width: 38%; font-weight: 600; }
.doc td:last-child { border-radius: 0 14px 14px 0; }
.doc code { font-size: 13px; color: var(--icon); background: rgba(92, 102, 242, 0.1); padding: 2px 7px; border-radius: 6px; font-weight: 500; }

/* ── Entrance animation ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ── Smaller screens ── */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-phones { height: 480px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 220px; }
  .hero-phones .phone.front { right: auto; left: 30px; top: 10px; }
  .hero-phones .phone.back { right: 20px; top: 60px; }
  .promises .wrap, .grid { grid-template-columns: 1fr; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .row.flip .row-text { order: 0; }
  .row-media .phone { width: 250px; }
  .scopes { grid-template-columns: 1fr; }
  .access-card { padding: 28px; }
  .topbar nav a:not(.pill) { display: none; }
}
@media (min-width: 921px) and (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
