/* fulfilled.so: the homepage and the legal pages share this file. A white theme; the
   Fulfilled name is always set in Fraunces, served from /fonts (OFL, fonts/OFL.txt). */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f6f5f2;
  --card: #ffffff;
  --line: #e8e6e1;
  --line-strong: #d6d3cc;
  --ink: #141414;
  --text-2: #3d3c39;
  --muted: #6e6c67;
  --faint: #a19e97;
  --done: #2f9a5f;
  --in-progress: #d49b12;
  --violet: #7c6ad6;
  --bubble-me: #2f7bf6;
  --bubble-echo: #ecebe7;
  --radius: 20px;
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --brand: "Fraunces", "Iowan Old Style", Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* The Fulfilled name, wherever it appears as a mark. */
.wordmark {
  font-family: var(--brand);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  letter-spacing: -0.01em;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-header.solid {
  position: sticky;
  top: 0;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.button:hover svg {
  transform: translate(2px, -2px);
}

.button-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 10px 30px rgb(40 30 80 / 0.12);
}

.button-white:hover {
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 14px 40px rgb(40 30 80 / 0.18);
}

/* Hero: the full screen, over a dream-like sky. */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 96px 0 72px;
  isolation: isolate;
}

.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero h1 .lead {
  display: block;
}

/* Every phrase sits in one grid cell, so the line keeps the width of the longest and
   nothing below it moves while they change. */
.rotator {
  display: inline-grid;
  margin-top: 0.06em;
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
}

.rotator span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s;
}

.rotator span.on {
  opacity: 1;
  transform: none;
  filter: none;
}

.rotator span.off {
  transform: translateY(-0.35em);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero .button {
  margin-top: 48px;
}

/* The sky: four soft lights drifting through one another, each slowly turning from cool
   (mint, sky blue, aqua, periwinkle) to warm (apricot, rose, butter, peach) and back by way
   of a clean pastel (a straight fade passes through gray), with a few faint stars. Each
   light changes on its own clock, so the mix keeps shifting. */

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #f3fbfb;
  animation: dream-base 30s ease-in-out infinite alternate;
}

.sky > * {
  position: absolute;
}

/* Film grain over the sky, so the gradients feel like light, not plastic. */
.sky .grain {
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Fade into the page below. */
.sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(transparent, var(--bg));
}

.sky .blob {
  width: 62vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
}

.sky .b1 {
  background-color: #a9ecd9;
  top: -28vmax;
  left: -18vmax;
  animation: wander 26s ease-in-out infinite alternate, dream-1 24s ease-in-out infinite alternate;
}

.sky .b2 {
  background-color: #b6d4ff;
  top: -20vmax;
  right: -24vmax;
  animation: wander 32s ease-in-out -8s infinite alternate, dream-2 28s ease-in-out -6s infinite alternate;
}

.sky .b3 {
  background-color: #9fe3f2;
  bottom: -34vmax;
  left: 4vmax;
  animation: wander 29s ease-in-out -15s infinite alternate, dream-3 22s ease-in-out -12s infinite alternate;
}

.sky .b4 {
  background-color: #d3c8ff;
  bottom: -30vmax;
  right: -14vmax;
  animation: wander 35s ease-in-out -4s infinite alternate, dream-4 26s ease-in-out -18s infinite alternate;
}

.sky .spark {
  width: var(--size, 16px);
  aspect-ratio: 1;
  animation: glimmer 7s ease-in-out infinite;
}

.sky .spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C52 40 60 48 100 50 60 52 52 60 50 100 48 60 40 52 0 50 40 48 48 40 50 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C52 40 60 48 100 50 60 52 52 60 50 100 48 60 40 52 0 50 40 48 48 40 50 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sky .s1 { top: 16%; left: 14%; --size: 24px; }
.sky .s2 { top: 26%; left: 80%; --size: 17px; animation-delay: -1.5s; }
.sky .s3 { top: 70%; left: 22%; --size: 16px; animation-delay: -3.2s; }
.sky .s4 { top: 64%; left: 74%; --size: 26px; animation-delay: -0.8s; }
.sky .s5 { top: 11%; left: 54%; --size: 14px; animation-delay: -4.4s; }
.sky .s6 { top: 42%; left: 7%; --size: 12px; animation-delay: -2.4s; }
.sky .s7 { top: 82%; left: 60%; --size: 18px; animation-delay: -5.6s; }
.sky .s8 { top: 38%; left: 91%; --size: 12px; animation-delay: -6.2s; }

