/*
 * Taskly landing page. Plain CSS, no build step.
 * Shapes: interactive elements are pills, surfaces use --radius (24px).
 * The app's own colors: iOS grays, and its default accent, system blue.
 * Filled buttons use a deeper blue (#0071e3) so white labels stay above 4.5:1.
 * Light and dark from prefers-color-scheme, like the app on "Auto".
 */

:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #e5e5ea;
  --line: rgb(60 60 67 / 0.12);
  --text: #000000;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-text: #0066cc;
  --on-accent: #ffffff;
  --glow: rgb(0 122 255 / 0.2);
  --shadow: 0 24px 60px rgb(0 30 80 / 0.12);
  --radius: 24px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --line: rgb(255 255 255 / 0.1);
    --text: #ffffff;
    --muted: #98989d;
    --accent-text: #2997ff;
    --glow: rgb(10 132 255 / 0.22);
    --shadow: 0 24px 60px rgb(0 0 0 / 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.nav-links a,
.lang {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero: the headline, then the video in one wide card. */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 48px);
}

.hero-copy {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
}

/* The app icon is a graphite square: a hairline keeps it visible on black. */
.eyebrow-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}

.hero h1 {
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* Two lines on desktop, never three. */
@media (min-width: 901px) {
  .hero h1 span {
    white-space: nowrap;
  }
}

.lead {
  max-width: 40ch;
  margin: 22px auto 32px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}

.hero .ctas {
  justify-content: center;
}

.hero-stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12% 6% -8%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(90px);
}

.hero-video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

/* On a phone the script swaps in the portrait cut. */
.hero-video.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  margin-inline: auto;
}

.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font: 600 14px/1 var(--font);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.video-toggle:hover {
  background: rgb(0 0 0 / 0.78);
}

.video-toggle .icon {
  width: 16px;
  height: 16px;
}

.video-toggle .icon-play,
.video-toggle.is-paused .icon-pause {
  display: none;
}

.video-toggle.is-paused .icon-play {
  display: block;
}

.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;
}

/* Screens: the three phones under the video */

.screens {
  padding-block: clamp(32px, 5vw, 64px) 0;
}

.phones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 3vw, 40px);
  max-width: 920px;
  margin-inline: auto;
  padding-inline: 4%;
}

.phones::before {
  content: "";
  position: absolute;
  inset: 24% 10% 0;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(70px);
}

.phone {
  position: relative;
  width: 100%;
}

.phone-front {
  z-index: 2;
  margin-bottom: 7%;
}

/* Sections */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section h2 {
  max-width: 18ch;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06;
}

.section-lead {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

/* How it works: stacked rows */

.steps {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: baseline;
}

.step h3 {
  color: var(--accent-text);
  font-size: clamp(28px, 3.2vw, 40px);
}

.step p {
  max-width: 54ch;
  font-size: 19px;
}

/* Features: bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}

.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile-text {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 36px);
}

.tile h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
}

.tile p {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--muted);
}

.tile-claude {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--glow), transparent 60%),
    var(--surface);
}

.tile .prompt {
  max-width: none;
  margin-top: 0;
  color: var(--text);
}

.prompt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 clamp(24px, 3vw, 36px);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prompt .icon {
  width: 36px;
  height: 36px;
  margin-top: 4px;
  color: var(--accent-text);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  list-style: none;
}

.sources li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
}

.tile-reminders {
  grid-column: span 2;
  grid-row: span 2;
}

/* Row 1: Claude (4) + reminders (2, two rows tall). Row 2: review (2) + colors (2). */
.tile-review,
.tile-colors {
  grid-column: span 2;
}

.tile-reminders,
.tile-review,
.tile-colors {
  display: flex;
  flex-direction: column;
}

.tile-shot {
  width: min(78%, 300px);
  margin: auto auto -42%;
}

.tile-reminders .tile-shot {
  margin-bottom: -18%;
}

.tile-review,
.tile-colors {
  min-height: 460px;
}

.tile-review .tile-shot,
.tile-colors .tile-shot {
  width: min(62%, 280px);
  margin-bottom: -58%;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
}

.pills .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}

