@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/fonts/mplus-rounded-1c-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  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: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Palette, sampled from the app icon: cream pages, the book's dark cover, and the four bar colors */
  --page: oklch(97.6% 0.014 84);
  --paper: oklch(95% 0.03 82);
  --paper-deep: oklch(91% 0.042 78);
  --panel: oklch(99% 0.008 84);
  --ink: oklch(25% 0.018 60);
  --ink-soft: oklch(42% 0.025 60);
  --rule: oklch(87% 0.03 78);
  --red: oklch(64% 0.2 37);
  --orange: oklch(73% 0.17 58);
  --yellow: oklch(82% 0.16 80);
  --teal: oklch(66% 0.11 185);
  --blue-teal: oklch(56% 0.1 225);
  --action: oklch(55% 0.19 36);
  --action-deep: oklch(48% 0.17 36);
  --on-action: oklch(98.5% 0.01 84);
  --link: oklch(48% 0.17 36);
  --cover: oklch(22% 0.012 220);
  --cover-text: oklch(95% 0.022 84);
  --cover-muted: oklch(80% 0.025 80);
  --cover-rule: oklch(34% 0.015 220);
  --shadow: oklch(35% 0.05 60 / 0.14);

  /* Type */
  --font-display: "M PLUS Rounded 1c", "SF Pro Rounded", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step-0: 1.0625rem;
  --step-1: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --step-2: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  --step-3: clamp(2.5rem, 1.3rem + 4.8vw, 4.9rem);
  --step-small: 0.9375rem;

  /* Space */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(3.5rem, 2rem + 5vw, 6.5rem);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shell: 72rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: oklch(19% 0.012 60);
    --paper: oklch(23.5% 0.016 62);
    --paper-deep: oklch(28% 0.02 62);
    --panel: oklch(26% 0.016 62);
    --ink: oklch(94% 0.022 84);
    --ink-soft: oklch(80% 0.025 80);
    --rule: oklch(34% 0.02 62);
    --red: oklch(68% 0.19 37);
    --orange: oklch(76% 0.16 58);
    --yellow: oklch(84% 0.15 80);
    --teal: oklch(72% 0.11 185);
    --blue-teal: oklch(66% 0.1 225);
    --action: oklch(70% 0.17 45);
    --action-deep: oklch(76% 0.15 50);
    --on-action: oklch(18% 0.02 50);
    --link: oklch(78% 0.14 55);
    --cover: oklch(14.5% 0.01 220);
    --cover-rule: oklch(30% 0.015 220);
    --shadow: oklch(5% 0.01 60 / 0.5);
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--step-2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  max-width: 62ch;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-code);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

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

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

.skip-link {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 10;
  padding: var(--space-xs) var(--space-sm);
  background: var(--ink);
  color: var(--page);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  padding-block: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-md);
}

.primary-nav a {
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.primary-nav .nav-download {
  padding: 0.2rem 0.85rem;
  border: 2px solid var(--action);
  border-radius: 999px;
  color: var(--link);
}

.primary-nav .nav-download:hover {
  background: var(--action);
  color: var(--on-action);
  text-decoration: none;
}

/* Buttons and links */

.button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  box-shadow: 0 10px 22px -12px var(--action);
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.button:hover {
  background: var(--action-deep);
  transform: translateY(-1px);
}

.button-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-small);
}

.text-link {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

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

/* Hero: the open book's two pages */

.hero {
  padding-block: var(--space-xl) calc(var(--space-xl) * 0.9);
  background: linear-gradient(180deg, var(--paper), var(--page));
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: var(--space-md);
}

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

.download {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
  margin-top: var(--space-xs);
}

.download-facts {
  display: grid;
  gap: var(--space-2xs);
  margin: 0;
  font-size: var(--step-small);
}

.download-facts div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-xs);
}

.download-facts dt {
  color: var(--ink-soft);
}

.download-facts dd {
  margin: 0;
  font-weight: 600;
}

.download-facts code {
  font-weight: 400;
  color: var(--ink-soft);
}

.hero-mark {
  margin: 0;
  justify-self: center;
  width: min(72%, 27rem);
}

