/* Citenook website, always light. One accent (blue), one highlighter (yellow, only for cited text), system SF Pro
   like the app. The page cites itself: claims carry numbered notes, like Citenook's answers. */
:root {
  --bg: #ffffff;
  --panel: #f5f5f7;
  --raised: #ffffff;
  --text: #1d1d1f;
  --muted: #5e5e63;
  --faint: #86868b;
  --line: #e6e6e9;
  --accent: #2b50e8;
  --fill: #2b50e8;
  --tint: #e9edfd;
  --hl: #ffe27a;
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 24px 60px -12px rgba(20, 24, 40, .22);
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand sup { color: var(--accent); font-size: 11px; margin-left: -6px; position: relative; top: -2px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--fill); color: #fff; font-weight: 600; border-radius: 10px; padding: 12px 20px; font-size: 16px; transition: transform .15s ease, filter .15s ease; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.quiet { background: var(--panel); color: var(--text); }

/* Citation badges, as in the app */
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--tint); color: var(--accent); font-size: 11.5px; font-weight: 700; line-height: 1; vertical-align: 3px; margin-left: 3px; font-variant-numeric: tabular-nums; }
a.cite:hover { text-decoration: none; background: var(--accent); color: #fff; }
.nowrap { white-space: nowrap; }
mark { background: var(--hl); color: #1d1d1f; border-radius: 3px; padding: 0 .12em; }

/* Hero */
.hero { padding: 88px 0 0; }
.hero h1 { font: 700 clamp(44px, 7vw, 84px)/1.02 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; letter-spacing: -.045em; margin: 0; max-width: 11em; }
.hero h1 .cite { font-size: .2em; min-width: 1.6em; height: 1.6em; border-radius: 1em; vertical-align: .9em; letter-spacing: 0; padding: 0 .4em; }
.hero .lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 34em; margin: 26px 0 34px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.req { color: var(--faint); font-size: 14px; }

/* The product shot, with margin notes like a document */
.shot { position: relative; margin: 64px 0 0; }
.shot .frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--panel); }
.shot img, .shot video { width: 100%; height: auto; display: block; }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; font-size: 15.5px; color: var(--muted); }
.beats b { color: var(--text); font-weight: 600; }
.beats .cite { background: var(--accent); color: #fff; margin: 0 8px 0 0; vertical-align: 1px; }
.note { position: absolute; display: flex; align-items: flex-start; gap: 10px; max-width: 250px; font-size: 14px; line-height: 1.4; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px -10px rgba(20, 24, 40, .35); }
.note .cite { flex: none; margin: 1px 0 0; vertical-align: 0; background: var(--accent); color: #fff; }
.note.n1 { left: 34%; top: 42%; }
.note.n2 { right: -2%; top: 15%; }
.note.n3 { left: 31%; bottom: 3%; }
@media (min-width: 1000px) {
  .note { opacity: 0; transform: translateY(6px); animation: noteIn .5s ease forwards; }
  .note.n1 { animation-delay: .5s; } .note.n2 { animation-delay: .9s; } .note.n3 { animation-delay: 1.3s; }
}
@keyframes noteIn { to { opacity: 1; transform: none; } }

/* Sections */
section { padding: 120px 0 0; }
.h2 { font: 700 clamp(32px, 4.4vw, 50px)/1.08 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; letter-spacing: -.035em; margin: 0 0 18px; max-width: 16em; }
.sub { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0; }

/* How it works: a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .num { display: inline-flex; width: 30px; height: 30px; border-radius: 15px; align-items: center; justify-content: center; background: var(--tint); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Privacy: three ways to answer */
.privacy { background: var(--panel); border-radius: 28px; padding: 72px 64px; margin-top: 120px; }
.privacy section { padding: 0; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.way { background: var(--raised); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.way .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--tint); border-radius: 7px; padding: 3px 9px; margin-bottom: 16px; }
.way h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.015em; }
.way p { margin: 0; color: var(--muted); font-size: 15.5px; }
.offline { display: flex; gap: 18px; align-items: center; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); }
.offline svg { flex: none; width: 28px; height: 28px; color: var(--accent); }
.offline p { margin: 0; font-size: 16px; }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip .copy { order: 2; }
.row .copy p { color: var(--muted); font-size: 18px; margin: 0 0 18px; max-width: 30em; }
.row ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.row li { display: flex; gap: 12px; font-size: 16px; }
.row li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.pic { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Quick Ask, drawn: a mail being written with the popup over it */
.qa { position: relative; background: var(--panel); border-radius: 18px; padding: 30px 30px 168px; border: 1px solid var(--line); overflow: hidden; }
.mail { background: var(--raised); border-radius: 12px; padding: 18px 20px; font-size: 15px; color: var(--muted); border: 1px solid var(--line); }
.mail b { color: var(--text); font-weight: 600; }
.mail .sel { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); border-radius: 2px; }
.pop { position: absolute; left: 13%; right: 7%; bottom: 22px; background: var(--raised); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 16px; font-size: 14.5px; }
.pop .bar { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.pop .bar img { width: 18px; height: 18px; border-radius: 5px; }
.pop .ask { font-weight: 600; margin-bottom: 6px; }
.pop .ans { color: var(--text); margin: 0; }
.keys { display: inline-flex; gap: 4px; }
.keys kbd { font: 600 13px -apple-system, sans-serif; background: var(--raised); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--text); }

/* File kinds */
.kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.kind { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 10px; background: var(--panel); font-size: 15px; }
.kind i { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font: 700 9px -apple-system, sans-serif; color: #fff; font-style: normal; }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--accent); }
.compare td.us { background: color-mix(in srgb, var(--tint) 55%, transparent); font-weight: 600; }
.compare td:not(:first-child) { color: var(--muted); }
.compare td.us { color: var(--text); }
.scroll-x { overflow-x: auto; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.who div { background: var(--bg); padding: 24px; }
.who h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.who p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 30px; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Notes: where this page's citations point */
.notes { margin-top: 120px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.notes ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.notes li:target { background: var(--hl); color: #1d1d1f; border-radius: 4px; }

/* Final call */
.end { text-align: center; padding: 140px 0 120px; }
.end .h2 { margin: 0 auto 18px; }
.end .sub { margin: 0 auto 34px; }
.end .actions { justify-content: center; }
.end img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 30px; box-shadow: 0 18px 40px -14px rgba(43, 80, 232, .55); }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 22px; }

/* Legal pages */
.doc { max-width: 720px; padding: 56px 0 96px; }
.doc h1 { font-size: 44px; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -.015em; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--faint); margin-bottom: 32px; }

@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .note { position: static; max-width: none; margin-top: 10px; box-shadow: none; }
  .steps, .ways, .who, .beats { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .step { padding: 24px 0; }
  .privacy { padding: 44px 24px; border-radius: 20px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .copy { order: 0; }
  section { padding-top: 88px; }
}
