/* ============================================================
   Sharingan — landing
   Palette: obsidian #0a0b0d · red #c62828→#ff1744 · ink #ece9e4
   Type: display serif (Iowan/Palatino) + SF grotesk body
   Signature: the living WebGL eyes behind everything.
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --ink: #ece9e4;
  --muted: #9a948c;
  --red: #ff1744;
  --red-deep: #c62828;
  --hairline: rgba(236, 233, 228, 0.08);
  --glass: rgba(18, 19, 23, 0.55);
  --nav-bg: rgba(10, 11, 13, 0.55);
  --scrim: rgba(10, 11, 13, 0.78);
  --shadow-ink: rgba(10, 11, 13, 0.9);
  --demo-bg: #101114;
  --font-display: "Iowan Old Style", "Palatino", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4f0;
  --ink: #17181c;
  --muted: #6d675f;
  --hairline: rgba(23, 24, 28, 0.1);
  --glass: rgba(255, 255, 255, 0.6);
  --nav-bg: rgba(246, 244, 240, 0.65);
  --scrim: rgba(246, 244, 240, 0.8);
  --shadow-ink: rgba(246, 244, 240, 0.9);
  --demo-bg: #ece8e2;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- background layers ---- */

#bg-eyes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}
#bg-eyes.dimmed { opacity: 0.18; }

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 72%, rgba(198, 40, 40, 0.1), transparent 70%),
    var(--bg);
}

/* ---- type ---- */

h1 {
  font: 700 clamp(2.7rem, 7.5vw, 5.4rem)/1.04 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font: 600 clamp(1.75rem, 4vw, 2.7rem)/1.12 var(--font-display);
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

h3 { font: 600 1.06rem/1.35 var(--font-body); letter-spacing: -0.01em; }

.red {
  background: linear-gradient(120deg, var(--red-deep), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(255, 23, 68, 0.09);
  border: 1px solid rgba(255, 23, 68, 0.15);
  border-radius: 6px;
  padding: 0.08em 0.4em;
}

a { color: inherit; }

::selection { background: rgba(255, 23, 68, 0.35); }

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

/* ---- nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  font: 700 1.15rem/1 var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand-dot { color: var(--red); }

.nav nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.8rem); }

.nav nav > a:not(.btn) {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav nav > a:not(.btn):hover { color: var(--ink); }
.nav nav > a.active { color: var(--ink); }
.nav nav > a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-red {
  color: #fff;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  box-shadow: 0 0 32px rgba(255, 23, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 44px rgba(255, 23, 68, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: rgba(236, 233, 228, 0.03);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}
.btn-ghost:hover { border-color: rgba(255, 23, 68, 0.4); }

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: rgba(255, 23, 68, 0.4); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.cta-meta {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ---- layout ---- */

main { position: relative; z-index: 1; }

section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) 1.5rem;
}

.section-sub {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 2.2rem;
}
.section-sub strong { color: var(--ink); font-weight: 600; }

/* ---- hero ---- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 9rem;
  position: relative;
}

/* legibility scrim: the headline floats over the eyes, so pool a little
   darkness behind the text block without killing the glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 24% -12% 10%;
  background: radial-gradient(52% 46% at 50% 48%, var(--scrim), transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { text-shadow: 0 2px 28px var(--shadow-ink); }

/* hero entrance is pure CSS so the headline paints without waiting for JS
   (data-reveal would hold it at opacity 0 until the module loads) */
.hero .eyebrow, .hero h1, .hero .sub, .hero .cta-row {
  animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.07s; }
.hero .sub { animation-delay: 0.14s; }
.hero .cta-row { animation-delay: 0.22s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
}

.hero .sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 1.4rem 0 2.4rem;
}

.cta-row { display: flex; flex-direction: column; align-items: center; }
.cta-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

/* at-a-glance stats strip under the hero CTA */
.stats {
  list-style: none;
  padding: 0;
  margin: 3.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both;
}
.stats li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.3rem 1.4rem;
}
.stats li + li { border-left: 1px solid var(--hairline); }
.stats strong {
  display: block;
  font: 700 1.5rem/1.2 var(--font-display);
  color: var(--ink);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--red), transparent);
  overflow: hidden;
}
.scroll-hint span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: #fff;
  opacity: 0.7;
  animation: hint-drop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes hint-drop { to { top: 110%; } }

