:root {
  /* Patrick Blue carries the accents; the authority comes from the white space. */
  --blue: #1e4adf;
  --blue-deep: #1839af;
  --paper: #ffffff;
  --soft: #f3f6ff;
  --card: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --rule: #e3e8f2;
  --claimed: #1e4adf;
  --explore: #0f766e;
  --warn: #b45309;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 64rem;
  --text: 42rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem 6rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); line-height: 1.06; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.15rem); line-height: 1.15; margin: 0 0 0.75rem; }
h3 { font-size: 1.16rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
blockquote { margin: 0 0 0.75rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* One asset at every size; the mark keeps its own proportions. */
.mark { height: 1.9rem; width: auto; flex: none; }
.mark.tiny { height: 1rem; vertical-align: -0.12em; }
.mark.large { height: 4rem; }
.hero-mark { height: 6.5rem; margin-bottom: 1.75rem; }

/* masthead */
.masthead {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  max-width: var(--page); margin: 0 auto; padding: 1.5rem 1.5rem 2.5rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.kicker { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* hero */
.hero { max-width: 44rem; margin: 0 auto; padding: 2rem 0 4rem; text-align: center; }
.hero h1 { margin-bottom: 1.5rem; }
.standfirst { font-size: 1.18rem; color: var(--muted); margin: 0 auto 2.5rem; max-width: 36rem; }
.hero .ask label { text-align: left; }
.hero .cta-row, .hero .examples { justify-content: center; }
.hero .assurance { margin-left: auto; margin-right: auto; text-align: left; }
.hero .fineprint { margin-left: auto; margin-right: auto; text-align: center; max-width: 34rem; }

/* One orchestrated entrance, then the page stays still. */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero > *, .hero .ask > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.hero > *:nth-child(1) { animation-delay: 0.02s; }
.hero > *:nth-child(2) { animation-delay: 0.1s; }
.hero > *:nth-child(3) { animation-delay: 0.18s; }
.hero > *:nth-child(4) { animation-delay: 0.26s; }
.hero .ask > *:nth-child(n+3) { animation-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) { .hero > *, .hero .ask > * { animation: none; } }
.lead { color: var(--muted); max-width: var(--text); }
.label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 1.25rem 0 0.5rem;
}
.meta { font-size: 0.86rem; color: var(--muted); margin: 0 0 0.4rem; }
.fineprint { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; max-width: var(--text); }
.assurance {
  font-size: 0.9rem; color: var(--muted); max-width: var(--text);
  border-left: 3px solid var(--blue); padding: 0.1rem 0 0.1rem 0.85rem; margin-top: 1.5rem;
}
.assurance strong { color: var(--ink); }

.ask label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

textarea, input[type="text"], input[type="password"], select {
  min-width: 0; max-width: 100%;
  width: 100%; padding: 0.75rem 0.85rem;
  font: inherit; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule); border-radius: 8px;
}
textarea { resize: vertical; min-height: 6.5rem; font-size: 1.02rem; }
select { width: auto; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

.examples { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.75rem 0 1.5rem; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.86rem; color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.button {
  display: inline-block; padding: 0.72rem 1.4rem;
  transition: background-color 0.18s ease, transform 0.18s ease; cursor: pointer;
  font: inherit; font-weight: 500; text-decoration: none;
  color: #fff; background: var(--blue);
  border: 1px solid var(--blue); border-radius: 8px;
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.button:disabled { opacity: 0.4; cursor: not-allowed; }
.button.ghost { color: var(--blue); background: none; }
.button.ghost:hover { background: var(--soft); border-color: var(--blue); }
.button.small { padding: 0.45rem 0.85rem; font-size: 0.88rem; }

/* the pipeline illustration, below the fold */
.flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) ;
  gap: 0.75rem; align-items: stretch;
}
.flow .flow-arrow { display: none; }
.example-flag {
  display: inline-block; margin: 0 0 1rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); background: #fff;
  border: 1px solid var(--blue); border-radius: 999px; padding: 0.2rem 0.6rem;
}
.flow-step { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 0.9rem 1rem; }
.flow-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.5rem;
}
.flow-quote { font-family: var(--serif); font-size: 1.02rem; margin: 0; }
.flow-sub { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.6rem; }
.flow-arrow { text-align: center; color: var(--blue); font-size: 1.1rem; margin: 0.5rem 0; }
.flow .flow-step { display: flex; flex-direction: column; }
.flow-final { border-color: var(--blue); border-width: 2px; }
.flow-final .flow-label { color: var(--blue); }
.flow-final .flow-sub { margin: 0; }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.pills li {
  font-size: 0.8rem; color: var(--blue);
  background: var(--soft); border: 1px solid var(--rule);
  border-radius: 999px; padding: 0.22rem 0.65rem;
}
.pills.stack { flex-direction: column; align-items: flex-start; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { font-size: 0.9rem; padding-left: 1.3rem; position: relative; margin-bottom: 0.3rem; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }

fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 0; margin: 0 0 1.5rem; }
legend { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-right: 0.75rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.row label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--muted); }
.row input[type="text"] { flex: 1 1 14rem; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.75rem; font-size: 0.92rem; }
.consent input { margin-top: 0.3rem; }

