/* Rekka website. Dark theme only. Tokens are copied from docs/brand/tokens.css
   (only the ones used here). Fonts are self hosted, nothing loads from a third
   party. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

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

:root {
  color-scheme: dark;

  --ash-950: #0E0C0B;
  --ash-900: #171412;
  --ash-850: #201C19;
  --ash-800: #2A2521;
  --ash-700: #3A332E;
  --ash-500: #7D746C;
  --chalk-50: #F4EFE9;
  --chalk-100: #E9E2DA;
  --chalk-200: #D8CFC5;
  --chalk-400: #BBB2A8;
  --ember-500: #FF6A2B;
  --ember-300: #FF9A6B;
  --ember-soft: #3C2216;
  --ink: #14110F;
  --heat-1: #3A332E;
  --heat-2: #5E3322;
  --heat-3: #9C4126;
  --heat-4: #FF6A2B;
  --heat-5: #FFB054;
  --success: #48D0DA;
  --warning: #F5CF4A;
  --warning-soft: #342C19;
  --ki-badge-bg: #322E2C;

  --bg: var(--ash-950);
  --surface: var(--ash-900);
  --surface-raised: var(--ash-850);
  --surface-input: var(--ash-800);
  --hairline: var(--ash-700);
  --border-control: var(--ash-500);
  --text: var(--chalk-50);
  --text-2: var(--chalk-200);
  --text-3: var(--chalk-400);
  --text-display: var(--chalk-100);
  --accent-text: var(--ember-300);
  --focus-ring: 0 0 0 2px #0e0c0b, 0 0 0 4px #ff6a2b;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-chip: 8px;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --size-touch-min: 44px;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 24px;
  font-weight: 450;
}

main {
  flex: 1;
}

/* Page column: 16 px gutters on phones, text about 68 characters wide. */
.wrap {
  width: 100%;
  max-width: 992px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

/* Links */
a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 4px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--size-touch-min);
  color: var(--chalk-50);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 36px;
  height: 36px;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  font-stretch: 62%;
  letter-spacing: 0.06em;
  color: var(--chalk-50);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch-min);
  padding-inline: var(--space-1);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

/* Content */
.content {
  padding-block: var(--space-6) var(--space-10);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

@media (min-width: 720px) {
  .content {
    padding-block: var(--space-10) var(--space-12);
  }
}

.content > :is(p, ul, ol, h1, h2, h3, h4) {
  max-width: 62ch;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-display);
  font-family: var(--font-display);
  font-stretch: 87.5%;
}

h1 {
  margin-bottom: var(--space-4);
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
}

h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
}

h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
}

@media (min-width: 720px) {
  h1 {
    font-size: 40px;
    line-height: 44px;
  }
}

h1 + h2,
h2 + h3,
h3 + h4 {
  margin-top: var(--space-2);
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

li + li {
  margin-top: var(--space-2);
}

strong {
  font-weight: 650;
}

/* Wide tables (the privacy policy has five columns) scroll inside a focusable
   wrapper that the build adds, never the page. The table itself keeps its
   normal display so it stays a table for screen readers. */
.table-scroll {
  max-width: 100%;
  margin: var(--space-4) 0 var(--space-6);
  overflow-x: auto;
}

.table-scroll:focus-visible {
  border-radius: var(--radius-chip);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

table {
  border-collapse: collapse;
  font-size: 15px;
  line-height: 20px;
}

th,
td {
  min-width: 112px;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom-color: var(--border-control);
  color: var(--text-display);
  font-weight: 600;
}

td {
  color: var(--text-2);
}

/* Open [placeholders] must be impossible to miss. */
mark.placeholder {
  padding: 0 var(--space-1);
  border-radius: var(--radius-chip);
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 404 */
.not-found h1 {
  font-size: 56px;
  line-height: 56px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.not-found section + section {
  margin-top: var(--space-6);
}

.not-found a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch-min);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-6);
  font-size: 15px;
  line-height: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch-min);
}

.copyright {
  margin: var(--space-2) 0 0;
  color: var(--text-3);
}

/* Home page (templates/home.mjs): a wider column, no hairline under the
   header. Everything below is scoped to it. */
.page-home .wrap {
  max-width: 1120px;
}

@media (min-width: 1024px) {
  .page-home .wrap {
    padding-inline: var(--space-10);
  }
}

.page-home .site-header {
  border-bottom: 0;
}

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

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-home .icon {
  display: block;
  flex: none;
}

