/* ============================================================
   Interact Savescreen — the landing (index.html, fr/index.html)
   On top of assets/styles.css (Optexia's tokens, header, footer, buttons).
   The board and the demo visuals are drawn as SCREENS: a dark glass surface
   in both themes, with their own palette (--s-*), as the app looks on a
   spare monitor. Everything moving is decorative and stops under
   prefers-reduced-motion. No inline style: the CSP forbids it.
   ============================================================ */

:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* The screen palette: the app's dark board, tinted with Optexia's teal and orange. */
.screen {
  --s-bg: #061416;
  --s-text: #e3ebe9;
  --s-dim: #a3b8b7;
  --s-faint: #6f8b8a;
  --s-line: rgba(255, 255, 255, 0.09);
  --s-line-2: rgba(255, 255, 255, 0.16);
  --s-glass: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --s-teal: #6cc4c4;
  --s-teal-soft: rgba(108, 196, 196, 0.14);
  --s-accent: #f2873f;
  --s-accent-soft: rgba(242, 135, 63, 0.14);
  --s-sand: #e9c46a;
  --s-sand-soft: rgba(233, 196, 106, 0.14);
  --s-shadow: 0 30px 60px -18px rgba(2, 8, 10, 0.75);
  color: var(--s-text);
}

/* Reveal on scroll: only when the page script runs (assets/theme.js sets html.js). */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

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

.section { padding: clamp(72px, 12vh, 132px) var(--gut) 24px; }
.section-head { max-width: 44rem; margin-bottom: clamp(28px, 5vh, 52px); }
.section h2 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.1rem); font-stretch: 122%; margin: 0 0 1rem; }
.section-sub { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 40rem; }
.eyebrow { font: 500 0.95rem var(--mono); color: var(--orange-ink); margin-bottom: 1.1rem; letter-spacing: 0.02em; }
.mono-chip {
  font: 500 0.88em var(--mono); white-space: nowrap;
  padding: 1px 7px; border-radius: 6px;
  border: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg) 90%, var(--ink));
}
.band { background: var(--bg-alt); }

/* ---------------------------------------------------------- */
/* Hero                                                         */
/* ---------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 6vh, 72px) var(--gut) clamp(48px, 9vh, 96px);
  min-height: calc(100svh - 80px);
}
.hero-title {
  font-size: clamp(2.3rem, 1.1rem + 3.6vw, 4.8rem);
  font-stretch: 116%; line-height: 1; margin: 0 0 1.4rem;
  max-width: 14ch;
}
.hero-title .strike { position: relative; color: var(--muted); }
.hero-title .strike::after {
  content: ""; position: absolute; left: -1%; right: -1%; top: 55%;
  height: 0.07em; background: var(--orange); transform: rotate(-1.5deg);
}
.hero-title .accent { color: var(--orange-ink); }
.hero-sub { color: var(--muted); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); max-width: 34rem; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  font: 400 0.95rem/1.5 var(--mono); color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--orange); }
.soon { color: var(--orange-ink); }

/* Optional "Try it in your browser" slot (TRY_URL). */
.try-slot { margin-top: 1.4rem; max-width: 30rem; }
.try-slot[hidden] { display: none; }
.try-note { font-size: 0.92rem; color: var(--muted); margin-top: 8px; }

/* ---------------------------------------------------------- */
/* The live board: a second screen, tilted                      */
/* ---------------------------------------------------------- */

