/* Satia public site. Warm, calm, type-led. Light + dark, unified with the dashboard. */
@import url("/fonts.css");

/* Light is the brand-forward default: cream paper, sage green, deep-green ink. */
:root {
  color-scheme: light;
  --bg: #faf7f0;
  --bg-2: #f2ede1;
  --surface: #ffffff;
  --surface-2: #f6f1e7;
  --surface-3: #efe8d9;
  --glass: rgba(255, 253, 247, 0.72);
  --ink: #2f4a39;
  --ink-display: #233a2b;
  --ink-2: #46594c;
  --muted: #5f7064;
  --faint: #8a9486;
  --line: #e6dfce;
  --line-2: #d8d0bc;
  --track: #e3ddcc;
  --green: #5a9367;
  --green-bright: #4c8158;
  --green-ink: #ffffff;
  --green-soft: rgba(90, 147, 103, 0.12);
  --green-line: rgba(90, 147, 103, 0.28);
  --honey: #bf8a40;
  --honey-bright: #a8742d;
  --honey-soft: rgba(191, 138, 64, 0.13);
  --honey-line: rgba(191, 138, 64, 0.3);
  --blue: #3f72a8;
  --red: #bf564a;
  --amber: #a8782a;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 24px 60px -28px rgba(47, 74, 57, 0.26);
  --shadow-sm: 0 12px 30px -18px rgba(47, 74, 57, 0.2);
  --font: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Dark: warm green-tinted near-black, cream text, brighter sage. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14160f;
  --bg-2: #0f110b;
  --surface: #1b1e16;
  --surface-2: #222619;
  --surface-3: #2b3020;
  --glass: rgba(27, 30, 22, 0.55);
  --ink: #f3efe7;
  --ink-display: #f7f1e6;
  --ink-2: #d6d2c4;
  --muted: #a6ad99;
  --faint: #767c69;
  --line: #2a2f21;
  --line-2: #39402d;
  --track: #2c3124;
  --green: #7fb98c;
  --green-bright: #97cda3;
  --green-ink: #0e1a12;
  --green-soft: rgba(127, 185, 140, 0.14);
  --green-line: rgba(127, 185, 140, 0.32);
  --honey: #e0b36a;
  --honey-bright: #efc886;
  --honey-soft: rgba(224, 179, 106, 0.14);
  --honey-line: rgba(224, 179, 106, 0.3);
  --blue: #7fb3f0;
  --red: #ef8a7d;
  --amber: #e0b24a;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 580px at 84% -12%, rgba(191, 138, 64, 0.1), transparent 60%),
    radial-gradient(820px 520px at 8% 2%, rgba(90, 147, 103, 0.12), transparent 58%),
    radial-gradient(900px 600px at 10% 106%, rgba(191, 138, 64, 0.08), transparent 60%),
    radial-gradient(1200px 760px at 62% 124%, rgba(90, 147, 103, 0.1), transparent 60%);
}

:root[data-theme="dark"] body::before {
  background:
    radial-gradient(1000px 580px at 84% -12%, rgba(224, 179, 106, 0.12), transparent 60%),
    radial-gradient(820px 520px at 8% 2%, rgba(127, 185, 140, 0.08), transparent 58%),
    radial-gradient(900px 600px at 10% 106%, rgba(224, 179, 106, 0.06), transparent 60%),
    radial-gradient(1200px 760px at 62% 124%, rgba(127, 185, 140, 0.07), transparent 60%);
}

a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--green-bright);
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--green-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--green);
  background-image: linear-gradient(180deg, var(--green-bright), var(--green));
  color: var(--green-ink);
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

a.button {
  color: var(--green-ink);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(62, 207, 142, 0.6);
  color: var(--green-ink);
}

button:active,
.button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button + button {
  margin-left: 8px;
}

.button.secondary,
.secondary-button,
button.ghost {
  background: transparent;
  background-image: none;
  border-color: var(--line-2);
  color: var(--ink);
}

.button.secondary:hover,
.secondary-button:hover,
button.ghost:hover {
  border-color: var(--green-line);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  background-image: none;
  border-color: var(--line-2);
  color: var(--ink);
}

button.danger {
  background: transparent;
  background-image: none;
  border-color: rgba(239, 125, 112, 0.45);
  color: var(--red);
}

button.danger:hover {
  background: rgba(239, 125, 112, 0.1);
  border-color: var(--red);
  color: var(--red);
  box-shadow: none;
}

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

.landing,
.auth,
.settings,
.onboarding,
.admin,
.doc {
  width: min(var(--maxw), calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 72px;
}

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

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  padding: 16px 4px;
}

nav::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* App pages (no scroll-driven landing.js) keep the nav glass solid so content
   doesn't bleed through the sticky bar when scrolling. */
.onboarding nav::after,
.settings nav::after,
.admin nav::after {
  opacity: 1;
}

nav > strong,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.brand-bowl {
  width: 26px;
  height: 26px;
  fill: var(--green);
  filter: drop-shadow(0 2px 4px rgba(90, 147, 103, 0.28));
}

.bm-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2.6;
}

.bm-arc {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 53.4;
  stroke-dashoffset: 12.8;
}

.bm-dot {
  fill: var(--green-bright);
}

nav span,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--ink-2);
  font-weight: 550;
  white-space: nowrap;
}

nav a:not(.button) {
  padding: 7px 11px;
  border-radius: 8px;
}