.restate {
  font-family: var(--serif); font-size: 1.05rem;
  border-left: 3px solid var(--blue); padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted); margin: 0 0 2rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.chip {
  max-width: 100%; min-width: 0; overflow-wrap: anywhere;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem; font-size: 0.88rem;
  background: var(--soft); border: 1px solid var(--rule); border-radius: 999px;
}
.chip-remove {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 0 0.15rem;
}
.chip-remove:hover { color: var(--blue); }
.query-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.query-row input { min-width: 0; }
.chip-remove { flex-shrink: 0; }
.patent, .comparison, .alternative, .restate, .report-head { overflow-wrap: anywhere; }

/* running */
.running { padding: 4rem 0; text-align: center; }
.pulse {
  width: 42px; height: 42px; margin: 0 auto 1.5rem; border-radius: 50%;
  border: 2px solid var(--rule); border-top-color: var(--blue);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation-duration: 4s; } }
.progress-stage { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.35rem; }

/* report */
#step-report, #step-plan, #step-running { max-width: var(--page); }
.report-head { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.report-head h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.badges .meta { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 0.6rem; }

/* preview: the compiled briefing, not an HTML approximation of it */
.preview-main { max-width: 60rem; }
.viewer { margin-top: 1.25rem; }
.pdf-frame {
  width: 100%; height: 85vh; min-height: 30rem;
  background: var(--card);
  border: 1px solid var(--rule); border-radius: 8px;
}
.block { margin-bottom: 3rem; }
.summary { font-family: var(--serif); font-size: 1.14rem; }
.notice { color: var(--muted); }
.warn { color: var(--warn); font-size: 0.88rem; }

.tag {
  display: inline-block; padding: 0.18rem 0.55rem; border-radius: 4px;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--muted);
}
.tag-granted_patent, .tag-related, .tag-completed, .tag-live { color: var(--blue); }
.tag-proposed, .tag-explore { color: var(--explore); }
.tag-uncertain, .tag-partial, .tag-no_matches { color: var(--warn); }

.patent {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.25rem; margin-bottom: 1rem;
}
.patent-head { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; }
.pub-number {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--blue);
}
.pub-number:hover { color: var(--blue); }
.patent-title { font-size: 1.05rem; margin-bottom: 0.5rem; }

.dates { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 0.6rem; font-size: 0.84rem; }
.dates dt { color: var(--muted); display: inline; }
.dates dt::after { content: " "; }
.dates dd { display: inline; margin: 0 0.5rem 0 0; font-variant-numeric: tabular-nums; }