@keyframes dream-base {
  from { background-color: #f3fbfb; }
  to { background-color: #fff8f2; }
}

@keyframes dream-1 {
  from { background-color: #a9ecd9; }
  50% { background-color: #d8c8ff; }
  to { background-color: #ffc9a8; }
}

@keyframes dream-2 {
  from { background-color: #b6d4ff; }
  50% { background-color: #e6c4f4; }
  to { background-color: #ffb9cf; }
}

@keyframes dream-3 {
  from { background-color: #9fe3f2; }
  50% { background-color: #d4f2d2; }
  to { background-color: #ffe9a3; }
}

@keyframes dream-4 {
  from { background-color: #d3c8ff; }
  50% { background-color: #f2c6e6; }
  to { background-color: #ffd2b8; }
}

/* Mostly resting, briefly brighter. */
@keyframes glimmer {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.9;
    transform: scale(1) rotate(15deg);
  }
}

@keyframes wander {
  50% {
    transform: translate(10vmax, 6vmax) scale(1.1);
  }
  to {
    transform: translate(-6vmax, 10vmax) scale(0.95);
  }
}

/* Sections: alternating white and soft bands, one idea each. */

.band {
  padding: 128px 0;
}

.band.alt {
  background: var(--band);
}

.statement {
  text-align: center;
}

.statement h2 {
  max-width: 820px;
  margin: 0 auto;
}

.statement p {
  max-width: 620px;
  margin: 24px auto 0;
}

h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.band p {
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.feature .copy p {
  margin: 20px 0 0;
  max-width: 460px;
}

/* Visual on the left: the copy goes second on wide screens. */
.feature.flip .visual {
  order: -1;
}

@media (max-width: 880px) {
  .band {
    padding: 88px 0;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature.flip .visual {
    order: 0;
  }
}

/* A phone-like card that holds each section's picture. */
.screen {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 60px rgb(30 25 60 / 0.08);
  padding: 22px;
}

.screen-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--band);
  display: grid;
  place-items: center;
}

.avatar img {
  height: 22px;
  width: auto;
}

/* Chat */

.chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.msg {
  max-width: 78%;
  padding: 9px 14px;
  border-radius: 20px;
}

.msg.me {
  align-self: flex-end;
  background: var(--bubble-me);
  color: #fff;
}

.msg.echo {
  align-self: flex-start;
  background: var(--bubble-echo);
}

.msg + .msg.me,
.msg + .msg.echo {
  margin-top: 0;
}

.msg.me + .msg.echo,
.msg.echo + .msg.me {
  margin-top: 8px;
}

/* The quest map */

.quest {
  padding: 22px;
}

.quest-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.level {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.xp {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.xp i {
  display: block;
  height: 100%;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--done));
}

.tree {
  position: relative;
  margin-top: 24px;
}

.tree svg.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.links path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.links path.done {
  stroke: var(--done);
  opacity: 0.6;
}

.tier {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tier + .tier {
  margin-top: 36px;
}

.node {
  flex: 1;
  max-width: 160px;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.3;
}

.node small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

.node small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.node.done small::before {
  background: var(--done);
}

.node.active small::before {
  background: var(--in-progress);
}

.node.dream {
  max-width: 220px;
  text-align: center;
  padding: 14px 16px;
  border-color: var(--ink);
  box-shadow: 0 0 0 5px rgb(124 106 214 / 0.1);
}

.node.dream .label {
  font-family: var(--brand);
  font-style: italic;
  font-size: 19px;
}

.node.dream small {
  justify-content: center;
}

.node.dream small::before {
  background: var(--violet);
}

.node.locked {
  color: var(--muted);
  border-style: dashed;
}

/* Today's tasks */

.today-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.today-head strong {
  font-size: 17px;
  color: var(--ink);
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.35;
}

.task + .task {
  border-top: 1px solid var(--line);
}

.check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: #fff;
}

.task.done .check {
  background: var(--done);
  border-color: var(--done);
}

.task.done .t {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--faint);
}

.xp-gain {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--done);
}

.streak {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--band);
  font-size: 14px;
  color: var(--text-2);
}

/* Growing abilities */

.ability {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
}

.ability + .ability {
  border-top: 1px solid var(--line);
}

.ability .dot {
  flex: none;
  margin-top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
}

.ability.now .dot {
  background: var(--done);
  border-color: var(--done);
}

.ability strong {
  display: block;
  font-size: 15px;
}

.ability span {
  font-size: 14px;
  color: var(--muted);
}

/* Trust: a list of commitments and links, like a settings page. */

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.trust .copy p {
  margin: 20px 0 0;
  max-width: 420px;
}

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

.rows li + li {
  border-top: 1px solid var(--line-strong);
}

.rows .row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  text-decoration: none;
}

.rows strong {
  display: block;
  font-weight: 600;
}

.rows span {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

.rows .chev {
  margin-left: auto;
  flex: none;
  color: var(--faint);
}

.rows a.row:hover .chev {
  color: var(--ink);
}

@media (max-width: 880px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Closing */

.closing {
  text-align: center;
}

.closing .button {
  margin-top: 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .wordmark {
  font-size: 18px;
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Legal pages */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.legal h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.legal .updated {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal .summary {
  margin: 40px 0 0;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--band);
}

.legal .summary h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.legal .summary ul {
  margin: 0;
  padding-left: 20px;
}

.legal .toc {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}

.legal .toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.legal .toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal .toc a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .legal .toc {
    columns: 1;
  }
}

.legal h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 64px 0 0;
  scroll-margin-top: 96px;
}

.legal h3 {
  font-size: 18px;
  margin: 32px 0 0;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--text-2);
}

.legal p {
  margin: 16px 0 0;
}

.legal ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

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

.legal a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.legal .caps {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.legal table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

.legal th {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 560px) {
  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }
  .legal thead {
    display: none;
  }
  .legal td {
    border: 0;
    padding: 0;
  }
  .legal td:first-child {
    color: var(--ink);
    font-weight: 600;
    padding-top: 16px;
  }
  .legal tr {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky,
  .sky *,
  .rotator span {
    animation: none !important;
    transition: none !important;
  }
}
