:root {
  color-scheme: dark;
  --bg: #070708;
  --ink: #fbf8f3;
  --muted: #a39e94;
  --accent: #e0a15a;
  --accent-deep: #c4783a;
  --accent-ink: #161513;
  --accent-soft: #3a2a1c;
  --line: #2c2c30;
  --surface: #141416;
  --well: #1c1c20;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(820px 420px at 88% -10%, rgba(224, 161, 90, 0.09), transparent 60%),
    radial-gradient(640px 380px at -10% 100%, rgba(224, 161, 90, 0.05), transparent 55%),
    var(--bg);
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
}

.display {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.header-inner,
.site-header:not(:has(.header-inner)) {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  min-height: 4.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex: none;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-header nav a,
.nav-panel a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.nav-panel a:hover {
  color: var(--ink);
}

.site-header:not(:has(.header-inner)) nav {
  margin-left: auto;
  display: flex;
  gap: 1.15rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.55rem;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  background: #e8b06e;
}

.btn-small {
  padding: 0.48rem 0.9rem;
  font-size: 0.88rem;
}

.nav-drawer {
  display: none;
  position: relative;
}

.nav-drawer summary {
  list-style: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger::before {
  top: -5px;
}

.burger::after {
  top: 5px;
}

.nav-panel {
  display: none;
}

.nav-drawer[open] .nav-panel {
  display: grid;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 13.5rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.nav-panel a {
  padding: 0.7rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--ink);
}

.hero {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vh, 5rem) 0 3.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 5.2vw, 4.35rem);
  max-width: 12em;
}

.hero h1 span {
  display: block;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 10.6rem;
  padding: 0.65rem 1.05rem 0.7rem;
  border-radius: 0.85rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.store-btn:hover {
  text-decoration: none;
  background: #e8b06e;
}

.store-btn[aria-disabled='true'] {
  cursor: default;
}

.store-btn-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

.store-btn-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-note,
.hero-meta {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta {
  margin-top: 0.35rem;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 34rem;
}

.device {
  width: min(100%, 22.5rem);
  background: #101012;
  border: 1px solid var(--line);
  border-radius: 2.4rem;
  padding: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 70px rgba(0, 0, 0, 0.5);
}

.device-screen {
  position: relative;
  height: 36rem;
  overflow: hidden;
  background: var(--bg);
  border-radius: 1.95rem;
  padding: 1.35rem 0.85rem 0;
}

.island {
  width: 5.2rem;
  height: 1.05rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: #000;
}

.appbar {
  display: grid;
  grid-template-columns: 2rem 1fr auto 2rem;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.appbar-title {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.icon-btn,
.add-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
}

.icon-btn {
  color: var(--muted);
  border: 1px solid var(--line);
}

.add-btn {
  background: var(--accent);
  color: var(--accent-ink);
}

.pro-chip {
  justify-self: end;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.today-line {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.habit {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.55rem 0.6rem 0.65rem;
  margin-bottom: 0.5rem;
  background: #101012;
}

.habit header,
.board-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.habit header div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.habit strong,
.board-head strong {
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.habit header span,
.board-head span {
  color: var(--muted);
  font-size: 0.72rem;
}

.disc {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--c);
  flex: none;
}

.tile-grid {
  display: grid;
  grid-auto-flow: column;
  gap: 3px;
}

.tile {
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--well);
}

.tile.is-filled {
  background: var(--cell, var(--accent));
}

.tile.is-today {
  outline: 1.5px solid var(--cell, var(--accent));
  outline-offset: 1px;
}

.screen-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7.5rem;
  background: linear-gradient(transparent, var(--bg) 62%);
  pointer-events: none;
}

.switcher {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 1;
}

.seg {
  width: 2.35rem;
  height: 2.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.seg.on {
  background: var(--accent);
  color: var(--accent-ink);
}

.widget {
  position: absolute;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(calc(-50% - 6.6rem));
  z-index: 3;
  width: 11.5rem;
  padding: 0.8rem 0.85rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.widget-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.widget li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.widget li.done {
  color: var(--muted);
  font-weight: 500;
}

.check {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--c, var(--line));
  flex: none;
}

.check.on {
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.facts {
  border-block: 1px solid var(--line);
}

.facts ul {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.35rem 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.facts strong {
  display: block;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

section[id] {
  scroll-margin-top: 4.6rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.section-head h2,
.close h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}

.steps li {
  padding: 1.35rem 1.3rem 1.5rem;
  border-right: 1px solid var(--line);
}

.steps li:last-child {
  border-right: 0;
}

.step-n {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.steps h3,
.feature-copy h3,
.feature-split h3,
.specs h3,
.plans h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.steps p,
.feature-copy p,
.feature-split p,
.specs p,
.plan-note {
  margin: 0;
  color: var(--muted);
}

.uses {
  border-block: 1px solid var(--line);
  padding: 1.6rem 0;
  text-align: center;
}

.uses p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.uses ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.55rem;
  margin: 0;
  padding: 0 1.2rem;
}

.uses li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.feature-lead {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.board {
  min-width: 0;
}

.tile-grid-year {
  gap: 4px;
}

.feature-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}

.feature-split article {
  padding: 1.2rem 1.2rem 1.35rem;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.feature-split article:last-child {
  border-right: 0;
}

.modes {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.modes > div > span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-pips,
.month-pips {
  display: flex;
  gap: 0.28rem;
}

.month-pips {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
}

.week-pips i,
.month-pips i {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--well);
  display: block;
}

.week-pips i.on,
.month-pips i.on {
  background: var(--c, var(--cell, #2f6fed));
}

.month-pips {
  --cell: #2f6fed;
}

.month-pips i.on {
  background: var(--cell);
}

.week-pips i.today,
.month-pips i.today {
  outline: 1.5px solid var(--c, var(--cell, #2f6fed));
  outline-offset: 1px;
}

.pace {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.pace span {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.bar {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--well);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 1rem 0 0;
}

.stats div {
  background: var(--bg);
  border-radius: 0.75rem;
  padding: 0.55rem 0.4rem 0.5rem;
  text-align: center;
}

.stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.specs {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}

.specs li {
  padding: 1.15rem 1.1rem 1.3rem;
  border-right: 1px solid var(--line);
}

.specs li:last-child {
  border-right: 0;
}

.swatches {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.swatches i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  display: block;
}

.spec-mono {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.85rem;
}

.plans article {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1.35rem 1.3rem 1.45rem;
}

.plan-pro {
  background:
    linear-gradient(180deg, rgba(224, 161, 90, 0.14), transparent 38%),
    var(--surface);
  border-color: #5c4330;
}

.plans ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.plans li {
  position: relative;
  padding-left: 1rem;
}

.plans li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 2px;
  background: var(--line);
}

.plan-pro li::before {
  background: var(--accent);
}

.prices {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.prices li {
  padding: 0.7rem 0.55rem;
  border-radius: 0.8rem;
  background: var(--bg);
  text-align: center;
}

.prices li::before {
  display: none;
}

.prices span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.prices strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.plan-note {
  margin-top: 1rem;
  font-size: 0.86rem;
}

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

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

.faq summary {
  cursor: pointer;
  padding: 1rem 0.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin: 0 0 1.05rem;
  color: var(--muted);
  max-width: 62ch;
}

.close {
  text-align: center;
  padding: 4.5rem 1.2rem 4.8rem;
  border-top: 1px solid var(--line);
  background: radial-gradient(420px 180px at 50% 0%, rgba(224, 161, 90, 0.1), transparent 70%);
}

.close .lede {
  margin: 0.8rem auto 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand-block p:last-child {
  margin: 0;
  max-width: 24ch;
}

.footer-label {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0.2rem 0;
}

.footer-inner a {
  color: var(--muted);
}

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

.footer-copy {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  width: min(40rem, calc(100% - 2.4rem));
}

.legal h1 {
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.legal h2 {
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-drawer {
    display: block;
  }

  .header-tools {
    margin-left: auto;
  }

  .hero,
  .facts ul,
  .steps,
  .feature-lead,
  .feature-split,
  .specs,
  .plans,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .steps li,
  .feature-split article,
  .specs li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child,
  .feature-split article:last-child,
  .specs li:last-child {
    border-bottom: 0;
  }

  .hero-stage {
    min-height: 0;
    flex-direction: column;
    align-items: center;
  }

  .widget {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 0.85rem;
    margin-left: auto;
    width: min(16rem, 92%);
  }

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

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .device {
    width: min(100%, 20.5rem);
  }

  .device-screen {
    height: 32rem;
  }

  .facts ul,
  .specs {
    grid-template-columns: 1fr;
  }

  .btn-small {
    display: none;
  }
}

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