@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cobalt: #2335d8;
  --cobalt-deep: #1a27a6;
  --ink: #0f1638;
  --paper: #f4f5f9;
  --white: #ffffff;
  --manila: #f3cf5b;
  --manila-edge: #d9b23b;
  --line: #d8dbe7;
  --muted: #545b78;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page: 74rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-stretch: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 5.6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
}

p {
  margin: 0;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cobalt-deep);
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--manila);
  color: var(--ink);
}

.skip:focus {
  top: 1rem;
}

/* Blue zone: header, hero, top half of the demo */

.site-header,
.hero {
  background: var(--cobalt);
  color: var(--white);
}

.site-header :focus-visible,
.hero :focus-visible,
.closing :focus-visible {
  outline-color: var(--manila);
}

.site-header {
  padding-block: 1.25rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--manila);
  text-decoration-thickness: 2.5px;
}

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(9rem, 16vw, 12rem);
}

.hero h1 {
  max-width: 17ch;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  margin-top: 2.25rem;
}

.lede {
  max-width: 34rem;
  font-size: 1.1875rem;
  color: #e3e6ff;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.hero-note {
  font-size: 0.875rem;
  color: #c3c9ff;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  transition: background-color 120ms ease, transform 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-manila {
  background: var(--manila);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--manila-edge);
}

.button-manila:hover {
  background: #f7da7c;
  color: var(--ink);
  text-decoration: none;
}

/* Demo */

.demo-label {
  margin-bottom: 0.85rem;
  color: #c3c9ff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
}

html:not(.js) .formats,
html:not(.js) .export-btn {
  visibility: hidden;
}

.demo-section {
  margin-top: clamp(-9rem, -14vw, -7rem);
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgb(15 22 56 / 0.45), 0 0 0 1px rgb(15 22 56 / 0.08);
  overflow: hidden;
}

