/* The landing page. Colors come from apps/app/src/theme.ts (light and dark). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexSans_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBMPlexSans_600SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono_400Regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #eef1ec;
  --card: #ffffff;
  --sand: #e3e8e0;
  --line: #d9dfd5;
  --ink: #1c1917;
  --secondary: #535a50;
  --accent: #1f3a33;
  --on-accent: #f3ede3;
  --tint: #c2410c;
  --rhythm1: #efa272;
  --rhythm2: #e07432;
  --rhythm3: #c2410c;
  --rhythm4: #8a2e08;
  --hot: #d9381e;
  --hot-text: #ffffff;
  --warm: #f4a940;
  --warm-text: #6b3a00;
  --cold: #3574cf;
  --cold-text: #ffffff;
  --frozen: #d4e9f7;
  --frozen-text: #1f5f8b;
  /* The same in both modes. */
  --brand: #1f3a33;
  --on-brand: #f3ede3;
  --on-brand-secondary: #bfd0c8;
  --brand-tint: #ff8a4c;
  --button: #c2410c;
  --on-button: #ffffff;
  --danger: #9b2c1f;
  --flame-core: #ffd27a;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #15120f;
    --card: #211c17;
    --sand: #2c2620;
    --line: #3a3129;
    --ink: #f3ede3;
    --secondary: #b3a796;
    --accent: #bfd0c8;
    --on-accent: #15120f;
    --tint: #ff8a4c;
    --rhythm1: #7a4222;
    --rhythm2: #a8521f;
    --rhythm3: #de6a25;
    --rhythm4: #ff9a5c;
    --hot: #ff5a36;
    --hot-text: #1a0a00;
    --warm: #ffb547;
    --warm-text: #4a2800;
    --cold: #4d94ff;
    --cold-text: #001a3d;
    --frozen: #1e3a50;
    --frozen-text: #9cd0f5;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
}
body {
  font-family: var(--sans);
  color: var(--secondary);
  -webkit-text-size-adjust: 100%;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
a {
  color: inherit;
}

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.flame {
  display: block;
  flex: none;
  overflow: visible;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tint);
}
.body {
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary);
}

/* Hero and closing band: always pine. */
.brand {
  background: var(--brand);
  color: var(--on-brand-secondary);
}
.brand .flame {
  color: var(--brand-tint);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--on-brand);
}
.hero {
  padding-bottom: 56px;
}
.hero-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 32px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero .eyebrow {
  color: var(--on-brand-secondary);
  white-space: pre-line;
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 42px;
  line-height: 46px;
  color: var(--on-brand);
}
.lede {
  font-size: 18px;
  line-height: 28px;
  max-width: 560px;
}
.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--button);
  color: var(--on-button);
  font: 600 16px/20px var(--sans);
  border-radius: 999px;
  padding: 14px 28px;
  min-height: 48px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:disabled {
  opacity: 0.6;
  cursor: default;
}
.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-tint);
  outline-offset: 2px;
}

/* Device screenshots */
.devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  align-self: center;
}
.phone {
  max-width: 100%;
  border: 8px solid #0b0b0c;
  background: #0b0b0c;
  border-radius: 44px;
  overflow: hidden;
  flex: none;
  align-self: center;
}
.devices {
  max-width: 100%;
}
/* Side by side, both shrink on the narrowest phones. */
.devices .phone {
  flex: 0 1 220px;
  min-width: 0;
  align-self: auto;
}
.works .phone {
  width: 280px;
}
.watch {
  flex: 0 1 108px;
  min-width: 0;
  margin-bottom: 9px;
  border: 7px solid #0b0b0c;
  background: #000;
  border-radius: 34px;
  overflow: hidden;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  color: var(--ink);
}
.section-head .body {
  max-width: 720px;
}

