/* The public pages: the feature page (/) and the setup guide (/guide).
   The app's own pages use dashboard/style.css; the colours are the same. */

:root {
  --bg: #0e1116;
  --panel: #161b22;
  --panel-2: #1b222c;
  --border: #2d333c;
  --text: #e6e8eb;
  --muted: #9aa4b2;
  --accent: #f2b632;
  --green: #3fb950;
  --blue: #58a6ff;
  --purple: #bc8cff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
code {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: .15rem .45rem; font-size: .92em; overflow-wrap: anywhere;
}
.page { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .page { padding: 0 28px; } }

/* ---- the bar on top: the lockup, and the way in ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 22, .82); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--border); }
.top .page { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.mark { flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav .link {
  color: var(--muted); text-decoration: none; font-size: .92rem;
  padding: .4rem .65rem; border-radius: 8px;
}
.top nav .link:hover, .top nav .link[aria-current] { color: var(--text); }
@media (max-width: 600px) { .top nav .link { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: #161b22; border: 1px solid var(--accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .78rem 1.45rem; border-radius: 12px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: none; color: var(--accent); }
.btn.sm { padding: .42rem .95rem; border-radius: 10px; font-size: .9rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 1rem; }

.plus {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent); color: #161b22;
}
.noprog {
  display: flex; gap: .7rem; align-items: flex-start; max-width: 30rem; margin: 0;
  padding: .7rem .9rem; color: var(--muted); border-radius: 12px;
  background: rgba(242, 182, 50, .07); border: 1px solid rgba(242, 182, 50, .35);
}
.noprog strong { color: var(--text); }
.noprog .plus { margin-top: .12rem; }

/* ---- the hero ---- */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 2.2rem 0 1.5rem; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.15fr .85fr; padding: 4.5rem 0 3rem; } }
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em;
  margin: 0 0 1rem;
}
.hero .lede { font-size: clamp(1.15rem, 2.8vw, 1.4rem); color: var(--muted); margin: 0; max-width: 30rem; }
.hero .lede strong { color: var(--text); }
.hero .show { justify-content: center; }

/* The feature index: every section, one tap away. */
.chips {
  display: flex; gap: .5rem; overflow-x: auto; padding: .4rem 0 1.4rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; color: var(--muted); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; padding: .38rem .9rem; font-size: .9rem;
}
.chips a:hover { color: var(--text); border-color: var(--muted); }

