/* FluxTime site — 2026 redesign (Linear-style, monochrome graphite) */

:root {
  --bg: #08090a;
  --surface: #0d0f10;
  --text: #f7f8f8;
  --text-2: #b4bcd0;
  --text-3: #8a8f98;
  --text-4: #62666d;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fill: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.07);
  --blue: #7c8cf5;
  --amber: #e5a54b;
  --red: #eb5757;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }
.grad {
  background: linear-gradient(to right bottom, #fff 30%, rgba(255, 255, 255, 0.42));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.h1 { margin: 24px 0 0; font-size: 76px; line-height: 1.03; letter-spacing: -0.045em; font-weight: 600; max-width: 920px; }
.h2 { margin: 16px 0 0; font-size: 52px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.h2.sm { font-size: 44px; line-height: 1.08; }
.h2.xs { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.h3 { margin: 0; font-size: 16px; font-weight: 500; }
.lede { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--text-3); max-width: 600px; letter-spacing: -0.01em; }
.body { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-3); }
.small { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { background: var(--fill); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.trust .sep { color: #2c2e31; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 9, 10, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; }
.nav-link { color: var(--text-3); font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.nav-link:hover { color: var(--text); background: var(--fill); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--text); }
/* Features menu: hover (or click) the toggle and a panel of columns drops under the nav. */
.site-header .wrap { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: 7px 13px; background: transparent; cursor: pointer; font: inherit; font-size: 14px; transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.dropdown-toggle:hover { background: transparent; }
.nav-dropdown.is-open .dropdown-toggle { color: var(--text); border-color: rgba(124, 140, 245, 0.55); background: rgba(124, 140, 245, 0.06); }
.dropdown-panel {
  position: absolute; top: calc(100% - 8px); right: 24px; z-index: 60; width: min(1060px, calc(100% - 48px)); padding: 7px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 13, 14, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
/* Resources menu: one narrow column hanging from its own toggle instead of the header's right edge. */
.nav-dropdown-sm { position: relative; }
.dropdown-panel-sm { top: calc(100% + 7px); left: -8px; right: auto; width: 300px; }
.nav-dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 10px 0; border: 1px solid var(--line-soft); border-radius: 9px; background: #18191b; }
.dropdown-col { display: flex; flex-direction: column; gap: 22px; padding: 16px 22px; }
.dropdown-col + .dropdown-col { border-left: 1px solid var(--line); }
.dropdown-group { margin-bottom: -8px; font-family: var(--mono); font-size: 12px; color: var(--text-4); white-space: nowrap; }
/* Below this width five columns cannot fit a one-line group label, so labels wrap. */
@media (max-width: 1140px) { .dropdown-group { white-space: normal; } }
.dropdown-item { display: flex; flex-direction: column; gap: 5px; max-width: 200px; }
.dropdown-title { font-size: 14px; font-weight: 500; color: #e2e4e7; transition: color 0.15s ease; }
.dropdown-desc { font-size: 13.5px; line-height: 1.45; color: var(--text-4); transition: color 0.15s ease; }
.dropdown-item:hover .dropdown-title, .dropdown-item:focus-visible .dropdown-title { color: var(--text); }
.dropdown-item:hover .dropdown-desc, .dropdown-item:focus-visible .dropdown-desc { color: var(--text-3); }
.dropdown-item[aria-current="page"] .dropdown-title::after { content: "·"; margin-left: 6px; color: var(--text-3); }
.mobile-section { display: block; padding: 18px 4px 4px; font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--line-soft); padding: 12px 16px 20px; }
.mobile-menu a { display: block; padding: 12px 4px; font-size: 16px; color: var(--text-2); border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { display: flex; margin-top: 16px; color: var(--bg); border-bottom: 0; }
.site-header.is-open .mobile-menu { display: block; }

/* Sections */
.hero { padding-top: 112px; padding-bottom: 64px; }
.section { border-top: 1px solid var(--line-soft); }
.section > .wrap { padding-top: 120px; padding-bottom: 120px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 20px; }
.section-head .h2 { margin: 0; }
.section-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-3); max-width: 460px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }

/* Tiles: grid joined by hairlines */
.tiles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.tile .num { font-family: var(--mono); font-size: 12px; color: var(--text-4); }
a.tile { transition: background 0.15s ease; }
a.tile:hover { background: #0d0e10; }

/* App screenshots rendered by the Flux screenshot generator (Design/AppStoreScreenshots, ./render.sh web) */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); }
.tile .h3 { font-size: 17px; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.soft { background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)); }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); transition: background 0.15s ease, border-color 0.15s ease; }
.card-link:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.03); }
.card-link .kicker { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.card-link .title { display: block; margin-top: 8px; font-size: 17px; font-weight: 500; }
.card-link .arrow { color: var(--text-3); font-size: 18px; }

/* Panel with cells divided by hairlines */
.panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel.soft { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)); }
.panel-top { padding: 40px; border-bottom: 1px solid var(--line); }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { padding: 32px; border-right: 1px solid var(--line); }
.cell:last-child { border-right: 0; }

