/* Nthuli Cloud design system.
 * Ported from the Success Scheduler design system (same tokens, frame and components),
 * as plain CSS so there is no build step. Every colour comes from the variables below;
 * light/dark is the "dark" class on <html>, the brand is data-theme on <html>.
 * Mobile first: base rules are the phone; min-width queries add tablet (768) and desktop (1200).
 */

/* ------------------------------------------------------------------ tokens */
:root {
  --brand: #0a7cc4;          /* ocean */
  --accent: #f5a524;

  --n-50: #f8fafc; --n-100: #f1f4f8; --n-200: #e4e8ee; --n-300: #cfd6df; --n-400: #98a2b3;
  --n-500: #667085; --n-600: #475467; --n-700: #344054; --n-800: #1d2633; --n-900: #121a24; --n-950: #0b1118;

  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --brand-50:  color-mix(in oklab, var(--brand) 7%,  white);
  --brand-100: color-mix(in oklab, var(--brand) 14%, white);
  --brand-200: color-mix(in oklab, var(--brand) 28%, white);
  --brand-300: color-mix(in oklab, var(--brand) 46%, white);
  --brand-400: color-mix(in oklab, var(--brand) 72%, white);
  --brand-600: color-mix(in oklab, var(--brand) 86%, black);
  --brand-700: color-mix(in oklab, var(--brand) 72%, black);

  --bg: var(--n-50);
  --surface: #fff;
  --surface-2: var(--n-100);
  --surface-3: var(--n-200);
  --line: color-mix(in oklab, var(--n-300) 70%, transparent);
  --line-strong: var(--n-300);
  --text: var(--n-900);
  --text-2: var(--n-600);
  --text-3: var(--n-500);
  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);
  --on-primary: #fff;
  --primary-soft: var(--brand-50);
  --primary-soft-text: var(--brand-700);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, white);
  --accent-text: color-mix(in oklab, var(--accent) 70%, black);
  --success: #12a150; --warning: #d97706; --danger: #dc2b2b; --info: #2f6fde;
  --success-soft: #e9f8ef; --warning-soft: #fdf3e2; --danger-soft: #fdecec; --info-soft: #eaf1fd;
  --shadow-1: 0 1px 2px rgb(16 24 40 / .05);
  --shadow-2: 0 1px 3px rgb(16 24 40 / .08), 0 1px 2px rgb(16 24 40 / .04);
  --shadow-3: 0 12px 32px -8px rgb(16 24 40 / .18), 0 4px 8px -4px rgb(16 24 40 / .06);
  --overlay: rgb(10 14 20 / .45);
  color-scheme: light;
}