.hero-mark img {
  filter: drop-shadow(0 22px 30px var(--shadow));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark img {
    animation: settle 900ms var(--ease-out) both;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(14px) rotate(-2deg);
    }
  }
}

/* The story */

.story {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--rule);
}

.story-inner {
  display: grid;
  gap: var(--space-lg);
}

.story h2 {
  max-width: 16ch;
}

.story-copy {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
  font-size: 1.1875rem;
}

.story-copy p:first-child {
  color: var(--ink-soft);
}

/* Features: one color from the icon each */

.features {
  padding-bottom: var(--space-xl);
}

.feature {
  --hue: var(--red);
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--rule);
}

.feature-meetings {
  --hue: var(--yellow);
}

.feature-reading {
  --hue: var(--teal);
}

.feature-copy {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.feature-copy > p:not(.feature-name) {
  color: var(--ink-soft);
}

.feature-name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
}

.feature-name::before {
  content: "";
  width: 2.25rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--hue);
}

.feature-copy h3 {
  font-size: var(--step-2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.feature-copy .feature-note {
  font-size: var(--step-small);
}

.feature-art {
  display: grid;
  gap: var(--space-md);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.line {
  display: block;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--rule);
}

.w-40 { width: 40%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }

/* Dictation: the key and the words it makes */

.keycap-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.keycap {
  display: grid;
  align-content: space-between;
  width: 8.5rem;
  height: 7.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: linear-gradient(170deg, var(--panel) 35%, var(--paper-deep));
  box-shadow:
    inset 0 -6px 0 var(--rule),
    0 10px 24px var(--shadow);
  font-family: var(--font-display);
  font-weight: 800;
}

.keycap-glyph {
  justify-self: end;
  font-size: 2.2rem;
  line-height: 1;
}

.keycap-label {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.bars {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 7rem;
}

.bars i {
  display: block;
  width: 22px;
  border-radius: 999px;
}

.bars i:nth-child(1) { height: 48%; background: linear-gradient(180deg, var(--red), var(--orange)); }
.bars i:nth-child(2) { height: 100%; background: linear-gradient(180deg, var(--yellow), var(--orange)); }
.bars i:nth-child(3) { height: 58%; background: linear-gradient(180deg, var(--teal), var(--blue-teal)); }

@media (prefers-reduced-motion: no-preference) {
  .bars i {
    animation: speak 1.5s var(--ease-out) infinite alternate;
  }

  .bars i:nth-child(2) { animation-delay: -0.5s; }
  .bars i:nth-child(3) { animation-delay: -1s; }

  @keyframes speak {
    to { transform: scaleY(0.6); }
  }
}

.field-mock {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 1px 0 var(--rule), 0 8px 20px -14px var(--shadow);
}

.field-label {
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-weight: 700;
}

.field-text {
  font-size: 1.1875rem;
  line-height: 1.5;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--red);
}

@media (prefers-reduced-motion: no-preference) {
  .caret {
    animation: blink 1.1s steps(1) infinite;
  }

  @keyframes blink {
    50% { opacity: 0; }
  }
}

/* Meetings: a transcript, speakers labelled */

.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: var(--step-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rec-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red);
}

@media (prefers-reduced-motion: no-preference) {
  .rec-dot {
    animation: blink 2s steps(1) infinite;
  }
}

.transcript {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.transcript li {
  --who: var(--orange);
  display: grid;
  gap: 0.55rem;
}

.transcript .speaker-b { --who: var(--teal); }
.transcript .speaker-c { --who: var(--red); }

.transcript .who {
  justify-self: start;
  padding: 0.05rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--who) 28%, transparent);
  font-size: 0.875rem;
  font-weight: 700;
}

.transcript .line {
  background: color-mix(in oklch, var(--who) 55%, var(--rule));
}

/* Reading: an article becomes one audio file */

.art-reading {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
}

.page-mock {
  display: grid;
  gap: 0.6rem;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: 0 1px 0 var(--rule), 0 8px 20px -14px var(--shadow);
}

.page-title {
  display: block;
  width: 70%;
  height: 0.9rem;
  margin-bottom: 0.3rem;
  border-radius: 999px;
  background: var(--ink-soft);
}