.board-scene { perspective: 1500px; perspective-origin: 55% 40%; min-width: 0; }
.board {
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 60% at 25% 20%, rgba(108, 196, 196, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 85%, rgba(242, 135, 63, 0.12), transparent 70%),
    var(--s-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -30px rgba(6, 20, 22, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.tile-clock { --z: 46px; }
.tile-weather { --z: 24px; }
.tile-kanban { --z: 36px; }
.tile-ci { --z: 58px; }
.tile-pomo { --z: 30px; }
.tile-habits { --z: 18px; }
.tile-ticker { --z: 50px; }
.board-scene {
  perspective: 1500px;
  perspective-origin: 55% 40%;
}

.board {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(88px, auto)) 52px;
  grid-template-areas:
    "clock  clock  weather weather"
    "clock  clock  ci      ci"
    "kanban kanban ci      ci"
    "kanban kanban pomo    habits"
    "ticker ticker ticker  ticker";
  gap: 14px;
  transform-style: preserve-3d;
  transform: rotateX(calc(13deg + var(--rx))) rotateY(calc(-13deg + var(--ry))) rotateZ(1deg);
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.board.is-live { transition: none; }

.board-glow {
  position: absolute; inset: -8% -6%;
  background:
    radial-gradient(ellipse 60% 55% at 30% 25%, rgba(108, 196, 196, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 55% at 75% 75%, rgba(242, 135, 63, 0.16), transparent 70%);
  filter: blur(30px);
  transform: translateZ(-60px);
  pointer-events: none;
}

.tile {
  position: relative;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--s-glass);
  border: 1px solid var(--s-line);
  box-shadow: var(--s-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateZ(var(--z, 20px));
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  overflow: hidden;
}
.tile:hover {
  transform: translateZ(calc(var(--z, 20px) + 26px));
  border-color: rgba(108, 196, 196, 0.35);
  box-shadow: 0 36px 70px -18px rgba(2, 5, 12, 0.8), 0 0 24px -6px rgba(108, 196, 196, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tile-head {
  font: 600 0.6rem/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--s-faint);
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--s-teal); box-shadow: 0 0 7px var(--s-teal);
  flex-shrink: 0;
}
.tile-dot--violet { background: var(--s-accent); box-shadow: 0 0 7px var(--s-accent); }
.tile-dot--gold { background: var(--s-sand); box-shadow: 0 0 7px var(--s-sand); }
.tile-dot--teal { background: var(--s-teal); box-shadow: 0 0 7px var(--s-teal); }

.tile-clock   { grid-area: clock; }
.tile-weather { grid-area: weather; }
.tile-kanban  { grid-area: kanban; }
.tile-ci      { grid-area: ci; }
.tile-pomo    { grid-area: pomo; }
.tile-habits  { grid-area: habits; }
.tile-ticker  { grid-area: ticker; padding: 10px 15px; }

/* Clock tile */
.clock { display: flex; align-items: center; gap: 16px; }
.clock-face { width: 104px; height: 104px; flex-shrink: 0; }
.clock-digital {
  font: 600 1.5rem/1 var(--mono);
  letter-spacing: 0.04em;
}
.clock-sec {
  font-size: 0.85rem; color: var(--s-teal); margin-left: 5px;
  vertical-align: super;
}

/* Weather tile */
.weather { display: flex; align-items: center; gap: 14px; }
.weather-icon { position: relative; width: 52px; height: 44px; flex-shrink: 0; }
.weather-sun {
  position: absolute; top: 0; left: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd98a, var(--s-sand));
  box-shadow: 0 0 18px rgba(233, 196, 106, 0.55);
  animation: sun-pulse 4s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(233, 196, 106, 0.45); }
  50% { box-shadow: 0 0 24px rgba(233, 196, 106, 0.75); }
}
.weather-cloud {
  position: absolute; bottom: 2px; right: 0;
  width: 36px; height: 14px; border-radius: 10px;
  background: linear-gradient(180deg, #dfe6f5, #aeb9d6);
  animation: cloud-drift 6s ease-in-out infinite;
}
.weather-cloud::before {
  content: ""; position: absolute; top: -9px; left: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #dfe6f5;
}
@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}
.weather-temp { font: 700 1.7rem/1 var(--sans); letter-spacing: -0.02em; }
.weather-desc { font-size: 0.78rem; color: var(--s-dim); }
.weather-range {
  display: flex; gap: 12px; margin-top: 10px;
  font: 500 0.66rem var(--mono); color: var(--s-faint);
}

/* Kanban tile */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kanban-col-name {
  font: 600 0.58rem/1 var(--mono); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--s-faint); margin-bottom: 7px;
}
.kcard {
  font-size: 0.66rem; line-height: 1.3;
  padding: 6px 7px; margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--s-line);
  border-radius: 7px;
  color: var(--s-dim);
}
.kcard--active {
  border-color: rgba(242, 135, 63, 0.5);
  background: var(--s-accent-soft);
  color: var(--s-text);
  box-shadow: 0 0 14px -4px rgba(242, 135, 63, 0.5);
  animation: kcard-breathe 3.4s ease-in-out infinite;
}
@keyframes kcard-breathe {
  0%, 100% { box-shadow: 0 0 10px -4px rgba(242, 135, 63, 0.4); }
  50% { box-shadow: 0 0 18px -4px rgba(242, 135, 63, 0.7); }
}
.kcard--done { opacity: 0.55; text-decoration: line-through; }

