/* timesift.app — one stylesheet for every page. No web fonts, no trackers:
   the system's own rounded and serif faces carry the TIME Sift wordmark,
   exactly as the Mac app draws it. */
:root {
  color-scheme: dark;
  --ink: #05060A;
  --panel: #0D111C;
  --panel-2: #111726;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ECEEF5;
  --muted: #A3ABBF;
  --dim: #7C849A;
  --indigo: #6366F1;
  --indigo-2: #5B6CF9;
  --peri: #A5B4FC;
  --peri-2: #C7D2FE;
  --gold: #F6C75A;
  --violet: #8B5CF6;
  --cyan: #38BDF8;
  --green: #34D399;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; min-height: 100vh;
  background-color: var(--ink); color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The app's signature aurora: teal low on the left, violet-indigo high on
   the right, a breath of cyan between — fixed behind every page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 55vh at 6% 100%, rgba(20, 184, 166, .16), transparent 70%),
    radial-gradient(55vw 60vh at 96% 0%, rgba(139, 92, 246, .20), transparent 70%),
    radial-gradient(40vw 40vh at 60% 45%, rgba(56, 189, 248, .06), transparent 70%),
    var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--peri); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--peri-2); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ---------- Wordmark ---------- */
.wm { display: inline-flex; align-items: baseline; gap: .22em; line-height: 1; white-space: nowrap; font-variant-ligatures: none; }
.wm-time { font: 800 1em/1 var(--rounded); letter-spacing: -.02em; color: #fff; }
/* 7.0: no ligatures and an even gap, so the italic f never touches the t;
   the app's cool cyan-periwinkle, never orange. */
.wm-sift {
  font: italic 600 1.06em/1.2 var(--serif); letter-spacing: .06em;
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
  background: linear-gradient(100deg, #E0F2FE 0%, #67E8F9 45%, var(--peri) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .04em .1em .16em .02em; margin-bottom: -.2em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 6, 10, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 11px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px 12px; }
  .nav { width: 100%; margin-left: 0; justify-content: space-between; gap: 0; }
  .nav a { padding: 7px 6px; font-size: 14px; }
  .nav .btn { margin-left: 2px; }
}
@media (max-width: 359px) { .nav a.opt { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 650 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 12px; border: 1px solid transparent; padding: 10px 16px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary {
  color: #FFFFFF !important;
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 8px 24px rgba(99, 102, 241, .32);
}
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, #6E7CFA, #6E71F3); box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 12px 30px rgba(99, 102, 241, .42); }
.btn-ghost { color: var(--text) !important; background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { font-size: 17px; padding: 15px 24px; border-radius: 14px; }
.btn-sm { font-size: 14px; padding: 8px 13px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--peri); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
.hero h1 { font: 800 clamp(30px, 4.1vw, 48px)/1.08 var(--rounded); letter-spacing: -.025em; margin: 0 0 18px; text-wrap: balance; }
.hero h1 em { font: italic 600 1.02em/1 var(--serif); letter-spacing: 0; font-variant-ligatures: none; color: #7DE3F4; }
.lede { font-size: clamp(16.5px, 1.5vw, 18px); line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: flex-start; }
.cta { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.cta-sub { font-size: 13.5px; color: var(--muted); margin: 0; }
.cta-sub s, .price-was s { color: var(--dim); text-decoration-thickness: 1.5px; }
.hw-badge {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 8px; max-width: 100%;
  font: 600 14px/1.45 var(--sans); color: #E6E9F2;
  background: rgba(56, 189, 248, .07); border: 1px solid rgba(56, 189, 248, .32);
  border-radius: 12px; padding: 10px 14px;
}
.hw-badge svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--cyan); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(103, 232, 249, .22), rgba(99, 102, 241, .22) 55%, transparent 75%);
}
.hero-mark { position: relative; width: min(300px, 100%); height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font: 800 clamp(28px, 3.6vw, 40px)/1.12 var(--rounded); letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.band { border-top: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; background: linear-gradient(180deg, rgba(17, 23, 38, .92), rgba(13, 17, 28, .92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.feature .kicker { display: inline-block; font: 650 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; padding: 6px 9px; border-radius: 8px; margin-bottom: 16px; }
.k-rose { color: #FDA4AF; background: rgba(244, 63, 94, .12); }
.k-violet { color: #C4B5FD; background: rgba(139, 92, 246, .16); }
.k-cyan { color: #7DD3FC; background: rgba(56, 189, 248, .12); }
.k-green { color: #6EE7B7; background: rgba(52, 211, 153, .12); }
.feature h3 { font: 750 22px/1.25 var(--rounded); letter-spacing: -.01em; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: #D5DAE6; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
code, .mono { font-family: var(--mono); font-size: .9em; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #E5E7EB; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { padding: 22px; }
.pillar b { display: block; font: 750 17px/1.3 var(--rounded); margin-bottom: 6px; }
.pillar span { color: var(--muted); font-size: 15px; }
.pillar .num { font: 800 13px/1 var(--mono); color: var(--peri); display: block; margin-bottom: 14px; letter-spacing: .04em; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }
.price-card { border-color: rgba(129, 140, 248, .4); box-shadow: 0 0 0 1px rgba(99, 102, 241, .1), 0 30px 80px rgba(99, 102, 241, .1); }
.price-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.price { font: 800 56px/1 var(--rounded); letter-spacing: -.03em; }
.price small { font: 600 16px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-was { font: 700 24px/1 var(--rounded); }
.price-label { flex-basis: 100%; font: 650 15px/1.3 var(--sans); color: var(--peri); }
.price-card .ticks { margin: 22px 0 26px; }
.price-card .btn { width: 100%; }
.price-card .btn + .btn { margin-top: 10px; }
.fine { color: var(--dim); font-size: 13.5px; margin: 12px 0 0; text-align: center; }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; padding-top: 0; }
.specs dt { color: var(--dim); font-size: 14px; }
.specs dd { margin: 0; font-size: 15px; color: #DDE2EC; }
.card h3.small { font: 750 18px/1.3 var(--rounded); margin: 0 0 16px; }

/* ---------- Questions & Answers (W-3): native <details>, no script ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.qa { background: linear-gradient(180deg, rgba(17, 23, 38, .92), rgba(13, 17, 28, .92)); border: 1px solid var(--line); border-radius: 14px; }
.qa[open] { border-color: rgba(129, 140, 248, .32); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; font: 700 17px/1.4 var(--rounded); color: var(--text); border-radius: 14px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--peri); border-bottom: 2px solid var(--peri);
  transform: translateY(-3px) rotate(45deg); transition: transform .18s ease;
}
.qa[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa summary:hover { background: rgba(255, 255, 255, .03); }
.qa summary:focus-visible { outline: 2px solid var(--peri); outline-offset: 2px; }
.qa-body { padding: 0 22px 20px; }
.qa-body p { margin: 0; color: #C9CFDC; font-size: 15.5px; line-height: 1.65; max-width: 72ch; }
.qa-body p + p { margin-top: 10px; }
@media (max-width: 520px) { .qa summary { padding: 16px 18px; font-size: 16px; } .qa-body { padding: 0 18px 18px; } }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .support { grid-template-columns: minmax(0, 1fr); } }
.support .card b { display: block; font: 700 13px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.support .card p { margin: 0; color: #DDE2EC; }
.support .big { font: 700 19px/1.35 var(--rounded); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 44px; color: var(--dim); font-size: 14px; background: rgba(5, 6, 10, .6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal documents ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--rounded); letter-spacing: -.02em; margin: 0 0 10px; }
.doc .meta { color: var(--dim); font-size: 14.5px; margin: 0 0 28px; }
.doc .summary { background: rgba(99, 102, 241, .07); border: 1px solid rgba(129, 140, 248, .3); border-radius: 14px; padding: 18px 20px; margin: 0 0 36px; color: #E7E9F1; }
.doc .summary p { margin: 0; }
.doc .summary p + p { margin-top: 10px; }
.doc h2 { font: 750 clamp(20px, 2.4vw, 24px)/1.3 var(--rounded); letter-spacing: -.01em; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font: 700 17.5px/1.35 var(--rounded); margin: 26px 0 8px; color: #F3F4F8; }
.doc p, .doc li { color: #CDD3E0; font-size: 16.5px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: #fff; }
.doc .toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .toc li { margin: 0; }
.doc .toc a { display: inline-block; font-size: 14px; text-decoration: none; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.doc .toc a:hover { color: var(--text); border-color: rgba(129, 140, 248, .6); }
.doc .note { color: var(--dim); font-size: 14.5px; }

/* ---------- Pre-launch dialog ---------- */
.modal {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(180deg, #121828, #0B0F19); color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(99, 102, 241, .16);
}
.modal::backdrop { background: rgba(3, 4, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-body { padding: 30px 28px 26px; text-align: center; }
.modal-body img { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 16px; }
.modal-body h2 { font: 800 22px/1.25 var(--rounded); letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
.modal-body p { color: var(--muted); margin: 0 0 22px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 7.0: the screenshot tour ---------- */
.tour { padding-top: clamp(40px, 6vw, 72px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tab { font: 650 14.5px/1 var(--sans); color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.tab[aria-selected="true"] { color: #FFFFFF; background: linear-gradient(180deg, var(--indigo-2), var(--indigo)); border-color: transparent; box-shadow: 0 6px 20px rgba(99, 102, 241, .3); }
.shot { margin: 0; }
.shot[hidden] { display: none; }
.shot img { width: 100%; height: auto; aspect-ratio: 1280 / 820; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); background: #07080D; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; text-align: center; }
.license-key { display: block; margin: 0 0 18px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); font: 13px/1.45 var(--mono); color: #E5E7EB; word-break: break-all; text-align: left; user-select: all; }
/* Phase 7.2: the key modal's details, and Recover License Key. */
.key-meta { font-size: 13.5px; color: var(--dim); margin: -6px 0 18px; word-break: break-word; }
.modal-close { margin-top: 10px; }
.modal-key .modal-actions .btn { flex: 1 1 auto; }
.recover-row { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--peri); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.link-btn:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 4px; }
.recover-form { display: grid; gap: 6px; text-align: left; }
.recover-form label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.recover-form input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--text); font: 15px/1.3 var(--sans); }
.recover-form input:focus-visible { outline: 2px solid var(--peri); outline-offset: 1px; }
.recover-form small { color: var(--dim); font-size: 12.5px; }
.recover-form .recover-status { min-height: 1.4em; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.recover-form .modal-actions { margin-top: 10px; }