.chat {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.chat-foot {
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.chat-channel {
  font-weight: 700;
  font-stretch: 112%;
}

.chat-workspace {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 8.75rem;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--white);
  font: 600 0.875rem/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.export-btn:hover {
  background: var(--cobalt-deep);
}

.export-btn[aria-busy="true"] {
  cursor: progress;
}

.chat-log {
  list-style: none;
  margin: 0;
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.msg {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--c);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.msg-meta time {
  margin-left: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8125rem;
}

.thumb {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 5px;
  background: var(--ink);
  color: var(--manila);
  font-weight: 800;
  font-stretch: 125%;
}

.thread-link {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cobalt);
}

.reaction {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
}

.output {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  padding: 1rem 1.25rem 1.25rem;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.formats button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 0.875rem/1.2 var(--sans);
  cursor: pointer;
}

.formats button:hover {
  border-color: var(--ink);
}

.formats button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.paid-chip {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--manila);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
}

.file {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0.9rem;
  height: 27rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.file-tab {
  position: relative;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font: 0.75rem/1.4 var(--mono);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name {
  color: var(--ink);
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  background: var(--cobalt);
}

.file-body {
  flex: 1;
  overflow: auto;
  transition: opacity 160ms ease;
}

.file-body:focus-visible {
  outline-offset: -3px;
}

.file.is-busy .file-body {
  opacity: 0.25;
}

.as-text {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  font: 0.8125rem/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.as-text b {
  font-weight: 700;
}

.as-text i {
  font-style: normal;
  color: var(--muted);
}

.as-text.is-csv {
  white-space: pre;
  overflow-wrap: normal;
}

.output-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* HTML export preview */

.as-html {
  padding: 1.1rem 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.as-html header {
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.as-html h3 {
  font-size: 1.25rem;
}

.as-html header p {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.as-html .day {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.as-html .msg + .msg {
  margin-top: 0.9rem;
}

.as-html .avatar {
  width: 2rem;
  height: 2rem;
}

.as-html .msg {
  grid-template-columns: 2rem minmax(0, 1fr);
}

.as-html .image {
  display: grid;
  place-items: center;
  width: 11rem;
  aspect-ratio: 16 / 10;
  margin-top: 0.5rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--manila);
  font-size: 2.5rem;
  font-weight: 800;
  font-stretch: 125%;
}

.as-html .reply {
  margin-top: 0.6rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--line);
}

/* PDF export preview */

.as-pdf {
  padding: 1.25rem;
  background: #e6e8f0;
  min-height: 100%;
}

.page {
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.75rem 1.75rem 1.25rem;
  background: var(--white);
  box-shadow: 0 6px 18px -8px rgb(15 22 56 / 0.35);
  font-size: 0.75rem;
  line-height: 1.5;
}

.page h3 {
  font-size: 1rem;
}

.page .page-meta {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.6875rem;
}

.page .entry + .entry {
  margin-top: 0.7rem;
}

.page .image {
  width: 7.5rem;
  aspect-ratio: 16 / 10;
  margin-top: 0.4rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--manila);
  font-size: 1.5rem;
  font-weight: 800;
}

.page .reply {
  margin-top: 0.4rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--line);
}

.page-foot {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.625rem;
  text-align: right;
}

/* Sections */

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-tight {
  padding-top: 0;
}

.section-lede {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.split-head p {
  margin-top: 1rem;
  color: var(--muted);
}

.split-head p a {
  font-weight: 600;
}

/* Request log */

.log-wrap {
  overflow-x: auto;
}

.log {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.log th {
  padding: 0 1rem 0.75rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}

.log td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.log td:nth-child(2) {
  white-space: nowrap;
  font-weight: 600;
}

.log code {
  font: 0.8125rem/1.4 var(--mono);
}

.log .log-local td {
  background: var(--manila);
  border-bottom-color: var(--manila-edge);
}

.log .log-local td:first-child {
  padding-left: 0.75rem;
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.shot {
  margin: 0;
}

.shot-main {
  grid-column: 1 / -1;
}

.shot-frame {
  aspect-ratio: 1280 / 800;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-frame.is-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #e8eaf6;
  box-shadow: inset 0 0 0 1.5px #b9bfe6;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Pricing folders */

.folders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 56rem;
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.folder-tab {
  display: inline-block;
  padding: 0.55rem 1.5rem 0.4rem;
  border-radius: 10px 10px 0 0;
  background: var(--white);
  font-weight: 700;
  font-stretch: 112%;
}

.folder-body {
  flex: 1;
  align-self: stretch;
  padding: 1.75rem 1.75rem 2rem;
  border-radius: 0 12px 12px 12px;
  background: var(--white);
}

.folder-paid .folder-tab,
.folder-paid .folder-body {
  background: var(--manila);
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
}

.ticks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  border-top: 1px solid rgb(15 22 56 / 0.12);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1rem;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}

.fine {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* FAQ */

.faq {
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.3rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 108%;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--manila);
}

.faq summary:hover::after {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.answer {
  max-width: 38rem;
  padding-bottom: 1.5rem;
}

.answer p + p {
  margin-top: 0.75rem;
}

/* Closing + footer */

.closing {
  background: var(--cobalt);
  color: var(--white);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.closing h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.site-footer {
  background: var(--cobalt-deep);
  color: #c3c9ff;
  padding-block: 1.5rem;
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--manila);
}

/* Privacy policy */

.doc-hero {
  background: var(--cobalt);
  color: var(--white);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}

.doc-hero .updated {
  margin-top: 0.85rem;
  color: #c3c9ff;
}

.doc {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 5rem;
}

.doc .summary {
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  background: var(--manila);
}

.doc .summary h2 {
  margin: 0;
  font-size: 1.25rem;
}

.doc .summary ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.doc h2 {
  margin: 3rem 0 0.85rem;
  font-size: 1.625rem;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 0.875rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.45rem;
}

.doc code {
  font: 0.85em var(--mono);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

/* Responsive */

@media (max-width: 62rem) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .site-nav {
    gap: 1.1rem;
  }

  .site-nav .nav-optional {
    display: none;
  }

  .brand {
    font-size: 0.9375rem;
  }

  .folders,
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .file {
    height: 22rem;
  }

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

  .log tr {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .log td {
    padding: 0;
    border: 0;
  }

  .log .log-local {
    padding-inline: 0.75rem;
    background: var(--manila);
  }

  .log .log-local td:first-child {
    padding-left: 0;
  }

  .log td:nth-child(2)::before {
    content: "To " / "";
    font-weight: 400;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