/* ---- feature grid ---- */

.grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.4rem;
}

.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: rgba(255, 23, 68, 0.35);
  box-shadow: 0 8px 40px rgba(255, 23, 68, 0.1);
  transform: translateY(-3px);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---- terminal ---- */

.terminal {
  background: rgba(8, 9, 11, 0.82);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  max-width: 720px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(236, 233, 228, 0.14);
}
.terminal-bar span:first-child { background: rgba(255, 23, 68, 0.55); }
.terminal-bar em {
  margin-left: auto;
  margin-right: auto;
  font: 400 0.75rem/1 var(--font-mono);
  color: var(--muted);
  font-style: normal;
}

#terminal-body {
  font: 400 0.88rem/1.8 var(--font-mono);
  padding: 1.1rem 1.25rem 1.4rem;
  min-height: 265px;
  white-space: pre-wrap;
  color: #cfcac2;
}
#terminal-body .t-out { color: var(--muted); }
#terminal-body .t-red { color: var(--red); }
#terminal-body .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--red);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---- faq ---- */

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.faq-list details {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s ease;
}
.faq-list details[open] { border-color: rgba(255, 23, 68, 0.3); }
.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--red);
  font: 400 1.3rem/1 var(--font-body);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.94rem; }

/* ---- download ---- */

#download { text-align: center; padding-bottom: 8rem; }
#download .section-sub { margin-left: auto; margin-right: auto; }

/* ---- footer ---- */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

.footer-cols {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { font: 700 1.1rem/1 var(--font-display); color: var(--ink); }
.footer-tag { margin-top: 0.5rem; }
.footer-cols h3 {
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.footer-cols nav { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer-legal {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
}

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

/* ---- reveal ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* below-fold mock/feature animations stay paused until their section is
   revealed, so page load spends zero CPU animating what nobody sees */
[data-reveal]:not(.is-visible) *,
[data-reveal]:not(.is-visible) *::before,
[data-reveal]:not(.is-visible) *::after { animation-play-state: paused !important; }

/* ---- responsive ---- */

@media (max-width: 640px) {
  .nav nav > a:not(.btn):not(:first-child) { display: none; }
  #terminal-body { min-height: 300px; }
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint span, #terminal-body .caret { animation: none; }
  .hero .eyebrow, .hero h1, .hero .sub, .hero .cta-row { animation: none; }
  .btn, .card { transition: none; }
}

/* ---- pillars (Pomodoro / Tasks / Eye health) ---- */

.pillar-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.2rem;
  align-items: center;
  margin-top: 2.2rem;
}
.pillar-grid--flip { grid-template-columns: 1fr 1.15fr; }
.pillar-grid--flip .mock { order: 2; }

.pillar-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pillar-points li {
  color: var(--muted);
  font-size: 0.94rem;
  padding-left: 1.15rem;
  position: relative;
}
.pillar-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 4%;
  transform: rotate(-45deg);
  background: radial-gradient(circle at 32% 30%, #ff8a9e 0 18%, var(--red) 42%, var(--red-deep));
}
.pillar-points strong { color: var(--ink); font-weight: 600; }

@media (max-width: 800px) {
  .pillar-grid, .pillar-grid--flip { grid-template-columns: 1fr; }
  .pillar-grid--flip .mock { order: 0; }
}

/* ---- "Try it live" cards ---- */

.try-card {
  margin-top: 2.2rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 1.6rem;
}
.try-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
.try-head p { color: var(--muted); font-size: 0.9rem; }
.try-badge {
  flex-shrink: 0;
  font: 700 0.72rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

/* quick add */
#qa-input {
  width: 100%;
  font: 500 0.95rem/1.4 var(--font-mono);
  color: var(--ink);
  background: rgba(8, 9, 11, 0.4);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s ease;
}
:root[data-theme="light"] #qa-input { background: rgba(255, 255, 255, 0.7); }
#qa-input:focus { border-color: rgba(255, 23, 68, 0.5); }
.qa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.9rem;
  margin-top: 0.7rem;
}
.qa-chip {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(236, 233, 228, 0.03);
}
.qa-chip.qa-title { color: var(--ink); border-color: rgba(255, 23, 68, 0.35); }
.qa-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.qa-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.25s ease;
}
.qa-list li:hover { border-color: rgba(255, 23, 68, 0.3); }
.qa-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.qa-task-title { font-size: 0.92rem; }
.qa-meta { margin-left: auto; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.qa-list li.done { opacity: 0.45; }
.qa-list li.done .qa-task-title { text-decoration: line-through; }

/* ============================================================
   Product mocks — the app's UI rebuilt by hand in CSS.
   Always dark (they are product shots), whatever the page theme.
   ============================================================ */

.mock {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: #0e1013;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.mock--panel { max-width: 380px; width: 100%; justify-self: center; }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(236, 233, 228, 0.07);
}
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(236, 233, 228, 0.13); }
.mock-bar span:first-child { background: rgba(255, 23, 68, 0.55); }
.mock-bar em {
  margin: 0 auto;
  font: 500 0.75rem/1 var(--font-body);
  font-style: normal;
  letter-spacing: 0.06em;
  color: rgba(236, 233, 228, 0.45);
}