.page-home li + li {
  margin-top: 0;
}

/* Hero: headline, one sentence, two store badges and the phone. */
.hero {
  padding-block: var(--space-6) var(--space-4);
}

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

.hero h1 {
  margin: 0 0 var(--space-5);
  font-size: clamp(40px, 28px + 3.6vw, 72px);
  line-height: 1;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__text > p {
  max-width: 32em;
  margin: 0 0 var(--space-8);
  color: var(--text-2);
  font-size: 19px;
  line-height: 28px;
}

/* The store badges are not links until the app is in the stores. */
.hero__text > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 184px));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__text > ul li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 1.5px var(--border-control);
  color: var(--text-3);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.hero__text > ul strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 26px;
  font-weight: 700;
  font-stretch: 87.5%;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .hero__text > ul li {
    padding-inline: var(--space-3);
  }

  .hero__text > ul strong {
    font-size: 19px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: var(--space-10) var(--space-6);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }

  .hero__text > p {
    font-size: 21px;
    line-height: 30px;
  }
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% -16px;
  background: radial-gradient(closest-side, #ff6a2b2e, #ff6a2b00);
  pointer-events: none;
}

/* The phone is an iPhone 17 Pro drawn in CSS: screen 402 x 874 pt, even
   bezels of 3 % of the width, screen corners of 55 pt, Dynamic Island
   126 x 37 pt at 11 pt from the top. One --pt is one point of that screen,
   so the whole phone scales as one piece with its width. */
.phone {
  --pt: calc(94cqw / 402);
  position: relative;
  width: min(100%, 360px);
  container-type: inline-size;
}

.phone__frame {
  position: relative;
  aspect-ratio: 4277 / 8997;
  padding: 3cqw;
  border-radius: calc(55 * var(--pt) + 3cqw);
  background: linear-gradient(150deg, #3a332e, #201c19 30%, #171412 70%, #2a2521);
  box-shadow: inset 0 0 0 1px #4a423c, inset 0 0 0 2px #0e0c0b, 0 40px 80px -32px #000000e6;
}

/* Side buttons: volume on the left, side button on the right. */
.phone__frame::before,
.phone__frame::after {
  content: "";
  position: absolute;
  width: 0.9cqw;
  border-radius: 1cqw;
  background: #2a2521;
}

.phone__frame::before {
  left: -0.6cqw;
  top: 46cqw;
  height: 15cqw;
  box-shadow: 0 20cqw 0 #2a2521;
}

.phone__frame::after {
  right: -0.6cqw;
  top: 58cqw;
  height: 22cqw;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(55 * var(--pt));
  background: var(--bg);
  color: var(--text);
  font-size: calc(13 * var(--pt));
  line-height: 1.25;
}

.phone__screen p {
  margin: 0;
}

.phone__status {
  display: grid;
  grid-template-columns: 1fr calc(126 * var(--pt)) 1fr;
  align-items: center;
  height: calc(59 * var(--pt));
}

.phone__time {
  justify-self: center;
  font-size: calc(17 * var(--pt));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.phone__island {
  align-self: start;
  height: calc(37 * var(--pt));
  margin-top: calc(11 * var(--pt));
  border-radius: calc(19 * var(--pt));
  background: #000;
}

.phone__icons {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: calc(6 * var(--pt));
}

.phone__signal {
  display: flex;
  align-items: flex-end;
  gap: calc(1.5 * var(--pt));
  height: calc(11 * var(--pt));
}

.phone__signal i {
  width: calc(3 * var(--pt));
  border-radius: calc(1 * var(--pt));
  background: var(--text);
}

.phone__signal i:nth-child(1) { height: 35%; }
.phone__signal i:nth-child(2) { height: 55%; }
.phone__signal i:nth-child(3) { height: 78%; }
.phone__signal i:nth-child(4) { height: 100%; }

.phone__battery {
  position: relative;
  width: calc(25 * var(--pt));
  height: calc(12 * var(--pt));
  padding: calc(2 * var(--pt));
  border-radius: calc(4 * var(--pt));
  box-shadow: inset 0 0 0 calc(1 * var(--pt)) var(--text-3);
}

.phone__battery::before {
  content: "";
  display: block;
  width: 75%;
  height: 100%;
  border-radius: calc(2 * var(--pt));
  background: var(--text);
}

.phone__battery::after {
  content: "";
  position: absolute;
  top: 35%;
  right: calc(-2.5 * var(--pt));
  width: calc(1.5 * var(--pt));
  height: 30%;
  border-radius: 0 calc(1 * var(--pt)) calc(1 * var(--pt)) 0;
  background: var(--text-3);
}

.phone__home {
  position: absolute;
  right: 0;
  bottom: calc(8 * var(--pt));
  left: 0;
  width: calc(134 * var(--pt));
  height: calc(5 * var(--pt));
  margin-inline: auto;
  border-radius: calc(3 * var(--pt));
  background: var(--chalk-50);
}

/* The plan screen of the app inside the phone (design v2). */
.app__head {
  padding: calc(4 * var(--pt)) calc(16 * var(--pt)) calc(8 * var(--pt));
}

.app__week {
  display: flex;
  align-items: center;
  gap: calc(2 * var(--pt));
}

.app__step {
  width: calc(24 * var(--pt));
  height: calc(24 * var(--pt));
  color: var(--text-3);
}

.app__title {
  color: var(--text-display);
  font-family: var(--font-display);
  font-size: calc(28 * var(--pt));
  line-height: calc(32 * var(--pt));
  font-weight: 800;
  font-stretch: 87.5%;
  white-space: nowrap;
}

.phone__screen .app__sub {
  margin-top: calc(2 * var(--pt));
  padding-left: calc(26 * var(--pt));
  color: var(--text-3);
  font-size: calc(13 * var(--pt));
  line-height: calc(16 * var(--pt));
  font-weight: 500;
}

/* The flame card: ball, days, one sentence, the seven dots of the week. */
.fcard {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--pt));
  margin: 0 calc(16 * var(--pt));
  padding: calc(14 * var(--pt)) calc(16 * var(--pt));
  border-radius: calc(16 * var(--pt));
  background: var(--surface-raised);
}