.dark {
  --bg: var(--n-950);
  --surface: var(--n-900);
  --surface-2: var(--n-800);
  --surface-3: var(--n-700);
  --line: color-mix(in oklab, var(--n-700) 70%, transparent);
  --line-strong: var(--n-700);
  --text: #eef1f5;
  --text-2: var(--n-300);
  --text-3: var(--n-400);
  --primary: var(--brand-400);
  --primary-hover: var(--brand-300);
  --on-primary: var(--n-950);
  --primary-soft: color-mix(in oklab, var(--brand) 18%, var(--n-900));
  --primary-soft-text: var(--brand-200);
  --accent-soft: color-mix(in oklab, var(--accent) 18%, var(--n-900));
  --accent-text: color-mix(in oklab, var(--accent) 80%, white);
  --success: #3ccf7e; --warning: #f5a524; --danger: #f2706f; --info: #6d9df5;
  --success-soft: #11291c; --warning-soft: #2e2210; --danger-soft: #331618; --info-soft: #142338;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .35);
  --shadow-2: 0 1px 3px rgb(0 0 0 / .4);
  --shadow-3: 0 16px 40px -8px rgb(0 0 0 / .6);
  --overlay: rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 1rem; line-height: 1.5;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ol, ul { margin: 0; }
h1, h2, h3, h4 { letter-spacing: -.012em; line-height: 1.25; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
svg:not([width]) { width: 20px; height: 20px; flex-shrink: 0; }   /* icons; component rules below set their own size */
::selection { background: color-mix(in oklab, var(--brand) 25%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
input, select, textarea { font: inherit; font-size: max(16px, 1rem); }  /* 16px stops iOS zoom */
@media (min-width: 768px) { input, select, textarea { font-size: .9375rem; } }
[hidden] { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-3); }
.skip-link:focus { top: 12px; }

@view-transition { navigation: auto; }
::view-transition-old(nc-main) { animation: nc-fade-out .14s var(--ease) both; }
::view-transition-new(nc-main) { animation: nc-fade-in .2s var(--ease) both; }
@keyframes nc-fade-out { to { opacity: 0; } }
@keyframes nc-fade-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- app frame */
.nc-app { min-height: 100dvh; display: flex; }

.nc-rail {
  display: none; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 30;
  flex-direction: column; gap: 2px; padding: 14px 10px 14px calc(10px + env(safe-area-inset-left));
  width: calc(76px + env(safe-area-inset-left)); background: var(--surface); border-right: 1px solid var(--line);
}
@media (min-width: 768px) { .nc-rail { display: flex; } }
@media (min-width: 1200px) { .nc-rail { width: calc(248px + env(safe-area-inset-left)); padding: 16px 12px 16px calc(12px + env(safe-area-inset-left)); } }
.nc-rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--text); }
.nc-rail-brand .nc-wordmark, .nc-rail-label { display: none; }
@media (min-width: 1200px) { .nc-rail-brand .nc-wordmark, .nc-rail-label { display: block; } }
.nc-rail-label { padding: 14px 12px 6px; font-size: .6875rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

.nc-nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; padding: 6px 4px; border-radius: var(--r-md);
  color: var(--text-2); font-size: 11px; font-weight: 550; text-align: center; transition: background-color .15s, color .15s;
}
@media (min-width: 1200px) {
  .nc-nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 40px; padding: 0 12px; font-size: .875rem; text-align: left; }
}
.nc-nav-item:hover { background: var(--surface-2); color: var(--text); }
.nc-nav-item[aria-current="page"] { background: var(--primary-soft); color: var(--primary-soft-text); }
.nc-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
@media (min-width: 1200px) { .nc-nav-item svg { width: 20px; height: 20px; } }
.nc-nav-sep { height: 1px; margin: 8px 6px; background: var(--line); }

.nc-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
@media (min-width: 768px) { .nc-shell { margin-left: calc(76px + env(safe-area-inset-left)); } }
@media (min-width: 1200px) { .nc-shell { margin-left: calc(248px + env(safe-area-inset-left)); } }

.nc-topbar {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 4px;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 16px;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nc-topbar.is-scrolled { border-bottom-color: var(--line); }
.nc-topbar-title { flex: 1; min-width: 0; font-size: 1.1875rem; font-weight: 680; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .nc-topbar { display: none; } }

.nc-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 999px; color: var(--text-2); transition: background-color .15s, color .15s;
}
.nc-icon-btn:hover, .nc-icon-btn:active { background: var(--surface-2); color: var(--text); }
.nc-icon-btn svg { width: 22px; height: 22px; }

.nc-main {
  view-transition-name: nc-main; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .nc-main { padding: 28px 32px 48px; } }

/* phone bottom tabs */
.nc-tabs {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px calc(6px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .nc-tabs { display: none; } }
.nc-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 2px;
  color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; -webkit-user-select: none; user-select: none;
}
.nc-tab-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .2s var(--ease); }
.nc-tab svg { width: 22px; height: 22px; }
.nc-tab[aria-current="page"] { color: var(--text); }
.nc-tab[aria-current="page"] .nc-tab-icon { background: var(--primary-soft); color: var(--primary-soft-text); }