/* Desktop: the app on a computer, in a Mac window */

.desktop-shot {
  width: 100%;
  height: auto;
  margin-top: clamp(32px, 5vw, 56px);
  filter: drop-shadow(0 24px 48px rgb(0 30 80 / 0.18));
}

@media (prefers-color-scheme: dark) {
  .desktop-shot {
    filter: drop-shadow(0 24px 60px rgb(0 0 0 / 0.7));
  }
}

/* Films: one player, a tab per film */

.films {
  margin-top: clamp(32px, 5vw, 56px);
}

.film-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.film-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.film-tab .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}

.film-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.film-tab[aria-selected="true"] .icon {
  color: inherit;
}

.film-length {
  color: var(--muted);
  font-weight: 400;
}

.film-tab[aria-selected="true"] .film-length {
  color: inherit;
  opacity: 0.8;
}

.film-player {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow);
}

.film-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.film-player.is-vertical {
  max-width: 420px;
  margin-inline: auto;
}

.film-player.is-vertical video {
  aspect-ratio: 9 / 16;
}

/* Phones: the tabs stay on one line and scroll sideways. */
@media (max-width: 640px) {
  .film-tabs {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .film-tab {
    flex: none;
  }
}

/* Privacy: manifesto */

.manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

/* The mark, huge and faint, behind the headline. */
.watermark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(560px, 90vw);
  height: auto;
  translate: -50% -50%;
  color: var(--text);
  opacity: 0.05;
  pointer-events: none;
}

.manifesto h2 {
  max-width: none;
  font-size: clamp(42px, 6.8vw, 88px);
  letter-spacing: -0.04em;
}

.manifesto .section-lead {
  margin-inline: auto;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

/* Open source: copy and code */

.open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.open .section-lead {
  margin-bottom: 32px;
}

.code {
  margin: 0;
  overflow-x: auto;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font: 15px/1.9 var(--font-mono);
}

.code .prompt-sign {
  color: var(--accent-text);
  user-select: none;
}

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

/* FAQ: native disclosure, no script */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}

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

.faq-item summary:focus-visible {
  border-radius: 6px;
  outline-offset: 4px;
}

.faq-icon {
  color: var(--accent-text);
  transition: rotate 0.25s var(--ease);
}

.faq-item[open] .faq-icon {
  rotate: 45deg;
}

.faq-item p {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.faq-item a {
  color: var(--accent-text);
  text-decoration: none;
  white-space: nowrap;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* Closing: the app icon, one line, the two ways in. */

.closing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 32px;
  border-radius: 25px;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow);
}

.closing h2 {
  max-width: none;
}

.closing .section-lead {
  margin-inline: auto;
  margin-bottom: 32px;
}

.closing .ctas {
  justify-content: center;
}

/* Demo (/demo): the copy and the guide on the left, the phone on the right. */

.demo {
  padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy stage"
    "guide stage";
  align-items: start;
  gap: 32px clamp(32px, 6vw, 96px);
}

.demo-copy {
  grid-area: copy;
  align-self: end;
}

