/* tessa.brikks.pro — the app's look on the web: black, aurora light, glass, tiles. Dark only. */

@font-face {
  font-family: 'Oranienbaum';
  src: url('/fonts/oranienbaum.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #111113;
  --card-low: #0a0a0c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --body: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.3);
  --ink: #111114;
  --violet: #8c6cff;
  --violet-light: #bba9ff;
  --rose: #ff3d6e;
  --tangerine: #ff6a2b;
  --amber: #ffd21f;
  --cyan: #2fd6ff;
  --mint: #3bf07a;
  --positive: #4ade80;
  --empty: #2a2a2f;
  --serif: 'Oranienbaum', 'Iowan Old Style', Georgia, serif;
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --r-xl: 32px;
  --r-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything, like the app's cards. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--violet-light);
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted {
  color: var(--muted);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.glass {
  background: rgba(20, 20, 22, 0.62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font: 600 17px/1 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
}

.mark i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--violet);
}

.mark i:nth-child(2) {
  background: #5b4aa6;
}

.mark i:nth-child(3) {
  background: #3a3168;
}

.mark i:nth-child(4) {
  background: #7a5fe0;
}

.links {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}

.links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.links a:hover {
  color: var(--text);
}

.links a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  font: 500 14px/1 var(--sans);
  text-decoration: none;
}

/* ---------- Buttons and tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 7px 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.btn .arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: rotate(45deg);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white .arrow {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost .arrow {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  height: 44px;
  padding: 0 6px 0 18px;
  font-size: 14px;
}

.btn-sm .arrow {
  width: 32px;
  height: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--body);
  font: 500 14px/1 var(--sans);
}

.tag .num {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.tag .dot {
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.round {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.round:hover {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Aurora rims: glowing outlines that drift behind headings ---------- */

.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Page-wide behind the hero, fading out at the top and bottom instead of a hard edge. */
.hero .aurora,
.page-head .aurora {
  inset: -120px auto -160px 50%;
  width: 100vw;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}

.rim {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 47% 53% 60% 40% / 50% 42% 58% 50%;
  padding: 2px;
  background: conic-gradient(from 200deg, var(--violet), var(--rose) 22%, var(--tangerine) 36%, var(--amber) 44%, transparent 56%, transparent 74%, var(--cyan) 88%, var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: turn 46s linear infinite;
}

.rim.soft {
  padding: 26px;
  filter: blur(26px);
  opacity: 0.55;
}

.rim.r1 {
  width: min(640px, 120vw);
  top: -6%;
  right: -12%;
}

.rim.r2 {
  width: min(460px, 90vw);
  bottom: -34%;
  left: -16%;
  animation-duration: 60s;
  animation-direction: reverse;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.glow.g1 {
  width: 420px;
  height: 420px;
  top: 10%;
  right: 8%;
  background: var(--violet);
}

.glow.g2 {
  width: 320px;
  height: 320px;
  bottom: 0;
  left: 6%;
  background: var(--tangerine);
  opacity: 0.22;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 72px 0 40px;
}

.display {
  margin: 28px 0 28px;
  font: 400 clamp(48px, 8.8vw, 112px) / 1 var(--serif);
  letter-spacing: -0.015em;
}

.display span {
  display: block;
  text-wrap: balance;
}

.lead {
  max-width: 30em;
  margin: 0;
  color: var(--body);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.stats b {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 400 clamp(44px, 6vw, 64px) / 1 var(--serif);
}

/* A thin leader line after each number. */
.stats b::after {
  content: '';
  flex: 1;
  max-width: 64px;
  height: 1px;
  background: var(--line-2);
}

.stats span {
  display: block;
  max-width: 13em;
  margin-top: 10px;
  color: var(--muted);
  font: 400 15px/1.4 var(--sans);
}

.year-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.year-caption i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 25%;
  background: var(--violet);
}

/* A year of one habit: 53 weeks of tiles that light up left to right. */
.year {
  display: grid;
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
}

.year i {
  display: block;
  aspect-ratio: 1;
  border-radius: 25%;
  background: var(--empty);
}

.year i.on {
  animation: light 0.7s ease-out both;
  animation-delay: var(--d, 0ms);
}

.year i.today {
  outline: 1.5px solid var(--violet-light);
  outline-offset: 1px;
}

@keyframes light {
  from {
    background: var(--empty);
  }
}

.ticker {
  margin-top: 48px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  white-space: nowrap;
  color: var(--body);
  font: 500 clamp(18px, 2.4vw, 26px)/1 var(--sans);
  letter-spacing: -0.01em;
}

.ticker-track {
  display: inline-flex;
  padding: 22px 0;
  animation: marquee 48s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
}

/* Each habit name gets a tile in its own color, like a card in the app. */
.ticker-track span::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  margin: 0 0.6em 0 1.4em;
  border-radius: 25%;
  background: var(--c, var(--violet));
  box-shadow: 0 0 12px var(--c, var(--violet));
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 0 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.title {
  max-width: 14em;
  text-wrap: balance;
  margin: 22px 0 0;
  font: 400 clamp(40px, 6.2vw, 80px) / 1.02 var(--serif);
  letter-spacing: -0.01em;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--card), var(--card-low));
}

.card h3 {
  margin: 0;
  font: 400 clamp(30px, 3.2vw, 40px) / 1.05 var(--serif);
}

.card p {
  max-width: 26em;
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

.card .tag {
  align-self: flex-start;
}

/* Room for the "// 00x" number when the heading starts the card. */
.c-goal h3,
.c-private h3 {
  padding-right: 56px;
}

.card .num {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--faint);
  font: 500 13px/1 var(--sans);
}

.card .spacer {
  flex: 1;
}

.c-app {
  grid-column: span 4;
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
}

.c-app .copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 260px;
}