/* bottom sheet (phone) / popover (desktop) */
.nc-sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--overlay); opacity: 0; transition: opacity .2s; }
.nc-sheet-backdrop.is-open { opacity: 1; }
.nc-sheet {
  position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow: auto;
  padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-3);
  transform: translateY(100%); transition: transform .26s var(--ease);
}
.nc-sheet.is-open { transform: none; }
.nc-sheet-grip { width: 36px; height: 4px; border-radius: 999px; background: var(--line-strong); margin: 4px auto 12px; }
@media (min-width: 768px) {
  .nc-sheet { left: 16px; right: auto; bottom: 16px; width: 300px; border-radius: var(--r-lg); padding: 8px; transform: translateY(8px); opacity: 0; pointer-events: none; transition: transform .16s var(--ease), opacity .16s; }
  .nc-sheet.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nc-sheet-grip { display: none; }
  .nc-sheet-backdrop { background: transparent; }
}
@media (min-width: 1200px) { .nc-sheet { left: 12px; width: 248px; bottom: 72px; } }
.nc-menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-md);
  color: var(--text); font-size: .9375rem; font-weight: 500; text-align: left;
}
.nc-menu-item:hover, .nc-menu-item:active { background: var(--surface-2); }
.nc-menu-item svg { width: 20px; height: 20px; color: var(--text-2); flex-shrink: 0; }
.nc-menu-item[aria-current="page"] { background: var(--primary-soft); color: var(--primary-soft-text); }
.nc-menu-item[aria-current="page"] svg { color: inherit; }
.nc-menu-item.is-danger, .nc-menu-item.is-danger svg { color: var(--danger); }
.nc-menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px 12px; }
.nc-menu-label { padding: 12px 12px 6px; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }

/* signed-out header */
.nc-guest-bar {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 16px;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .nc-guest-bar { padding: 0 32px; } }
.nc-guest-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nc-guest-links { display: none; gap: 4px; }
@media (min-width: 768px) { .nc-guest-links { display: flex; } }
.nc-guest-links a { padding: 8px 12px; border-radius: var(--r-md); color: var(--text-2); font-weight: 550; font-size: .9375rem; }
.nc-guest-links a:hover, .nc-guest-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nc-guest-actions { display: flex; align-items: center; gap: 4px; }
.nc-guest-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
@media (min-width: 768px) { .nc-guest-main { padding: 0 32px 64px; } }
.nc-footer { border-top: 1px solid var(--line); padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: .875rem; }
.nc-footer-in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.nc-footer a { color: var(--text-2); }

/* --------------------------------------------------------- building blocks */
.nc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nc-page-title { font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.nc-page-sub { margin-top: 2px; color: var(--text-2); font-size: .9375rem; }
@media (max-width: 767px) {
  .nc-page-head { margin-bottom: 14px; }
  .nc-app .nc-page-head .nc-page-title { display: none; }   /* the top bar shows it */
}

.nc-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 10px; font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.nc-section-title:first-child { margin-top: 0; }
.nc-section-title a { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--primary); }

.nc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.nc-card-pad { padding: 16px; }
@media (min-width: 768px) { .nc-card-pad { padding: 20px; } }
.nc-card h3 { font-size: 1.0625rem; font-weight: 650; }
.nc-card p { color: var(--text-2); }

.nc-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.nc-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; color: inherit; transition: background-color .12s; }
.nc-row + .nc-row { border-top: 1px solid var(--line); }
a.nc-row:hover { background: var(--surface-2); }
.nc-row-body { flex: 1; min-width: 0; }
.nc-row-title { font-weight: 560; line-height: 1.3; }
.nc-row-meta { color: var(--text-3); font-size: .8125rem; line-height: 1.35; }
.nc-row-end { flex-shrink: 0; text-align: right; }
.nc-row-value { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nc-row > svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }

.nc-ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-soft-text); }
.nc-ic svg { width: 21px; height: 21px; }
.nc-ic.is-accent { background: var(--accent-soft); color: var(--accent-text); }
.nc-ic.is-sm { width: 32px; height: 32px; border-radius: 10px; }
.nc-ic.is-sm svg { width: 18px; height: 18px; }