/* ---- a feature: the copy beside its demo ---- */
.feat {
  display: grid; gap: 1.8rem; align-items: center;
  padding: 3.5rem 0; border-top: 1px solid var(--border);
}
@media (min-width: 880px) {
  .feat { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 5.5rem 0; }
  /* Every other feature puts its demo first, whatever order they're in. */
  .feat:nth-child(even of .feat):not(.wide) > .copy { order: 2; }
  .feat.wide { grid-template-columns: 1fr; gap: 2.5rem; }
}
.kicker {
  color: var(--accent); font-weight: 800; font-size: .78rem;
  letter-spacing: .15em; text-transform: uppercase; margin: 0 0 .6rem;
}
.feat h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .9rem; }
.feat .copy > p { color: var(--muted); font-size: 1.08rem; margin: 0 0 .9rem; max-width: 34rem; }
.feat .copy > p strong { color: var(--text); }
.feat .fine { font-size: .95rem; }
.points + .fine { margin-top: 1rem; }
.points { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.points li { display: flex; gap: .65rem; }
.points li::before {
  content: ""; flex: none; width: .45rem; height: .45rem; margin-top: .62rem;
  border-radius: 50%; background: var(--accent);
}
.try { display: inline-block; margin-top: 1.1rem; font-weight: 700; text-decoration: none; }
.try:hover { text-decoration: underline; }
.show { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; min-width: 0; }
.feat.wide .show { justify-content: center; }

/* ---- a live demo: the real app in a frame (dashboard/scene.js) ---- */
.frame {
  position: relative; display: block; flex: 1 1 300px; width: 100%; max-width: 400px;
  height: var(--h, 420px); overflow: hidden; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.frame iframe {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0;
  pointer-events: none; opacity: 0; transition: opacity .5s;
}
.frame iframe.ready { opacity: 1; }
/* Until the scene is ready (or if it never is): the bot, and the way in. */
.frame .wait {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: .6rem; color: var(--muted); font-size: .9rem;
}
.frame .wait img { opacity: .35; }
/* A cropped scene trails off rather than stopping dead. */
.frame::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 48px;
  background: linear-gradient(rgba(14, 17, 22, 0), var(--bg)); pointer-events: none;
}
.frame .tag {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #161b22; background: var(--accent); border-radius: 999px; padding: .15rem .55rem;
}
/* The hero's frame is a phone. */
.frame.phone {
  max-width: 350px; border-radius: 46px; border: 10px solid #1d242e;
  box-shadow: 0 0 0 1px var(--border), 0 30px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(242, 182, 50, .08);
}
.frame.phone::after { height: 70px; }
.caption { width: 100%; text-align: center; color: var(--muted); font-size: .9rem; margin: -.4rem 0 0; }

/* Two phones in one session (training together): side by side, a live
 * line between them that carries each tick across (site.js). Stacked on a
 * narrow screen, where the line has nowhere to go. */
.show.duo { align-items: center; flex-wrap: nowrap; gap: 0; }
.device { flex: 0 1 350px; min-width: 0; margin: 0; display: grid; gap: .8rem; justify-items: center; }
.device .frame { max-width: none; }
.device figcaption { color: var(--muted); font-size: .9rem; font-weight: 600; }
.sync {
  position: relative; flex: 0 0 72px; height: 2px; margin-bottom: 2.2rem;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.sync-dot {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); opacity: 0;
}
.sync.fire[data-dir="right"] .sync-dot { animation: sync-right .7s ease-in-out; }
.sync.fire[data-dir="left"] .sync-dot { animation: sync-left .7s ease-in-out; }
@keyframes sync-right { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes sync-left { 0% { left: 100%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@media (max-width: 879px) {
  .show.duo { flex-direction: column; gap: 2rem; }
  .device { width: 100%; max-width: 350px; }
  .sync { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sync.fire .sync-dot { animation: none; } }

/* ---- chat with your AI (no web screen to show: it happens in your app) ---- */
.chat {
  width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 1rem; font-size: .95rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.bubble { border-radius: 14px; padding: .55rem .8rem; margin: .5rem 0; max-width: 88%; }
.bubble.you { background: var(--panel-2); border: 1px solid var(--border); margin-left: auto; }
.bubble.ai { background: #20180a; border: 1px solid #4a3a10; }
.bubble .who { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .1rem; }
.bubble.ai .who { color: var(--accent); }
.chat .later {
  display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .4rem;
  color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
}
.chat .later::before, .chat .later::after { content: ""; flex: 1; border-top: 1px dashed var(--border); }

/* ---- a shared link, as it lands in a chat ---- */
.unfurl {
  width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 1rem; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.unfurl .msg {
  margin-left: auto; max-width: 92%; background: #1f6feb; color: #fff;
  border-radius: 18px 18px 6px 18px; overflow: hidden;
}
.unfurl .msg img { display: block; width: 100%; height: auto; }
.unfurl .msg p { margin: 0; padding: .55rem .8rem; font-size: .9rem; }
.unfurl .msg small { display: block; opacity: .75; font-size: .78rem; }
.unfurl .text { margin: .6rem 0 0 auto; width: fit-content; max-width: 80%; background: #1f6feb; color: #fff; border-radius: 18px; padding: .45rem .8rem; font-size: .92rem; }

/* ---- reminders: a lock screen's worth of nudges, and the bot's faces ---- */
.notifs { width: 100%; max-width: 420px; display: grid; gap: .6rem; }
.notif {
  display: grid; grid-template-columns: 38px 1fr; gap: .2rem .7rem; align-items: start;
  background: rgba(40, 46, 56, .85); border-radius: 20px; padding: .75rem .9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.notif img { grid-row: span 3; border-radius: 9px; }
.notif .app { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; }
.notif b { font-size: .95rem; }
.notif span.body { color: #cfd5dd; font-size: .92rem; line-height: 1.35; }
.notif.bro { border: 1px solid rgba(242, 182, 50, .3); }
.moods { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; width: 100%; margin-top: .6rem; }
.moods figure { margin: 0; display: grid; justify-items: center; gap: .25rem; }
.moods figcaption { color: var(--muted); font-size: .76rem; }

/* ---- and the rest: the small things, a card each ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
@media (min-width: 880px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid > div { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; }
.grid h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- the last word ---- */
.finale { text-align: center; padding: 4.5rem 0 3rem; border-top: 1px solid var(--border); }
.finale h2 { font-size: clamp(2rem, 6vw, 3rem); margin: .6rem 0 .3rem; letter-spacing: -.02em; }
.finale p { color: var(--muted); margin: 0; }
.finale .ctas { justify-content: center; }
.privacy-note {
  max-width: 44rem; margin: 0 auto; text-align: left; padding: 1.3rem 1.5rem; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
}
.privacy-note h2 { color: var(--text); font-size: 1.15rem; margin: 0 0 .5rem; }
.privacy-note p { margin: 0 0 .6rem; }
footer {
  color: var(--muted); font-size: .88rem; margin-top: 2rem;
  border-top: 1px solid var(--border); padding: 1.2rem 0 2.5rem;
}
footer a { margin-right: .9rem; }

/* ---- the setup guide: one numbered step after another ---- */
.guide { max-width: 46rem; padding-top: 2rem; padding-bottom: 1rem; }
.guide h1 { font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -.02em; margin: 1rem 0 .4rem; line-height: 1.1; }
.guide .lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.2rem; }
.step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; position: relative; padding-bottom: 2.2rem; }
.step::before {
  content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.7rem; bottom: .4rem;
  width: 2px; background: var(--border);
}
.step:not(:has(+ .step))::before { display: none; } /* a group's last step */
.step .n {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: #161b22;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step .n.opt { background: none; border: 2px solid var(--border); color: var(--muted); }
.step .n.done { background: var(--green); }
.step > div { min-width: 0; }
.guide .group {
  color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; margin: 2.2rem 0 1.2rem;
}
.step h3 { margin: .35rem 0 .3rem; font-size: 1.25rem; }
.box h4 { margin: 0 0 .5rem; font-size: 1rem; }
.step p, .step li { color: var(--muted); }
.step p { margin: .3rem 0 .6rem; }
.step p strong, .step li strong { color: var(--text); }
.step ol, .step ul { padding-left: 1.2rem; margin: .4rem 0 .8rem; }
.step li { margin: .3rem 0; }
.step .frame { margin: .8rem 0 .4rem; }
.opt-tag {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--border); border-radius: 6px;
  padding: .08rem .4rem; margin-left: .45rem; vertical-align: middle;
}
.urlchip { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 .8rem; }
.urlchip code { min-width: 0; }
.urlchip button {
  background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px;
  padding: .3rem .75rem; cursor: pointer; font: inherit; font-size: .82rem; flex: none;
}
.urlchip button:hover { color: var(--text); border-color: var(--muted); }
.box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: .9rem 1.1rem; margin: .7rem 0;
}
/* One row per platform: its name, then what to tap. */
.ways { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1rem; margin: .7rem 0; }
.ways dt { font-weight: 700; color: var(--text); }
.ways dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .ways { grid-template-columns: 1fr; gap: .1rem; } .ways dd { margin-bottom: .5rem; } }
.box ol, .box ul { margin: .3rem 0 0; }
.says { display: grid; gap: .45rem; margin: .6rem 0; }
.says div {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: .5rem .8rem; color: var(--text);
}
.says div small { display: block; color: var(--muted); font-size: .82rem; }
.box > :last-child { margin-bottom: 0; }
/* A demo inside a step's box: the box is its frame. */
.box .frame { border: 0; box-shadow: none; border-radius: 12px; max-width: none; }