/* Numbered points */
.points { margin-top: 32px; display: flex; flex-direction: column; }
.points li { list-style: none; display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li span { font-family: var(--mono); font-size: 12px; color: var(--text-4); padding-top: 3px; }
ol.points { padding: 0; margin-bottom: 0; }

/* Product mockups */
.window { border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.window-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2e31; }
.blk { border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.blk small { display: block; color: var(--text-3); margin-top: 3px; font-size: 12px; }
.blk-task { background: var(--fill-2); border-left: 2px solid var(--text); }
.blk-event { background: rgba(124, 140, 245, 0.14); border-left: 2px solid var(--blue); }
.blk-recharge { background: rgba(229, 165, 75, 0.12); border-left: 2px solid var(--amber); }
.blk-admin { background: var(--fill); border-left: 2px solid var(--text-4); }
.blk-open { border: 1px dashed rgba(255, 255, 255, 0.12); color: var(--text-3); }
.legend { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.journal { font-family: var(--mono); font-size: 13px; line-height: 2.1; }
.journal .t { color: var(--text-4); }
.journal .m { color: var(--text-2); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-4); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.faq a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }

/* CTA */
.cta > .wrap { padding-top: 140px; padding-bottom: 160px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta .h2 { font-size: 56px; line-height: 1.05; letter-spacing: -0.04em; max-width: 780px; }
.cta .app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col-title { font-weight: 500; }
.site-footer .col a { color: var(--text-3); }
.site-footer .col a:hover { color: var(--text); }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer .copy { color: var(--text-4); font-size: 13px; }

/* Changelog */
.entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--line); padding: 56px 0; }
.entry-meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.entry-version { padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: var(--text-2); }
.entry:first-child .entry-version { background: var(--text); color: var(--bg); border-color: var(--text); }
.entry-title { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.entry-body h1 { display: none; }
.entry-body h2 { margin: 28px 0 0; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.entry-body h3 { margin: 20px 0 0; font-size: 15px; font-weight: 500; }
.entry-body p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-3); }
.entry-body ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.entry-body strong { color: var(--text); font-weight: 500; }
.entry-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.entry-body a:hover { text-decoration-color: #fff; }
.entry-status { color: var(--text-3); padding: 56px 0; border-top: 1px solid var(--line); }

/* Prose: blog posts and legal pages */
.prose { font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 22px; }
.prose h1 { margin: 0 0 24px; font-size: 40px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; color: var(--text); }
.prose h2 { margin: 56px 0 18px; font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; color: var(--text); }
.prose h3 { margin: 40px 0 14px; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; color: var(--text); }
.prose h4 { margin: 28px 0 10px; font-size: 17px; font-weight: 600; color: var(--text); }
.prose strong { color: var(--text); font-weight: 500; }
.prose img { display: block; width: 100%; height: auto; margin: 32px 0; border-radius: var(--radius); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.prose a:hover { text-decoration-color: #fff; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li > p { margin: 0 0 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose blockquote { margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 2px solid var(--line-strong); color: var(--text-3); }
.prose code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border-radius: 5px; background: var(--fill-2); color: var(--text); }
.prose pre { margin: 0 0 22px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 8px 0 22px; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0 30px; font-size: 14px; line-height: 1.55; border: 1px solid var(--line); border-radius: 12px; }
.prose th { padding: 12px 16px; text-align: left; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td { padding: 12px 16px; color: var(--text-2); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

/* Legacy content pages (about, faq, features, privacy) share this shell */
.privacy-page { padding: 96px 0 120px; }
.privacy-container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 32px; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.privacy-container h1 { margin: 0; font-size: 56px; line-height: 1.05; letter-spacing: -0.045em; font-weight: 600; background: linear-gradient(to right bottom, #fff 30%, rgba(255, 255, 255, 0.42)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.privacy-updated { margin: 18px 0 40px; font-size: 15px; color: var(--text-3); font-family: var(--mono); }
.privacy-section { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.privacy-section:first-of-type { border-top: 0; padding-top: 0; }
.privacy-section h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--text); }
.privacy-section h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.privacy-section p { margin: 0 0 18px; }
.privacy-section ul, .privacy-section ol { margin: 0 0 18px; padding-left: 22px; }
.privacy-section li { margin-bottom: 6px; }
.privacy-section strong { color: var(--text); font-weight: 500; }
.privacy-section a, .privacy-container a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.privacy-section table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; line-height: 1.55; border: 1px solid var(--line); border-radius: 12px; }
.privacy-section th { padding: 12px 16px; text-align: left; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); vertical-align: top; }
.privacy-section td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.privacy-notice, .privacy-callout { margin: 24px 0; padding: 20px 22px !important; border: 1px solid var(--line-strong) !important; border-radius: 12px; background: rgba(255, 255, 255, 0.03); font-size: 15px; line-height: 1.7; }

/* Home */
.hero-art { position: relative; overflow: hidden; }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 12px 4px 6px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.03); font-size: 13px; color: var(--text-2); }
.pill:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.pill-tag { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--text); font-family: var(--mono); font-size: 11px; }
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); margin-top: 5px; }
.bar i { display: block; height: 4px; border-radius: 2px; }
.caret { display: inline-block; width: 7px; height: 16px; background: var(--text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.heatmap { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.heat-row { display: flex; align-items: center; gap: 6px; }
.heat-row span { width: 36px; flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.heat-row i { flex: 1 1 0; height: 22px; border-radius: 4px; }
.price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.price span { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.price small { color: var(--text-3); font-size: 14px; }
.price.lg span { font-size: 56px; letter-spacing: -0.04em; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 500; }
.badge.outline { background: transparent; color: var(--text-3); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 400; }
.card.featured { border-color: rgba(255, 255, 255, 0.18); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
/* Free vs Pro comparison table (pricing page) */
.compare { width: 100%; margin-top: 48px; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.compare col.plan { width: 24%; }
.compare th, .compare td { padding: 13px 24px; text-align: left; font-weight: 400; vertical-align: middle; border-top: 1px solid var(--line-soft); }
.compare thead th { border-top: 0; vertical-align: top; padding-top: 22px; padding-bottom: 22px; font-size: 17px; font-weight: 500; color: var(--text); }
.compare thead small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-3); }
.compare tbody th { color: var(--text-2); }
.compare tbody th strong { font-weight: 500; color: var(--text); }
.compare td { color: var(--text-3); }
.compare .pro { background: var(--fill); color: var(--text); }
.compare thead .pro { border-top-right-radius: calc(var(--radius) - 1px); }
.compare tbody:last-child tr:last-child .pro { border-bottom-right-radius: calc(var(--radius) - 1px); }
.compare .yes { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.compare .no { color: var(--text-4); }
.check-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; font-size: 14px; color: var(--text-2); }
.check-list div { display: flex; gap: 10px; align-items: center; }

/* Home: 1:1 replica of the FluxTime macOS app (designed at 1480x961, scaled to fit) */
.app-frame { position: relative; width: 100%; aspect-ratio: 1480 / 961; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.app {
  position: absolute; left: 0; top: 0; width: 1480px; height: 961px;
  transform-origin: 0 0; transform: scale(var(--app-scale, 0.81));
  background: #141418; color: #ececf0; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 13px; line-height: 1.3; letter-spacing: 0; text-align: left;
  -webkit-font-smoothing: antialiased; user-select: none;
}
.app svg { display: inline-block; flex-shrink: 0; }
.app-abs { position: absolute; }
.app-brand { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: #ececf0; }
.app-brand img { width: 16px; height: 16px; border-radius: 4px; }
.app-muted { color: #8e8e93; }
.app-green { color: #00cc5a; }
.app-right { margin-left: auto; white-space: nowrap; }
.app-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app-upnext > div { min-width: 0; }
.app-tab { position: absolute; left: 187px; top: 8px; width: 156px; height: 21px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 6px; background: #28282c; border: 1px solid #333336; font-size: 12.5px; font-weight: 600; color: #ececf0; box-sizing: border-box; }
.app-tab svg { width: 12px; height: 12px; color: #c7c7cc; }

.app-sidebar { position: absolute; left: 0; top: 0; width: 186px; height: 961px; }
.app-search { position: absolute; left: 8px; top: 47px; width: 145px; height: 21px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 7px; border-radius: 6px; background: #19191d; border: 1px solid #25252a; font-size: 12.5px; color: #8e8e93; }
.app-search kbd { margin-left: auto; font: inherit; font-size: 10.5px; color: #8e8e93; }
.app-nav { position: absolute; left: 8px; width: 170px; height: 22px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 7px; border-radius: 6px; font-size: 13.5px; color: #e2e2e6; }
.app-nav svg { color: #a1a1a6; }
.app-nav.is-active { background: #26262a; font-weight: 600; color: #fff; }
.app-section { position: absolute; left: 15px; display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #a1a1a6; }
.app-upnext { position: absolute; left: 8px; width: 170px; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 9px; border-radius: 6px; font-size: 13px; color: #ececf0; min-height: 22px; }
.app-upnext.is-now { background: #12231d; min-height: 33px; }
.app-dot-ring { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #8e8e93; box-sizing: border-box; }
.app-goal { position: absolute; left: 15px; width: 157px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ececf0; }
.app-user { position: absolute; left: 15px; top: 925px; width: 160px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #e2e2e6; }
.app-avatar { width: 17px; height: 17px; border-radius: 50%; background: #2f6fed; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.app-panel { position: absolute; left: 187px; top: 40px; width: 259px; height: 909px; background: #19191f; border-radius: 10px 0 0 0; border-left: 1px solid #25252a; overflow: hidden; }
.app-bar { position: absolute; left: 11px; right: 13px; background: #29292e; border-radius: 3px; overflow: hidden; }
.app-bar i { display: block; height: 100%; border-radius: 3px; }
.app-cat { position: absolute; left: 11px; right: 13px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #ececf0; }
.app-cat > i { width: 7px; height: 7px; border-radius: 2px; }
.app-tasks { position: absolute; left: 14px; right: 12px; top: 278px; display: flex; flex-direction: column; gap: 12px; }
.app-task { display: flex; gap: 8px; font-size: 12.5px; color: #ececf0; line-height: 1.22; }
.app-task .app-dot-ring { margin-top: 3px; width: 10px; height: 10px; }

.app-cal { position: absolute; left: 447px; top: 40px; right: 0; height: 921px; background: #19191f; border-left: 1px solid #29292e; }
.app-btn { position: absolute; top: 12px; height: 24px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 6px; border: 1px solid #27272c; font-size: 12px; color: #e2e2e6; }
.app-btn-group { padding: 0; }
.app-btn-group span { padding: 0 10px; line-height: 22px; }
.app-btn-group span:first-child, .app-btn-group span:last-child { padding: 0 7px; }
.app-btn-group span + span { border-left: 1px solid #27272c; }
.app-btn-group span:first-child, .app-btn-group span:last-child { font-size: 15px; color: #c7c7cc; }
.app-dayhead { position: absolute; top: 56px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8e8e93; }
.app-dayhead b { color: #ececf0; font-weight: 600; }
.app-dayhead b.app-today { background: #f14b4c; color: #fff; padding: 0 5px; border-radius: 4px; font-size: 12px; line-height: 16px; }
.app-hour { position: absolute; left: 0; width: 38px; text-align: right; font-size: 10.5px; color: #8e8e93; }
.app-hline { position: absolute; left: 40px; right: 0; height: 1px; background: #26262c; }
.app-vline { position: absolute; top: 80px; bottom: 0; width: 1px; background: #1f1f25; }
.app-ev { position: absolute; width: 138px; box-sizing: border-box; padding: 3px 6px; border-radius: 4px; border: 1px solid transparent; overflow: hidden; }
.app-ev-title { display: flex; gap: 4px; font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.25; }
.app-ev-title i { width: 5px; height: 5px; border-radius: 1.5px; margin-top: 4px; flex-shrink: 0; }
.app-ev-time { font-size: 11px; color: rgba(235, 235, 245, 0.6); margin-top: 1px; }
.app-ev-task { background: #27313f; border-color: #1e4b9e; }
.app-ev-task .app-ev-title i { border: 1.2px solid #3b82f6; border-radius: 50%; width: 5px; height: 5px; }
.app-ev-green { background: #1f5838; border-color: #187e44; }
.app-ev-green .app-ev-title i { background: #22c55e; }
.app-ev-event { background: #1e3d68; border-color: #0d59cd; }
.app-ev-event .app-ev-title i { background: #3b82f6; border-radius: 50%; }
.app-ev-orange { background: #41342c; border: 1px dashed #e97c37; }
.app-ev-orange .app-ev-title i { background: #e97c37; }
.app-ev-normal { background: #202026; }
.app-ev-normal .app-ev-title { color: #a1a1a6; font-weight: 500; }
.app-ev-normal .app-ev-title i { display: none; }
.app-now { position: absolute; width: 143px; height: 1.5px; background: #e5484d; }
.app-now::before { content: ""; position: absolute; left: -2px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: #e5484d; }
.app-chat { position: absolute; left: 528px; top: 378px; width: 491px; height: 530px; background: #16161b; border: 1px solid #26262b; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.app-chat-welcome { position: absolute; left: 0; right: 0; top: 188px; display: none; flex-direction: column; align-items: center; transition: opacity 0.3s ease, transform 0.3s ease; }
.app-ai-avatar { flex: none; width: 24px; height: 24px; }
.app-ai-avatar.is-welcome { width: 36px; height: 36px; }
.app-ai-avatar canvas, .app-ai-avatar img { display: block; width: 100%; height: 100%; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 10px; border-radius: 7px; background: #222227; border: 1px solid #2c2c30; font-size: 12.5px; color: #ececf0; }
.app-chat-thread { position: absolute; left: 14px; right: 14px; top: 42px; bottom: 84px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 12.5px; line-height: 1.45; color: #ececf0; }
.app-msg-user { align-self: flex-end; max-width: 78%; padding: 7px 11px; border-radius: 12px 12px 4px 12px; background: #2a2a31; }
.app-msg-ai { display: flex; gap: 9px; align-items: flex-start; }
.app-msg-ai b { font-weight: 600; color: #fff; }
.app-chart { margin-top: 9px; padding: 10px 12px 9px; border-radius: 8px; background: #1c1c22; border: 1px solid #2a2a30; }
.app-chart-head { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.app-chart-head .app-muted { font-weight: 400; }
.app-chart svg { display: block; }
.app-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 10.5px; color: #a1a1a6; }
.app-legend span { display: inline-flex; align-items: center; gap: 5px; }
.app-legend i { width: 7px; height: 7px; border-radius: 2px; }
.app-legend b { color: #ececf0; font-weight: 600; }
.app-insights { margin: 8px 0 0; padding-left: 15px; color: #c7c7cc; }
.app-insights li { margin: 2px 0; }
.app-msg-ai .app-chip { height: 21px; font-size: 11.5px; }
/* Chat demo animation (js/site.js toggles these classes; without them the finished chat shows) */
.app-typing { display: none; gap: 4px; padding: 6px 0; }
.app-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8e8e93; animation: app-dot 1s ease-in-out infinite; }
.app-typing i:nth-child(2) { animation-delay: 0.15s; }
.app-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes app-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.app-input-text:empty { display: none; }
.app-input-text:not(:empty) + i { background: #3b82f6; }
.app-input-text:not(:empty) + i svg { stroke: #fff; }
.app-chat.is-anim .app-chat-welcome { display: flex; }
.app-chat.is-anim .app-input-placeholder { color: #6e6e75; }
.app-chat.is-anim.is-typing .app-input-placeholder { display: none; }
.app-chat.is-anim .app-input-text { color: #ececf0; }
.app-chat.is-anim.is-typing .app-input-text::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #ececf0; animation: blink 1s steps(1) infinite; }
.app-chat.is-anim .app-msg-user, .app-chat.is-anim .app-msg-ai { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.app-chat.is-anim.s-sent .app-chat-welcome { opacity: 0; transform: translateY(-8px); }
.app-chat.is-anim.s-sent .app-msg-user, .app-chat.is-anim.s-thinking .app-msg-ai { opacity: 1; transform: none; }
.app-chat.is-anim.s-thinking .app-typing { display: flex; }
.app-chat.is-anim .app-ai-body { display: none; }
.app-chat.is-anim.s-reply .app-typing { display: none; }
.app-chat.is-anim.s-reply .app-ai-body { display: block; }
.app-chat.is-anim.s-reply .w { animation: app-in 0.3s ease both; animation-delay: calc(var(--w) * 45ms); }
.app-chat.is-anim.s-reply .app-chart { animation: app-in 0.4s ease both 0.8s; }
.app-chat.is-anim.s-reply .app-col { transform-box: fill-box; transform-origin: 50% 100%; animation: app-grow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(1s + var(--i) * 70ms); }
.app-chat.is-anim.s-reply .app-legend { animation: app-in 0.4s ease both 1.6s; }
.app-chat.is-anim.s-reply .app-insights li { animation: app-in 0.4s ease both; animation-delay: calc(1.9s + var(--n) * 0.3s); }
@keyframes app-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes app-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.w { display: inline; }
.app-chat.is-anim.s-reply .w { display: inline-block; }
.app-input { position: absolute; left: 6px; right: 7px; bottom: 15px; height: 61px; box-sizing: border-box; padding: 10px 10px; border-radius: 8px; background: #202028; font-size: 12.5px; color: #6e6e75; }
.app-input i { position: absolute; right: 12px; bottom: 9px; width: 18px; height: 18px; border-radius: 50%; background: #2c2c32; display: flex; align-items: center; justify-content: center; }

/* Home: "Plan my day" demo. js/site.js scatters the week, then the app's mascot carries
   each task into place (mirrors TodayCalendarPlanningStage). Without JS the tidy week shows. */
.plan-app .app-ev.is-carry { z-index: 4; transition-property: left, top, width, height, transform, box-shadow; transition-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1); }
.plan-app .app-ev.is-lifted { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 1.5px rgba(64, 200, 224, 0.9), 0 8px 18px rgba(0, 0, 0, 0.45); }
.plan-app .app-ev.is-placed { box-shadow: 0 0 0 1.5px rgba(64, 200, 224, 0.9); transition: box-shadow 0.6s ease; }
.plan-app .app-ev.is-settled { box-shadow: none; }
.plan-app [data-squeeze] { transition: left 0.3s ease, width 0.3s ease; }
.plan-slot { position: absolute; border: 1.2px dashed rgba(142, 142, 147, 0.45); background: rgba(142, 142, 147, 0.05); border-radius: 5px; transition: opacity 0.4s ease; }
.plan-mascot { position: absolute; left: 0; top: 0; z-index: 8; width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 0; transform: scale(0.3); transition-property: left, top, transform, opacity; transition-duration: 0.4s; transition-timing-function: cubic-bezier(0.34, 1.35, 0.64, 1); pointer-events: none; }
.plan-mascot canvas, .plan-mascot img { display: block; width: 40px; height: 40px; }
.plan-mascot.is-on { opacity: 1; transform: scale(1); }
.plan-mascot.is-on.is-tilt { transform: rotate(10deg); }
.plan-mascot.is-on.is-hop { transform: translateY(-8px); }
.plan-cursor { position: absolute; left: 760px; top: 430px; z-index: 10; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1), top 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.12s ease; }
.plan-cursor.is-on { opacity: 1; }
.plan-cursor.is-down { transform: scale(0.85); }
.plan-btn { transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.plan-btn.is-pressed { transform: scale(0.95); background: #26262c; }
.plan-btn.is-planning { border-color: #7c5cff; box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22); color: #fff; }
.plan-toast { position: absolute; right: 12px; top: 46px; z-index: 6; display: none; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 8px; background: #1f1f26; border: 1px solid #2e2e36; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-size: 12.5px; color: #ececf0; }
.plan-app.is-anim .plan-toast { display: flex; opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.25s ease; }
.plan-app.is-anim .plan-toast.is-on { opacity: 1; transform: none; }
.plan-toast-done { display: none; }
.plan-toast.is-finished .plan-toast-working { display: none; }
.plan-toast.is-finished .plan-toast-done { display: inline-flex; }
.plan-toast-btn { padding: 3px 9px; border-radius: 6px; border: 1px solid #33333b; font-size: 12px; }
.plan-toast-btn.is-primary { background: #ececf0; color: #141418; border-color: #ececf0; font-weight: 600; }
.plan-shimmer { background: linear-gradient(90deg, #8e8e93 0%, #ffffff 45%, #8e8e93 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Home: Journal replica ("Log the day"), measured from the macOS app */
.jr-app { background: #13151b; }
.jr-panel { position: absolute; left: 0; right: 0; background: #16171d; border-top: 1px solid #1f2026; }
.jr-crumb { position: absolute; left: 16px; top: 11px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.jr-crumb b { font-weight: 600; color: #fff; }
.jr-nav { position: absolute; left: 645px; top: 8px; height: 23px; display: flex; border: 1px solid #2a2b31; border-radius: 6px; font-size: 12px; color: #c7c7cc; }
.jr-nav span { padding: 0 10px; line-height: 21px; }
.jr-nav span + span { border-left: 1px solid #2a2b31; }
.jr-nav span:first-child, .jr-nav span:last-child { padding: 0 7px; font-size: 14px; }
.jr-entry-btn { position: absolute; right: 15px; top: 8px; height: 23px; padding: 0 9px; border-radius: 6px; background: #e8e8ea; color: #16171d; font-size: 12px; font-weight: 600; line-height: 23px; }
.jr-line { position: absolute; left: 0; right: 0; height: 1px; background: #1f2026; }
.jr-summary { position: absolute; left: 16px; top: 59px; display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
.jr-summary b { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.jr-goals { position: absolute; right: 19px; top: 64px; display: flex; gap: 12px; font-size: 12px; color: #c7c7cc; }
.jr-goals span { display: inline-flex; align-items: center; gap: 5px; }
.jr-goals i { width: 5px; height: 5px; border-radius: 50%; }
.jr-goals b { color: #33c75a; font-weight: 600; transition: color 0.3s ease, text-shadow 0.3s ease; }
.jr-goals b.is-flash { color: #6ee58c; text-shadow: 0 0 10px rgba(51, 199, 90, 0.6); }
.jr-bar { position: absolute; top: 94px; height: 7px; border-radius: 4px; background: #212327; overflow: visible; }
.jr-bar i { position: absolute; top: 0; height: 7px; transition: background 0.4s ease, width 0.25s linear; }
.jr-bar i:first-child { border-radius: 4px 0 0 4px; }
.jr-now { position: absolute; top: -3px; width: 2px; height: 13px; margin-left: -1px; border-radius: 1px; background: #fff; transition: left 0.25s linear; }
.jr-hours { position: absolute; left: 16px; right: 19px; top: 104px; display: flex; justify-content: space-between; font-size: 10.5px; color: #8e8e93; }
.jr-row { position: absolute; left: 0; right: 0; height: 35.5px; border-bottom: 1px solid #202128; font-size: 12.5px; }
.jr-row > span { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.jr-head > span { font-size: 11.5px; font-weight: 600; color: #8e8e93; }
.jr-time { color: #c7c7cc; }
.jr-content { font-weight: 600; color: #fff; }
.jr-content.is-placeholder { font-weight: 400; font-style: italic; color: #6e6e75; }
.jr-status { right: 424px; display: inline-flex; align-items: center; gap: 4px; color: #33c75a; font-weight: 600; font-size: 12px; }
.jr-status i { width: 5px; height: 5px; border-radius: 50%; background: #33c75a; }
.jr-chipbox { display: inline-flex; }
.jr-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; border: 1px solid #2a2b31; color: #c7c7cc; font-size: 12px; }
.jr-chip svg { color: #a1a1a6; }
.jr-chip.is-empty { border-style: dashed; color: #a1a1a6; }
.jr-goal { color: #33c75a; font-weight: 600; }
.jr-dur { color: #e2e2e6; }
.jr-track { height: 2px; background: #212327; border-radius: 1px; }
.jr-track i { position: absolute; top: -1px; height: 4px; border-radius: 2px; transition: background 0.4s ease, width 0.25s linear; }
.jr-new { position: absolute; left: 77px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8e8e93; padding: 4px 8px 4px 0; border-radius: 6px; transition: color 0.2s ease, background 0.2s ease; }
.jr-new span { font-size: 15px; font-weight: 300; }
.jr-new.is-hover { color: #fff; background: rgba(255, 255, 255, 0.05); padding-left: 8px; margin-left: -8px; }
.jr-fab { position: absolute; right: 16px; bottom: 14px; width: 36px; height: 36px; }
.jr-fab canvas { width: 36px; height: 36px; display: block; }
/* Demo states (js/site.js); without them the finished day shows */
.jr-chip.is-set { display: inline-flex; }
.jr-chipbox .jr-chip.is-empty + .jr-chip.is-set { margin-left: 0; }
.jr-app [data-jr-row="edit"] .jr-chip.is-empty, .jr-app [data-jr-status-edit] { display: none; }
.jr-app.is-anim [data-jr-row="edit"] .jr-chip.is-empty, .jr-app.is-anim [data-jr-status-edit] { display: inline-flex; }
.jr-app.is-anim [data-jr-row="edit"] .jr-chip.is-set { display: none; }
.jr-app.is-anim.s-cat [data-jr-row="edit"] .jr-chip.is-empty { display: none; }
.jr-app.is-anim.s-cat [data-jr-row="edit"] .jr-chip.is-set { display: inline-flex; animation: jr-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.jr-app.is-anim [data-jr-goal] { opacity: 0; transition: opacity 0.3s ease; }
.jr-app.is-anim.s-cat [data-jr-goal] { opacity: 1; }
.jr-app.is-anim [data-jr-seg], .jr-app.is-anim [data-jr-mark] { background: #6b6b70 !important; }
.jr-app.is-anim.s-cat [data-jr-seg], .jr-app.is-anim.s-cat [data-jr-mark] { background: #007aff !important; }
.jr-app.is-anim [data-jr-row="new"] { display: none; }
.jr-app.is-anim.s-new [data-jr-row="new"] { display: block; animation: app-in 0.35s ease both; }
.jr-app.is-anim.s-new [data-jr-status-edit] { display: none; }
.jr-app.is-anim [data-jr-new-btn] { transition: top 0.35s ease, color 0.2s ease, background 0.2s ease; }
.jr-app.is-anim .is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #fff; animation: blink 1s steps(1) infinite; }
@keyframes jr-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

/* Home: Review replica (Overview + Insights), measured from the macOS app */
.rv-app { background: #13151b; }
.rv-panel { position: absolute; left: 0; right: 0; background: #16171d; border-top: 1px solid #1f2026; overflow: hidden; }
.rv-tabs { position: absolute; left: 18px; top: 13px; z-index: 2; display: flex; gap: 6px; }
.rv-tab { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; line-height: 26px; color: #a1a1a6; transition: background 0.25s ease, color 0.25s ease; }
.rv-tab.is-active { background: #27292d; color: #fff; font-weight: 600; }
.rv-tab.is-pressed { transform: scale(0.95); }
.rv-meta { position: absolute; right: 14px; top: 19px; display: flex; gap: 10px; font-size: 13px; color: #c7c7cc; }
.rv-meta b { color: #fff; font-weight: 500; }
.rv-view { position: absolute; inset: 0; transition: opacity 0.35s ease, transform 0.35s ease; }
.rv-insights { display: none; }
.rv-card { position: absolute; background: #24242f; border: 1px solid #32323b; border-radius: 8px; overflow: hidden; }
.rv-card-head { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid #2b2b36; white-space: nowrap; }
.rv-card-title { font-size: 13.5px; font-weight: 600; color: #fff; }
.rv-pill { height: 17px; padding: 0 6px; border-radius: 9px; border: 1px solid #3a3a45; font-size: 11.5px; line-height: 16px; color: #c7c7cc; }
.rv-card-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.rv-text { position: absolute; white-space: nowrap; }
.rv-green { color: #34c759; }
.rv-orange { color: #ff9f0a; }
.rv-dim { color: #a1a1a6; }
.rv-goal-title { position: absolute; left: 11px; right: 11px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; }
.rv-goal-title b { margin-left: auto; font-weight: 600; }
.rv-ring { width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid; box-sizing: border-box; }
.rv-progress { position: absolute; left: 11px; right: 11px; height: 3px; border-radius: 2px; background: #2e2f3a; overflow: hidden; }
.rv-fill { display: block; height: 100%; border-radius: 2px; transform-origin: 0 50%; }
.rv-stat, .rv-note { position: absolute; left: 11px; right: 11px; display: flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.rv-note { font-size: 12px; gap: 6px; }
.rv-spark { margin-left: auto; display: flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.rv-spark i { width: 2.5px; border-radius: 1px; transform-origin: 50% 100%; }
.rv-heat { position: absolute; overflow: visible; }
.rv-today-cell { position: absolute; width: 5px; height: 5px; border: 1px solid #a1a1a6; border-radius: 1px; }
.rv-hr { position: absolute; left: 11px; right: 11px; height: 1px; background: #2e2f3a; }
.rv-energy { position: absolute; left: 0; top: 0; }
.rv-axis { position: absolute; display: flex; justify-content: space-between; font-size: 11px; color: #a1a1a6; }
.rv-yaxis { position: absolute; display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: #8e8e93; }
.rv-score { position: absolute; display: flex; align-items: baseline; gap: 4px; }
.rv-score b { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.rv-score span { font-size: 12.5px; color: #8e8e93; }
.rv-wb-row { position: absolute; left: 11px; right: 11px; display: flex; font-size: 12.5px; color: #ececf0; }
.rv-right { margin-left: auto; }
.rv-wb-bar { position: absolute; left: 11px; height: 3px; border-radius: 2px; background: #2c2c37; }
.rv-wb-range { position: absolute; top: 0; height: 3px; border-radius: 2px; background: #41424a; }
.rv-wb-mark { position: absolute; top: -3px; width: 2px; height: 9px; margin-left: -1px; border-radius: 1px; background: #d89c65; transition: left 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rv-stack { position: absolute; left: 11px; width: 400px; height: 6px; }
.rv-stack i { position: absolute; top: 0; height: 6px; border-radius: 3px; transform-origin: 0 50%; }
.rv-td-row { position: absolute; left: 11px; right: 11px; height: 18px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #ececf0; }
.rv-td-row > i { width: 7px; height: 7px; border-radius: 2px; }
.rv-td-val { position: absolute; right: 120px; }
.rv-td-pct { position: absolute; right: 66px; color: #8e8e93; }
.rv-td-delta { position: absolute; right: 0; }
.rv-js-stat { position: absolute; top: 40px; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #8e8e93; }
.rv-js-stat b { font-size: 13px; color: #fff; font-weight: 600; }
.rv-js-months { position: absolute; left: 0; right: 0; top: 81px; font-size: 10px; color: #c7c7cc; }
.rv-js-months span { position: absolute; }
.rv-js-days { position: absolute; left: 11px; top: 93px; font-size: 9.5px; color: #c7c7cc; }
.rv-js-days span { position: absolute; left: 0; line-height: 8px; }
.rv-scatter { position: absolute; left: 0; top: 0; overflow: visible; }
.rv-big { position: absolute; display: flex; align-items: baseline; gap: 8px; }
.rv-big b { font-size: 20px; font-weight: 700; color: #fff; }
.rv-big span { font-size: 12.5px; color: #c7c7cc; }
.rv-bars { position: absolute; left: 0; right: 0; }
.rv-bars i { position: absolute; bottom: 0; width: 3.6px; border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.rv-orange-bars i { background: #ff9f0a; }
.rv-green-bars i { background: #33c75a; }
.rv-blue-bars i { background: #027aff; }
.rv-avg { position: absolute; height: 0; border-top: 1px dashed #5a5a63; }
.rv-avg span { position: absolute; right: 0; bottom: 2px; font-size: 10.5px; color: #a1a1a6; white-space: nowrap; }
.rv-expand { position: absolute; right: 7px; bottom: 7px; width: 18px; height: 18px; border-radius: 50%; background: #2c2d36; display: flex; align-items: center; justify-content: center; }
/* Tabs (js/site.js toggles .s-ins) */
.rv-tab { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.rv-tab:hover { color: #fff; }
.rv-tab:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 1px; }
.rv-app.s-ins .rv-overview { display: none; }
.rv-app.s-ins .rv-insights { display: block; animation: app-in 0.25s ease both; }
.rv-app:not(.s-ins) .rv-overview { animation: app-in 0.25s ease both; }

/* Feature page mockups */
.trow { display: flex; gap: 12px; align-items: stretch; }
.trow > .mono { width: 44px; flex-shrink: 0; font-size: 11px; color: var(--text-4); padding-top: 6px; }
.trow > .blk { flex: 1 1 auto; min-width: 0; }
.todo { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.07); }
.todo .mono { margin-left: auto; color: var(--text-4); font-size: 11px; }
.circle { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--text-4); }
.week { display: grid; grid-template-columns: 52px repeat(5, minmax(0, 1fr)); min-width: 720px; padding-right: 16px; }
.week-day { position: relative; height: 392px; border-left: 1px solid rgba(255, 255, 255, 0.05); background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 56px); }
.week-day .blk { position: absolute; left: 4px; right: 4px; padding: 6px 8px; border-radius: 5px; font-size: 11px; overflow: hidden; }
.week-day .blk b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-day .blk span { color: var(--text-3); }
.chat { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: rgba(255, 255, 255, 0.08); }
.change { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
.change .mono:last-child { color: var(--text-3); font-size: 12px; margin-left: auto; }

/* Confirm page */
.confirm { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.confirm-main { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 48px 16px 112px; }
.confirm-card { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.confirm-card .app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 70px rgba(0, 0, 0, 0.7); }
.confirm-check { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); display: flex; align-items: center; justify-content: center; }

/* Blog */
.post-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.post-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse at 30% 20%, #1c1d20, #0b0b0d 70%); display: flex; align-items: center; justify-content: center; transition: border-color 0.15s ease; }
.post-cover.wide { aspect-ratio: 16 / 9; }
.post-cover .cover-mark { font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }
.post-cover .cover-title { position: absolute; left: 24px; right: 24px; bottom: 22px; font-size: 15px; font-weight: 500; color: var(--text-2); text-align: left; }
.post-card { display: flex; flex-direction: column; gap: 20px; }
.post-card:hover .post-cover, .post-feature:hover .post-cover { border-color: rgba(255, 255, 255, 0.18); }
.post-card:hover .post-title, .post-feature:hover .post-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.post-title { margin: 12px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.post-feature .post-title { font-size: 36px; line-height: 1.12; letter-spacing: -0.03em; margin-top: 16px; }
.article-head { max-width: 760px; margin: 0 auto; padding: 96px 32px 0; }
.article-head h1 { margin: 20px 0 0; font-size: 48px; line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; }
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 32px 24px; }
.article-body > h1:first-child { display: none; }
.article-body > h1:first-child + * { margin-top: 0; }
.article-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }

/* Video modal */
.video-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-modal-dialog { position: relative; width: min(1100px, 100%); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.video-modal-dialog video { display: block; width: 100%; height: auto; }
.video-modal-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(8, 9, 10, 0.7); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Responsive */
@media (max-width: 860px) {
  .wrap, .privacy-container { padding: 0 16px; }
  .nav-links, .nav-actions .btn-ghost, .nav-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none !important; }
  .hero { padding-top: 72px; }
  .h1 { font-size: 44px; }
  .h2, .h2.sm, .cta .h2 { font-size: 32px; }
  .h2.xs { font-size: 30px; }
  .privacy-container h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .section > .wrap { padding-top: 80px; padding-bottom: 80px; }
  .cta > .wrap { padding-top: 96px; padding-bottom: 112px; }
  .section-head, .grid-2, .grid-3, .grid-4, .split, .tiles, .tiles.cols-4, .cells, .entry, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .section-head, .split { gap: 32px; }
  .entry { gap: 12px; padding: 40px 0; }
  .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .cell:last-child { border-bottom: 0; }
  .panel-top { padding: 24px; }
  .rev { order: -1; }
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .compare { font-size: 13px; }
  .compare col.plan { width: 30%; }
  .compare th, .compare td { padding-left: 12px; padding-right: 12px; }
  .post-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .post-feature .post-title { font-size: 28px; }
  .article-head { padding: 64px 16px 0; }
  .article-head h1 { font-size: 34px; }
  .article-body { padding: 40px 16px 24px; }
  .today-grid, .ai-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .today-grid > div, .ai-grid > div { border-right: 0 !important; }
  .h1[style*="font-size"] { font-size: 44px !important; }
}
.rv-app .jr-fab { display: none; }
.rv-app.s-ins .jr-fab { display: block; }
/* Tall replicas shrink so the whole window fits on one screen (ratio = design width / height) */
.app-frame.fit-screen { width: min(100%, calc((100vh - 180px) * var(--design-ratio))); min-width: min(100%, 560px); margin: 0 auto; }

/* Home: abstract figure section (isometric line art) */
.figs { border-top: 1px solid var(--line-soft); }
.figs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 72px; padding-bottom: 88px; }
.fig { display: flex; flex-direction: column; padding: 0 36px; border-left: 1px solid var(--line-soft); }
.fig:first-child { padding-left: 0; border-left: 0; }
.fig:last-child { padding-right: 0; }
.fig-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-4); }
.fig-art { display: block; width: 100%; max-width: 320px; height: 240px; margin: 24px auto 36px; }
.fig .h3 { font-size: 15px; }
.fig .small { max-width: 320px; }
@media (max-width: 860px) {
  .figs-grid { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 40px; }
  .fig, .fig:first-child, .fig:last-child { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .fig:first-child { border-top: 0; }
  .fig-art { max-width: 300px; height: 220px; margin: 16px auto 24px; }
}
/* Figure animations (js/site.js adds .is-anim, then .is-in when the section scrolls into view) */
.figs.is-anim .fa-base, .figs.is-anim .fa-fade, .figs.is-anim .fa-open, .figs.is-anim .fa-dot { opacity: 0; }
.figs.is-anim .fa-drop { opacity: 0; transform: translateY(-18px); }
.figs.is-anim .fa-rise { opacity: 0; transform: translateY(10px); }
.figs.is-anim .fa-grow { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.figs.is-anim .fa-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.figs.is-anim .fa-runner { opacity: 0; }
.figs.is-in .fa-base { opacity: 1; transition: opacity 0.5s ease; }
.figs.is-in .fa-drop { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.15); transition-delay: calc(0.3s + var(--i) * 0.12s); }
.figs.is-in .fa-open { opacity: 1; transition: opacity 0.5s ease 1.2s; }
.figs.is-in .fa-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s ease 0.3s; }
.figs.is-in .fa-draw.fa-late { transition-delay: 1.3s; transition-duration: 0.8s; }
.figs.is-in .fa-grow { transform: none; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(0.4s + var(--i) * 0.035s); }
.figs.is-in .fa-fade { opacity: 1; transition: opacity 0.5s ease 1.6s; }
.figs.is-in .fa-rise { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); transition-delay: calc(0.3s + var(--i) * 0.1s); }
.figs.is-in .fa-dot { opacity: 1; transition: opacity 0.4s ease 1.3s; }
/* Gentle loops once the figures have settled */
.figs.is-in .fa-open path { animation: fa-march 1.4s linear infinite 1.7s; }
.figs.is-in .fa-pulse { animation: fa-pulse 2.6s ease-in-out infinite 1.4s; }
.figs.is-in .fa-runner { opacity: 1; transition: opacity 0.4s ease 2s; animation: fa-run 5s ease-in-out infinite alternate 2s; offset-rotate: 0deg; }
.figs.is-in .fa-bob { animation: fa-bob 2.4s ease-in-out infinite 1.8s; }
@keyframes fa-march { to { stroke-dashoffset: -10; } }
@keyframes fa-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }
@keyframes fa-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes fa-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.fa-runner { opacity: 0; }