.fcard__top {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--pt));
}

.orb {
  flex: none;
  width: calc(30 * var(--pt));
  height: calc(30 * var(--pt));
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--ember-300), var(--heat-3) 75%);
  box-shadow: 0 0 calc(12 * var(--pt)) calc(-3 * var(--pt)) #9c412688;
}

.fcard__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.fcard__line {
  display: flex;
  align-items: baseline;
  gap: calc(6 * var(--pt));
  color: var(--text-2);
  font-size: calc(13 * var(--pt));
  font-weight: 600;
}

.fcard__line b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: calc(26 * var(--pt));
  line-height: calc(28 * var(--pt));
  font-weight: 800;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}

.fcard__cap {
  color: var(--text-2);
  font-size: calc(13 * var(--pt));
  line-height: calc(16 * var(--pt));
}

.fcard__go {
  width: calc(24 * var(--pt));
  height: calc(24 * var(--pt));
  color: var(--text-3);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.week__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(6 * var(--pt));
  color: var(--text-3);
  font-size: calc(12 * var(--pt));
  line-height: calc(14 * var(--pt));
  font-weight: 600;
}

.week__day i {
  width: calc(14 * var(--pt));
  height: calc(14 * var(--pt));
  border-radius: 50%;
  box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) var(--border-control);
}

.week__day--done i {
  background: var(--ember-500);
  box-shadow: none;
}

.week__day--opt i,
.week__day--optdone i {
  width: calc(8 * var(--pt));
  height: calc(8 * var(--pt));
  margin: calc(3 * var(--pt)) 0;
  box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) var(--ember-300);
}

.week__day--optdone i {
  background: var(--ember-300);
  box-shadow: none;
}

.week__day--rest i {
  width: calc(8 * var(--pt));
  height: calc(2 * var(--pt));
  margin: calc(6 * var(--pt)) 0;
  border-radius: calc(1 * var(--pt));
  background: var(--hairline);
  box-shadow: none;
}

.week__day--today {
  color: var(--text);
}

.week__day--today i {
  box-shadow: 0 0 0 calc(2 * var(--pt)) var(--surface-raised), 0 0 0 calc(4 * var(--pt)) var(--ember-500);
}

.app__list {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--pt));
  padding: calc(12 * var(--pt)) calc(16 * var(--pt)) 0;
}

.dc {
  display: grid;
  grid-template-columns: calc(48 * var(--pt)) 1fr auto;
  gap: calc(12 * var(--pt));
  align-items: center;
  min-height: calc(84 * var(--pt));
  padding: calc(14 * var(--pt)) calc(16 * var(--pt)) calc(14 * var(--pt)) calc(12 * var(--pt));
  border-radius: calc(16 * var(--pt));
  background: var(--surface);
}