/* CI tile */
.ci-list { list-style: none; }
.ci-row {
  display: flex; align-items: center; gap: 8px;
  font: 500 0.7rem var(--mono);
  color: var(--s-dim);
  padding: 5px 0;
  flex-wrap: wrap;
}
.ci-name { flex: 1; }
.ci-time { color: var(--s-faint); font-size: 0.62rem; }
.ci-status {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ci-status--ok { background: var(--s-teal); box-shadow: 0 0 6px var(--s-teal); }
.ci-status--run {
  background: var(--s-sand); box-shadow: 0 0 6px var(--s-sand);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.ci-bar {
  flex-basis: 100%;
  height: 4px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 2px;
}
.ci-bar-fill {
  display: block; height: 100%; width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--s-teal), var(--s-accent));
  animation: ci-progress 2.6s var(--ease) infinite;
}
@keyframes ci-progress {
  0% { transform: translateX(-110%); }
  60% { transform: translateX(120%); }
  100% { transform: translateX(260%); }
}
.ci-rerun {
  margin-top: 9px;
  font: 600 0.62rem var(--mono);
  color: var(--s-teal);
  background: var(--s-teal-soft);
  border: 1px solid rgba(108, 196, 196, 0.3);
  padding: 5px 10px; border-radius: 7px;
  cursor: default;
}

/* Pomodoro tile */
.pomo { display: flex; align-items: center; gap: 9px; }
.pomo-info { min-width: 0; }
.pomo-ring { width: 44px; height: 44px; flex-shrink: 0; }
.pomo-arc { animation: pomo-tick 8s linear infinite; }
@keyframes pomo-tick {
  from { stroke-dashoffset: 44; }
  to { stroke-dashoffset: 62; }
}
.pomo-time { font: 700 0.98rem/1.2 var(--mono); }
.pomo-label { font-size: 0.62rem; color: var(--s-faint); }

/* Habits tile */
.habit-strip { display: flex; gap: 4px; }
.hday {
  flex: 1 1 0; min-width: 0; max-width: 22px; aspect-ratio: 1;
  border-radius: 6px;
  display: grid; place-items: center;
  font: 600 0.56rem var(--mono);
  color: var(--s-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--s-line);
}
.hday--done {
  background: var(--s-teal-soft); border-color: rgba(108, 196, 196, 0.4);
  color: var(--s-teal);
}
.hday--today {
  border-color: var(--s-sand); color: var(--s-sand);
  animation: blink 2s ease-in-out infinite;
}
.habit-streak { margin-top: 8px; font: 500 0.64rem var(--mono); color: var(--s-faint); }
.habit-streak strong { color: var(--s-sand); }