.demo-copy h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.demo-copy .lead {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.demo-guide {
  grid-area: guide;
}

.demo-steps-title {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.demo-steps {
  display: grid;
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.demo-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.demo-step h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.demo-step p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.demo-step-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.demo-step-check {
  display: none;
  width: 18px;
  height: 18px;
}

.demo-step.is-done .demo-step-mark {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.demo-step.is-done .demo-step-mark > span {
  display: none;
}

.demo-step.is-done .demo-step-check {
  display: block;
}

.demo-review {
  margin-top: 12px;
}

.demo-stage {
  display: grid;
  grid-area: stage;
  justify-items: center;
  gap: 14px;
}

.demo-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* The phone: the app's own tokens, light and dark like the app on "Auto". */

.demo-phone {
  --d-bg: #f2f2f7;
  --d-card: #ffffff;
  --d-text: #000000;
  --d-muted: #6e6e73;
  --d-sep: #e5e5ea;
  --d-fill: #e3e3e8;
  --d-accent: #007aff;
  --d-tint: color-mix(in srgb, var(--d-accent) 14%, var(--d-card));
  width: 360px;
  max-width: calc(100vw - 2 * var(--gutter));
  height: 740px;
  padding: 10px;
  border-radius: 50px;
  background: #1c1c1e;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .demo-phone {
    --d-bg: #000000;
    --d-card: #1c1c1e;
    --d-text: #ffffff;
    --d-muted: #98989d;
    --d-sep: #38383a;
    --d-fill: #2c2c2e;
    --d-accent: #0a84ff;
    background: #2c2c2e;
  }
}

.demo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  object-fit: cover;
}

.d-screen {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 40px;
  background: var(--d-bg);
  color: var(--d-text);
  font: 15px/1.35 var(--font);
}

.d-screen button {
  color: inherit;
  font: inherit;
}

.d-status {
  display: flex;
  flex: none;
  justify-content: space-between;
  padding: 14px 26px 6px;
  font-size: 14px;
  font-weight: 600;
}

.d-status .icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.d-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 6px 16px 12px;
  scrollbar-width: none;
}

.d-date {
  margin: 0;
  color: var(--d-muted);
  font-size: 13px;
}

.d-title {
  margin: -8px 0 2px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.d-card {
  border-radius: 14px;
  background: var(--d-card);
  padding: 12px;
}

.d-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.d-progress,
.d-review-ring {
  display: flex;
  align-items: center;
  gap: 12px;
}

.d-progress strong,
.d-next strong,
.d-review-ring strong {
  display: block;
  font-size: 18px;
}

.d-progress span,
.d-next > span,
.d-review-ring span {
  display: block;
  color: var(--d-muted);
  font-size: 13px;
}

.d-next {
  min-width: 0;
}

.d-next .d-next-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--d-accent);
  font-weight: 600;
}

.d-next-label .icon {
  width: 15px;
  height: 15px;
}

.d-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-accent {
  color: var(--d-accent);
}

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

.d-small {
  font-size: 13px;
}

.d-claude {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s var(--ease);
}

.d-claude:active {
  transform: scale(0.98);
}

.d-claude.is-primary {
  animation: d-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--d-accent) 45%, transparent);
}

.d-badge {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--d-fill);
  color: var(--d-accent);
}

.d-claude.is-primary .d-badge {
  background: var(--d-accent);
  color: #ffffff;
}

.d-claude-text {
  min-width: 0;
  flex: 1;
}

.d-claude-text strong {
  display: block;
  font-size: 15px;
}

.d-claude-text span {
  display: block;
  color: var(--d-muted);
  font-size: 13px;
}

.d-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--d-tint);
  font-size: 13px;
}

.d-banner .icon {
  flex: none;
  color: var(--d-accent);
}

.d-banner span {
  flex: 1;
}

.d-banner button {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--d-accent);
  cursor: pointer;
  font-weight: 600;
}

.d-caption {
  margin: 4px 0 -4px 14px;
  color: var(--d-muted);
  font-size: 13px;
}

.d-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--d-card);
  list-style: none;
}

.d-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--d-sep);
}

.d-row:last-child {
  border-bottom: 0;
}

.d-row.is-fresh {
  animation: d-in 0.45s var(--ease) both;
}

.d-check {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--d-muted);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.d-screen .d-check {
  color: #ffffff;
}

.d-check:active {
  transform: scale(0.85);
}

.d-check .icon {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.d-row.is-done .d-check {
  border-color: var(--d-accent);
  background: var(--d-accent);
}

.d-row-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.d-row-title {
  font-size: 15px;
}

.d-row > .d-row-title {
  min-width: 0;
  flex: 1;
}

.d-row.is-done .d-row-title {
  color: var(--d-muted);
  text-decoration: line-through;
}

.d-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--d-muted);
  font-size: 12px;
}

.d-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.d-meta .d-accent {
  color: var(--d-accent);
}