.dc--today {
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--ember-500), 0 calc(12 * var(--pt)) calc(32 * var(--pt)) calc(-12 * var(--pt)) #ff6a2b66;
}

.dc__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-2);
}

.dc__date span {
  color: var(--text-3);
  font-size: calc(13 * var(--pt));
  line-height: calc(14 * var(--pt));
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc__date .dc__now {
  color: var(--accent-text);
}

.dc__date b {
  font-family: var(--font-display);
  font-size: calc(30 * var(--pt));
  line-height: calc(32 * var(--pt));
  font-weight: 800;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}

.dc--today .dc__date b {
  color: var(--text);
}

.dc__main {
  min-width: 0;
}

.phone__screen .dc__title {
  color: var(--text-display);
  font-family: var(--font-display);
  font-size: calc(19 * var(--pt));
  line-height: calc(24 * var(--pt));
  font-weight: 700;
  font-stretch: 87.5%;
}

.phone__screen .dc--done .dc__title {
  color: var(--text-2);
}

.phone__screen .dc__kw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(6 * var(--pt));
  margin-top: calc(4 * var(--pt));
  color: var(--text-3);
  font-size: calc(13 * var(--pt));
  line-height: calc(16 * var(--pt));
  font-weight: 500;
}

.dc__kw s {
  width: calc(3 * var(--pt));
  height: calc(3 * var(--pt));
  border-radius: 50%;
  background: var(--ash-500);
}

.dc__opt {
  display: inline-flex;
  align-items: center;
  height: calc(22 * var(--pt));
  padding: 0 calc(6 * var(--pt));
  border-radius: calc(8 * var(--pt));
  background: var(--ember-soft);
  color: var(--accent-text);
  font-size: calc(12 * var(--pt));
}

.dc__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(28 * var(--pt));
  height: calc(28 * var(--pt));
  border-radius: 50%;
  background: var(--ember-soft);
  color: var(--accent-text);
}

.dc__ok .icon {
  width: calc(16 * var(--pt));
  height: calc(16 * var(--pt));
  stroke-width: 2.2;
}

.heat {
  display: inline-flex;
  align-items: flex-end;
  gap: calc(3 * var(--pt));
}

.heat i {
  width: calc(6 * var(--pt));
  border-radius: calc(2 * var(--pt));
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.heat i:nth-child(1) { height: calc(8 * var(--pt)); }
.heat i:nth-child(2) { height: calc(10 * var(--pt)); }
.heat i:nth-child(3) { height: calc(12 * var(--pt)); }
.heat i:nth-child(4) { height: calc(14 * var(--pt)); }
.heat i:nth-child(5) { height: calc(16 * var(--pt)); }

.heat--2 .on { background: var(--heat-2); box-shadow: none; }
.heat--3 .on { background: var(--heat-3); box-shadow: none; }
.heat--4 .on { background: var(--heat-4); box-shadow: none; }
.heat--5 .on { background: var(--heat-5); box-shadow: none; }

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: calc(6 * var(--pt)) calc(4 * var(--pt)) calc(30 * var(--pt));
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(3 * var(--pt));
  min-height: calc(50 * var(--pt));
  color: var(--text-3);
  font-size: calc(12 * var(--pt));
  line-height: calc(14 * var(--pt));
  font-weight: 600;
}

.tab .icon {
  width: calc(24 * var(--pt));
  height: calc(24 * var(--pt));
}

.tab--active {
  color: var(--accent-text);
}

.tab--active .icon {
  color: var(--ember-500);
}

.tab--active::before {
  content: "";
  position: absolute;
  top: calc(-3 * var(--pt));
  width: calc(20 * var(--pt));
  height: calc(2 * var(--pt));
  border-radius: calc(2 * var(--pt));
  background: var(--ember-500);
}

.tab__label {
  display: inline-flex;
  align-items: center;
  gap: calc(3 * var(--pt));
}

.tab__ki {
  display: inline-flex;
  align-items: center;
  height: calc(14 * var(--pt));
  padding: 0 calc(3 * var(--pt));
  border-radius: calc(4 * var(--pt));
  background: var(--ki-badge-bg);
  color: var(--text-2);
  font-size: calc(9 * var(--pt));
  line-height: 1;
}

/* Sections */
.section {
  padding-top: 88px;
}