.nc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .08s;
}
.nc-btn:active { transform: scale(.98); }
.nc-btn svg { width: 18px; height: 18px; }
.nc-btn-primary { background: var(--primary); color: var(--on-primary); }
.nc-btn-primary:hover { background: var(--primary-hover); }
.nc-btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.nc-btn-secondary:hover { background: var(--surface-2); }
.nc-btn-ghost { background: transparent; color: var(--text-2); }
.nc-btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.nc-btn-sm { height: 34px; padding: 0 12px; font-size: .875rem; border-radius: var(--r-sm); }
.nc-btn-lg { height: 48px; padding: 0 22px; font-size: 1rem; }
.nc-btn-block { width: 100%; }

.nc-label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.nc-input {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.nc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent); }
.nc-field { margin-bottom: 16px; }
.nc-error { margin-top: 6px; font-size: .8125rem; color: var(--danger); }

.nc-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nc-chips::-webkit-scrollbar { display: none; }
.nc-chips.is-wrap { flex-wrap: wrap; overflow: visible; }
.nc-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); font-size: .875rem; font-weight: 560;
}
.nc-chip svg { width: 16px; height: 16px; }
.nc-chip:hover { color: var(--text); }
.nc-chip.is-on, .nc-chip[aria-checked="true"], .nc-chip[aria-selected="true"] { background: var(--primary-soft); border-color: transparent; color: var(--primary-soft-text); }

.nc-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.nc-badge-brand { background: var(--primary-soft); color: var(--primary-soft-text); }
.nc-badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.nc-badge-success { background: var(--success-soft); color: var(--success); }
.nc-badge-warning { background: var(--warning-soft); color: var(--warning); }
.nc-badge-danger { background: var(--danger-soft); color: var(--danger); }
.nc-badge-info { background: var(--info-soft); color: var(--info); }

/* stats: 2-up on phone, 4-up from tablet */
.nc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .nc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.nc-stat { padding: 14px 16px; }
.nc-stat-label { color: var(--text-3); font-size: .8125rem; font-weight: 550; }
.nc-stat-value { margin-top: 2px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.nc-stat-note { margin-top: 2px; color: var(--text-3); font-size: .75rem; }
@media (min-width: 768px) { .nc-stat-value { font-size: 1.5rem; } }

.nc-progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.nc-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .4s var(--ease); }
.nc-progress.is-accent > span { background: var(--accent); }

/* stacked breakdown bar with legend */
.nc-stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.nc-stack > span { display: block; height: 100%; }
.nc-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* responsive grids: one column on phone */
.nc-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .nc-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .nc-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .nc-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* checklist (roadmap tasks, features) */
.nc-checks li { display: flex; gap: 10px; padding: 6px 0; color: var(--text-2); font-size: .9375rem; line-height: 1.45; }
.nc-checks li svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; color: var(--primary); }