.arrow {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink-soft);
}

.file-mock {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.file-play {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-action);
  font-size: 0.9rem;
}

.file-name {
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.file-meta {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* The cover: the one dark section, where the privacy ledger lives */

.cover {
  padding-block: var(--space-xl);
  background: var(--cover);
  color: var(--cover-text);
  line-height: 1.7;
}

.cover-heading {
  display: grid;
  gap: var(--space-md);
  justify-items: start;
  margin-bottom: var(--space-lg);
}

.cover-heading p {
  color: var(--cover-muted);
  font-size: 1.1875rem;
}

.stripes {
  display: grid;
  gap: 0.55rem;
  width: 5.5rem;
}

.stripes i {
  display: block;
  height: 0.7rem;
  border-radius: 999px;
}

.stripes i:nth-child(1) { background: var(--red); }
.stripes i:nth-child(2) { background: var(--yellow); width: 88%; }
.stripes i:nth-child(3) { background: var(--teal); width: 94%; }

.ledger {
  display: grid;
  gap: var(--space-lg);
}

.ledger-col {
  padding-top: var(--space-sm);
  border-top: 2px solid var(--cover-rule);
}

.ledger-col:first-child {
  border-top-color: oklch(68% 0.11 190);
}

.ledger h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3125rem;
}

.ledger ul {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding-left: 1.1rem;
  color: var(--cover-muted);
}

.ledger li::marker {
  color: oklch(82% 0.16 80);
}

/* Questions */

.section {
  padding-block: var(--space-xl);
}

.split {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.faq {
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  /* Room for the "+" when it turns into an "×" */
  padding: var(--space-sm) 0.25rem var(--space-sm) 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  content: "+" / "";
  font-family: var(--font-display);
  color: var(--link);
  transition: transform 200ms var(--ease-out);
}

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

.faq details p {
  padding-bottom: var(--space-md);
  color: var(--ink-soft);
}

.faq details ul {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0 0 var(--space-md) 1.2rem;
  color: var(--ink-soft);
}

/* Closing */

.closing {
  padding-block: var(--space-xl);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.closing-inner {
  display: grid;
  gap: var(--space-md);
  justify-items: start;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
}

.coffee {
  display: grid;
  gap: 0.1rem;
}

.coffee span {
  color: var(--ink-soft);
  font-size: var(--step-small);
}

/* Thank-you page */

.thanks {
  padding-block: var(--space-xl) calc(var(--space-xl) * 1.4);
  background: linear-gradient(180deg, var(--paper), var(--page));
}

.thanks-inner {
  display: grid;
  gap: var(--space-md);
  justify-items: start;
}

.thanks h1 {
  font-size: var(--step-2);
}

.thanks .stripes i:nth-child(1) { background: var(--red); }
.thanks .stripes i:nth-child(2) { background: var(--yellow); }
.thanks .stripes i:nth-child(3) { background: var(--teal); }

/* Footer */

.site-footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--rule);
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.footer-inner {
  display: grid;
  gap: var(--space-sm);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
}

.site-footer nav a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

/* Privacy page */

.prose {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-xl);
}

.prose h1 {
  font-size: var(--step-2);
}

.prose h2 {
  margin-top: var(--space-md);
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  max-width: 62ch;
  padding-left: 1.2rem;
}

.prose .updated {
  font-size: var(--step-small);
}

/* Wider screens */

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }

  .hero-mark {
    width: min(100%, 27rem);
  }

  .story-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .feature {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--space-xl);
  }

  .feature-meetings .feature-copy {
    order: 2;
  }

  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-xl);
  }

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

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-footer nav {
    justify-content: end;
  }

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

@media (max-width: 30rem) {
  /* The hero's own Download button is right below */
  .primary-nav .nav-download {
    display: none;
  }

  .keycap-row {
    gap: var(--space-md);
  }

  .keycap {
    width: 7rem;
    height: 6rem;
  }

  .bars {
    height: 5.5rem;
    gap: 10px;
  }

  .bars i {
    width: 17px;
  }

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

  .arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .download-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

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

  .button,
  .faq summary::after {
    transition: none;
  }
}