.c-goal {
  grid-column: span 2;
  border: 0;
  background: var(--violet);
  color: var(--ink);
}

.c-goal p {
  color: rgba(17, 17, 20, 0.78);
}

.c-goal .num,
.c-goal .hint {
  color: rgba(17, 17, 20, 0.55);
}

.c-streak,
.c-share,
.c-private {
  grid-column: span 2;
}

/* Habit cards copied from the app: dark glass, light rising from the bottom, a rim glow. */
.habits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 12px;
  align-self: center;
}

.habit {
  --rgb: 140 108 255;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  background:
    radial-gradient(130% 70% at 50% 125%, rgb(var(--rgb) / 0.55), transparent 62%),
    rgb(var(--rgb) / 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgb(var(--rgb) / 0.7),
    inset 0 -22px 44px -26px rgb(var(--rgb) / 0.95);
}

.habit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.habit-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.habit-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: rgb(var(--rgb));
}

.habit-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}

.habit-grid i {
  display: block;
  aspect-ratio: 1;
  border-radius: 25%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.habit-grid i.today {
  outline: 1.2px solid rgb(var(--rgb) / 0.9);
  outline-offset: 1px;
}

.habit.done .habit-grid i.today {
  box-shadow: 0 0 10px 1px rgb(var(--rgb) / 0.9);
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.check:active {
  transform: scale(0.95);
}

.habit.done .check {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.check svg {
  width: 18px;
  height: 18px;
}

.stepper {
  justify-content: space-between;
  padding: 0 4px;
  cursor: default;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 17px;
  cursor: pointer;
}

.habit.done .stepper button {
  background: rgba(0, 0, 0, 0.08);
}

.stepper .count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 15px/1 var(--sans);
}

.habit.done .count small {
  display: none;
}

.stepper .count small {
  font-size: 13px;
  opacity: 0.55;
}

.hint {
  color: var(--faint);
  font: 500 13px/1.4 var(--sans);
}

/* Ten shades of one color, as the app ramps a tile from a small day to a met goal. */
.ramp {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  padding: 14px;
  border-radius: 20px;
  background: var(--ink);
}

.ramp i {
  display: block;
  aspect-ratio: 1;
  border-radius: 25%;
}

.ramp-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  padding: 0 4px;
  color: rgba(17, 17, 20, 0.6);
  font: 500 12px/1 var(--sans);
}

/* Streak card, as on the habit screen. */
.streak-number {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  font: 400 128px/0.9 var(--serif);
  letter-spacing: -0.02em;
}

.streak-number svg {
  width: 28px;
  height: 28px;
  margin-top: 14px;
  color: var(--tangerine);
  filter: drop-shadow(0 0 10px rgba(255, 106, 43, 0.7));
}

.streak-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--body);
  font: 500 13px/1.3 var(--sans);
}

.chip.up {
  color: var(--positive);
}

/* Story pictures fanned out like a carousel. */
.stories {
  position: relative;
  height: 210px;
  margin: 4px 0 6px;
}

.story {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 118px;
  height: 210px;
  padding: 14px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: radial-gradient(120% 50% at 50% 115%, rgb(140 108 255 / 0.35), transparent 70%), #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.story.back {
  transform: translateX(-104%) rotate(-8deg) scale(0.9);
  opacity: 0.55;
}

