/* Marketing pages (landing, pricing). Uses the tokens in theme.css. */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 2px solid var(--hairline); }
.sitebar { border-bottom: 2px solid var(--hairline); }
.sitebar .nav { padding: 14px 20px; border-bottom: 0; }
.closed-note { background: var(--ok-wash); color: var(--ok-text); font-weight: 800; text-align: center; padding: 10px 16px; }
.nav .spacer { flex: 1; }
.nav a.link { white-space: nowrap; text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); padding: 6px 12px; border: 2px solid transparent; border-radius: 12px; }
.nav a.link:hover { background: var(--sand); color: var(--ink); }
.nav a.link[aria-current="page"] { color: var(--blue-d); }
/* Every public page has the same top bar: Pricing, then Sign in in its own box, then Start free in green. */
.nav .btn { padding: 8px 14px; }
.nav .btn + .btn { margin-left: 2px; }
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -1px; margin: 14px auto 18px; max-width: 15ch; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: var(--ink-faint); max-width: 60ch; margin: 0 auto 26px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn { padding: 12px 22px; font-size: 15px; border-radius: 16px; }
.fine { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-top: 14px; }

/* The headline is a cited sentence: the whole of it wears the highlight (same look as <mark>), and the source at
   its end, in the blue used for citations, sweeps the highlight in again when clicked. */
