/* ==========================================================================
   Taskora — site styles
   Tokens → base → layout → components → product UI → sections → responsive
   ========================================================================== */

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-muted: #f2f4f7;
  --text: #0e1321;
  --text-2: #344054;
  --muted: #5d6679;
  --faint: #8a93a6;
  --border: #e7e9ee;
  --border-strong: #d5d9e0;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-soft-2: #e0e4ff;
  --accent-text: #3f37c9;

  --green: #15803d;
  --green-dot: #22c55e;
  --green-soft: #ecfdf3;
  --amber: #b54708;
  --amber-dot: #f59e0b;
  --amber-soft: #fffaeb;
  --red: #c4320a;
  --red-dot: #ef4444;
  --red-soft: #fef3f2;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --violet-dot: #8b5cf6;
  --teal-dot: #14b8a6;
  --pink-dot: #ec4899;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --shadow-app: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 40px -12px rgba(16, 24, 40, .14), 0 40px 80px -32px rgba(16, 24, 40, .18);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft-2); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: #fff; padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 14px; transition: top .15s;
}
.skip-link:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-xs { width: 12px; height: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 112px; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--muted); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 9px;
  font-size: 15px; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 16px; border-radius: 11px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #262c3d; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--bg-soft); border-color: #c5cad3; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn .icon { width: 16px; height: 16px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .75; cursor: default; pointer-events: none; }