/* key/value definition rows */
.nc-kv { display: grid; gap: 2px; }
.nc-kv dt { color: var(--text-3); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.nc-kv dd { margin: 0 0 12px; color: var(--text); font-size: .9375rem; }
.nc-kv dd:last-child { margin-bottom: 0; }

/* segmented control (tabs inside a page) */
.nc-seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 16px; }
.nc-seg button { flex: 1; height: 36px; border-radius: 9px; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.nc-seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
@media (min-width: 768px) { .nc-seg { display: inline-flex; } .nc-seg button { flex: none; padding: 0 18px; } }

/* hero card on overview */
.nc-hero { position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--brand) 60%, #6ee7f9) 0%, transparent 55%), linear-gradient(135deg, var(--brand-700), var(--brand)); }
.dark .nc-hero { background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--brand) 50%, #0e7490) 0%, transparent 55%), linear-gradient(135deg, color-mix(in oklab, var(--brand) 40%, var(--n-900)), color-mix(in oklab, var(--brand) 70%, var(--n-900))); }
@media (min-width: 768px) { .nc-hero { padding: 28px; } }
.nc-hero-kicker { font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.nc-hero h2 { margin-top: 6px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .nc-hero h2 { font-size: 1.75rem; max-width: 26ch; } }
.nc-hero p { margin-top: 8px; max-width: 60ch; opacity: .9; font-size: .9375rem; }
.nc-hero .nc-progress { margin-top: 16px; background: rgb(255 255 255 / .22); max-width: 420px; }
.nc-hero .nc-progress > span { background: #fff; }
.nc-hero-meta { display: flex; justify-content: space-between; max-width: 420px; margin-top: 6px; font-size: .8125rem; opacity: .9; }

/* timeline (roadmap) */
.nc-phase { position: relative; padding-left: 28px; }
.nc-phase::before { content: ""; position: absolute; left: 9px; top: 26px; bottom: -14px; width: 2px; background: var(--line-strong); }
.nc-phase:last-child::before { display: none; }
.nc-phase-dot { position: absolute; left: 0; top: 18px; width: 20px; height: 20px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line-strong); }
.nc-phase.is-active .nc-phase-dot { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.nc-phase.is-done .nc-phase-dot { background: var(--primary); border-color: var(--primary); }
.nc-phase + .nc-phase { margin-top: 14px; }
.nc-task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; }
.nc-task + .nc-task { border-top: 1px solid var(--line); }
.nc-task-box { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.nc-task-box svg { width: 14px; height: 14px; color: var(--on-primary); }
.nc-task.is-done .nc-task-box { background: var(--primary); border-color: var(--primary); }
.nc-task.is-done .nc-row-title { color: var(--text-3); text-decoration: line-through; }
.nc-task.is-progress .nc-task-box { border-color: var(--accent); background: var(--accent-soft); }

/* landing */
.lp-hero { display: grid; gap: 28px; padding: 28px 0 8px; }
@media (min-width: 960px) { .lp-hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 56px 0 24px; } }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-text); font-size: .8125rem; font-weight: 600; }
.lp-kicker i { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.lp-hero h1 { margin-top: 14px; font-size: 2.125rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.08; }
.lp-hero h1 span { color: var(--primary); }
@media (min-width: 768px) { .lp-hero h1 { font-size: 3.125rem; } }
.lp-lead { margin-top: 14px; max-width: 54ch; color: var(--text-2); font-size: 1.0625rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-cta .nc-btn { flex: 1 1 auto; }
@media (min-width: 560px) { .lp-cta .nc-btn { flex: none; } }
.lp-trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; color: var(--text-3); font-size: .875rem; }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust svg { width: 16px; height: 16px; color: var(--success); }

.lp-panel { padding: 16px; }
.lp-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 650; }
.lp-node { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.lp-node + .lp-node { margin-top: 8px; }
.lp-node b { display: block; font-size: .9375rem; font-weight: 600; }
.lp-node small { color: var(--text-3); font-size: .8125rem; }
.lp-node .nc-badge { margin-left: auto; }
.lp-pulse { width: 8px; height: 8px; border-radius: 99px; background: var(--success); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 20%, transparent); }

.lp-sec { margin-top: 56px; }
@media (min-width: 768px) { .lp-sec { margin-top: 80px; } }
.lp-sec > h2 { font-size: 1.5rem; font-weight: 720; letter-spacing: -.02em; }
@media (min-width: 768px) { .lp-sec > h2 { font-size: 2rem; } }
.lp-sec > p { margin-top: 8px; max-width: 60ch; color: var(--text-2); }
.lp-sec > .nc-grid, .lp-sec > .lp-steps { margin-top: 20px; }
.lp-feat { display: flex; flex-direction: column; gap: 10px; }
.lp-feat p { font-size: .9375rem; }
.lp-track-price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .875rem; color: var(--text-3); }
.lp-track-price b { color: var(--text); font-size: 1rem; }
.lp-steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 768px) { .lp-steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.lp-steps li { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lp-steps li::before { counter-increment: s; content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: .875rem; }
.lp-steps h3 { margin-top: 10px; font-size: 1rem; font-weight: 650; }
.lp-steps p { margin-top: 4px; color: var(--text-2); font-size: .9375rem; }
.lp-cta-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
@media (min-width: 768px) { .lp-cta-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; } }

/* auth */
.au-wrap { display: flex; justify-content: center; padding: 24px 0 40px; }
@media (min-width: 768px) { .au-wrap { padding: 64px 0; } }
.au-card { width: 100%; max-width: 420px; }
.au-title { font-size: 1.5rem; font-weight: 720; letter-spacing: -.02em; }
.au-sub { margin: 4px 0 22px; color: var(--text-2); }
.au-check { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--text-2); margin-bottom: 18px; }
.au-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.au-pw { position: relative; }
.au-pw .nc-input { padding-right: 68px; }
.au-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border-radius: 8px; color: var(--primary); font-size: .8125rem; font-weight: 650; }
.au-note { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: .875rem; }

