:root {
  --blue: #4A7FA5;
  --blue-hover: #3d6d8f;
  --blue-soft: rgba(74, 127, 165, 0.14);
  --gold: #B8973A;
  --gold-text: #8a6f2c;
  --gold-soft: rgba(184, 151, 58, 0.16);
  --ink: #0f172a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --white: #fff;
  --danger: #b91c1c;
  --green: #15803d;
  --green-soft: rgba(22, 163, 74, 0.16);
  --yellow: #a16207;
  --yellow-soft: rgba(234, 179, 8, 0.2);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--slate-800);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

.droplets {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.droplet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.droplet--blue {
  width: min(72vw, 680px);
  height: min(62vh, 560px);
  top: -18%;
  right: -10%;
  filter: blur(42px);
  background: radial-gradient(
    ellipse at 42% 48%,
    rgba(74, 127, 165, 0.22) 0%,
    rgba(74, 127, 165, 0.1) 32%,
    rgba(74, 127, 165, 0.03) 52%,
    transparent 72%
  );
}
.droplet--gold {
  width: min(56vw, 520px);
  height: min(50vh, 460px);
  bottom: -16%;
  left: -12%;
  filter: blur(44px);
  background: radial-gradient(
    ellipse at 55% 50%,
    rgba(184, 151, 58, 0.16) 0%,
    rgba(184, 151, 58, 0.07) 38%,
    rgba(184, 151, 58, 0.02) 58%,
    transparent 74%
  );
}

.wrap { position: relative; z-index: 1; }
main { padding-bottom: 40px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 50;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand:hover { color: inherit; }
.site-header .cube {
  width: 40px;
  height: 40px;
}
.site-header .wordmark-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--slate-700);
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.18s ease;
}
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 25px; }
.menu-btn.is-open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav-login { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}
.btn-ghost:hover { color: var(--ink); background: var(--slate-50); }

.hero,
.section,
.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(min-content, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 28px;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; }
h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 750;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.06em;
  line-height: 1.12;
}
.hero-title span { white-space: nowrap; }
.hero-title .line-ink { color: var(--ink); }
.hero-title .line-blue { color: var(--blue); }
.hero-title .line-gold { color: var(--gold); }
.lede {
  font-size: 18px;
  color: var(--slate-600);
  margin: 0 0 26px;
}
.hero .lede {
  max-width: 46ch;
}

.product-stage {
  position: relative;
  min-width: 0;
}
.product {
  display: flex;
  height: 440px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  text-align: left;
  pointer-events: none;
  user-select: none;
  font-size: 13px;
}
.product-side {
  width: 168px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--slate-200);
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
}
.product-brand { padding: 0 8px 14px; }
.product .firm-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--slate-800);
  line-height: 1.25;
}
.product-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
}
.product-nav li.is-on {
  background: var(--blue);
  color: var(--white);
}
.product-nav svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--slate-50);
}
.product-topbar {
  height: 48px;
  flex-shrink: 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}
.product-topbar h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.product-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  min-width: 132px;
  padding: 0 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  color: var(--slate-400);
  font-size: 12px;
}
.product-search svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid rgba(74, 127, 165, 0.3);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.product-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  padding: 16px;
  overflow: hidden;
}
.product-screen {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-50);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.product-screen.is-on {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .product-screen { transition: none; }
  .menu-btn span,
  .nav-links { transition: none; }
}

.product .hub { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.product .hub-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.product .hub-date {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.product .hub-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.product .hub-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.product .hub-list { display: flex; flex-direction: column; }
.product .hub-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0 8px 10px;
  border-top: 1px solid var(--slate-100);
}
.product .hub-list .hub-row:first-child { border-top: 0; }
.product .hub-when { font-size: 12px; color: var(--slate-400); padding-top: 2px; }
.product .hub-title { font-size: 13px; font-weight: 600; }
.product .tiny { font-size: 11px; color: var(--slate-400); }
.product .hub-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.product .hub-day {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  min-height: 108px;
  padding: 8px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.product .hub-day.is-today {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.product .hub-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.product .hub-day.is-today .hub-day-head { color: var(--blue); }
.product .hub-day-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-700);
}
.product .hub-day.is-today .hub-day-num { color: var(--blue); }
.product .hub-day-list { display: flex; flex-direction: column; gap: 4px; }
.product .hub-day-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--status-mark, var(--slate-300));
  min-width: 0;
}
.product .hub-day.is-today .hub-day-item { border: 1px solid rgba(74, 127, 165, 0.18); }
.product .hub-day-time { font-size: 9px; color: var(--slate-400); }
.product .hub-day-title {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product .hub-day-empty { font-size: 10px; color: var(--slate-300); }
.product .cal-day-count { display: none; }
.product .kind-mark-appearance { --status-mark: var(--blue); }
.product .kind-mark-deadline { --status-mark: var(--gold); }
.product .kind-mark-task { --status-mark: var(--slate-400); }
.product .kind-mark-open { --status-mark: var(--green); }
.product .kind-mark-waiting { --status-mark: var(--yellow); }
.product .hub-row.kind-mark { box-shadow: inset 3px 0 0 var(--status-mark, var(--slate-300)); }
.product .table tbody tr.kind-mark td:first-child,
.product .table tbody tr.due-mark td:first-child {
  box-shadow: inset 4px 0 0 var(--status-mark, var(--slate-300));
  padding-left: 12px;
}

.product .filters {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.product .chip {
  flex-shrink: 0;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 999px;
}
.product .chip.on { background: var(--blue); color: var(--white); }
.product .card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product .table-wrap { padding: 0; }
.product .table { width: 100%; border-collapse: collapse; font-size: 12px; }
.product .table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-400);
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid var(--slate-200);
  font-weight: 650;
}
.product .table td {
  padding: 9px 10px 9px 12px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  white-space: nowrap;
}
.product .table tr:last-child td { border-bottom: 0; }
.product .badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
}
.product .badge-open { background: var(--green-soft); color: var(--green); }
.product .badge-waiting { background: var(--yellow-soft); color: var(--yellow); }