.evidence { margin-top: 0.9rem; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.evidence summary { cursor: pointer; font-size: 0.86rem; color: var(--muted); }
.passage { margin-top: 0.9rem; }
.passage-label {
  display: inline-block; margin-bottom: 0.3rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.passage p { font-size: 0.92rem; margin: 0; color: var(--muted); }

.comparison { margin-bottom: 2rem; }
.comparison-head { font-family: var(--mono); font-size: 1rem; color: var(--blue); margin-bottom: 0.75rem; }
.comparison-row { border-left: 2px solid var(--rule); padding-left: 1rem; margin-bottom: 1.25rem; }
.comparison-feature { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-weight: 600; }
.comparison-row blockquote, .alternative blockquote {
  font-family: var(--serif); font-size: 0.95rem; color: var(--muted);
  border-left: 2px solid var(--blue); padding-left: 0.85rem;
}
.comparison-row blockquote::before, .alternative blockquote::before { content: "\201c"; }
.comparison-row blockquote::after, .alternative blockquote::after { content: "\201d"; }

.alternative {
  background: var(--card); border: 1px solid var(--rule);
  border-left: 3px solid var(--explore); border-radius: 10px;
  padding: 1.25rem; margin-bottom: 1rem;
}
.alternative .label:first-of-type { margin-top: 1rem; }

.bullets { margin: 0 0 1rem; padding-left: 1.2rem; }
.bullets li { margin-bottom: 0.45rem; }
.numbered { list-style: decimal; }

.disclaimer {
  font-size: 0.84rem; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 2rem;
}

.error {
  background: var(--card); border: 1px solid var(--warn);
  border-left: 3px solid var(--warn); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.error p { margin: 0; }
.error .meta { margin-top: 0.4rem; }

/* ===== marketing ===== */

/* Once the founder is past the prompt, the pitch gets out of the way. */
#step-idea[hidden] ~ .marketing { display: none; }

.marketing { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
.marketing.band {
  background: var(--soft); border: 1px solid var(--rule); border-radius: 18px;
  padding: 3rem; margin: 4.5rem 0 0;
}
.marketing.band + .marketing { border-top: 0; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head .lead { margin-bottom: 0; }
.closing-line {
  font-family: var(--serif); font-size: 1.1rem;
  max-width: 44rem; margin: 2rem 0 0;
}

.translate { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.translate-col {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem;
}
.translate-col .label { margin-top: 0; }
.translate-col .bullets { margin-bottom: 0; }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1.5rem;
}
.card {
  border: 1px solid var(--rule); border-top: 3px solid var(--blue);
  border-radius: 12px; padding: 1.5rem 1.35rem;
}
.step-number {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--blue); margin: 0 0 0.75rem;
}
.card p:last-child { color: var(--muted); margin: 0; font-size: 0.94rem; }

.dossier { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 1.75rem; }
.dossier dl { margin: 0; }
.dossier dl > div {
  display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 0.5rem 1.5rem;
  padding: 0.9rem 0; border-top: 1px solid var(--rule);
}
.dossier dl > div:first-of-type { border-top: 0; padding-top: 0; }
.dossier dt { font-weight: 600; }
.dossier dd { margin: 0; color: var(--muted); }

.layers { list-style: none; margin: 0; padding: 0; }
.layers li {
  display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr auto;
  gap: 0.5rem 1.5rem; align-items: center;
  padding: 1rem 0; border-top: 1px solid var(--rule);
}
.layers li:first-child { border-top: 0; }
.layer-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.layer-q { color: var(--muted); }

.positioning { width: 100%; border-collapse: collapse; text-align: left; }
.positioning th, .positioning td { padding: 0.95rem 1rem; border-top: 1px solid var(--rule); }
.positioning thead th {
  border-top: 0; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.positioning tbody th { font-weight: 600; white-space: nowrap; }
.positioning .is-patrick {
  background: #fff; color: var(--blue);
  outline: 2px solid var(--blue); outline-offset: -2px;
}
.positioning .is-patrick th, .positioning .is-patrick td { border-top-color: var(--blue); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.trust h3 { color: var(--blue); }
.trust p { color: var(--muted); margin: 0; }

.final-cta { text-align: center; }
.final-cta h2 { max-width: 32rem; margin: 1.25rem auto 1.75rem; }
.final-cta .meta { margin-top: 1rem; }

footer {
  border-top: 1px solid var(--rule);
  max-width: var(--page); margin: 0 auto; padding: 1.75rem 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
}
footer p { font-size: 0.82rem; color: var(--muted); margin: 0; max-width: 34rem; }

@media (max-width: 62rem) {
  .flow { grid-template-columns: 1fr; }
  .flow .flow-arrow { display: block; }
  .marketing.band { padding: 2rem 1.5rem; border-radius: 14px; }
  .dossier dl > div, .layers li { grid-template-columns: 1fr; }
  .layers li { gap: 0.25rem; }
}

@media (max-width: 30rem) {
  main { padding-inline: 1rem; }
  .marketing.band { padding-inline: 1rem; }
  .translate, .cards, .trust { grid-template-columns: minmax(0, 1fr); }
  .row label { flex-wrap: wrap; min-width: 0; }
  .positioning th, .positioning td { padding: 0.6rem 0.4rem; overflow-wrap: anywhere; }
  .positioning tbody th { white-space: normal; }
  .button { max-width: 100%; }
}