/* shared: stacked lines that take turns (quarters of the loop) —
   fully out by 24% so the next line never overlaps at the loop seam */
@keyframes q-cycle {
  0%, 2% { opacity: 0; }
  6%, 20% { opacity: 1; }
  24%, 100% { opacity: 0; }
}

/* -- timer mock ------------------------------------------------ */

.mt-body {
  padding: 2.2rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.mt-ringwrap { position: relative; width: 208px; height: 208px; }
.mt-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.mt-track { fill: none; stroke: rgba(236, 233, 228, 0.09); stroke-width: 7; }
.mt-prog {
  fill: none;
  stroke: var(--red);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 100;
  animation: mt-prog 12s linear infinite;
}
@keyframes mt-prog {
  0% { stroke-dashoffset: 330; stroke: var(--red); }
  71% { stroke-dashoffset: 26; stroke: var(--red); }
  73% { stroke-dashoffset: 330; stroke: #34d399; }
  100% { stroke-dashoffset: 26; stroke: #34d399; }
}
.mt-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mt-digits {
  display: grid;
  place-items: center;
  font: 700 2.3rem/1 var(--font-display);
  letter-spacing: 0.02em;
  color: #ece9e4;
}
.mt-digits i { grid-area: 1 / 1; font-style: normal; opacity: 0; animation: q-cycle 12s linear infinite; }
.mt-digits i:nth-child(2) { animation-delay: 3s; }
.mt-digits i:nth-child(3) { animation-delay: 6s; }
.mt-digits i:nth-child(4) { animation-delay: 9s; }
.mt-phase {
  display: grid;
  place-items: center;
  margin-top: 0.5rem;
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mt-phase i { grid-area: 1 / 1; font-style: normal; }
.mt-phase i:first-child { color: var(--red); animation: mt-phF 12s linear infinite; }
.mt-phase i:last-child { color: #34d399; opacity: 0; animation: mt-phB 12s linear infinite; }
@keyframes mt-phF { 0%, 71% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes mt-phB { 0%, 71% { opacity: 0; } 75%, 98% { opacity: 1; } 100% { opacity: 0; } }
.mt-dots { display: flex; gap: 8px; }
.mt-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(236, 233, 228, 0.14); }
.mt-dots .on { background: var(--red); opacity: 0.85; }
.mt-dots .cur {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
  animation: mt-pulse 1.6s ease-in-out infinite;
}
@keyframes mt-pulse { 50% { transform: scale(1.4); } }

/* -- tasks mock ------------------------------------------------ */

.tk-list {
  list-style: none;
  padding: 0.9rem 0.9rem 0.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(236, 233, 228, 0.07);
  border-radius: 11px;
  background: rgba(236, 233, 228, 0.025);
  font-size: 0.85rem;
  color: #d8d4cd;
}
.tk-box {
  position: relative;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(236, 233, 228, 0.3);
}
.tk-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
}
.tk-flag { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex-shrink: 0; }
.tk-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-meta { margin-left: auto; font-size: 0.7rem; color: rgba(236, 233, 228, 0.4); white-space: nowrap; }

/* first task completes mid-loop, then resets */
.tk-done .tk-box { animation: tk-boxfill 10s linear infinite; }
.tk-done .tk-box::after { animation: tk-tick 10s linear infinite; }
.tk-done .tk-title {
  text-decoration: line-through;
  text-decoration-color: transparent;
  animation: tk-strike 10s linear infinite;
}
@keyframes tk-boxfill {
  0%, 14% { background: transparent; border-color: rgba(236, 233, 228, 0.3); }
  18%, 86% { background: var(--red); border-color: var(--red); }
  92%, 100% { background: transparent; border-color: rgba(236, 233, 228, 0.3); }
}
@keyframes tk-tick {
  0%, 14% { transform: rotate(45deg) scale(0); }
  18%, 86% { transform: rotate(45deg) scale(1); }
  92%, 100% { transform: rotate(45deg) scale(0); }
}
@keyframes tk-strike {
  0%, 14% { text-decoration-color: transparent; color: #d8d4cd; }
  18%, 86% { text-decoration-color: rgba(236, 233, 228, 0.5); color: rgba(236, 233, 228, 0.45); }
  92%, 100% { text-decoration-color: transparent; color: #d8d4cd; }
}

/* the quick-added task slides in partway through the loop */
.tk-new { overflow: hidden; animation: tk-arrive 10s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
@keyframes tk-arrive {
  0%, 50% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: -0.45rem; border-width: 0; transform: translateY(-6px); }
  57%, 90% { max-height: 44px; opacity: 1; padding-top: 0.6rem; padding-bottom: 0.6rem; margin-top: 0; border-width: 1px; transform: none; }
  96%, 100% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: -0.45rem; border-width: 0; transform: translateY(-6px); }
}

.tk-quick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0.9rem 0.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px dashed rgba(236, 233, 228, 0.16);
  border-radius: 11px;
  font: 500 0.8rem/1 var(--font-mono);
  color: rgba(236, 233, 228, 0.45);
}
.tk-quick b { color: var(--red); }
.tk-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--red);
  animation: caret-blink 1s steps(1) infinite;
}

/* -- break-screen mock ----------------------------------------- */

.mock-break { background: #0b0c0f; padding-bottom: 1.4rem; }
.bk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem 0;
}
.bk-head strong { font: 700 1.05rem/1 var(--font-display); color: #ece9e4; }
.bk-chip {
  font: 500 0.72rem/1 var(--font-body);
  color: rgba(236, 233, 228, 0.55);
  background: rgba(236, 233, 228, 0.07);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
}
.bk-eyes { display: flex; justify-content: center; gap: 2.4rem; padding: 2.7rem 0 2.3rem; }
/* the app's MoveEyeShape almond, same Bézier control points:
   outer tip (0,.06) → upper lid C1(.32,−.10) C2(.76,.20) → inner (1,.94)
   → lower lid back C1(.52,1.08) C2(.07,.86), scaled to 112×53 (+5px pad) */
.bk-eye {
  position: relative;
  width: 112px;
  height: 60px;
  background: #efece6;
  clip-path: path("M 0 8.2 C 35.8 -0.3, 85.1 15.6, 112 54.8 C 58.2 62.2, 7.8 50.6, 0 8.2 Z");
  overflow: hidden;
}
.bk-eye--r { transform: scaleX(-1); }
.bk-iris {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #c62828 40%, #7f1010 75%, #3c0505 100%);
  box-shadow: 0 0 10px rgba(198, 40, 40, 0.45);
  animation: bk-gaze 16s ease-in-out infinite;
}
/* the app's own classic-Sharingan iris render, slowly spinning */
.bk-iris::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: url("../assets/app/iris/classic.png") center / 100% 100% no-repeat;
  animation: bk-spin 9s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }
/* the right eye's container is mirrored, so its X offsets flip back */
.bk-eye--r .bk-iris { animation-name: bk-gaze-r; }
@keyframes bk-gaze {
  0%, 20% { transform: scale(0.9); }
  28%, 45% { transform: translateX(-26px); }
  53%, 70% { transform: translateX(26px); }
  78%, 100% { transform: none; }
}
@keyframes bk-gaze-r {
  0%, 20% { transform: scale(0.9); }
  28%, 45% { transform: translateX(26px); }
  53%, 70% { transform: translateX(-26px); }
  78%, 100% { transform: none; }
}
.bk-lid {
  position: absolute;
  inset: -2px;
  background: #0b0c0f;
  transform: scaleY(0);
  transform-origin: 50% 0;
  animation: bk-blink 16s linear infinite;
}
@keyframes bk-blink {
  0%, 23% { transform: scaleY(0); }
  25% { transform: scaleY(1); }
  27%, 80% { transform: scaleY(0); }
  82% { transform: scaleY(1); }
  84% { transform: scaleY(0); }
  86% { transform: scaleY(1); }
  88%, 100% { transform: scaleY(0); }
}
.bk-cap {
  display: grid;
  place-items: center;
  margin: 0 1rem;
  min-height: 1.6em;
  font: 600 0.92rem/1.4 var(--font-body);
  color: rgba(236, 233, 228, 0.8);
  text-align: center;
}
.bk-cap i { grid-area: 1 / 1; font-style: normal; opacity: 0; animation: q-cycle 16s linear infinite; }
.bk-cap i:nth-child(2) { animation-delay: 4s; }
.bk-cap i:nth-child(3) { animation-delay: 8s; }
.bk-cap i:nth-child(4) { animation-delay: 12s; }
.bk-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.9rem; }
.bk-dots span { width: 14px; height: 4px; border-radius: 2px; background: rgba(236, 233, 228, 0.16); }
.bk-dots .on { background: #34d399; }
.bk-dots .cur { background: rgba(236, 233, 228, 0.75); width: 22px; }

/* ============================================================
   Feature visuals — one mini CSS animation per top-feature card
   ============================================================ */

.fv {
  position: relative;
  height: 76px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #0e1013;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  overflow: hidden;
}

/* menu-bar timer: pill with a spinning progress ring */
.fv-menubar .mb-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(236, 233, 228, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}
.mb-ring {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 268deg, rgba(236, 233, 228, 0.15) 268deg);
  animation: fv-spin 6s linear infinite;
}
.mb-ring::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: #1a1c21; }
.mb-time { font: 600 0.8rem/1 var(--font-mono); color: #ece9e4; }
@keyframes fv-spin { to { transform: rotate(360deg); } }

/* Floating widget: glass pill bobbing over a window outline */
.fl-win {
  width: 92px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(236, 233, 228, 0.12);
  background: rgba(236, 233, 228, 0.04);
}
.fl-pill {
  position: absolute;
  font: 600 0.74rem/1 var(--font-mono);
  color: #fff;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 23, 68, 0.35);
  animation: fv-bob 3s ease-in-out infinite;
}
@keyframes fv-bob { 50% { transform: translateY(-7px); } }

/* focus queue: the highlight advances chip → chip */
.qu-chip {
  font: 600 0.68rem/1 var(--font-body);
  color: rgba(236, 233, 228, 0.6);
  border: 1px solid rgba(236, 233, 228, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
  animation: qu-hi 6s linear infinite;
}
.fv-queue .qu-chip:nth-child(3) { animation-delay: 2s; }
.fv-queue .qu-chip:nth-child(5) { animation-delay: 4s; }
.qu-arrow { color: rgba(236, 233, 228, 0.3); font-size: 0.8rem; }
@keyframes qu-hi {
  0%, 4% { color: rgba(236, 233, 228, 0.6); border-color: rgba(236, 233, 228, 0.14); background: transparent; }
  8%, 28% { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--red-deep), var(--red)); }
  33%, 100% { color: rgba(236, 233, 228, 0.6); border-color: rgba(236, 233, 228, 0.14); background: transparent; }
}

/* streaks: a living bar chart */
.fv-stats { gap: 7px; align-items: flex-end; padding-bottom: 14px; }
.fv-stats i {
  width: 11px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  transform-origin: bottom;
  animation: fv-bar 2.6s ease-in-out infinite;
}
.fv-stats i:nth-child(1) { height: 18px; }
.fv-stats i:nth-child(2) { height: 30px; animation-delay: 0.15s; }
.fv-stats i:nth-child(3) { height: 24px; animation-delay: 0.3s; }
.fv-stats i:nth-child(4) { height: 42px; animation-delay: 0.45s; }
.fv-stats i:nth-child(5) { height: 32px; animation-delay: 0.6s; }
.fv-stats i:nth-child(6) { height: 46px; animation-delay: 0.75s; }
.fv-stats i:nth-child(7) { height: 27px; animation-delay: 0.9s; }
@keyframes fv-bar { 50% { transform: scaleY(0.55); } }

/* app blocking: tiles get crossed out one by one */
.fv-block { gap: 0.9rem; }
.fv-block i {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(236, 233, 228, 0.1);
  animation: blk 5s linear infinite;
}
.fv-block i:nth-child(2) { animation-delay: 0.5s; }
.fv-block i:nth-child(3) { animation-delay: 1s; }
.fv-block i::before,
.fv-block i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2.2px;
  margin: -1.1px 0 0 -10px;
  border-radius: 2px;
  background: var(--red);
  opacity: 0;
  animation: blk-x 5s linear infinite;
  animation-delay: inherit;
}
.fv-block i::before { transform: rotate(45deg); }
.fv-block i::after { transform: rotate(-45deg); }
@keyframes blk { 0%, 8% { opacity: 1; } 14%, 80% { opacity: 0.35; } 88%, 100% { opacity: 1; } }
@keyframes blk-x { 0%, 8% { opacity: 0; } 14%, 80% { opacity: 1; } 88%, 100% { opacity: 0; } }