.section h2 {
  margin: 0 0 var(--space-8);
  font-size: clamp(30px, 22px + 2vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

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

  .section h2 {
    margin-bottom: var(--space-12);
  }
}

/* Steps: chalk strokes from the logo count them. */
.steps {
  display: grid;
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tally {
  display: block;
  margin-bottom: var(--space-5);
}

.step h3 {
  margin: 0 0 var(--space-2);
  color: var(--text);
  font-size: 22px;
  line-height: 28px;
  text-wrap: balance;
}

.step p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-2);
}

@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-12);
  }
}

/* What you can do */
.tiles {
  display: grid;
  column-gap: var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-4);
  padding: var(--space-5) 0 28px;
  border-top: 1px solid var(--hairline);
}

.tile .icon {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--text-3);
}

.tile--ember .icon {
  color: var(--accent-text);
}

.tile h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 19px;
  line-height: 24px;
}

.tile p {
  margin: 0;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Ember: the text and an example of a suggestion. */
.ember {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.section .ember__text h2 {
  margin-bottom: var(--space-5);
}

.ember__text p {
  max-width: 30em;
  margin: 0;
  color: var(--text-2);
  font-size: 19px;
  line-height: 28px;
}

.ember__text p + p {
  margin-top: var(--space-3);
  color: var(--text);
}

@media (min-width: 960px) {
  .ember {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 80px;
  }
}

.demo {
  margin: 0;
}

.demo__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px #3a332e99;
}

.demo__panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, #ff6a2b1f, #ff6a2b00);
  pointer-events: none;
}

.demo__panel > * {
  position: relative;
}

.demo p {
  margin: 0;
}

.demo figcaption {
  margin-top: var(--space-3);
  color: var(--text-3);
  font-size: 13px;
  line-height: 16px;
}

@media (min-width: 640px) {
  .demo__panel {
    padding: 28px;
  }
}

.ki {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ki-badge-bg);
  color: var(--text-2);
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.msg {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.msg__avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.demo .msg__who {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.msg__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: 4px var(--radius-card) var(--radius-card) var(--radius-card);
  background: var(--surface-raised);
  font-size: 16px;
  line-height: 23px;
}

.change {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.change__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.change__kind,
.demo .change__undo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.change__kind .icon,
.change__undo .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.change__title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  font-stretch: 87.5%;
}

.diff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-2);
}

.diff__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-control);
}

.diff__side--old {
  background: var(--surface-input);
  color: var(--text-2);
}

.diff__side--new {
  background: var(--ember-soft);
  box-shadow: inset 0 0 0 1.5px var(--ember-500);
}

.diff__label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.diff__side--new .diff__label {
  color: var(--accent-text);
}

.diff__value {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
  font-stretch: 87.5%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.diff__side--old .diff__value {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ash-500);
}

.diff__arrow {
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.diff__arrow .icon {
  width: 20px;
  height: 20px;
}

.change__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-touch-min);
  border-radius: var(--radius-control);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.button--primary {
  grid-column: span 2;
  min-height: 52px;
  background: var(--ember-500);
  color: var(--ink);
}

.button--secondary {
  background: var(--surface-input);
  box-shadow: inset 0 0 0 1.5px var(--border-control);
}

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

.demo .change__undo {
  color: var(--text-3);
  font-size: 13px;
  line-height: 16px;
}

/* Founder phase: the plans side by side, the terms link below. */
.founder {
  padding: 28px var(--space-5);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px #3a332e99;
}

.section .founder h2 {
  margin-bottom: 28px;
}

.plans {
  display: grid;
  gap: 28px;
}

.plan h3 {
  margin: 0 0 var(--space-2);
  color: var(--text);
  font-size: 22px;
  line-height: 28px;
}

.plan p {
  max-width: 36em;
  margin: 0;
  color: var(--text-2);
}

.founder__note {
  margin-top: 28px;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 15px;
  line-height: 22px;
}

.founder__note p {
  margin: 0;
}

@media (min-width: 720px) {
  .founder {
    padding: var(--space-12);
  }
}

@media (min-width: 840px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
}

/* About */
.about {
  padding-block: 72px var(--space-12);
}

.about h2 {
  margin: 0 0 var(--space-3);
  font-size: 19px;
  line-height: 24px;
}

.about p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-3);
  font-size: 15px;
  line-height: 22px;
}

.about p + p {
  margin-top: var(--space-2);
}