/* Ticker tile */
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.ticker-track {
  display: flex; gap: 34px; width: max-content;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-item {
  font: 500 0.68rem var(--mono);
  color: var(--s-dim);
  white-space: nowrap;
}
.ticker-item em {
  font-style: normal; color: var(--s-accent); margin-right: 7px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------- */
/* The demo screens                                             */
/* ---------------------------------------------------------- */

/* Demo 1 — drag the ticket */
.demo-drag { display: flex; gap: 12px; padding: 14px; }
.dd-col {
  flex: 1;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  padding: 8px;
}
.dd-name {
  font: 600 0.58rem var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--s-faint); margin-bottom: 8px;
}
.dd-slot { height: 34px; border-radius: 7px; }
.dd-slot--target {
  background: var(--s-teal-soft);
  border: 1px dashed rgba(108, 196, 196, 0.4);
  animation: dd-target 5.5s ease-in-out infinite;
}
@keyframes dd-target {
  0%, 30%, 92%, 100% { opacity: 0; }
  40%, 82% { opacity: 1; }
}
.dd-card {
  position: absolute;
  top: 46px; left: 24px;
  width: calc(50% - 38px);
  padding: 8px 9px;
  font-size: 0.68rem; line-height: 1.25;
  background: linear-gradient(150deg, #163236, #0f2427);
  border: 1px solid rgba(242, 135, 63, 0.45);
  border-radius: 7px;
  color: var(--s-text);
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.6);
  animation: dd-move 5.5s var(--ease) infinite;
}
@keyframes dd-move {
  0%, 22% { transform: translate(0, 0) rotate(0); box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
  32% { transform: translate(8px, -8px) rotate(-3deg) scale(1.05); box-shadow: 0 16px 26px -6px rgba(0,0,0,.7); }
  58% { transform: translate(calc(100% + 26px), -8px) rotate(3deg) scale(1.05); box-shadow: 0 16px 26px -6px rgba(0,0,0,.7); }
  68%, 88% { transform: translate(calc(100% + 26px), 0) rotate(0) scale(1); box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
  94%, 100% { transform: translate(0, 0) rotate(0); opacity: 1; }
  90% { opacity: 0; }
  93% { opacity: 0; }
}
.dd-cursor {
  position: absolute; top: 60px; left: 60px;
  width: 14px; height: 14px;
  border: 2px solid var(--s-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(108, 196, 196, 0.6);
  animation: dd-cursor 5.5s var(--ease) infinite;
}
@keyframes dd-cursor {
  0%, 18% { transform: translate(0, 0); opacity: 0; }
  24% { opacity: 1; transform: translate(0, 0) scale(0.8); }
  32% { transform: translate(8px, -8px) scale(0.8); opacity: 1; }
  58% { transform: translate(calc(100% + 96px), -8px) scale(0.8); opacity: 1; }
  66% { transform: translate(calc(100% + 96px), 0) scale(1.15); opacity: 1; }
  74%, 100% { transform: translate(calc(100% + 96px), 10px); opacity: 0; }
}

/* Demo 2 — re-run CI */
.demo-ci { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.dc-row {
  display: flex; align-items: center; gap: 10px;
  font: 500 0.72rem var(--mono); color: var(--s-dim);
}
.dc-name { flex: 1; }
.dc-dot {
  width: 9px; height: 9px; border-radius: 50%;
  animation: dc-dot 7s linear infinite;
}
@keyframes dc-dot {
  0%, 18% { background: #e2705f; box-shadow: 0 0 8px rgba(226, 112, 95, 0.7); }
  22%, 74% { background: var(--s-sand); box-shadow: 0 0 8px rgba(233, 196, 106, 0.7); }
  80%, 100% { background: var(--s-teal); box-shadow: 0 0 8px rgba(108, 196, 196, 0.7); }
}
.dc-state { position: relative; width: 60px; height: 1em; }
.dc-state span {
  position: absolute; right: 0; top: 0;
  font: 600 0.66rem var(--mono);
}
.dc-state-fail { color: #f0937f; animation: dc-fail 7s linear infinite; }
.dc-state-run  { color: var(--s-sand); animation: dc-run 7s linear infinite; }
.dc-state-pass { color: var(--s-teal); animation: dc-pass 7s linear infinite; }
@keyframes dc-fail { 0%, 18% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes dc-run  { 0%, 20% { opacity: 0; } 22%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes dc-pass { 0%, 76% { opacity: 0; } 80%, 100% { opacity: 1; } }
.dc-bar {
  height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.dc-fill {
  display: block; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--s-teal), var(--s-accent));
  transform-origin: left;
  animation: dc-fill 7s linear infinite;
}
@keyframes dc-fill {
  0%, 20% { transform: scaleX(0); }
  74% { transform: scaleX(1); }
  92% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.dc-btn {
  align-self: flex-start;
  font: 600 0.72rem var(--mono);
  color: var(--s-teal);
  background: var(--s-teal-soft);
  border: 1px solid rgba(108, 196, 196, 0.35);
  padding: 7px 13px; border-radius: 8px;
  cursor: default;
  animation: dc-btn 7s linear infinite;
}
@keyframes dc-btn {
  0%, 14% { transform: scale(1); box-shadow: 0 0 0 rgba(108, 196, 196, 0); }
  17% { transform: scale(0.94); box-shadow: 0 0 18px rgba(108, 196, 196, 0.5); }
  20%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(108, 196, 196, 0); }
}

/* Demo 3 — check the habit */
.demo-habit {
  padding: 20px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.dh-title { font: 600 0.8rem var(--sans); color: var(--s-text); }
.dh-row { display: flex; gap: 9px; }
.dh-dot {
  width: 26px; height: 26px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--s-line);
}
.dh-dot--done {
  background: var(--s-teal-soft);
  border-color: rgba(108, 196, 196, 0.45);
}
.dh-dot--tick {
  color: var(--s-bg);
  display: grid; place-items: center;
  animation: dh-fill 6s ease infinite;
}
.dh-dot--tick svg { width: 15px; height: 15px; }
.dh-check {
  stroke-dasharray: 20; stroke-dashoffset: 20;
  animation: dh-check 6s ease infinite;
}
@keyframes dh-fill {
  0%, 28% { background: rgba(255, 255, 255, 0.05); border-color: var(--s-line); box-shadow: none; }
  38%, 88% { background: var(--s-teal); border-color: var(--s-teal); box-shadow: 0 0 16px rgba(108, 196, 196, 0.55); }
  96%, 100% { background: rgba(255, 255, 255, 0.05); border-color: var(--s-line); box-shadow: none; }
}
@keyframes dh-check {
  0%, 30% { stroke-dashoffset: 20; }
  44%, 88% { stroke-dashoffset: 0; }
  92%, 100% { stroke-dashoffset: 20; }
}
.dh-streak { font: 500 0.72rem var(--mono); color: var(--s-faint); }
.dh-streak strong {
  color: var(--s-sand);
  display: inline-grid;
  position: relative;
  width: 1.1em; height: 1.3em;
  overflow: hidden;
  vertical-align: bottom;
}
.dh-streak strong span { grid-area: 1 / 1; text-align: center; }
.dh-n1 { animation: dh-n1 6s ease infinite; }
.dh-n2 { animation: dh-n2 6s ease infinite; }
@keyframes dh-n1 {
  0%, 34% { transform: translateY(0); opacity: 1; }
  44%, 88% { transform: translateY(-110%); opacity: 0; }
  96%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes dh-n2 {
  0%, 34% { transform: translateY(110%); opacity: 0; }
  44%, 88% { transform: translateY(0); opacity: 1; }
  96%, 100% { transform: translateY(110%); opacity: 0; }
}

/* ---------------------------------------------------------- */
/* Act without switching windows                                */
/* ---------------------------------------------------------- */

.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.demo-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.demo-card h3 { font-size: 1.4rem; font-stretch: 112%; margin: 18px 0 8px; }
.demo-card > p { color: var(--muted); }
.demo-visual {
  position: relative; height: 150px; overflow: hidden;
  border-radius: 14px; background: var(--s-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------- */
/* Local-first                                                  */
/* ---------------------------------------------------------- */

.private-panel {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.private-note { margin-top: 1rem; color: var(--muted); font-size: 0.98rem; max-width: 40rem; }
.ai-pitch { margin-top: 2rem; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 14px; }
.ai-pitch h3 { font-size: 1.25rem; font-stretch: 110%; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 10px; }
.ai-spark {
  flex: none; width: 11px; height: 11px; background: var(--orange);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.ai-pitch p { color: var(--muted); }
.ai-pitch em { font-style: normal; color: var(--ink); font-weight: 600; }
.private-stats { margin: 0; display: grid; gap: 0; font-family: var(--mono); }
.pstat { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.pstat dt { font-size: 0.92rem; color: var(--muted); }
.pstat dd { margin: 0; font: 500 1.6rem/1 var(--mono); color: var(--orange-ink); }

/* ---------------------------------------------------------- */
/* Widget gallery                                               */
/* ---------------------------------------------------------- */

.chip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 1rem; transition: border-color 0.2s;
}
.chip:hover { border-color: var(--orange); }
.chip svg { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--logo-t); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip:nth-child(3n) svg { stroke: var(--orange); }
.chip-tag { margin-left: auto; font: 500 0.75rem var(--mono); color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.chip--more { justify-content: center; font: 400 0.92rem var(--mono); color: var(--muted); border-style: dashed; }

/* ---------------------------------------------------------- */
/* Built for your craft                                         */
/* ---------------------------------------------------------- */

.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 2rem 2.4vw; }
.craft-card { border-top: 1px solid var(--ink); padding-top: 1rem; }
.craft-role { font: 500 0.95rem var(--mono); color: var(--orange-ink); margin-bottom: 1rem; }
.craft-card h3 { font-size: 1.3rem; font-stretch: 112%; margin-bottom: 0.6rem; }
.craft-card > p { color: var(--muted); margin-bottom: 1rem; }
.craft-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.craft-stack li { font: 400 0.85rem var(--mono); color: var(--muted); padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; }

/* ---------------------------------------------------------- */
/* Pricing (when sales open)                                    */
/* ---------------------------------------------------------- */

.price-early { max-width: 60rem; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--orange); border-radius: 12px; background: color-mix(in oklab, var(--orange) 8%, var(--bg)); }
.price-early strong { color: var(--orange-ink); }
.price-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 22px; align-items: start; max-width: 60rem; }
.price-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 20px; }
.price-card--pro { border-color: var(--ink); background: color-mix(in oklab, var(--bg) 92%, var(--ink)); }
.price-badge { display: inline-block; font: 500 0.8rem var(--mono); letter-spacing: 0.04em; color: var(--orange-ink); border: 1px solid var(--orange); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.price-name { font-size: 1.5rem; font-stretch: 112%; margin-bottom: 6px; }
.price-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 16px; }
.price-amount { font: 600 2.6rem/1 var(--sans); font-stretch: 118%; letter-spacing: -0.03em; }
.price-period { font: 400 0.9rem var(--mono); color: var(--muted); }
.price-list { list-style: none; margin: 0 0 6px; padding: 0; }
.price-list li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); color: var(--muted); }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; background: var(--orange); }
.price-fine { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.download-slot { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; }
.download-cta { width: 100%; }
.download-note { font: 400 0.9rem var(--mono); color: var(--muted); text-align: center; }

/* First launch of an unsigned build (src/test/install-help.test.ts). */
.install-help { max-width: 60rem; margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted); font-size: 0.98rem; }
.install-help summary { cursor: pointer; color: var(--ink); }
.install-help-body { display: grid; gap: 10px; margin-top: 12px; }
.install-help ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 6px; }
.install-help strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- */
/* The beta program: the form                                   */
/* ---------------------------------------------------------- */

.beta { padding-bottom: clamp(72px, 12vh, 132px); }
.beta-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem 6vw; align-items: start; }
.beta-intro h2 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.6rem); font-stretch: 125%; line-height: 1; }
.beta-intro p { margin-top: 1.2rem; color: var(--muted); font-size: 1.12rem; max-width: 30rem; }
.beta-points { list-style: none; margin: 1.4rem 0 0; padding: 0; font: 400 0.95rem/1.4 var(--mono); max-width: 30rem; }
.beta-points li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.beta-points li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.45em; background: var(--orange); }

.beta-form {
  display: grid; gap: 1.2rem;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line-2); border-radius: 20px;
  background: color-mix(in oklab, var(--bg) 88%, var(--ink) 3%);
}
.beta-form label { display: block; font-weight: 540; }
.beta-form label > input:not([type="radio"]):not([type="checkbox"]), .beta-form label > select { display: block; margin-top: 8px; }
.beta-form .optional { margin-left: 0.4em; font: 400 0.85rem var(--mono); color: var(--muted); }
.beta-form input[type="email"], .beta-form input[type="text"], .beta-form select {
  width: 100%; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: color-mix(in oklab, var(--bg) 70%, var(--ink) 4%);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
}
.beta-form input:focus, .beta-form select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.beta-form [aria-invalid="true"] { border-color: var(--error); }
.choices, .chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend, .chips legend { font-weight: 540; margin-bottom: 10px; padding: 0; }
.choices { display: grid; gap: 8px; }
.beta-form .choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; font-weight: 400; cursor: pointer;
}
.choice input { margin: 0.2em 0 0; accent-color: var(--orange); width: 1.05em; height: 1.05em; flex: none; }
.choice span { display: block; }
.choice small { display: block; color: var(--muted); font-size: 0.92rem; }
.choice:has(input:checked) { border-color: var(--orange); background: color-mix(in oklab, var(--orange) 9%, transparent); }
.chips { display: block; }
.chips legend { display: block; }
.beta-form .chips label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  margin: 0 8px 8px 0; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 400; cursor: pointer;
}
.chips input { margin: 0; accent-color: var(--orange); }
.chips label:has(input:checked) { border-color: var(--orange); background: color-mix(in oklab, var(--orange) 12%, transparent); }
.chips .soon { font: 400 0.8rem var(--mono); }
.beta-only[hidden] { display: none; }
.consent { font-size: 0.95rem; color: var(--muted); }
.beta-form .btn { justify-self: start; }
.status { min-height: 1.4em; font: 400 0.98rem var(--mono); }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }
.beta-form.sent > :not(.status) { display: none; }
.beta-form.sent .status { font-size: 1.15rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-fallback { display: grid; gap: 12px; }

/* Local-preview-only reminder of unconfigured founder knobs (see app.js). */
.dev-banner {
  position: sticky; top: 0; z-index: 100; padding: 8px 16px;
  font: 500 0.8rem var(--mono); text-align: center;
  color: #1a1204; background: #e9c46a;
}

/* ---------------------------------------------------------- */
/* Small screens (mobile first: no horizontal scroll at 375 px) */
/* ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .board-scene { perspective: 1300px; max-width: 640px; width: 100%; margin: 0 auto; }
  .private-panel, .beta-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .board-scene { perspective: none; }
  .board {
    transform: none; padding: 12px; gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "clock  clock"
      "weather ci"
      "kanban kanban"
      "pomo   habits"
      "ticker ticker";
  }
  .board.is-live { transform: none; }
  .tile, .tile:hover { transform: none; }
  .board-glow { transform: none; }
  .clock-face { width: 84px; height: 84px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------- */
/* Reduced motion — everything settles, nothing loops           */
/* ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .board { transform: rotateX(10deg) rotateY(-10deg) rotateZ(1deg); }
  .ticker-track { animation: none; transform: none; }
  .dd-card { animation: none; transform: translate(calc(100% + 26px), 0); }
  .dd-cursor, .dd-slot--target { animation: none; opacity: 0; }
  .dc-dot { animation: none; background: var(--s-teal); box-shadow: 0 0 8px rgba(108, 196, 196, 0.7); }
  .dc-state-fail, .dc-state-run { animation: none; opacity: 0; }
  .dc-state-pass { animation: none; opacity: 1; }
  .dc-fill { animation: none; transform: scaleX(1); }
  .dc-btn { animation: none; }
  .dh-dot--tick { animation: none; background: var(--s-teal); border-color: var(--s-teal); }
  .dh-check { animation: none; stroke-dashoffset: 0; }
  .dh-n1 { animation: none; opacity: 0; }
  .dh-n2 { animation: none; opacity: 1; transform: none; }
  .ci-bar-fill { animation: none; transform: none; width: 70%; }
  .pomo-arc { animation: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .board { transform: none; }
}