.d-meta .icon {
  width: 13px;
  height: 13px;
}

.d-prio {
  color: var(--d-accent);
  font-weight: 700;
}

.d-add {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 0 14px 8px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--d-card);
}

.d-add:focus-within {
  box-shadow: 0 0 0 2px var(--d-accent);
}

.d-add input {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  outline: none;
}

.d-add input::placeholder {
  color: var(--d-muted);
}

.d-tabs {
  display: flex;
  flex: none;
  justify-content: space-around;
  padding: 10px 0 18px;
  border-top: 1px solid var(--d-sep);
  color: var(--d-muted);
}

.d-tabs .icon {
  width: 24px;
  height: 24px;
}

.d-toast {
  position: absolute;
  right: 16px;
  bottom: 132px;
  left: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #3a3a3c;
  color: #ffffff;
  font-size: 13px;
  animation: d-in 0.3s var(--ease) both;
}

.d-backdrop {
  position: absolute;
  display: flex;
  align-items: flex-end;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
  animation: d-fade 0.2s both;
}

.d-sheet {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 26px;
  border-radius: 22px 22px 0 0;
  background: var(--d-bg);
  animation: d-up 0.35s var(--ease) both;
}

.d-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 700;
}

.d-bubble {
  max-width: 85%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
}

.d-you {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--d-accent);
  color: #ffffff;
}

.d-reply {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: 8px;
  border-bottom-left-radius: 4px;
  background: var(--d-card);
}

.d-spin {
  flex: none;
  animation: d-spin 1s linear infinite;
}

.d-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: var(--d-accent);
  cursor: pointer;
  font-weight: 600;
}

.d-screen .d-button {
  color: #ffffff;
}

.d-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.d-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

.d-screen .d-back {
  color: var(--d-accent);
}

.d-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--d-fill);
  cursor: pointer;
  font-size: 13px;
}

.d-screen .d-chip.d-accent {
  color: var(--d-accent);
  font-weight: 600;
}

.d-chip .icon {
  width: 15px;
  height: 15px;
}

.d-planned {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.d-foot {
  flex: none;
  padding: 10px 16px 22px;
}

@keyframes d-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes d-fade {
  from {
    opacity: 0;
  }
}

@keyframes d-up {
  from {
    opacity: 0;
    transform: translateY(40%);
  }
}

@keyframes d-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes d-pulse {
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--d-accent) 18%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-phone * {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "stage"
      "guide";
  }
}

/* Creator and footer */

.creator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: clamp(56px, 8vw, 96px);
  font-size: 17px;
}

.creator img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

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

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  text-decoration: none;
}

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

.disclaimer {
  margin-top: 20px;
}

/* Motion: the phones settle in on load, sections rise as they enter. */

@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: settle 0.9s var(--ease) both;
  }

  /* The front phone is the largest paint: it slides in but is never transparent. */
  .phone-front {
    animation-name: lift;
  }

  .phone-left {
    animation-delay: 0.12s;
  }

  .phone-right {
    animation-delay: 0.2s;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise both linear;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

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

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes lift {
  from {
    transform: translateY(28px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* Tablet and phone: one column. */

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

  .open,
  .faq {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile-claude,
  .tile-reminders,
  .tile-review,
  .tile-colors {
    grid-column: auto;
    grid-row: auto;
  }

  .tile-claude {
    min-height: 0;
    gap: 28px;
  }

  .tile-reminders,
  .tile-review,
  .tile-colors {
    min-height: 440px;
  }

  .tile-shot,
  .tile-reminders .tile-shot,
  .tile-review .tile-shot,
  .tile-colors .tile-shot {
    width: min(64%, 260px);
    margin-bottom: -40%;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .phones {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .phone-left,
  .phone-right {
    display: none;
  }

  .phone-front {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    gap: 16px;
  }

  .nav-actions .btn span {
    display: none;
  }

  .ctas .btn {
    flex: 1 1 100%;
  }

  .step p,
  .section-lead {
    font-size: 17px;
  }
}