.product .case-head {
  margin: -16px -16px 0;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}
.product .case-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.product .tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--slate-200);
}
.product .case-head .tabs { border-bottom: 0; }
.product .tab {
  padding: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--slate-400);
}
.product .tab.on { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.product .case-head .tab { padding: 10px 0 8px; }
.product .dropzone {
  border: 1.5px dashed var(--slate-300);
  background: var(--slate-50);
  border-radius: 10px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate-400);
  font-size: 12px;
}
.product .dropzone svg,
.product .doc-name svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product .doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 12px;
}
.product .doc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.product .due-when { font-weight: 700; font-size: 12px; white-space: nowrap; }
.product .due-when.today { color: var(--gold-text); }
.product .due-when.soon { color: var(--blue); }
.product .due-mark-today { --status-mark: var(--gold); }
.product .due-mark-soon { --status-mark: var(--blue); }
.product .task-title { font-weight: 650; }

.product-team {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  flex: 1;
}
.product .team-list { padding: 6px; }
.product .person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}
.product .person.on { background: var(--blue); color: var(--white); }
.product .person.on .tiny { color: rgba(255, 255, 255, 0.75); }
.product .person-name { font-weight: 650; font-size: 12px; }
.product .team-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.section { padding-top: 36px; padding-bottom: 12px; }
.section h2 {
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 750;
}
.section .sub {
  color: var(--slate-500);
  margin: 0 0 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 750; }
.card p { margin: 0; color: var(--slate-600); font-size: 14px; }
.card-rule {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  margin-bottom: 14px;
}
.card-rule.gold { background: var(--gold); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-head { padding-top: 48px; padding-bottom: 12px; }
.page-head .lede { max-width: 40rem; }

.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px 56px;
  align-items: start;
}
.contact-copy {
  padding-top: 8px;
}
.contact-copy h1 { margin-bottom: 14px; }
.contact-copy .lede {
  max-width: 36ch;
  margin-bottom: 20px;
}
.contact-aside {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--slate-600);
}
.contact-form {
  padding: 28px;
}
.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form .btn-primary {
  align-self: start;
  padding: 12px 18px;
}

.stack { display: flex; flex-direction: column; gap: 12px; }
label { font-size: 13px; font-weight: 650; color: var(--slate-700); }
input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--slate-800);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--slate-500); margin: 0; }
.form-msg { font-size: 14px; font-weight: 600; margin: 0; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 28px 24px 40px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--slate-500);
  font-size: 13px;
}
.site-footer a { color: var(--slate-600); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 900px) {
  .hero, .split, .grid-3, .contact-layout, .contact-fields { grid-template-columns: 1fr; }
  .product-side { display: none; }
  .product { height: 380px; }
  .product-search { min-width: 0; width: 34px; padding: 0; justify-content: center; font-size: 0; }
  .product-team { grid-template-columns: 1fr; }
  .product .team-detail { display: none; }
  .product .hub-day { min-height: 54px; }
  .product .hub-day-list,
  .product .hub-day-empty { display: none; }
  .product .cal-day-count {
    display: inline;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--slate-500);
  }
  .product .hub-day.is-today .cal-day-count { color: var(--blue); }
  .hero-title { font-size: clamp(26px, 7vw, 40px); }
  .hero-title span { white-space: normal; }
  .hero .lede {
    font-size: 16px;
    max-width: none;
  }
  .contact-copy .lede { max-width: none; }
}

@media (max-width: 760px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid var(--slate-200);
    padding: 8px 16px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-login { display: block; }
  .menu-btn { display: inline-flex; }
  .nav {
    flex-wrap: nowrap;
    padding: 12px 16px;
    gap: 10px;
  }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 8px 12px; }
  .site-header .cube { width: 32px; height: 32px; }
  .site-header .wordmark-img { height: 24px; }
  .site-footer { flex-direction: column; }
}
