/* Tymbr marketing site and legal pages. One stylesheet, no build step. */

:root {
  --paper: #ffffff;
  --panel: #eef1f5;
  --rule: #d5dbe3;
  --ink: #0d1b2a;
  --ink-soft: #4a5568;
  --record: #e5261f;
  --speaker-1: #2a6fdb;
  --speaker-2: #c2410c;
  --speaker-3: #6d28d9;
  --speaker-4: #0f766e;
  --font-ui: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-doc: Literata, Georgia, "Times New Roman", serif;
  --measure: 66ch;
  --gutter: clamp(16px, 5vw, 64px);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-optical-sizing: auto;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--speaker-1);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

p,
ul,
ol,
dl {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
  max-width: 24em;
  text-wrap: pretty;
}

/* Each sentence of the headline stays whole on wide screens. */
@media (min-width: 700px) {
  h1 span {
    display: inline-block;
  }
}

h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  max-width: 26ch;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
}

/* Page frame */

.frame {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9375rem;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

/* Sections */

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

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

.section > h2 {
  margin-bottom: 1.25rem;
}

.section > p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* Hero */

.hero {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Transcript document: the product itself */

.transcript {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: 10px;
  background: var(--panel);
  font-family: var(--font-doc);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.transcript header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.transcript header strong {
  color: var(--ink);
  font-weight: 600;
}

.transcript header .live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.transcript header .live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--record);
}

.transcript ol {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 0.9rem;
}

.transcript li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.25rem 1.25rem;
  align-items: baseline;
}

.transcript .who {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.transcript .who small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.transcript .s1 .who {
  color: var(--speaker-1);
}

.transcript .s2 .who {
  color: var(--speaker-2);
}

.transcript .s3 .who {
  color: var(--speaker-3);
}

.transcript .s4 .who {
  color: var(--speaker-4);
}

.transcript .said {
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 600px) {
  .transcript li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .transcript .who small {
    display: inline;
    margin-left: 0.5rem;
  }
}

/* One page-load sequence: lines arrive in order. */

@media (prefers-reduced-motion: no-preference) {
  .transcript li {
    opacity: 0;
    animation: arrive 500ms ease-out forwards;
    animation-delay: calc(var(--i) * 420ms + 300ms);
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Plain multi-column lists */

.columns {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.columns h3 {
  margin-bottom: 0.5rem;
}

.columns p {
  margin: 0;
  color: var(--ink-soft);
}

.stance {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.stance ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.stance li {
  margin-bottom: 0.4rem;
}

.stance .never li {
  color: var(--ink-soft);
}

/* Pricing */

.price {
  display: grid;
  gap: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 2px solid var(--ink);
  border-radius: 10px;
  max-width: 40rem;
}

.price .amount {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price .amount span {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.price p {
  margin: 0;
}

.price ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

/* Footer */

.footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer .frame {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}

.footer .brand {
  grid-column: 1 / -1;
}

.footer .brand img {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.footer p {
  margin: 0 0 0.5rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.35rem;
}

/* Legal documents */

.doc {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.doc h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.doc .meta {
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.doc h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
}

.doc p,
.doc li {
  line-height: 1.6;
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  max-width: 48rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

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

.doc th {
  font-weight: 600;
}

.doc .note {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--panel);
  max-width: var(--measure);
}

.doc .toc {
  margin-bottom: 2rem;
}

.doc .toc ol {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
}

@media (max-width: 600px) {
  .doc .toc ol {
    columns: 1;
  }
}