nav a:not(.button):hover {
  color: var(--ink);
  background: var(--surface-2);
}

nav .button {
  padding: 9px 15px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--green-line);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .ic-moon {
  fill: currentColor;
  stroke: none;
}

.theme-toggle .ic-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .ic-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .ic-moon {
  display: none;
}

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

.hero {
  max-width: 760px;
  padding: 56px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 60px 0 36px;
  position: relative; /* anchors the full-width hero word-field behind everything */
}

.hero-copy {
  max-width: 560px;
  position: relative;
  z-index: 1; /* headline sits above the word-field */
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 680;
  background: linear-gradient(180deg, var(--ink-display) 0%, var(--ink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .accent {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero p,
.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.actions,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  padding: 12px 20px;
  font-size: 15px;
}

.actions a:not(.button),
.hero-actions a:not(.button) {
  color: var(--ink-2);
  font-weight: 550;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(238, 244, 247, 0.66);
  font-size: 13px;
  font-weight: 500;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero preview (pure-CSS faux dashboard) ---------- */

.hero-preview {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0d1316);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.hp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}

.hp-title {
  margin-left: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.hp-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  padding: 22px 22px 24px;
}

.hp-ring {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 85%, var(--track, #1f262b) 85% 100%);
  display: grid;
  place-items: center;
}

.hp-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--surface);
}

.hp-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hp-ring-num {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.hp-ring-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-self: center;
}

.hp-stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.hp-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.hp-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.hp-stat.up strong {
  color: var(--green);
}

.hp-bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hp-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--green), rgba(62, 207, 142, 0.35));
  opacity: 0.92;
}

.hp-bars i:nth-child(2n) {
  background: linear-gradient(180deg, #38506a, rgba(56, 80, 106, 0.4));
}

.hp-bars i:nth-child(1) { height: 52%; }
.hp-bars i:nth-child(2) { height: 74%; }
.hp-bars i:nth-child(3) { height: 40%; }
.hp-bars i:nth-child(4) { height: 88%; }
.hp-bars i:nth-child(5) { height: 63%; }
.hp-bars i:nth-child(6) { height: 96%; }
.hp-bars i:nth-child(7) { height: 48%; }
.hp-bars i:nth-child(8) { height: 80%; }
.hp-bars i:nth-child(9) { height: 58%; }
.hp-bars i:nth-child(10) { height: 70%; }

/* keep the legacy image hidden if present, the CSS preview replaces it */
.hero-visual {
  display: none;
}

/* ---------- section heads ---------- */

.section {
  position: relative;
  padding: 92px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* (Section tint removed - it created a hard-edged band clipped to the content
   width. Rhythm now comes from the hairline dividers, spacing, and the soft
   full-viewport body washes, which have no hard edges.) */

.define-section,
.demo-section {
  padding: 116px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 660;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.features article,
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.features article:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-line);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.8);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  margin-bottom: 4px;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h2,
.feature-card h2 {
  font-size: 17px;
  font-weight: 640;
}

.features p,
.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0d1215);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}

.step h2 {
  font-size: 16px;
  font-weight: 640;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- generic panels / forms ---------- */

.panel,
form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel h1,
.panel h2 {
  background: none;
  -webkit-background-clip: border-box;
  color: var(--ink);
}

.panel p {
  color: var(--muted);
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-line);
  box-shadow: 0 0 0 3px var(--green-soft);
  background: var(--surface);
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

label {
  color: var(--ink-2);
}

/* ---------- auth ---------- */

.auth {
  max-width: 432px;
  padding-top: 36px;
}

.auth-status {
  text-align: center;
  padding: 32px 28px;
}
.auth-status .status-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-line, var(--green));
  color: var(--green);
}
.auth-status .status-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-status .eyebrow { margin-bottom: 8px; }
.auth-status h1 { margin: 0 0 8px; }
.auth-status > p { color: var(--ink-2, var(--muted)); }
.auth-status .button { margin-top: 18px; }

.auth > a:first-child,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.auth form h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 680;
  background: none;
  color: var(--ink);
}

.auth form > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-sub {
  margin: 0 0 6px !important;
  color: var(--muted);
  font-size: 14.5px;
}

[data-invite-field][hidden] {
  display: none;
}

.auth form > p a {
  font-weight: 600;
}

.auth button[type="submit"],
.auth form button:not(.ghost) {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
}

#message {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

#message:not(:empty) {
  margin-top: 2px;
}

.fine-print {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- pricing ---------- */

.pricing-hero {
  max-width: 760px;
  padding: 48px 0 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 28px;
}

.pricing-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-grid article.popular {
  border-color: var(--green-line);
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.07), var(--surface) 42%);
  box-shadow: 0 30px 60px -34px rgba(62, 207, 142, 0.45);
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-grid h2 {
  font-size: 18px;
}

.price {
  margin: 10px 0 8px;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-grid p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 0;
  width: 100%;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}

.pricing-grid .button {
  margin-top: auto;
  width: 100%;
}