.story.front {
  transform: translateX(-50%) rotate(2deg);
  z-index: 1;
}

.story.side {
  transform: translateX(4%) rotate(10deg) scale(0.9);
  opacity: 0.55;
}

.story b {
  display: block;
  text-align: center;
  font: 400 17px/1.1 var(--serif);
}

.story .cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.story .cal i {
  display: block;
  aspect-ratio: 1;
  border-radius: 25%;
  background: var(--empty);
}

.story small {
  display: block;
  text-align: center;
  color: var(--faint);
  font: 500 7px/1 var(--sans);
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.figures b {
  display: block;
  font: 400 34px/1 var(--serif);
}

.figures span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 500 12px/1.3 var(--sans);
}

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 112px;
  padding: 88px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: linear-gradient(180deg, #0d0d0f, #050506);
  text-align: center;
}

.cta .actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 96px;
}

.wordmark {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 400 clamp(72px, 19vw, 248px) / 0.85 var(--serif);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 500 13px/1.6 var(--sans);
}

.foot-row a {
  color: var(--muted);
  text-decoration: none;
}

.foot-row a:hover {
  color: var(--text);
}

.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- Support and privacy ---------- */

.page-head {
  position: relative;
  isolation: isolate;
  padding: 72px 0 48px;
}

.page-head .title {
  max-width: 12em;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin-top: 22px;
  font-size: clamp(48px, 8vw, 104px);
}

.page-head .lead {
  margin-top: 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
}

.contact .card {
  grid-column: auto;
  min-height: 260px;
}

.contact .email {
  color: var(--ink);
  font: 400 clamp(30px, 4.4vw, 52px) / 1.05 var(--serif);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.c-goal .round {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 12px;
}

.faq details {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), var(--card-low));
}

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

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

.faq summary .n {
  flex: none;
  padding-top: 3px;
  color: var(--faint);
  font: 500 13px/1.4 var(--sans);
}

.faq summary .q {
  flex: 1;
}

.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: -3px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.25s ease;
}

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

.faq details p {
  margin: 12px 0 0 34px;
  color: var(--body);
  font-size: 15px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), var(--card-low));
}

.fact b {
  display: block;
  font: 400 34px/1.05 var(--serif);
}

.fact span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.doc {
  margin-top: 12px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 40px;
  background: linear-gradient(180deg, #0d0d0f, #060607);
}

.doc > :first-child {
  margin-top: 0;
}

.doc h2 {
  margin: 48px 0 12px;
  font: 400 32px/1.15 var(--serif);
}

.doc p,
.doc li {
  max-width: 44em;
  color: var(--body);
}

.doc ul {
  padding-left: 1.2em;
}

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

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .c-app {
    grid-column: span 6;
  }

  .c-goal,
  .c-streak,
  .c-share {
    grid-column: span 3;
  }

  .c-private {
    grid-column: span 6;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --r-xl: 28px;
  }

  body {
    font-size: 16px;
  }

  .nav {
    position: relative;
    grid-template-columns: 1fr auto;
    padding-top: 12px;
  }

  .nav .links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav .links::-webkit-scrollbar {
    display: none;
  }

  .links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav-end .btn {
    display: none;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .display {
    margin: 22px 0 20px;
  }

  .lead {
    font-size: 17px;
  }

  .actions .btn {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .stats {
    gap: 12px;
    margin-top: 40px;
  }

  .stats b::after {
    display: none;
  }

  .stats span {
    font-size: 13px;
  }

  .year {
    gap: 3px;
  }

  .ticker {
    margin-top: 36px;
  }

  .section {
    padding-top: 80px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .bento,
  .contact,
  .faq,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-app,
  .c-goal,
  .c-streak,
  .c-share,
  .c-private {
    grid-column: auto;
  }

  .card {
    min-height: 0;
    padding: 24px 20px;
  }

  .card .num {
    top: 24px;
    right: 20px;
  }

  .c-app {
    flex-direction: column;
  }

  .habits {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streak-number {
    font-size: 112px;
  }

  .cta {
    margin-top: 80px;
    padding: 64px 18px;
    border-radius: 32px;
  }

  .cta .actions .btn {
    flex: 1 1 100%;
  }

  .foot {
    margin-top: 72px;
  }

  .page-head {
    padding: 36px 0 32px;
  }

  .page-head .title {
    font-size: clamp(32px, 10vw, 56px);
  }

  .faq details p {
    margin-left: 0;
  }

  .doc {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rim,
  .ticker-track,
  .year i.on {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