.link { color: var(--accent-text); font-weight: 550; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--accent-text); font-size: 15px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--text); }
.logo-mark { width: 28px; height: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; height: var(--header-h); gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-signin { font-weight: 550; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 9px; align-items: center; justify-content: center; color: var(--text); margin-left: 4px; }
.nav-toggle:hover { background: var(--bg-muted); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; padding: 12px var(--gutter) 32px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-open .mobile-menu { display: block; animation: menuIn .2s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.mobile-menu a.mm-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 18px; font-weight: 550; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-actions { display: grid; gap: 10px; margin-top: 24px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 0%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { max-width: 520px; padding-top: 8px; }
.hero-copy .hero-title { text-wrap: nowrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 28px;
}
.hero-badge b { font-weight: 600; background: var(--accent-soft); color: var(--accent-text); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.hero-title { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.hero-title span { display: block; }
.hero-title .muted { color: #9aa2b3; }
.hero-sub { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-trust .icon { color: var(--green); width: 16px; height: 16px; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual .app { width: 820px; max-width: none; }

/* ==========================================================================
   Product UI (in-app components, shared by hero, features and workspace)
   ========================================================================== */
.app {
  --app-fs: 13px;
  font-size: var(--app-fs);
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-app);
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  overflow: hidden;
  text-align: left;
  color: var(--text);
}
.app button { font-size: inherit; }

/* Sidebar */
.app-sidebar { background: var(--bg-soft); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-ws { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; }
.app-ws-mark { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.app-ws-name { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ws .icon { width: 14px; height: 14px; color: var(--faint); margin-left: auto; }
.app-nav { display: grid; gap: 1px; }
.app-nav-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 6px 8px; border-radius: 7px; color: var(--text-2); font-weight: 500; text-align: left;
  transition: background-color .12s, color .12s;
}
.app-nav-item .icon { width: 16px; height: 16px; color: var(--faint); }
.app-nav-item:hover { background: #eceef2; }
.app-nav-item.is-active, .app-nav-item[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.app-nav-item.is-active .icon, .app-nav-item[aria-selected="true"] .icon { color: var(--accent); }
.app-nav-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-muted); padding: 0 6px; border-radius: 999px; line-height: 18px; }
.app-nav-item.is-active .app-nav-count, .app-nav-item[aria-selected="true"] .app-nav-count { background: var(--accent-soft); color: var(--accent-text); }
.app-side-label { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 6px; }
.app-projects { display: grid; gap: 1px; }
.app-projects li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; color: var(--text-2); border-radius: 7px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 3px; flex: none; background: var(--faint); }
.dot--indigo { background: var(--accent); }
.dot--green { background: var(--green-dot); }
.dot--amber { background: var(--amber-dot); }
.dot--pink { background: var(--pink-dot); }
.dot--teal { background: var(--teal-dot); }
.dot--violet { background: var(--violet-dot); }
.app-side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 6px 2px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

/* Main */
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.app-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 300px; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--faint); background: #fff; }
.app-search .icon { width: 14px; height: 14px; }
.kbd { margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--faint); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; line-height: 16px; background: var(--bg-soft); }
.app-topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.app-icon-btn { position: relative; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--muted); }
.app-icon-btn:hover { background: var(--bg-muted); }
.app-icon-btn .icon { width: 16px; height: 16px; }
.app-icon-btn .badge-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--red-dot); box-shadow: 0 0 0 2px #fff; }
.app-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; font-weight: 550; font-size: 12.5px; white-space: nowrap; }
.app-btn .icon { width: 14px; height: 14px; }
.app-btn--primary { background: var(--accent); color: #fff; }
.app-btn--primary:hover { background: var(--accent-hover); }
.app-btn--secondary { border: 1px solid var(--border); background: #fff; color: var(--text-2); }
.app-btn--secondary:hover { background: var(--bg-soft); }

.app-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.app-title { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.app-subtitle { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.segmented { display: inline-flex; padding: 2px; background: var(--bg-muted); border-radius: 8px; gap: 2px; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; color: var(--muted); font-weight: 550; font-size: 12.5px; }
.segmented button .icon { width: 14px; height: 14px; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* Stat tiles */
.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.app-stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.app-stat-label { color: var(--muted); font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.app-stat-value { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.app-stat-foot { font-size: 11.5px; color: var(--faint); }
.app-stat--ring { display: flex; align-items: center; gap: 10px; }
.ring { --p: 68; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-muted) 0);
  display: grid; place-items: center; }
.ring::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: #fff; }

/* Cards inside the app */
.app-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.app-col { display: grid; gap: 12px; min-width: 0; }
.app-card { border: 1px solid var(--border); border-radius: 10px; background: #fff; min-width: 0; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.app-card-title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.app-card-title .count { font-size: 11px; color: var(--muted); background: var(--bg-muted); border-radius: 999px; padding: 0 6px; line-height: 18px; font-weight: 600; }
.app-card-link { color: var(--muted); font-size: 12px; font-weight: 500; }
.app-card-link:hover { color: var(--text); }
.app-card-body { padding: 4px 0; }

/* Task rows */
.task-list { display: grid; }
.task {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto 22px;
  align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #f0f1f4;
}
.task:last-child { border-bottom: 0; }
.task:hover { background: #fafbfc; }
.check {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c2c7d0; background: #fff;
  display: grid; place-items: center; color: transparent; transition: background-color .15s, border-color .15s;
}
.check .icon { width: 10px; height: 10px; stroke-width: 3; }
.check:hover { border-color: var(--accent); }
.task.is-done .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.task.is-done .task-name { color: var(--faint); text-decoration: line-through; text-decoration-color: #c2c7d0; }
.task-main { min-width: 0; }
.task-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.task-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; margin-top: 1px; white-space: nowrap; }
.task-meta .dot { width: 6px; height: 6px; border-radius: 2px; }
.task-meta .sep { color: #cfd3da; }
.task-due { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-due.is-today { color: var(--red); font-weight: 550; }
.task-due.is-soon { color: var(--amber); font-weight: 550; }

/* Priority bars */
.prio { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.prio i { display: block; width: 3px; border-radius: 1px; background: #d5d9e0; }
.prio i:nth-child(1) { height: 5px; }
.prio i:nth-child(2) { height: 8px; }
.prio i:nth-child(3) { height: 11px; }
.prio--low i:nth-child(1) { background: var(--muted); }
.prio--med i:nth-child(-n+2) { background: var(--amber-dot); }
.prio--high i { background: var(--red-dot); }
.prio-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }

/* Tags / pills */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 550; white-space: nowrap; background: var(--bg-muted); color: var(--text-2); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.pill--todo { background: var(--bg-muted); color: var(--text-2); }
.pill--progress { background: var(--blue-soft); color: var(--blue); }
.pill--review { background: var(--amber-soft); color: var(--amber); }
.pill--done { background: var(--green-soft); color: var(--green); }
.pill--high { background: var(--red-soft); color: var(--red); }
.pill--accent { background: var(--accent-soft); color: var(--accent-text); }

/* Avatars */
.avatar {
  --c: #6366f1;
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  font-size: 9.5px; font-weight: 650; letter-spacing: .01em; color: #fff; background: var(--c);
}
.avatar--lg { width: 30px; height: 30px; font-size: 11.5px; }
.avatar--a { --c: #4f46e5; }
.avatar--b { --c: #0e9384; }
.avatar--c { --c: #dd6b20; }
.avatar--d { --c: #c11574; }
.avatar--e { --c: #475467; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px #fff; }
.avatar-stack .avatar + .avatar { margin-left: -6px; }

/* Progress */
.progress { height: 6px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); width: var(--w, 50%); transition: width .8s var(--ease); }
.progress--green > span { background: var(--green-dot); }
.progress--amber > span { background: var(--amber-dot); }
.progress--pink > span { background: var(--pink-dot); }
.progress--teal > span { background: var(--teal-dot); }
.proj-list { display: grid; gap: 12px; padding: 12px; }
.proj-row-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.proj-row-top .name { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-row-top .pct { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Activity */
.activity { display: grid; padding: 4px 0; }
.activity li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; padding: 7px 12px; align-items: start; }
.activity p { color: var(--text-2); line-height: 1.4; }
.activity p b { font-weight: 600; color: var(--text); }
.activity time { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }

/* Deadline rows */
.deadline { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #f0f1f4; }
.deadline:last-child { border-bottom: 0; }
.date-chip { width: 38px; border: 1px solid var(--border); border-radius: 7px; text-align: center; overflow: hidden; background: #fff; }
.date-chip .m { display: block; font-size: 9.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--red); background: var(--red-soft); line-height: 15px; }
.date-chip .d { display: block; font-size: 14px; font-weight: 650; line-height: 20px; font-variant-numeric: tabular-nums; }

/* Calendar view */
.cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cal-col { border-right: 1px solid #f0f1f4; min-height: 212px; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cal-col:last-child { border-right: 0; }
.cal-day { display: flex; align-items: baseline; gap: 5px; padding: 0 4px 6px; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.cal-day b { font-size: 15px; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.cal-col.is-today .cal-day b { background: var(--accent); color: #fff; border-radius: 6px; padding: 0 5px; }
.cal-chip { border-radius: 6px; padding: 5px 7px; font-size: 11.5px; font-weight: 550; line-height: 1.3; border-left: 3px solid var(--c, var(--accent)); background: var(--bg, var(--accent-soft)); color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-chip--green { --c: var(--green-dot); --bg: var(--green-soft); }
.cal-chip--amber { --c: var(--amber-dot); --bg: var(--amber-soft); }
.cal-chip--pink { --c: var(--pink-dot); --bg: #fdf2f8; }
.cal-chip--teal { --c: var(--teal-dot); --bg: #f0fdfa; }

/* Skeleton loading */
.skeleton-wrap { display: none; padding: 12px; gap: 12px; }
.is-loading > .skeleton-wrap { display: grid; }
.is-loading > .view { display: none !important; }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f0f2f5 0%, #f7f8fa 40%, #f0f2f5 80%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.sk-row { display: grid; grid-template-columns: 16px 1fr 60px; gap: 10px; align-items: center; }
.sk-circle { width: 16px; height: 16px; border-radius: 50%; }
.sk-block { height: 64px; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Empty state */
.empty { display: grid; place-items: center; text-align: center; padding: 56px 24px; gap: 6px; }
.empty-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); margin-bottom: 8px; }
.empty-icon .icon { width: 20px; height: 20px; }
.empty h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.empty p { color: var(--muted); max-width: 300px; }
.empty .app-btn { margin-top: 10px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 30px; height: 18px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d0d5dd; transition: background-color .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.2); transition: transform .15s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(12px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   Sections
   ========================================================================== */

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature-copy { padding: 28px 28px 24px; }
.feature-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature-icon .icon { width: 18px; height: 18px; }
.feature h3 { font-size: 20px; }
.feature-copy p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.feature-preview {
  margin-top: auto; padding: 24px 28px 0; background: var(--bg-soft); border-top: 1px solid var(--border);
  min-height: 236px; display: flex; align-items: flex-end; overflow: hidden;
}
.feature-preview .panel {
  width: 100%; background: #fff; border: 1px solid var(--border); border-bottom: 0;
  border-radius: 12px 12px 0 0; box-shadow: 0 -1px 0 rgba(16,24,40,.02), 0 8px 24px -8px rgba(16,24,40,.10);
  font-size: 13px; line-height: 1.45;
}

.detail-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.detail-crumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.detail-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.detail-fields { display: grid; grid-template-columns: 96px 1fr; row-gap: 8px; padding: 12px 16px; align-items: center; }
.detail-fields dt { color: var(--muted); font-size: 12.5px; }
.detail-fields dd { margin: 0; display: flex; align-items: center; gap: 7px; font-weight: 500; }
.subtasks { padding: 4px 16px 14px; }
.subtasks-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 550; margin-bottom: 8px; }
.subtask { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.subtask .check { width: 14px; height: 14px; }
.subtask.is-done .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.subtask.is-done span { color: var(--faint); text-decoration: line-through; }

.proj-table { width: 100%; border-collapse: collapse; }
.proj-table th { text-align: left; font-size: 11.5px; font-weight: 550; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.proj-table td { padding: 10px 14px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; white-space: nowrap; }
.proj-table tr:last-child td { border-bottom: 0; }
.proj-table .name { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.proj-table .progress { width: 90px; }
.proj-table .pct-cell { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.notif-stack { display: grid; gap: 10px; width: 100%; padding-bottom: 24px; }
.notif {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.45;
}
.notif:nth-child(2) { margin-inline: 12px; opacity: .92; }
.notif:nth-child(3) { margin-inline: 24px; opacity: .75; }
.notif-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.notif-icon .icon { width: 15px; height: 15px; }
.notif-icon--accent { background: var(--accent-soft); color: var(--accent); }
.notif-icon--amber { background: var(--amber-soft); color: var(--amber); }
.notif-icon--green { background: var(--green-soft); color: var(--green); }
.notif b { font-weight: 600; }
.notif p { color: var(--text-2); }
.notif small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.notif time { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.feature-preview--notif { align-items: center; padding-bottom: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; padding: 28px; display: flex; flex-direction: column; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.step h3 { font-size: 22px; margin-top: 18px; }
.step p { margin-top: 8px; color: var(--muted); }
.step-ui { margin-top: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); padding: 14px; font-size: 13px; line-height: 1.45; display: grid; gap: 8px; }
.step-input { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.step-input .icon { width: 14px; height: 14px; color: var(--faint); }
.step-input.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step-input span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 1.5px; height: 15px; background: var(--accent); margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.step-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.step-row .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.step-row .check { width: 14px; height: 14px; }
.step-row.is-done .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-row.is-done .grow { color: var(--faint); text-decoration: line-through; }
.step-summary { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 2px 2px 0; }

/* Use cases */
.usecases { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.uc-tabs { display: grid; gap: 4px; }
.uc-tab {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  text-align: left; padding: 14px; border-radius: 14px; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.uc-tab:hover { background: var(--bg-soft); }
.uc-tab[aria-selected="true"] { background: #fff; border-color: var(--border); box-shadow: var(--shadow-sm); }
.uc-tab-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-muted); color: var(--muted); transition: background-color .15s, color .15s; }
.uc-tab[aria-selected="true"] .uc-tab-icon { background: var(--accent-soft); color: var(--accent); }
.uc-tab strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.uc-tab span.desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.uc-panel { border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; overflow: hidden; }
.uc-panel[hidden] { display: none; }
.uc-panel-head { padding: 28px 28px 0; }
.uc-panel-head h3 { font-size: 24px; }
.uc-panel-head p { margin-top: 8px; color: var(--muted); max-width: 560px; }
.uc-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.uc-points li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.uc-points .icon { width: 16px; height: 16px; color: var(--accent); }
.uc-board { margin: 28px 28px 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--bg-soft); padding: 14px; font-size: 13px; line-height: 1.45; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.uc-col-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 0 2px 8px; }
.uc-col-head .n { color: var(--faint); font-weight: 500; }
.uc-col { display: grid; gap: 8px; align-content: start; }
.uc-card { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 10px; box-shadow: var(--shadow-xs); display: grid; gap: 8px; }
.uc-card-title { font-weight: 550; }
.uc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 11.5px; }
.uc-card-foot > span:first-child { display: inline-flex; align-items: center; gap: 4px; }

/* Workspace showcase */
.workspace-wrap { position: relative; }
.workspace-wrap .app { grid-template-columns: 220px minmax(0, 1fr); min-height: 640px; }
.workspace-wrap .app-sidebar { padding: 14px 12px; }
.workspace-wrap .app-body { padding: 24px 28px; gap: 18px; }
.workspace-wrap .app-title { font-size: 22px; }
.app-panel { position: relative; min-width: 0; }
.workspace-wrap .view { display: grid; gap: 18px; }
.view[hidden], .workspace-wrap .view[hidden] { display: none; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th { text-align: left; font-size: 11.5px; font-weight: 550; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #fcfcfd; }
.ws-table td { padding: 9px 12px; border-bottom: 1px solid #f0f1f4; white-space: nowrap; vertical-align: middle; }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table .t-name { font-weight: 550; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ws-table .t-proj { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border); background: #fff; font-weight: 550; font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.filter .n { color: var(--faint); font-weight: 500; }
.filter[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.filter[aria-pressed="true"] .n { color: #aab1c0; }
.group-label { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 10px 12px 6px; background: #fcfcfd; border-bottom: 1px solid var(--border); display: flex; gap: 6px; }
.group-label:not(:first-child) { border-top: 1px solid var(--border); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.proj-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; gap: 12px; background: #fff; }
.proj-card-head { display: flex; align-items: center; gap: 10px; }
.proj-card-head .dot { width: 10px; height: 10px; }
.proj-card-head h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.proj-card-head .pill { margin-left: auto; }
.proj-card p { color: var(--muted); font-size: 12.5px; }
.proj-card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.team-role { font-size: 12px; color: var(--text-2); }
.member { display: flex; align-items: center; gap: 10px; }
.member small { display: block; color: var(--muted); font-size: 11.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-dot); }
.status--away::before { background: var(--amber-dot); }
.status--off::before { background: #c2c7d0; }
.pref-list { display: grid; }
.pref { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f1f4; }
.pref:last-child { border-bottom: 0; }
.pref-head { font-size: 11.5px; font-weight: 550; color: var(--muted); padding-block: 8px; background: #fcfcfd; }
.pref-head span:not(:first-child), .pref > .switch { justify-self: center; }
.pref b { font-weight: 550; display: block; }
.pref small { color: var(--muted); font-size: 12px; display: block; }
.big-cal .cal-col { min-height: 360px; padding: 10px 8px; gap: 6px; }
.big-cal .cal-chip { font-size: 12.5px; padding: 7px 9px; }
.cal-time { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 1px; }

/* Notifications / email */
.notify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.email-groups { display: grid; gap: 28px; margin-top: 40px; }
.email-group h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.email-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.email-type { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.email-type .icon { width: 16px; height: 16px; color: var(--accent); }
.callout { margin-top: 32px; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.callout .icon { color: var(--accent); margin-top: 3px; }
.callout strong { color: var(--text); font-weight: 600; }

.mail { position: sticky; top: calc(var(--header-h) + 32px); border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-app); overflow: hidden; font-size: 14px; }
.mail-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); color: var(--muted); font-size: 12.5px; }
.mail-bar .icon { width: 15px; height: 15px; }
.mail-bar .spacer { flex: 1; }
.mail-meta { padding: 18px 22px 16px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mail-meta .from { font-weight: 600; }
.mail-meta .from span { font-weight: 400; color: var(--muted); }
.mail-meta .to { color: var(--muted); font-size: 12.5px; }
.mail-meta time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.mail-subject { padding: 18px 22px 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.mail-tag { display: inline-flex; margin: 8px 22px 0; }
.mail-canvas { padding: 22px; background: var(--bg-soft); margin-top: 18px; border-top: 1px solid var(--border); }
.mail-card { max-width: 480px; margin-inline: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; color: var(--text-2); line-height: 1.65; }
.mail-card .logo { font-size: 16px; gap: 8px; margin-bottom: 24px; }
.mail-card .logo-mark { width: 22px; height: 22px; }
.mail-card p + p { margin-top: 14px; }
.mail-task { margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mail-task div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 9px 14px; font-size: 14px; }
.mail-task div + div { border-top: 1px solid var(--border); }
.mail-task dt { color: var(--muted); }
.mail-task dd { margin: 0; color: var(--text); font-weight: 550; }
.mail-cta { display: inline-block; margin-top: 18px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 8px; }
.mail-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.mail-foot strong { color: var(--text); font-weight: 600; display: block; }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sec-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 24px; }
.sec-card .feature-icon { margin-bottom: 16px; }
.sec-card h3 { font-size: 16.5px; letter-spacing: -0.015em; }
.sec-card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.sec-card--note { background: var(--bg-soft); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.sec-card--note p { color: var(--text-2); margin-top: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; padding: 32px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-size: 22px; }
.plan-desc { margin-top: 8px; color: var(--muted); min-height: 52px; }
.plan-cta { margin-top: 24px; }
.plan-list { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.plan-list-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.plan-list .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.pricing-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.012em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .answer { padding: 0 40px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-item .answer a { color: var(--accent-text); font-weight: 550; }

/* CTA */
.cta-band { border-radius: 24px; background: var(--text); color: #fff; padding: 64px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta-band p { margin-top: 14px; color: #b3b9c6; font-size: 17px; max-width: 520px; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.08); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 24px; }
.about-card h3 { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.about-card p { color: #b3b9c6; font-size: 15px; margin-top: 8px; }
.about-card a.mail-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 550; }
.about-card a.mail-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 36px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.footer-brand a.email { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 550; color: var(--text); border-bottom: 1px solid var(--border-strong); }
.footer-brand a.email:hover { border-color: var(--text); }
.footer-col h2 { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -0.005em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Content pages (help, legal)
   ========================================================================== */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 640px; }
.prose-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding-block: 56px 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 4px; font-size: 14px; }
.toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 6px; }
.toc a { color: var(--muted); padding: 4px 0; }
.toc a:hover { color: var(--text); }
.prose { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose ol { list-style: decimal; padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose a { color: var(--accent-text); font-weight: 550; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.prose .note { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .hero-visual .app { width: 100%; }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notify-grid { grid-template-columns: 1fr; gap: 48px; }
  .mail { position: static; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .nav-signin, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding-block: 88px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; gap: 20px; }
  .uc-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .uc-tabs::-webkit-scrollbar { display: none; }
  .uc-tab { grid-template-columns: auto; padding: 8px 14px; border-color: var(--border); border-radius: 999px; }
  .uc-tab-icon, .uc-tab span.desc { display: none; }
  .uc-tab strong { font-size: 14.5px; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .workspace-wrap .app { grid-template-columns: 1fr; }
  .workspace-wrap .app-sidebar { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; padding: 8px; overflow-x: auto; scrollbar-width: none; }
  .workspace-wrap .app-sidebar::-webkit-scrollbar { display: none; }
  .workspace-wrap .app-ws, .workspace-wrap .app-side-group, .workspace-wrap .app-side-foot { display: none; }
  .workspace-wrap .app-nav { grid-auto-flow: column; }
  .workspace-wrap .app-nav-item { white-space: nowrap; }
  .ws-grid { grid-template-columns: 1fr; }
  .prose-wrap { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 40px; }
  .section-lede { font-size: 17px; }
  .hero { padding: 48px 0 72px; }
  .hero-sub { font-size: 17px; }
  .hero-copy .hero-title { text-wrap: balance; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .app { grid-template-columns: 1fr; }
  .app .app-sidebar { display: none; }
  .workspace-wrap .app .app-sidebar { display: flex; }
  .app-search { max-width: none; }
  .app-search .kbd, .app-topbar .app-btn span { display: none; }
  .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: 1fr; }
  .app-body, .workspace-wrap .app-body { padding: 14px; }
  .task { grid-template-columns: 18px minmax(0, 1fr) auto 22px; }
  .task .prio { display: none; }
  .cal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-col:nth-child(n+4) { display: none; }
  .cal-col:nth-child(3) { border-right: 0; }
  .feature-copy { padding: 24px 22px 20px; }
  .feature-preview { padding: 20px 16px 0; min-height: 0; }
  .detail-fields { grid-template-columns: 84px 1fr; }
  .proj-table .hide-sm, .ws-table .hide-sm { display: none; }
  .uc-panel-head { padding: 22px 20px 0; }
  .uc-board { margin: 22px 16px 0; grid-template-columns: 1fr 1fr; }
  .uc-board .uc-col:nth-child(3) { display: none; }
  .email-types { grid-template-columns: 1fr; }
  .mail-meta { grid-template-columns: 32px minmax(0, 1fr); padding: 16px; }
  .mail-meta time { display: none; }
  .mail-subject { padding: 16px 16px 0; font-size: 17px; }
  .mail-tag { margin-inline: 16px; }
  .mail-canvas { padding: 12px; }
  .mail-card { padding: 20px; }
  .security-grid { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .faq-item .answer { padding-right: 0; }
  .cta-band { padding: 40px 22px; border-radius: 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .pref { grid-template-columns: minmax(0, 1fr) 48px 48px; padding-inline: 12px; }
  .footer-grid { gap: 36px 24px; }
}

@media (max-width: 420px) {
  .app-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-stat-value { font-size: 19px; }
  .task .task-due { display: none; }
  .proj-table th, .proj-table td { padding-inline: 10px; }
  .proj-table .progress { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Authentication
   ========================================================================== */
.auth-body { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 24px 40px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-top-link { font-size: 14.5px; color: var(--muted); }
.auth-top-link a { color: var(--accent-text); font-weight: 550; }
.auth-top-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 30px; letter-spacing: -0.03em; }
.auth-card .lede { margin-top: 8px; color: var(--muted); font-size: 16px; }
.auth-card .lede b { color: var(--text); font-weight: 600; word-break: break-word; }
.auth-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
.auth-foot nav { display: flex; gap: 16px; }
.auth-foot a:hover { color: var(--text); }

.social { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
.social .btn { --h: 44px; font-size: 14.5px; }
.social svg { width: 18px; height: 18px; flex: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; font-size: 13px; color: var(--faint); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label { font-size: 14px; font-weight: 550; color: var(--text); }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: #fff; font-size: 15.5px; color: var(--text);
  box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a3aab8; }
.input:hover { border-color: #c2c7d0; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #f04438; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--red-soft); }
.input[readonly] { background: var(--bg-soft); color: var(--muted); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--bg-muted); color: var(--text); }
.pw-toggle .icon { width: 18px; height: 18px; }
.pw-toggle .i-hide { display: none; }
.pw-toggle[aria-pressed="true"] .i-show { display: none; }
.pw-toggle[aria-pressed="true"] .i-hide { display: block; }
.hint { font-size: 13px; color: var(--muted); }
.field-error { display: none; align-items: center; gap: 6px; font-size: 13.5px; color: var(--red); }
.field-error .icon { width: 14px; height: 14px; }
.field-error.is-shown { display: flex; }

.checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.small-link { font-size: 14px; font-weight: 550; color: var(--accent-text); }
.small-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { font-size: 13px; color: var(--muted); line-height: 1.55; }
.legal a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.legal a:hover { text-decoration-color: var(--text-2); }
.switch-auth { margin-top: 28px; font-size: 14.5px; color: var(--muted); text-align: center; }
.switch-auth a { color: var(--accent-text); font-weight: 550; }
.switch-auth a:hover { text-decoration: underline; text-underline-offset: 3px; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 999px; background: var(--bg-muted); transition: background-color .2s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: #f04438; }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--amber-dot); }
.strength[data-score="3"] i:nth-child(-n+3) { background: #84cc16; }
.strength[data-score="4"] i { background: var(--green-dot); }
.strength-row { display: flex; justify-content: space-between; gap: 8px; }
.strength-label { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.alert { display: none; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; margin-top: 24px; border: 1px solid; }
.alert.is-shown { display: grid; animation: menuIn .2s var(--ease); }
.alert .icon { width: 18px; height: 18px; margin-top: 2px; }
.alert a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alert--error { background: var(--red-soft); border-color: #fecdca; color: #912018; }
.alert--success { background: var(--green-soft); border-color: #abefc6; color: #085d3a; }
.alert--info { background: var(--accent-soft); border-color: var(--accent-soft-2); color: #2d3282; }
.alert .i-err, .alert .i-ok, .alert .i-info { display: none; }
.alert--error .i-err, .alert--success .i-ok, .alert--info .i-info { display: block; }

.plan-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 550; }
.plan-chip .icon { width: 14px; height: 14px; }
.plan-chip[hidden] { display: none; }

.state { text-align: center; }
.state[hidden] { display: none; }
.state-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 24px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--bg-soft); color: var(--accent); }
.state-icon .icon { width: 26px; height: 26px; }
.state-icon--success { background: var(--green-soft); border-color: #abefc6; color: var(--green); }
.state-icon--error { background: var(--red-soft); border-color: #fecdca; color: var(--red); }
.state-icon .spinner { width: 24px; height: 24px; border-width: 2.5px; }
.state .actions { display: grid; gap: 10px; margin-top: 28px; }
.state .tips { margin-top: 28px; padding: 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); text-align: left; font-size: 14px; color: var(--muted); line-height: 1.55; }
.state .tips b { color: var(--text-2); font-weight: 600; }
.state .alert { text-align: left; }
.resend-row { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.resend-row button { color: var(--accent-text); font-weight: 550; }
.resend-row button:hover:not([disabled]) { text-decoration: underline; text-underline-offset: 3px; }
.resend-row button[disabled] { color: var(--faint); cursor: default; }

.preview-note { margin-top: 24px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--border-strong); font-size: 13px; color: var(--muted); text-align: left; line-height: 1.55; }
.preview-note b { color: var(--text-2); }
.preview-note a { color: var(--accent-text); font-weight: 600; word-break: break-all; }
.preview-note[hidden] { display: none; }

/* Aside */
.auth-aside { background: var(--bg-soft); border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; padding: 64px; position: relative; overflow: hidden; }
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 75%);
}
.auth-aside > * { position: relative; }
.auth-aside h2 { font-size: 28px; max-width: 440px; letter-spacing: -0.03em; }
.auth-aside p { margin-top: 12px; color: var(--muted); max-width: 440px; font-size: 16.5px; }
.auth-aside .app-card { margin-top: 40px; max-width: 460px; box-shadow: var(--shadow-app); font-size: 13px; line-height: 1.45; }
.aside-points { display: grid; gap: 10px; margin-top: 32px; }
.aside-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.aside-points .icon { width: 16px; height: 16px; color: var(--accent); }

@media (max-width: 1000px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 560px) {
  .auth-main { padding: 18px 16px; }
  .auth-top-link span { display: none; }
  .auth-center { padding: 36px 0; align-items: flex-start; }
  .auth-card h1 { font-size: 26px; }
  .social { grid-template-columns: 1fr; }
}
[tabindex="-1"]:focus { outline: none; }