.pricing-grid.pricing-solo {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

.pricing-note {
  margin: 18px auto 0;
  max-width: 580px;
  text-align: center;
}

/* ---------- onboarding ---------- */

.onboarding {
  max-width: 920px;
  padding-top: 8px;
}

.compact-hero {
  padding: 32px 0 4px;
  margin-bottom: 18px;
}

.compact-hero h1 {
  max-width: 740px;
  font-size: clamp(30px, 4.4vw, 46px);
}

.compact-hero p {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}

.onboarding-form {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid label span,
.checkbox-line span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-grid textarea {
  min-height: 188px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  grid-template-columns: none !important;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--green);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.notice.warn {
  border-color: rgba(224, 178, 74, 0.4);
  background: rgba(224, 178, 74, 0.08);
}

.notice .notice-icon {
  flex: none;
  margin-top: 1px;
  color: var(--amber);
}

.notice .notice-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice button {
  margin-top: 8px;
  padding: 8px 13px;
  font-size: 13px;
}

.notice.ok {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.notice.ok .notice-icon {
  color: var(--green);
}

.sticky-actions {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.sticky-actions p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
}

.code-out,
.settings pre {
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- settings / admin ---------- */

.settings,
.admin {
  display: grid;
  max-width: 920px;
  gap: 22px;
  padding-top: 8px;
}

.settings .panel { padding: 22px 24px; }
.settings .panel h1,
.settings .panel h2 { margin: 6px 0 8px; }
.settings .panel > p { margin: 0 0 14px; line-height: 1.55; }
.settings .panel .btn-row { margin-top: 4px; }
/* early-access celebration (subtle, one-time confetti) */
.plan-celebrate { position: relative; overflow: hidden; }
.celebrate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span {
  position: absolute;
  top: -14px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
}
.confetti span:nth-child(odd) { background: var(--green); }
.confetti span:nth-child(even) { background: var(--honey); }
.confetti span:nth-child(3n) { background: var(--green-bright); }
.confetti span:nth-child(1) { left: 6%; animation-delay: 0.02s; }
.confetti span:nth-child(2) { left: 14%; animation-delay: 0.28s; }
.confetti span:nth-child(3) { left: 23%; animation-delay: 0.12s; }
.confetti span:nth-child(4) { left: 31%; animation-delay: 0.42s; }
.confetti span:nth-child(5) { left: 40%; animation-delay: 0.06s; }
.confetti span:nth-child(6) { left: 48%; animation-delay: 0.34s; }
.confetti span:nth-child(7) { left: 57%; animation-delay: 0.18s; }
.confetti span:nth-child(8) { left: 65%; animation-delay: 0.48s; }
.confetti span:nth-child(9) { left: 74%; animation-delay: 0.1s; }
.confetti span:nth-child(10) { left: 82%; animation-delay: 0.38s; }
.confetti span:nth-child(11) { left: 90%; animation-delay: 0.22s; }
.confetti span:nth-child(12) { left: 96%; animation-delay: 0.3s; }
@media (prefers-reduced-motion: no-preference) {
  .plan-celebrate .confetti span { animation: confetti-fall 2.8s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-12px) rotate(0deg); }
  12% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(240px) rotate(380deg); }
}

.settings-links { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.settings-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.settings-links a:hover { color: var(--ink); }
.settings-status { color: var(--green); font-weight: 600; }
.settings-status:empty { display: none; }
.bot-link-out { margin-top: 10px; }
.bot-link-out:empty { display: none; }
#botLink:empty { display: none; }

/* "Don't have Telegram?" helper shown beneath Connect actions */
.tg-help {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.tg-help a { color: var(--green); text-decoration: none; }
.tg-help a:hover { text-decoration: underline; }

/* Landing: note that the web dashboard works without Telegram */
.steps-note {
  margin: 22px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
/* the hidden attribute must win over button/display rules */
[hidden] { display: none !important; }

.admin {
  max-width: 1000px;
}

.settings nav,
.admin nav,
.onboarding nav {
  margin-bottom: 4px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.funnel-step {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.funnel-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.funnel-num { font-size: 24px; font-weight: 820; letter-spacing: -0.02em; }
.funnel-pct { color: var(--green); font-size: 12px; font-weight: 720; }
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stat-grid span,
.stat-grid em,
.empty-note {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.stat-grid strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-table th,
.admin-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.account-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 15px;
}

.account-line .pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-row button {
  margin-left: 0;
}

/* ---------- doc ---------- */

.doc {
  max-width: 720px;
  padding-top: 28px;
  line-height: 1.7;
  color: var(--ink-2);
}

.doc h1 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4vw, 46px);
}

.doc h2 {
  margin: 28px 0 8px;
  color: var(--ink);
}

.doc p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.doc strong {
  color: var(--ink);
}

/* ---------- cta band ---------- */

.cta-band {
  margin-top: 72px;
  padding: clamp(52px, 7vw, 88px) clamp(28px, 5vw, 60px);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  background:
    radial-gradient(720px 280px at 82% 0%, rgba(232, 182, 92, 0.12), transparent 70%),
    linear-gradient(120deg, rgba(232, 182, 92, 0.07) 0%, rgba(62, 207, 142, 0.12) 100%),
    var(--surface);
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
  color: var(--ink-display);
}

.cta-band p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

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

.cta-band .button {
  padding: 14px 26px;
  font-size: 16px;
}

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

footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

footer a {
  color: var(--muted);
  font-weight: 500;
}

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

footer .footer-brand {
  margin-right: auto;
  color: var(--muted);
  font-weight: 600;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-preview {
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-preview {
    animation-delay: 0.08s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 24px;
  }

  .features,
  .steps,
  .pricing-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article.popular {
    order: -1;
  }
}

@media (max-width: 640px) {
  .landing,
  .auth,
  .settings,
  .onboarding,
  .admin,
  .doc {
    width: calc(100vw - 28px);
  }

  nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 4px;
    row-gap: 6px;
  }

  /* Tighten links on small screens so the bar doesn't feel cramped. */
  nav a:not(.button) {
    padding: 6px 8px;
    font-size: 14px;
  }
  nav .button {
    padding: 8px 13px;
    font-size: 14px;
  }

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

  .hp-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-actions p {
    margin: 0 0 4px;
  }
}

/* ======================================================================
   "Parse" art direction - landing hero, sections, ring, motion
   ====================================================================== */

.count,
.li-kcal,
.pc-ring-num,
.tn strong,
.device-live {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
body.loaded .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- sticky nav: glass on scroll ---------- */
.nav-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}
/* Offset in-page anchor jumps so the sticky nav doesn't cover the heading. */
#how,
#pricing {
  scroll-margin-top: 88px;
}
#siteNav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#siteNav::after {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#siteNav.scrolled::after {
  opacity: 1;
}
body.loaded .bm-arc {
  animation: bm-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
@keyframes bm-draw {
  from { stroke-dashoffset: 53.4; }
  to { stroke-dashoffset: 12.8; }
}

/* ---------- hero ---------- */
.hero-art {
  align-items: center;
  min-height: min(82vh, 720px);
}

.hero-field {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* full-bleed across the viewport, not just the centered column */
  top: -104px; /* bleed up behind the nav so the words meet the top bar (no gap) */
  height: calc(100% + 104px);
  z-index: 0;
  pointer-events: none;
}

.hero-title {
  display: grid;
  gap: 2px;
  background: none;
  color: var(--ink-display);
  -webkit-text-fill-color: var(--ink-display);
}
.hero-title .hl {
  display: block;
  overflow: hidden;
  position: relative;
  color: var(--ink-display);
  -webkit-text-fill-color: var(--ink-display);
}
.hero-title .accent {
  color: var(--green-bright);
  -webkit-text-fill-color: var(--green-bright);
  text-shadow: 0 0 28px rgba(62, 207, 142, 0.28);
  padding-bottom: 0.08em;
}
.hl-underline {
  position: absolute;
  left: 0;
  bottom: 0.02em;
  width: 86%;
  height: 0.34em;
  color: var(--green);
  overflow: visible;
}
.hl-underline path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}
body.loaded .hl-underline path {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
  stroke-dashoffset: 0;
}
/* line-by-line reveal - gated on JS so the headline stays visible without it */
body.loaded .hero-title .hl {
  animation: hl-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.loaded .hero-title .hl:nth-child(2) {
  animation-delay: 0.12s;
}
@keyframes hl-rise {
  from { transform: translateY(115%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ghost-link {
  color: var(--ink-2);
  font-weight: 550;
}

/* hero stage + canvas backdrop */
.hero-stage {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: var(--grain, none);
  background-size: 200px 200px;
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

/* the device card */
.hero-device {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.12), 0 40px 90px -40px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform 0.2s ease-out;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.d-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.device-title {
  margin-left: 6px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.device-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.device-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
.device-body {
  display: grid;
  gap: 12px;
  padding: 18px 16px 20px;
}
.chat-bubble {
  justify-self: start;
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--honey-soft);
  border: 1px solid var(--honey-line);
  color: var(--honey-bright);
  font-size: 14px;
  line-height: 1.45;
}
.chat-bubble .chat-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--honey-bright);
  opacity: 0;
}
.chat-bubble.typing .chat-text::after {
  opacity: 1;
  animation: caret 1s step-end infinite;
}
.parse-flag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  transition: opacity 0.4s ease, color 0.4s ease;
}
body.loaded .hero-device .parse-flag:not(.show) {
  opacity: 0;
}
.parse-flag.show {
  opacity: 1;
  color: var(--green);
}
.ledger {
  display: grid;
  gap: 7px;
}
.ledger-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
body.loaded .hero-device .ledger-item:not(.show) {
  opacity: 0;
  transform: translateY(8px);
}
.ledger-item.show {
  opacity: 1;
  transform: none;
}
.li-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.li-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.li-dot.other {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 125, 112, 0.16);
}
.li-name {
  font-size: 13.5px;
  color: var(--ink-2);
}
.li-kcal {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.li-kcal::after {
  content: " kcal";
  color: rgba(180, 196, 186, 0.72);
  font-size: 10px;
}
.device-totals {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.totals-nums {
  display: grid;
  gap: 9px;
}
.tn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tn-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 209, 215, 0.78);
}
.tn strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tn-trend {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- reusable ring ---------- */
.pc-ring {
  position: relative;
  width: 116px;
  height: 116px;
  flex: none;
  display: grid;
  place-items: center;
}
.pc-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}
.pc-ring-track {
  fill: none;
  stroke: var(--track, #1f262b);
  stroke-width: 9;
}
.pc-ring-arc {
  fill: none;
  stroke: var(--green);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.6s ease;
}
.pc-ring-glow {
  fill: none;
  stroke: var(--green);
  stroke-width: 9;
  stroke-linecap: round;
  filter: blur(7px);
  opacity: 0.55;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.pc-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1px;
}
.pc-ring-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-display);
  line-height: 1;
}
.pc-ring-cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- the mess ---------- */
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.mess-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px 18px;
  margin-top: 8px;
}
.mess-bubble {
  padding: 12px 16px;
  border-radius: 16px 16px 16px 5px;
  background: var(--honey-soft);
  border: 1px solid var(--honey-line);
  color: var(--honey-bright);
  font-size: 14.5px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
.mess-bubble:nth-child(2) { margin-top: 16px; }
.mess-bubble:nth-child(3) { margin-top: 5px; }
.mess-bubble:nth-child(4) { margin-top: 20px; }
.mess-bubble:nth-child(5) { margin-top: 3px; }
.mess-bubble:nth-child(6) { margin-top: 13px; }
.mess-bubble:nth-child(odd) {
  box-shadow: 0 0 0 1px var(--honey-line), 0 12px 28px rgba(232, 182, 92, 0.1);
}
body.loaded .mess-section:not(.in-view) .mess-bubble {
  transform: rotate(var(--rot, 0deg)) translateY(18px);
  opacity: 0;
}
.mess-section.in-view .mess-bubble:nth-child(2) { transition-delay: 0.06s; }
.mess-section.in-view .mess-bubble:nth-child(3) { transition-delay: 0.12s; }
.mess-section.in-view .mess-bubble:nth-child(4) { transition-delay: 0.18s; }
.mess-section.in-view .mess-bubble:nth-child(5) { transition-delay: 0.24s; }
.mess-section.in-view .mess-bubble:nth-child(6) { transition-delay: 0.3s; }

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  margin-top: 10px;
}
.timeline-spine {
  position: absolute;
  top: 16px;
  left: 4%;
  width: 92%;
  height: 4px;
  color: var(--line-2);
}
.timeline-spine path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.timeline-section.in-view .timeline-spine path {
  transition: stroke-dashoffset 1.4s ease 0.1s;
  stroke-dashoffset: 0;
  stroke: var(--green-line);
}
.timeline .steps {
  position: relative;
}
.timeline .step {
  background: linear-gradient(180deg, var(--surface), #0d1215);
}
.timeline .step-num {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg);
}
.step-type {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-bright);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- define section ---------- */
.define-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 40px;
  padding: 18px 0;
}
.define-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
}
.define-copy .accent {
  color: var(--green-bright);
}
.define-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.define-col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.dl-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dl-head::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dl-head.ok {
  color: var(--green);
}
.dl-head.ok::before {
  background: var(--green);
}
.dl-head.other {
  color: var(--red);
}
.dl-head.other::before {
  background: var(--red);
}
.define-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.define-col li {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.define-ring {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(62, 207, 142, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-sm);
}
.define-ring .pc-ring {
  width: 168px;
  height: 168px;
}
.define-ring .pc-ring-num {
  font-size: 36px;
}
.define-cap {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- try-it demo ---------- */
.demo {
  max-width: 840px;
  margin: 8px auto 0;
}
.demo-form {
  display: flex;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.demo-form input {
  flex: 1;
}
.demo-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.chip:hover {
  border-color: var(--honey-line);
  color: var(--honey-bright);
  background: var(--honey-soft);
  box-shadow: none;
  transform: none;
}
.demo-out {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  min-height: 140px;
}
.demo-ledger {
  display: grid;
  gap: 8px;
  align-content: center;
}
.demo-ledger:empty::before {
  content: "Pick an example or type a meal above.";
  color: var(--faint);
  font-size: 14px;
}
.demo-ledger .ledger-item {
  opacity: 1;
  transform: none;
}
.demo-totals {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.demo-totals .pc-ring {
  width: 104px;
  height: 104px;
}
.demo-totals .pc-ring-num {
  font-size: 23px;
}
.demo-totals .totals-nums {
  width: 100%;
}

/* ---------- feature micro-instruments ---------- */
.features-section .feature-card h3 {
  font-size: 17px;
  font-weight: 640;
}
.fc-viz {
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.fc-viz .pc-ring {
  width: 86px;
  height: 86px;
}
.fc-viz .pc-ring-num {
  font-size: 19px;
}
.fc-stream {
  width: 100%;
  height: 86px;
}
.fc-chat {
  width: 100%;
  height: 86px;
  display: none; /* desktop shows the animated canvas; mobile swaps to this */
}
@media (max-width: 760px) {
  .fc-stream { display: none; }
  .fc-chat { display: block; }
}
.fc-spark {
  width: 100%;
  height: 80px;
  color: var(--blue);
}
.fc-spark-path {
  stroke-dasharray: 320;
  transition: stroke-dashoffset 1.3s ease 0.1s;
}
body.loaded .features-section:not(.in-view) .fc-spark-path {
  stroke-dashoffset: 320;
}
.fc-spark-dot {
  fill: var(--blue);
  transition: opacity 0.4s ease 1.2s;
}
body.loaded .features-section:not(.in-view) .fc-spark-dot {
  opacity: 0;
}

/* Loop the ring fill + sparkline draw while the section is in view, so cards 2
   and 3 keep animating like card 1's canvas (not just a one-shot reveal). This
   no-preference block is mutually exclusive with the reduce block below, so
   motion-reduced users still get the static final state. */
@media (prefers-reduced-motion: no-preference) {
  .features-section.in-view .pc-ring-arc { animation: fc-ring-loop 5.2s ease-in-out infinite; }
  .features-section.in-view .pc-ring-glow { animation: fc-ring-glow-loop 5.2s ease-in-out infinite; }
  .features-section.in-view .fc-spark-path { animation: fc-spark-loop 5.2s ease-in-out infinite; }
  .features-section.in-view .fc-spark-dot { animation: fc-spark-dot-loop 5.2s ease-in-out infinite; }
}
@keyframes fc-ring-loop {
  0%, 7% { stroke-dashoffset: 326.7; opacity: 0; }
  18% { opacity: 1; }
  48%, 84% { stroke-dashoffset: 49; opacity: 1; }
  95%, 100% { stroke-dashoffset: 49; opacity: 0; }
}
@keyframes fc-ring-glow-loop {
  0%, 7% { stroke-dashoffset: 326.7; opacity: 0; }
  18% { opacity: 0.55; }
  48%, 84% { stroke-dashoffset: 49; opacity: 0.55; }
  95%, 100% { stroke-dashoffset: 49; opacity: 0; }
}
@keyframes fc-spark-loop {
  0%, 7% { stroke-dashoffset: 320; opacity: 0; }
  18% { opacity: 1; }
  48%, 84% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes fc-spark-dot-loop {
  0%, 46% { opacity: 0; }
  56%, 86% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
.feature-card.spotlight {
  position: relative;
  overflow: hidden;
}
.feature-card.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%), var(--green-soft), transparent 70%);
}
.feature-card.spotlight:hover::before {
  opacity: 1;
}

/* ---------- CTA band art ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
}

/* ---------- footer signal line ---------- */
.footer-signal {
  width: 100%;
  height: 22px;
  flex: 1 1 100%;
  color: var(--line-2);
  margin-bottom: 6px;
}
.footer-signal path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
body.loaded .footer-signal path {
  transition: stroke-dashoffset 2s ease;
  stroke-dashoffset: 0;
}
.footer-tag {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- keyframes ---------- */
@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(62, 207, 142, 0.08); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-art {
    min-height: 0;
  }
  .hero-field {
    opacity: 0.5; /* let the words recede behind the copy on small screens */
  }
  .hero-stage {
    min-height: 380px;
    order: 2;
  }
  .define-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .define-ring {
    order: -1;
  }
  .demo-out {
    grid-template-columns: 1fr;
  }
  .demo-totals {
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-device {
    width: 100%;
  }
  .mess-bubble {
    font-size: 13.5px;
  }
  .demo-form {
    flex-direction: column;
  }
  .define-lists {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mess-bubble,
  .ledger-item,
  .hero-title .hl {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .pc-ring-arc,
  .pc-ring-glow {
    transition: none !important;
    /* keep the server-rendered offset (it encodes the % value) */
  }
  .fc-spark-path,
  .timeline-spine path,
  .hl-underline path,
  .footer-signal path {
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }
  .bm-arc {
    animation: none !important;
  }
  .hero-stage::after {
    display: none;
  }
  .device-live::before {
    animation: none;
  }
}

/* ---------- critique refinements ---------- */
.landing-art .section-head .eyebrow,
.landing-art .define-copy .eyebrow {
  color: var(--green-bright);
  letter-spacing: 0.14em;
  margin-bottom: 11px;
}
.define-col:first-child {
  border-left: 2px solid var(--honey-line);
}
.hl-underline {
  height: 0.3em;
}
.hl-underline path {
  stroke: rgba(92, 227, 164, 0.92);
}
/* sparse-section ledger-rule texture (fades at edges) */
.timeline-section::before,
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 30px);
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.timeline-section > *,
.demo-section > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 901px) {
  .demo-totals {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    padding-left: 24px;
  }
}
@media (max-width: 640px) {
  .eyebrow-chip {
    margin-bottom: 18px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .button,
  .hero-actions .ghost-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-device {
    margin-bottom: 10px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-actions {
    width: 100%;
  }
  .cta-actions .button {
    flex: 1;
  }
}

/* ======================================================================
   Onboarding wizard - tap-first, smart defaults
   ====================================================================== */
.onboarding.wizard {
  max-width: 640px;
  padding-bottom: 60px;
}
.wiz {
  margin-top: 8px;
}
.wiz-progress {
  display: flex;
  gap: 8px;
  margin: 8px 0 30px;
}
.wiz-dot {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color 0.3s ease;
}
.wiz-dot.active {
  background: var(--green);
}
.wiz-step {
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wiz h1 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  background: none;
  color: var(--ink-display);
  -webkit-text-fill-color: var(--ink-display);
}
.wiz h1 .accent {
  color: var(--green-bright);
  -webkit-text-fill-color: var(--green-bright);
}
.wiz-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.wiz-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

/* fine-tune (manual targets) dims the auto selectors above it */
.wiz-step.auto-paused #goalCards,
.wiz-step.auto-paused .wiz-row {
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

/* choice cards (goal) */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  background-image: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.choice-card svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.16s ease;
}
.choice-card strong {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.choice-card small {
  color: var(--muted);
  font-size: 12px;
}
.choice-card:hover {
  border-color: var(--green-line);
  transform: translateY(-2px);
  box-shadow: none;
  color: var(--ink);
}
.choice-card.selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px var(--green-line), 0 14px 30px -18px rgba(62, 207, 142, 0.6);
}
.choice-card.selected svg {
  stroke: var(--green);
}

/* row: activity + weight */
.wiz-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
}
.seg button {
  padding: 9px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  background-image: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.seg button:hover {
  color: var(--ink);
  box-shadow: none;
  transform: none;
}
.seg button.selected {
  background: var(--green);
  background-image: linear-gradient(180deg, var(--green-bright), var(--green));
  color: var(--green-ink);
}
.num-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  padding-right: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.num-field:focus-within {
  border-color: var(--green-line);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.num-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 650;
  min-height: 46px;
}
.num-field input:focus {
  box-shadow: none;
}
.num-unit {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* target preview card */
.target-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(120% 100% at 0% 0%, rgba(62, 207, 142, 0.07), rgba(255, 255, 255, 0.015));
}
.tc-head {
  display: grid;
  gap: 4px;
}
.tc-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tc-cal {
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-display);
  font-variant-numeric: tabular-nums;
}
.tc-cal em {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
}
.tc-macros {
  display: grid;
  gap: 9px;
}
.macro {
  display: grid;
  grid-template-columns: 56px 44px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.macro span {
  color: var(--muted);
}
.macro b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.macro .mbar {
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.macro .mfill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mfill.p { background: var(--green); }
.mfill.c { background: var(--blue); }
.mfill.f { background: var(--honey); }

/* advanced disclosure */
.advanced {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.advanced summary::-webkit-details-marker {
  display: none;
}
.advanced summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--green);
}
.advanced[open] summary::before {
  content: "\2212";
}
.advanced summary:hover {
  color: var(--ink);
}

/* healthy chips */
.chip-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ftoggle {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  background-image: none;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.ftoggle::before {
  content: "+";
  margin-right: 8px;
  color: var(--faint);
  font-family: var(--mono);
}
.ftoggle:hover {
  border-color: var(--green-line);
  color: var(--ink);
  box-shadow: none;
  transform: translateY(-1px);
}
.ftoggle.on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-bright);
}
.ftoggle.on::before {
  content: "\2713";
  color: var(--green);
}

/* wizard nav */
.wiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.wiz-nav .button {
  padding: 12px 24px;
}
.wiz-nav [data-back] {
  margin-right: auto;
}
.wiz-nav [data-next],
.wiz-nav a.button:last-child {
  margin-left: auto;
}
.wiz-skip {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.wiz-msg {
  margin-top: 16px;
  min-height: 1em;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* step 3: sequential connect steps + logging examples */
.connect-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.connect-steps > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cs-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 700;
}
.cs-body {
  flex: 1;
  min-width: 0;
}
.cs-body > strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cs-body > p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.cs-body .button {
  margin: 0;
}
.cs-body .bot-link-out {
  margin-top: 10px;
}
.cs-body .bot-link-out:empty {
  display: none;
}
.log-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.log-examples li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
}
.log-examples li em {
  color: var(--muted);
  font-style: normal;
}
.log-examples li b {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 560px) {
  .choice-cards {
    grid-template-columns: 1fr;
  }
  .wiz-row {
    grid-template-columns: 1fr;
  }
  .target-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }
}
/* ======================================================================
   Food-bucket editor (drag-and-drop pills) - shared with dashboard
   ====================================================================== */
.fb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fb-bucket { display: flex; flex-direction: column; padding: 14px; min-height: 230px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.16s ease, background-color 0.16s ease; }
.fb-bucket.fb-over { border-color: var(--green-line, var(--active-border)); background: var(--green-soft); }
.fb-head { display: flex; align-items: center; gap: 8px; }
.fb-head strong { font-size: 14px; font-weight: 720; letter-spacing: -0.01em; }
.fb-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-family: var(--mono, ui-monospace, monospace); font-size: 11px; }
.fb-sub { display: block; margin: 3px 0 10px; color: var(--muted); font-size: 11.5px; }
.fb-good .fb-head strong { color: var(--green); }
.fb-todo .fb-head strong { color: var(--ink); }
.fb-bad .fb-head strong { color: var(--red); }
.fb-zone { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; flex: 1; min-height: 96px; padding: 9px; border: 1px dashed var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.fb-empty { margin: auto; align-self: center; color: var(--muted); font-size: 12px; opacity: 0.65; }
.fb-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 7px 5px 11px; border-radius: 14px; border: 1px solid var(--line-2, var(--line)); background: var(--surface-2); color: var(--ink); font-size: 12.5px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; cursor: grab; -webkit-user-select: none; user-select: none; transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease; }
.fb-pill:hover { transform: translateY(-1px); }
.fb-pill:active { cursor: grabbing; }
.fb-pill.fb-dragging { opacity: 0.45; }
.fb-good .fb-pill { border-color: var(--green-line, var(--active-border)); background: var(--green-soft); color: var(--green); }
.fb-todo .fb-pill { border-color: var(--line-2, var(--line)); background: var(--surface-2); color: var(--ink); border-style: dashed; }
.fb-bad .fb-pill { border-color: rgba(239, 125, 112, 0.42); background: rgba(239, 125, 112, 0.12); color: var(--red); }
.fb-pill-text { min-width: 0; overflow-wrap: anywhere; word-break: break-word; cursor: pointer; }
.fb-x { display: inline-grid; place-items: center; flex: 0 0 auto; align-self: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: inherit; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0.6; }
.fb-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.fb-add { display: block; margin-top: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.fb-add input { box-sizing: border-box; width: 100%; min-height: 36px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; }
.fb-hint { margin: 18px 0 2px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } .fb-bucket { min-height: 0; } }

/* ---------- share menu ---------- */
.share-wrap { position: relative; display: inline-flex; }
.share-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.share-menu-up { top: auto; bottom: calc(100% + 8px); }
.share-menu-title {
  margin: 3px 9px 6px;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.share-opt:hover { background: var(--surface-2); }
.footer-share {
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.footer-share:hover { color: var(--ink); }
.footer-copy {
  flex-basis: 100%;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}
.footer-copy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover { color: var(--ink); }

/* ---------- landing: pricing card ---------- */
.price-card {
  max-width: 380px;
  margin: 32px auto 0;
  padding: 30px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--green-soft), var(--surface) 62%);
  box-shadow: var(--shadow);
  text-align: center;
}
.price-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line, var(--green));
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card h3 {
  margin: 16px 0 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-amt {
  font-size: 56px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-display, var(--ink));
}
.price-feats {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 11px;
  text-align: left;
}
.price-feats li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2, var(--ink));
  font-size: 14.5px;
}
.price-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.price-card .button {
  width: 100%;
}

/* ---------- landing: founder before/after proof ---------- */
.proof-collage {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 560px;
  margin: 96px auto 0;
}
.proof-shot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.proof-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}
.proof-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.proof-tag.after {
  background: var(--green);
  color: #04130c;
}
.proof-arrow {
  position: absolute;
  top: -74px;
  left: 76%;
  transform: translateX(-50%) rotate(-2deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--honey, #e8b65c);
  text-align: center;
  pointer-events: none;
}
.proof-arrow-note {
  font-size: 17px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.proof-arrow svg {
  width: 42px;
  height: 52px;
  flex: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
@media (max-width: 600px) {
  .proof-collage { gap: 12px; max-width: 440px; margin-top: 80px; }
  .proof-arrow { top: -62px; }
  .proof-arrow-note { font-size: 13.5px; }
  .proof-arrow svg { width: 36px; height: 44px; }
}

/* ============================================================
   LOADING STATE - admin / settings skeletons + top progress bar
   Keyed on body.is-loading (CSP-safe: JS only toggles the class
   and creates the .page-progress div via createElement).
   ============================================================ */
:root {
  --sk-base: var(--surface-2);
  --sk-hi: color-mix(in srgb, var(--surface-2) 78%, var(--ink) 22%);
}

@keyframes pc-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}
@keyframes pc-progress { 0% { left: -42%; } 100% { left: 100%; } }

/* Admin: paint faux stat cards + faux table rows into empty panels */
body.is-loading #adminFunnel,
body.is-loading #adminUsers,
body.is-loading #adminSubscriptions,
body.is-loading #adminUsage,
body.is-loading #adminTgErrors,
body.is-loading #adminJobs {
  min-height: 92px;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(100deg, var(--sk-base) 28%, var(--sk-hi) 48%, var(--sk-base) 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pc-shimmer 1.45s ease-in-out infinite;
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, #0000 26px 44px);
          mask: repeating-linear-gradient(180deg, #000 0 26px, #0000 26px 44px);
}

body.is-loading #adminStats {
  min-height: 96px;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(100deg, var(--sk-base) 28%, var(--sk-hi) 48%, var(--sk-base) 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pc-shimmer 1.45s ease-in-out infinite;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(33.33% - 12px), #0000 calc(33.33% - 12px) 33.33%);
          mask: repeating-linear-gradient(90deg, #000 0 calc(33.33% - 12px), #0000 calc(33.33% - 12px) 33.33%);
}

/* Settings: shimmer the account line while /api/me loads */
body.is-loading #account {
  display: inline-block;
  min-width: 220px;
  min-height: 18px;
  border-radius: 6px;
  color: transparent !important;
  background-image: linear-gradient(100deg, var(--sk-base) 28%, var(--sk-hi) 48%, var(--sk-base) 68%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pc-shimmer 1.45s ease-in-out infinite;
}

/* Slim top progress bar (shared element, created in JS) */
.page-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px;
  z-index: 200; pointer-events: none; opacity: 0;
  transition: opacity .25s ease; overflow: hidden;
}
.page-progress::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -42%;
  width: 38%; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, transparent, var(--green-bright));
  box-shadow: 0 0 12px color-mix(in srgb, var(--green) 65%, transparent);
}
body.is-loading .page-progress { opacity: 1; }
body.is-loading .page-progress::before { animation: pc-progress 1.05s ease-in-out infinite; }

/* Busy button: a spinner appended after the (possibly relabeled) text while an
   async action is in flight. Inherits the button's text color. */
@keyframes btn-spin { to { transform: rotate(360deg); } }
button.is-busy,
.button.is-busy {
  cursor: default;
  opacity: 0.9;
}
button.is-busy::after,
.button.is-busy::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.5em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@media (max-width: 640px) {
  body.is-loading #adminStats {
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(50% - 10px), #0000 calc(50% - 10px) 50%);
            mask: repeating-linear-gradient(90deg, #000 0 calc(50% - 10px), #0000 calc(50% - 10px) 50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-loading #adminStats,
  body.is-loading #adminFunnel,
  body.is-loading #adminUsers,
  body.is-loading #adminSubscriptions,
  body.is-loading #adminUsage,
  body.is-loading #adminTgErrors,
  body.is-loading #adminJobs,
  body.is-loading #account {
    animation: none;
    background-image: none;
    background-color: var(--sk-base);
  }
  body.is-loading .page-progress::before { animation: none; left: 0; width: 100%; }
}

/* Keep each hero headline sentence on one line (was wrapping mid-sentence). */
.hero-title { font-size: clamp(32px, 4.5vw, 54px); }
.hero-title .hl { white-space: nowrap; }