.pairs {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.usual {
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--ink);
}
.ours {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ours .flame,
.fire .flame {
  color: var(--tint);
}

.works {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
h3 {
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.chip {
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 14px;
}
.chip.hot {
  background: var(--hot);
  color: var(--hot-text);
}
.chip.warm {
  background: var(--warm);
  color: var(--warm-text);
}
.chip.cold {
  background: var(--cold);
  color: var(--cold-text);
}
.chip.frozen {
  background: var(--frozen);
  color: var(--frozen-text);
}
.fires {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.fire {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fire-art {
  height: 30px;
  display: flex;
  align-items: flex-end;
}
.fire-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.fire-stars,
.grid-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--secondary);
}

/* Small mock grids: Your rhythm and the calendar. */
.rhythm {
  display: grid;
  grid-template-columns: 72px repeat(7, 1fr);
  gap: 4px;
}
.rhythm .grid-label.day {
  text-align: center;
}
.cell {
  height: 18px;
  border-radius: 4px;
}
.s0 {
  background: var(--sand);
}
.s1 {
  background: var(--rhythm1);
}
.s2 {
  background: var(--rhythm2);
}
.s3 {
  background: var(--rhythm3);
}
.s4 {
  background: var(--rhythm4);
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool {
  flex: 1;
  padding: 20px;
  gap: 14px;
}
.tool-art {
  position: relative;
  height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tool-art > div:first-child {
  opacity: 0.55;
}
.strike {
  position: absolute;
  left: -12px;
  right: -12px;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  background: var(--danger);
  transform: rotate(-14deg);
}
.tool-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.calendar {
  display: flex;
  gap: 4px;
}
.calendar > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.block {
  border-radius: 3px;
}
.f0 {
  background: var(--rhythm1);
}
.f1 {
  background: var(--sand);
}
.f2 {
  background: var(--line);
}
.todo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.todo > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--secondary);
  flex: none;
}
.small-text {
  font-size: 13px;
  color: var(--secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.overdue {
  font-weight: 600;
  font-size: 11px;
  /* Danger is the same red in both themes, so its text is a fixed light. */
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  padding: 2px 7px;
}
.reminders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notice {
  background: var(--sand);
  border-radius: 10px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
}
.notice-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}

/* AI connections */
.chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  white-space: pre-line;
}
.bubble.you {
  align-self: flex-end;
  max-width: 80%;
  background: var(--accent);
  color: var(--on-accent);
}
.bubble.ai {
  align-self: flex-start;
  max-width: 92%;
  background: var(--sand);
}
.rules {
  gap: 10px;
}
.rules .eyebrow + .rule {
  margin-top: 0;
}
.rules .eyebrow.later {
  margin-top: 8px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.mark {
  font-weight: 600;
  font-size: 16px;
  width: 18px;
  flex: none;
  color: var(--secondary);
}
.mark.ok {
  color: var(--accent);
}
.promises {
  display: flex;
  flex-direction: column;
  gap: 12px 24px;
}
.promises .rule {
  flex: 1;
}
.text-link {
  text-decoration: underline;
}

/* Close and waiting list */
.close {
  padding-top: 80px;
  padding-bottom: 80px;
}
.close .page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.campfire {
  width: 200px;
  height: 200px;
}
.close-title {
  font-size: 34px;
  line-height: 40px;
  color: var(--on-brand);
  text-align: center;
}
.form {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form input:not([type="radio"]) {
  background: var(--card);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  min-height: 48px;
  font: 16px var(--sans);
  min-width: 0;
}
.form input::placeholder {
  color: var(--secondary);
}
/* iPhone or Android: two pills on the brand color, above the fields. */
.device {
  border: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
}
.device legend {
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  text-align: center;
  font-size: 16px;
  color: var(--on-brand-secondary);
}
.device label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--on-brand-secondary);
  color: var(--on-brand);
  font: 600 16px var(--sans);
  cursor: pointer;
}
.device label:has(input:checked) {
  background: var(--on-brand);
  border-color: var(--on-brand);
  color: var(--brand);
}
.device input {
  accent-color: var(--button);
  margin: 0;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.app-icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
}
.platforms {
  margin-top: -8px;
  font-size: 15px;
  color: var(--on-brand-secondary);
}
.form-error {
  width: 100%;
  font-size: 15px;
  line-height: 28px;
  text-align: center;
}
.thanks {
  color: var(--on-brand);
}
.footer {
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--secondary);
}
[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  h1 {
    font-size: 64px;
    line-height: 68px;
  }
  h2 {
    font-size: 40px;
    line-height: 46px;
  }
  .close-title {
    font-size: 44px;
    line-height: 50px;
  }
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .hero-body {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .hero-text {
    flex: 1;
  }
  .devices .phone {
    flex-basis: 320px;
  }
  .watch {
    flex-basis: 150px;
    margin-bottom: 12px;
  }
  .pair {
    flex-direction: row;
    gap: 32px;
  }
  .usual {
    width: 300px;
    flex: none;
  }
  .ours {
    flex: 1;
  }
  .works {
    flex-direction: row;
    align-items: center;
  }
  .grid {
    flex: 1;
  }
  .tools,
  .promises {
    flex-direction: row;
  }
  .chat {
    flex-direction: row;
    gap: 32px;
  }
  .chat-window {
    flex: 3;
  }
  .chat .rules {
    flex: 2;
  }
  .form {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .form input[name="name"] {
    flex: 1;
  }
  .form input[name="email"] {
    flex: 1.3;
  }
}
.block {
  display: block;
}
.block.h1 {
  height: 9px;
}
.block.h2 {
  height: 18px;
}
.block.h3 {
  height: 27px;
}
.reminders .notice:nth-child(2) {
  margin: 0 6px;
}
.reminders .notice:nth-child(3) {
  margin: 0 12px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
