/* ChatSheet website. No external fonts, scripts or trackers. */

:root {
  color-scheme: light dark;

  --brand-1: #0f766e;
  --brand-2: #2563eb;
  --grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);

  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #dde3ea;
  --link: #0f766e;
  --link-hover: #1d4ed8;
  --tint: #e6f4f2;
  --tint-text: #0b5f58;
  --warn-bg: #fff7e6;
  --warn-border: #f2d39b;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --placeholder: linear-gradient(135deg, #e6f4f2 0%, #e7eefc 100%);

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --gutter: 16px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f1829;
    --surface: #131d31;
    --text: #e6eaf0;
    --muted: #a3aec0;
    --border: #26324a;
    --link: #5eead4;
    --link-hover: #93c5fd;
    --tint: #10302f;
    --tint-text: #99f6e4;
    --warn-bg: #2a2212;
    --warn-border: #5c4a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --placeholder: linear-gradient(135deg, #12302f 0%, #15233f 100%);
  }
}

/* ---------- base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .grad-text {
    background: linear-gradient(135deg, #5eead4 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.site-nav a.nav-cta {
  color: #fff;
  background: var(--grad);
  font-weight: 600;
  margin-left: 4px;
}

.site-nav a.nav-cta:hover {
  color: #fff;
  filter: brightness(1.08);
}

@media (max-width: 480px) {
  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
    margin-inline: -10px;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(37, 99, 235, 0.65);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.btn .ico {
  width: 20px;
  height: 20px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse 50% 45% at 25% 30%, rgba(15, 118, 110, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 20%, rgba(37, 99, 235, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding-block: 80px 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.hero-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.hero h1 {
  margin-bottom: 0.4em;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 36em;
}

.lead strong {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.trust .ico {
  width: 18px;
  height: 18px;
  color: var(--brand-1);
}

@media (prefers-color-scheme: dark) {
  .trust .ico {
    color: #5eead4;
  }
}

/* ---------- screenshots ---------- */

/* Each picture is the panel at the size it's shown (width and height in the HTML, 2× pixels), so its text reads at full size. */
.shot {
  margin: 0;
  justify-self: center;
}

.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--placeholder);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.shot-wide {
  width: fit-content;
  margin: 48px auto 0;
}

/* On a phone the wide home screen would shrink past reading; the cards above already list every export. */
@media (max-width: 599px) {
  .shot-wide {
    display: none;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: 64px;
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

@media (min-width: 960px) {
  .section {
    padding-block: 88px;
  }
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tint-text);
  background: var(--tint);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* cards */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.cards > li {
  margin: 0;
}

.card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  flex: none;
}

.badge .ico {
  width: 21px;
  height: 21px;
}

/* feature rows */

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature + .feature {
  margin-top: 72px;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
  }

  .feature.flip > :first-child {
    order: 2;
  }
}

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

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.3em + 5px);
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* small feature list */

.mini {
  display: grid;
  gap: 18px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini li {
  display: flex;
  gap: 14px;
  margin: 0;
}

.mini .ico {
  color: var(--brand-1);
  margin-top: 3px;
}

@media (prefers-color-scheme: dark) {
  .mini .ico {
    color: #5eead4;
  }
}

.mini strong {
  display: block;
}

.mini span {
  color: var(--muted);
  font-size: 0.97rem;
}

/* steps */

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 750;
  margin-bottom: 14px;
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* notes */

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-1);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 1.2em;
}

.note.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-left-color: #d97706;
}

.note > :last-child {
  margin-bottom: 0;
}

/* FAQ */

.faq {
  max-width: 46em;
}

.faq.center {
  margin-inline: auto;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 650;
  position: relative;
}

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

summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

details > div {
  padding: 0 18px 4px;
  color: var(--muted);
}

details > div strong {
  color: var(--text);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  margin-top: 12px;
}

.more-link .ico {
  width: 18px;
  height: 18px;
}

/* ---------- document pages (privacy, help) ---------- */

.doc-hero {
  padding-block: 48px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.doc-hero h1 {
  font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
}

.doc-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 44em;
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 40px 72px;
}

@media (min-width: 960px) {
  .doc {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
  }

  .toc {
    position: sticky;
    top: 84px;
    align-self: start;
  }
}

.toc {
  font-size: 0.95rem;
}

.toc h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--link);
}

.prose {
  max-width: 46em;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
  scroll-margin-top: 84px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6em;
  scroll-margin-top: 84px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--bg-soft);
  font-weight: 650;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.4em;
}

.table-scroll table {
  margin: 0;
  min-width: 520px;
}

.prose .types {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.prose .types li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.prose .types strong {
  display: block;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 40px;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.88rem;
  max-width: 60em;
  margin: 0 0 8px;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 72px;
}

.not-found .big {
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.not-found .cta-row {
  justify-content: center;
}

.not-found .lead {
  margin-inline: auto;
}