/* toasts (flash messages) */
.nc-toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
@media (min-width: 768px) { .nc-toasts { bottom: 24px; } }
.nc-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--n-900); color: #fff; box-shadow: var(--shadow-3); font-size: .9375rem; animation: nc-toast-in .25s var(--ease) both; }
.dark .nc-toast { background: var(--n-100); color: var(--n-900); }
.nc-toast.is-leaving { animation: nc-toast-out .2s var(--ease) both; }
.nc-toast-dot { width: 8px; height: 8px; border-radius: 999px; margin-top: 7px; flex-shrink: 0; background: var(--info); }
.nc-toast[data-kind="success"] .nc-toast-dot { background: var(--success); }
.nc-toast[data-kind="warning"] .nc-toast-dot { background: var(--warning); }
.nc-toast[data-kind="danger"] .nc-toast-dot { background: var(--danger); }
.nc-toast button { margin-left: auto; opacity: .7; font-size: 1.1rem; line-height: 1; }
@keyframes nc-toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes nc-toast-out { to { opacity: 0; transform: translateY(8px); } }

.nc-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: .875rem; }
.nc-avatar.sm { width: 30px; height: 30px; font-size: .75rem; }
.nc-avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; }
.nc-logo { flex-shrink: 0; }
.nc-wordmark { font-weight: 720; letter-spacing: -.02em; font-size: 1.0625rem; line-height: 1.1; }
.nc-wordmark span { color: var(--primary); }

.nc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 20px; color: var(--text-2); }
.nc-empty .nc-ic { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 14px; }
.nc-empty h2 { color: var(--text); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.nc-empty p { max-width: 38ch; margin-bottom: 18px; }

/* small helpers */
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; } .muted { color: var(--text-3); } .text-2 { color: var(--text-2); } .small { font-size: .8125rem; } .strong { font-weight: 650; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.only-phone { display: initial; } @media (min-width: 768px) { .only-phone { display: none; } }

/* ---- client cloud ---------------------------------------------------------- */
.nc-btn-danger { background: var(--danger); color: #fff; }
.nc-btn-danger:hover { filter: brightness(1.06); }
.nc-textarea { min-height: 96px; padding-top: 10px; padding-bottom: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; line-height: 1.45; resize: vertical; }
.nc-hint { margin-top: 6px; color: var(--text-3); font-size: .8125rem; line-height: 1.4; }
.nc-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.nc-option { position: relative; display: block; cursor: pointer; }
.nc-option input { position: absolute; opacity: 0; inset: 0; }
.nc-option span { display: block; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .12s, background-color .12s; }
.nc-option b { display: block; font-weight: 620; }
.nc-option small { display: block; color: var(--text-3); font-size: .8125rem; margin-top: 2px; }
.nc-option input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.nc-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.nc-meter { margin-top: 10px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.nc-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.nc-meter.is-high > span { background: var(--warning); }
.nc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-actions form { display: contents; }
.nc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; word-break: break-all; }
.nc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.nc-status-dot.is-success { background: var(--success); }
.nc-status-dot.is-info { background: var(--info, var(--primary)); animation: nc-blink 1.2s ease-in-out infinite; }
.nc-status-dot.is-danger { background: var(--danger); }
.nc-status-dot.is-warning { background: var(--warning); }
@keyframes nc-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .nc-status-dot.is-info { animation: none; } }
.nc-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: .875rem; line-height: 1.5; }
.nc-callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.nc-form-stack { display: flex; flex-direction: column; gap: 16px; }
.nc-option.is-disabled { cursor: not-allowed; opacity: .45; }