.hero h1.cited { line-height: 1.34; }
.hero h1 .claim { padding: 0 0.1em; border-radius: 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 100% 0.08em no-repeat, linear-gradient(var(--yellow-wash), var(--yellow-wash)) 0 42% / 100% 1.02em no-repeat; }
.hero h1 .claim.sweep { animation: sweep 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s both; }
@keyframes sweep { from { background-size: 0 0.08em, 0 1.02em; } to { background-size: 100% 0.08em, 100% 1.02em; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .claim.sweep { animation: none; } }
.srccite { font: 800 15px/1 var(--font); letter-spacing: 0; color: var(--blue-d); background: var(--blue-wash); border: 2px solid transparent; border-radius: 10px; padding: 5px 9px; cursor: pointer; white-space: nowrap; vertical-align: 1.5em; }
.srccite:hover { border-color: var(--blue); }
.srccite:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* The example under the headline: the app's three panels, side by side. */
.demo3 { margin: 40px auto 0; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: stretch; }
.dpanel { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; border-bottom-width: 6px; border-radius: var(--r-xl); min-width: 0; }
.dpanel h3 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.dpanel h3 .n { background: var(--blue); color: #fff; border-bottom: 2px solid var(--blue-d); border-radius: 8px; width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; letter-spacing: 0; flex: none; }
.doc { font-family: var(--serif); font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doc .sec { font: 900 14px/1.4 var(--font); color: var(--ink); }
/* A cited sentence: dashed underline until its source is open, then the highlight (same look as <mark>). */
.doc .cite { border-bottom: 2px dashed var(--hairline); cursor: pointer; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc .cite:hover { background: var(--sand); }
.doc .cite.on { color: var(--ink); background: var(--yellow-wash); border-bottom: 3px solid var(--yellow); padding: 1px 0; }
.doc .cite.on .num { border-radius: 3px; text-decoration: underline dotted var(--yellow-deep); text-underline-offset: 3px; }
.doc .cite.on .num.on { outline: 2px solid var(--blue); outline-offset: 1px; text-decoration: none; }
/* The source tag after the sentence: one color per source, the same color wherever that source appears. */
.ref { font: 800 13px/1.25 var(--font); border: 0; border-radius: 6px; padding: 1px 4px; display: inline-block; cursor: pointer; vertical-align: 1px; transition: transform 0.1s, box-shadow 0.1s; }
.ref:hover { filter: brightness(0.95); transform: translateY(-1px); }
.ref.on { outline: 2.5px solid currentColor; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); font-weight: 900; }
.doc .ref.on { transform: scale(1.06); }
.ref:focus-visible, .refrow:focus-visible, .quote:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.c0 { --src: #1899d6; --src-wash: color-mix(in srgb, #1cb0f6 14%, transparent); }
.c1 { --src: #a55eea; --src-wash: color-mix(in srgb, #ce82ff 16%, transparent); }
.c2 { --src: #e58e26; --src-wash: color-mix(in srgb, #ff9600 16%, transparent); }
.c3 { --src: #d6336c; --src-wash: color-mix(in srgb, #f06595 14%, transparent); }
.ref.c0, .ref.c1, .ref.c2, .ref.c3 { color: var(--src); background: var(--src-wash); }
.doc .refs { border-top: 2px solid var(--hairline); padding-top: 8px; margin-top: auto; display: grid; gap: 2px; }
.refrow { display: flex; gap: 8px; align-items: baseline; text-align: left; width: 100%; font: 13.5px/1.5 var(--serif); color: var(--ink-soft); background: none; border: 2px solid transparent; border-radius: 10px; padding: 4px 6px; cursor: pointer; }
.refrow:hover { background: var(--sand); }
.refrow.on { border-color: var(--src); background: var(--src-wash); }
.refrow > b { font-family: var(--font); font-weight: 800; color: var(--src); flex: none; }
.refrow:has(> .c0) { --src: #1899d6; --src-wash: color-mix(in srgb, #1cb0f6 8%, transparent); }
.refrow:has(> .c1) { --src: #a55eea; --src-wash: color-mix(in srgb, #ce82ff 10%, transparent); }
.refrow:has(> .c2) { --src: #e58e26; --src-wash: color-mix(in srgb, #ff9600 10%, transparent); }
.refrow:has(> .c3) { --src: #d6336c; --src-wash: color-mix(in srgb, #f06595 9%, transparent); }
.rev { display: flex; flex-direction: column; gap: 10px; }
.rev[hidden], .pdfpage[hidden] { display: none; }
.srcname { display: flex; gap: 8px; align-items: baseline; font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.srcname .ref { flex: none; cursor: default; }
.srcname .ref:hover { transform: none; filter: none; }
.dpanel .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: var(--ink-faint); }
.dpanel .said { font-size: 15px; font-weight: 600; }
/* Source 4 of the example has nothing on its sentence, so its page carries no highlight and says why. */
.nohl { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--bad-text); background: var(--bad-wash); border-radius: 8px; padding: 7px 10px; }
.nohl[hidden] { display: none; }
.quotes { display: grid; gap: 8px; }
.quote { text-align: left; border: 2px solid var(--hairline); border-radius: var(--r-sm); background: var(--card); padding: 8px 11px; cursor: pointer; display: grid; gap: 5px; width: 100%; }
.quote:hover { border-color: var(--blue); }
.quote[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.quote mark { font-family: var(--serif); font-size: 14.5px; line-height: 1.75; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.quote .why { font-size: 13px; font-weight: 600; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dpanel .eyebrow { margin-top: 4px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns .btn[aria-pressed="true"].yes { --edge: var(--green-d); background: var(--green); border-color: var(--green-d); color: #fff; }
.btns .btn[aria-pressed="true"].no { --edge: var(--red-d); background: var(--red); border-color: var(--red-d); color: #fff; }
.others { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.dot.no { background: var(--red); }
.dot { width: 18px; height: 18px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; background: var(--green); border-bottom: 2px solid rgba(0, 0, 0, 0.18); flex: none; }
.viewbar { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.viewbar .fname { flex: 1; min-width: 0; display: flex; gap: 7px; align-items: center; justify-content: flex-end; color: var(--ink-faint); font-weight: 700; }
.viewbar .fname > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewbar .ref { flex: none; cursor: default; font-size: 12px; }
.viewbar .ref:hover { transform: none; filter: none; }
.pdfpage { background: #fff; outline: 2px solid var(--hairline); border-radius: 4px; padding: 16px 18px 18px; margin: 2px; font-family: var(--serif); font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); display: grid; gap: 9px; align-content: start; flex: 1; }
.pdfpage .run { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--ink-faint); border-bottom: 1px solid var(--hairline); padding-bottom: 6px; }
.pdfpage h4 { font: 700 14.5px/1.3 var(--serif); color: var(--ink); margin: 0; }
.pdfpage .h { background: rgba(255, 200, 0, 0.45); color: var(--ink); border-radius: 2px; padding: 1px 0; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pdfpage .h.dim { background: rgba(255, 200, 0, 0.2); }
.pdfpage table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.4; margin-top: 4px; }
.pdfpage caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 5px; }
.pdfpage th, .pdfpage td { text-align: right; padding: 4px 0 4px 8px; border-top: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.pdfpage th:first-child, .pdfpage td:first-child { text-align: left; padding-left: 0; }
.pdfpage tr:last-child td { border-bottom: 1px solid var(--hairline); }
.sample { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); }

section.block { padding: 64px 0 0; }
section.block h2 { font-size: clamp(27px, 4vw, 38px); letter-spacing: -0.5px; max-width: 20ch; margin: 10px 0 14px; }
section.block > .wrap > p.lead { color: var(--ink-faint); font-weight: 600; max-width: 62ch; font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.tile { padding: 20px; border-bottom-width: 6px; border-radius: var(--r-xl); }
.tile h3 { font-size: 19px; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.tile p { color: var(--ink-faint); font-weight: 600; }
.step { width: 36px; height: 36px; border-radius: 12px; background: var(--blue); color: #fff; border-bottom: 3px solid var(--blue-d); display: grid; place-items: center; font-weight: 900; margin-bottom: 12px; }

/* Common questions: one rounded card per question, with a round chevron button that turns and goes blue when the
   answer is open. site.js slides the answer open and closed; without it they still open, just at once.
   A question is open while it has [open] and is not on its way closed (.closing). */
.faq { max-width: 780px; margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 2px solid var(--hairline); border-bottom-width: 4px; border-radius: var(--r-lg); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details:hover { border-color: #d2d2d2; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 15px 16px 15px 20px; font-weight: 800; font-size: 17px; line-height: 1.35; cursor: pointer; border-radius: calc(var(--r-lg) - 2px); -webkit-tap-highlight-color: transparent; user-select: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 99px; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat; border-bottom: 2px solid var(--hairline); transition: transform 0.32s cubic-bezier(0.3, 1.4, 0.5, 1), background-color 0.2s, border-color 0.2s; }
.faq summary:hover::after { background-color: #eeeeee; }
.faq details[open]:not(.closing) { border-color: var(--blue); }
.faq details[open]:not(.closing) summary::after { transform: rotate(180deg); background-color: var(--blue); border-bottom-color: transparent; border-top: 2px solid var(--blue-d);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq p { color: var(--ink-faint); font-weight: 600; padding: 0 20px 18px; max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.band { background: var(--blue-wash); border: 2px solid var(--blue); border-bottom-width: 6px; border-radius: var(--r-xl); padding: 40px 28px; text-align: center; margin-top: 64px; }
.band h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 auto 18px; max-width: 18ch; }
footer { padding: 36px 0 48px; color: var(--ink-faint); font-size: 14px; font-weight: 600; display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
footer a:not(.logo) { text-decoration: none; }
footer a:not(.logo):hover { color: var(--ink); text-decoration: underline; }
footer .copy { flex-basis: 100%; font-size: 13px; }

@media (max-width: 820px) {
  .grid3, .grid2, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 36px; }
}
@media (max-width: 520px) {
  .nav a.link.hide-sm { display: none; }
}
@media (max-width: 960px) {
  .demo3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .srccite { vertical-align: 0.9em; font-size: 13px; padding: 4px 7px; }
}
@media (max-width: 480px) {
  .nav { gap: 6px; }
  .sitebar .nav { padding: 12px 16px; }
  .nav .logo { font-size: 18px; }
  .nav a.link { padding: 6px; font-size: 12px; }
  .nav .btn { padding: 6px 10px; font-size: 12px; letter-spacing: 0.03em; }
}
@media (max-width: 360px) {
  .nav .logo { font-size: 16px; }
  .nav .btn { padding: 6px 8px; font-size: 11px; }
}

/* Privacy Policy and Terms: one readable column, a contents list, the sections. */
.legal { max-width: 800px; padding-top: 44px; padding-bottom: 8px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin: 10px 0 6px; }
.legal .updated { color: var(--ink-faint); font-weight: 700; font-size: 14px; }
.legal .lead { font-size: 18px; font-weight: 600; color: var(--ink-soft); margin: 22px 0; }
.legal h2 { font-size: 23px; margin: 40px 0 10px; scroll-margin-top: 16px; }
.legal h3 { font-size: 17px; margin: 18px 0 6px; letter-spacing: 0; }
.legal p, .legal li { color: var(--ink-soft); font-weight: 500; line-height: 1.65; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.legal a { color: var(--blue-d); font-weight: 700; }
.legal code { font-size: 0.92em; background: var(--sand); border-radius: 6px; padding: 1px 5px; }
.legal .caps { text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.01em; }
.legal .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; border: 2px solid var(--hairline); border-radius: var(--r-lg); padding: 14px 18px; margin: 8px 0 10px; }
.legal .toc a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 3px 0; }
.legal .toc a:hover { text-decoration: underline; }
.legal .scroll { overflow-x: auto; margin: 10px 0; }
.legal table.providers { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
.legal .providers th, .legal .providers td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 2px solid var(--hairline); color: var(--ink-soft); }
.legal .providers th { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); border-top: 0; }
.legal-lang { background: var(--blue-wash); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 700; color: var(--ink-soft); }
footer a[aria-current="page"] { color: var(--ink); }

/* Text for readers that run no script (crawlers); site.js adds .js to <html> as the page loads. */
.js .nojs-only { display: none; }
