/* qus.me landing site. One stylesheet, no inline styles (the CSP has no 'unsafe-inline'). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --band: #f2f1ec;
  --mock: #efeee9;
  --text: #1c1c1a;
  --text-2: #3d3d39;
  --text-3: #55554f;
  --line: #e2e1db;
  --line-strong: #c9c8c1;
  --accent: #1f5f4a;
  --accent-hover: #123a2d;
  --accent-tint: #eaf2ee;
  --on-accent: #ffffff;
  --bar: #dedcd6;
  --bar-accent: #b9c9c1;
  --code-bg: #f2f1ec;
  --focus: #1f5f4a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131513;
    --surface: #1b1e1b;
    --band: #181b18;
    --mock: #1f231f;
    --text: #ecebe6;
    --text-2: #cfcec7;
    --text-3: #aeada5;
    --line: #2f332f;
    --line-strong: #4a4f4a;
    --accent: #8fd1b4;
    --accent-hover: #b5e3cd;
    --accent-tint: #1f3a2f;
    --on-accent: #0d1a14;
    --bar: #3a3f3a;
    --bar-accent: #3f6655;
    --code-bg: #1f231f;
    --focus: #8fd1b4;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
pre {
  margin: 0;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.narrow {
  max-width: 760px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand:hover {
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 15px;
  color: var(--text-3);
}

.site-footer .brand {
  font-size: 22px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}

.nav .button-primary {
  color: var(--on-accent);
  padding: 10px 18px;
  min-height: 44px;
}

.nav .button-primary:hover {
  color: var(--on-accent);
  text-decoration: none;
}

.note {
  font-size: 15px;
  color: var(--text-3);
}

/* Sections */

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.band {
  background: var(--band);
}

.band-surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.display,
.title {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  max-width: 20ch;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 40em;
  text-wrap: pretty;
}

.muted {
  color: var(--text-2);
}

.label-heading {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.hero {
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.grid {
  display: grid;
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 32px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--text);
  padding-top: 20px;
}

.step-number {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}

/* The product illustration */

.mock {
  background: var(--mock);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
}

.mock-composer-wrap {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 620px;
}

.mock-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock-composer {
  padding: 20px 20px 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-caret {
  display: block;
  width: 2px;
  height: 22px;
  background: var(--text);
}

.mock-post {
  align-self: flex-end;
  background: var(--line-strong);
  color: var(--text);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
}

.mock-picker {
  position: relative;
  margin: -64px 0 0 28px;
  width: min(420px, 88%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-picker-head {
  font-size: 13px;
  color: var(--text-3);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
}

.mock-row {
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-row.is-active {
  background: var(--accent-tint);
}

.mock-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.mock-row.is-active .mock-row-label {
  color: var(--accent);
}

.bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--bar);
}

.is-active .bar {
  background: var(--bar-accent);
}

.w40 {
  width: 40%;
}
.w64 {
  width: 64%;
}
.w70 {
  width: 70%;
}
.w80 {
  width: 80%;
}
.w86 {
  width: 86%;
}
.w92 {
  width: 92%;
}

.mock-popup {
  flex: 0 1 300px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}

.mock-popup-head,
.mock-popup-foot {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}

.mock-popup-head {
  border-bottom: 1px solid var(--line);
}

.mock-popup-head .brand-small {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
}

.mock-popup-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-popup-foot {
  border-top: 1px solid var(--line);
}

/* Connect Claude */

.copy-field {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-field input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.copy-button {
  min-height: 48px;
  min-width: 96px;
  padding: 0 18px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--text);
  border-radius: 6px;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--band);
}

.field-label {
  font-weight: 600;
}

.snippet {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.snippet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-3);
}

.snippet-head .copy-button {
  min-height: 44px;
  min-width: 88px;
  font-size: 15px;
  border-color: var(--line-strong);
}

.snippet pre {
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Who can see what */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* At phone width each row becomes a card, every cell labeled with its column (data-label). */
@media (max-width: 720px) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  tbody th,
  tbody td {
    border-bottom: 0;
    padding: 6px 16px;
  }

  tbody th {
    font-size: 18px;
  }

  td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-3);
  }
}

.yes {
  color: var(--accent);
  font-weight: 600;
}

/* FAQ and prose */

.faq {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.7;
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.08;
}

.prose h2 {
  margin-top: 32px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
}

.prose h3 {
  margin-top: 8px;
  font-size: 17px;
}

.prose ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose .summary {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.5;
  color: var(--accent);
}

.prose .updated {
  color: var(--text-3);
  font-size: 15px;
}

.not-found {
  padding-top: 96px;
  padding-bottom: 120px;
}

.mock-wrap {
  padding-bottom: 96px;
}
