/* TLDR Summarizer AI site. Layout, type and spacing follow the Moneta Books design,
   in TLDR's blue. No scripts, no remote assets. */

@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink-950: #0b1220;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --border: #e6e9ef;
  --panel: #fafbfc;
  --brand-400: #66b2ff;
  --brand-500: #3a86ff;
  --brand-600: #1f6fe5;
  --brand-800: #1450b0;
  --accent: #93c5fd;
}

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: var(--brand-800);
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  transform: translateY(-200%);
  background: #ffffff;
  color: var(--slate-900);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--slate-900);
  border-radius: 0.5rem;
}

.skip:focus {
  transform: none;
}

.logo {
  display: block;
  flex: none;
}

/* Home: split screen. Dark story panel on the left, action panel on the right. */

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

.hero {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--ink-950);
  color: #ffffff;
  padding: max(1.75rem, env(safe-area-inset-top)) 1.25rem 2.5rem;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}

.glow-a {
  left: -10rem;
  top: -10rem;
  width: 32.5rem;
  height: 32.5rem;
  background: rgb(58 134 255 / 0.22);
}

.glow-b {
  right: 0;
  bottom: 0;
  width: 26.25rem;
  height: 26.25rem;
  background: rgb(56 189 248 / 0.1);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: #ffffff;
  text-decoration: none;
}

.wordmark {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wordmark-strong {
  font-weight: 600;
  color: #ffffff;
}

.wordmark-soft {
  font-weight: 400;
  color: rgb(191 219 254 / 0.85);
}

.hero-copy {
  position: relative;
  max-width: 32.5rem;
  margin-top: 2.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.accent {
  display: block;
  color: var(--accent);
}

.hero-lede {
  margin: 1.25rem 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--slate-300);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--slate-200);
}

.checks li {
  display: flex;
  gap: 0.75rem;
}

.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgb(102 178 255 / 0.2);
  color: var(--accent);
  font-size: 11px;
}

.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: var(--panel);
  padding: 2rem 1.25rem max(2rem, env(safe-area-inset-bottom));
}

.panel-inner {
  width: 100%;
  max-width: 25rem;
}

.panel h2 {
  margin: 1rem 0 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.panel-lede {
  margin: 0.25rem 0 0;
  font-size: 14px;
  color: var(--slate-600);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand-600);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.btn:hover {
  background: var(--brand-800);
}

/* User count. Space is kept while it loads or if it never does, so nothing moves. */
.users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 13px;
  line-height: 1.25rem;
  color: var(--slate-600);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.users.users-ready {
  visibility: visible;
  opacity: 1;
}

.users-number {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--slate-900);
}

.users-dot {
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--brand-500);
}

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

@media (prefers-reduced-motion: reduce) {
  .users {
    transition: none;
  }
}

.panel h3 {
  margin: 2rem 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--slate-700);
}

.steps li {
  display: flex;
  gap: 0.75rem;
}

.step {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  background: #e8f1ff;
  color: var(--brand-800);
  font-size: 12px;
  font-weight: 600;
}

.note {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate-600);
}

.note p {
  margin: 0;
}

.dot {
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.45rem;
  border-radius: 9999px;
  background: var(--brand-500);
}

@media (min-width: 48rem) {
  .hero {
    padding: 3.5rem 2.5rem;
  }

  .panel {
    padding: 3.5rem 2.5rem;
  }
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 3.5rem;
  }

  .hero-copy {
    margin-top: 5rem;
  }

  .panel {
    padding: 3.5rem;
  }
}

/* Terms and 404: the Moneta Books legal-page layout. */

.doc {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 42rem;
  margin-inline: auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem 2.5rem;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-800);
  text-decoration: none;
}

.prose {
  margin-top: 1rem;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-800);
}

.prose h1 {
  margin: 0 0 1rem;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--slate-900);
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--slate-900);
}

.prose h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

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

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  font-weight: 500;
  overflow-wrap: anywhere;
  text-underline-offset: 0.15em;
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.table-wrap {
  margin: 1rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #ffffff;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
}

th {
  background: var(--panel);
  font-weight: 600;
  color: var(--slate-900);
}

.table-kv th {
  width: 32%;
}

@media (max-width: 56rem) {
  .table-grid,
  .table-grid thead,
  .table-grid tbody,
  .table-grid tr,
  .table-grid td {
    display: block;
  }

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

  .table-grid tr {
    margin: 0 0 0.85rem;
    border: 1px solid var(--border);
  }

  .table-grid td {
    border-width: 0 0 1px;
  }

  .table-grid td:last-child {
    border-bottom: 0;
  }

  .table-grid td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 36rem) {
  .table-kv,
  .table-kv tbody,
  .table-kv tr,
  .table-kv th,
  .table-kv td {
    display: block;
    width: auto;
  }

  .table-kv tr {
    margin: 0 0 0.85rem;
    border: 1px solid var(--border);
  }

  .table-kv th,
  .table-kv td {
    border-width: 0 0 1px;
  }

  .table-kv td {
    border-bottom: 0;
    padding-top: 0.15rem;
  }
}

/* Footer: notice, policy links, copyright, as on Moneta Books. */

.site-footer {
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
  padding: 1.5rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  font-size: 13px;
  line-height: 1.4;
  color: var(--slate-600);
}

.site-footer p {
  max-width: 48rem;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--brand-800);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer .copyright {
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .site-footer {
    padding: 1.5rem 2rem 2rem;
  }
}

@media (forced-colors: active) {
  .btn,
  .note,
  .hero {
    border: 1px solid CanvasText;
  }
}