/* ambience: equalizer */
.fv-amb { gap: 5px; }
.fv-amb i {
  width: 5px;
  height: 30px;
  border-radius: 3px;
  background: rgba(236, 233, 228, 0.5);
  animation: fv-eq 1.4s ease-in-out infinite;
}
.fv-amb i:nth-child(2n) { animation-delay: 0.2s; }
.fv-amb i:nth-child(3n) { animation-delay: 0.42s; }
.fv-amb i:nth-child(5) { background: var(--red); }
@keyframes fv-eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* voice guidance: speaker + expanding arcs */
.vc-box { width: 17px; height: 17px; background: #ece9e4; clip-path: polygon(0 32%, 38% 32%, 100% 0, 100% 100%, 38% 68%, 0 68%); }
.vc-arc {
  border: 2px solid transparent;
  border-right-color: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: fv-vc 2.4s ease-out infinite;
}
.fv-voice .vc-arc:nth-of-type(1) { width: 16px; height: 16px; margin-left: -8px; }
.fv-voice .vc-arc:nth-of-type(2) { width: 26px; height: 26px; margin-left: -20px; animation-delay: 0.25s; }
.fv-voice .vc-arc:nth-of-type(3) { width: 36px; height: 36px; margin-left: -28px; animation-delay: 0.5s; }
@keyframes fv-vc { 0% { opacity: 0; } 15%, 55% { opacity: 1; } 80%, 100% { opacity: 0; } }

/* screen dim: the little display breathes dark, moon alongside */
.dm-screen {
  position: relative;
  width: 92px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(236, 233, 228, 0.14);
  background: linear-gradient(135deg, #3a4356, #232838);
}
.dm-screen b { position: absolute; inset: 0; background: #0d0703; opacity: 0; animation: fv-dim 5s ease-in-out infinite; }
.dm-moon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset -4px -2.5px 0 0 #ffd889;
  transform: rotate(-20deg);
}
@keyframes fv-dim { 0%, 15% { opacity: 0; } 45%, 70% { opacity: 0.68; } 95%, 100% { opacity: 0; } }

/* reminders: nudges take turns, dot pings */
.rm-chip {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 128px;
  border: 1px solid rgba(236, 233, 228, 0.14);
  background: rgba(236, 233, 228, 0.06);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: 600 0.74rem/1 var(--font-body);
  color: rgba(236, 233, 228, 0.75);
}
.rm-chip i { grid-area: 1 / 1; font-style: normal; opacity: 0; animation: rm-half 6s linear infinite; }
.rm-chip i:nth-child(2) { animation-delay: 3s; }
@keyframes rm-half { 0%, 2% { opacity: 0; } 8%, 44% { opacity: 1; } 52%, 100% { opacity: 0; } }
.rm-ping { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.rm-ping::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  animation: fv-ping 1.8s ease-out infinite;
}
@keyframes fv-ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

/* weekly board: a task hops between day columns */
.fv-week { gap: 8px; }
.fv-week i {
  width: 22px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(236, 233, 228, 0.12);
  background: rgba(236, 233, 228, 0.04);
}
.wk-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 9px;
  margin: -14px 0 0 -9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  animation: fv-wk 5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes fv-wk {
  0%, 20% { transform: translateX(-60px); }
  35%, 60% { transform: translateX(0); }
  75%, 95% { transform: translateX(60px); }
  100% { transform: translateX(-60px); }
}

/* themes: the picker ring hops across six swatches */
.fv-themes { gap: 0.55rem; }
.fv-themes i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 1px solid rgba(236, 233, 228, 0.2); }
.th-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: fv-th 7.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes fv-th {
  0%, 12% { transform: translateX(-62px); }
  16%, 29% { transform: translateX(-37px); }
  33%, 45% { transform: translateX(-12px); }
  50%, 62% { transform: translateX(12px); }
  66%, 79% { transform: translateX(37px); }
  83%, 95% { transform: translateX(62px); }
  100% { transform: translateX(-62px); }
}

/* CLI: a command waiting at the prompt */
.fv-cli code { background: none; border: none; padding: 0; color: #cfcac2; font-size: 0.85rem; }
.cl-caret {
  width: 7px;
  height: 1.05em;
  background: var(--red);
  animation: caret-blink 1s steps(1) infinite;
}

/* notch HUD: the island under the camera housing expands on hover */
.fv-notch { align-items: flex-start; }
.nh-bar {
  position: relative;
  margin-top: 9px;
  width: 150px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: rgba(236, 233, 228, 0.1);
}
.nh-island {
  position: absolute;
  left: 50%;
  top: 0;
  width: 46px;
  height: 12px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  animation: fv-nh 5.5s cubic-bezier(0.32, 0.72, 0.28, 1) infinite;
}
/* the session progress line along the lip… */
.nh-island::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 2.5px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
}
/* …and faint task rows that appear while expanded */
.nh-island::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 9px;
  height: 24px;
  background: repeating-linear-gradient(180deg, rgba(236, 233, 228, 0.22) 0 3px, transparent 3px 10px);
  opacity: 0;
  animation: fv-nh-rows 5.5s linear infinite;
}
@keyframes fv-nh {
  0%, 28% { width: 46px; height: 12px; }
  40%, 78% { width: 118px; height: 46px; }
  90%, 100% { width: 46px; height: 12px; }
}
@keyframes fv-nh-rows {
  0%, 40% { opacity: 0; }
  46%, 74% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

/* desktop widget: a WidgetKit tile with the live ring */
.wg-tile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(236, 233, 228, 0.14);
  background: linear-gradient(160deg, #23262e, #15171c);
}
.fv-widget .mb-ring { width: 18px; height: 18px; }
.fv-widget .mb-ring::after { background: #1d2026; }
.wg-col { display: flex; flex-direction: column; gap: 2px; }
.wg-time { font: 700 0.82rem/1 var(--font-mono); color: #ece9e4; }
.wg-task { font: 500 0.62rem/1 var(--font-body); font-style: normal; color: rgba(236, 233, 228, 0.5); }
.wg-toms { margin-left: 0.35rem; font: 600 0.62rem/1 var(--font-body); color: rgba(236, 233, 228, 0.65); }

@media (prefers-reduced-motion: reduce) {
  .mock *, .mock *::before, .mock *::after,
  .fv *, .fv *::before, .fv *::after { animation: none !important; }
  /* stacked crossfade lines default to opacity 0 — pin the first one on */
  .mt-digits i:first-child, .bk-cap i:first-child, .rm-chip i:first-child { opacity: 1; }
  .mt-phase i:first-child { opacity: 1; }
  .vc-arc { opacity: 0.8; }
  .mt-prog { stroke-dashoffset: 100; }
}
