/*
  Kantan Desk product website.
  Static marketing/information styles for kantandesk.com.
*/
:root {
  color-scheme: light;
  --paper: #f7f5f2;
  --paper-plain: #fffdf9;
  --ink: #182d3b;
  --ink-soft: #496271;
  --ink-faint: #6f818b;
  --navy: #1f4c67;
  --teal: #6ba7a9;
  --teal-deep: #2f7476;
  --sand: #d8c3a3;
  --rust: #b96b4a;
  --mint: #dceceb;
  --line: rgba(31, 76, 103, 0.16);
  --shadow: 0 18px 55px rgba(31, 76, 103, 0.12);
  --content: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 50;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 76, 103, 0.22);
  border-radius: 9px;
  background: var(--paper-plain);
  box-shadow: 0 8px 22px rgba(31, 76, 103, 0.08);
  color: var(--navy);
  font-weight: 750;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: 0;
}

.brand-owner {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.site-nav a {
  border-radius: 7px;
  padding: 9px 11px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(107, 167, 169, 0.18);
  color: var(--ink);
  outline: none;
}

code {
  border: 1px solid rgba(31, 76, 103, 0.14);
  border-radius: 5px;
  background: rgba(255, 253, 249, 0.78);
  padding: 1px 5px;
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #102837;
  color: #f7f5f2;
  padding: 18px;
  line-height: 1.5;
}

pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
}

.header-link:hover,
.header-link:focus-visible {
  border-color: rgba(31, 76, 103, 0.36);
  background: var(--paper-plain);
  outline: none;
}

.nav-toggle {
  display: none;
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(40px, 7vw, 86px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12vw -26vw auto;
  width: 54vw;
  max-width: 760px;
  aspect-ratio: 1;
  border: 1px solid rgba(31, 76, 103, 0.14);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(107, 167, 169, 0.28), rgba(216, 195, 163, 0.18)),
    var(--paper);
  z-index: 0;
}

.hero-grid,
.section-inner,
.page-head-inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1.07fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.55rem, 6.2vw, 5.85rem);
  font-weight: 670;
  letter-spacing: 0;
  line-height: 0.98;
}

.page-title {
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 3.1rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  max-width: 710px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.hero .lead {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  padding: 11px 17px;
  font-weight: 700;
}

.button-primary {
  background: var(--ink);
  color: var(--paper-plain);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.74);
  color: var(--navy);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.product-note {
  max-width: 650px;
  margin-top: 32px;
  border-left: 3px solid var(--rust);
  padding: 2px 0 2px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.system-visual {
  position: relative;
  border: 1px solid rgba(31, 76, 103, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
}

.desk-board {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  min-height: 440px;
}

.queue-list {
  border-right: 1px solid var(--line);
  background: rgba(220, 236, 235, 0.32);
  padding: 14px;
}

.queue-item {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  border: 1px solid rgba(31, 76, 103, 0.12);
  border-radius: 8px;
  background: var(--paper-plain);
  padding: 12px;
}

.queue-item.active {
  border-color: rgba(47, 116, 118, 0.38);
  box-shadow: 0 10px 30px rgba(47, 116, 118, 0.1);
}

.queue-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.queue-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  background: rgba(31, 76, 103, 0.08);
  padding: 2px 8px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.tag.hot {
  background: rgba(185, 107, 74, 0.16);
  color: #873f29;
}

.thread-pane {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.thread-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.thread-heading strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.25;
}

.status-pill {
  flex: none;
  border: 1px solid rgba(47, 116, 118, 0.25);
  border-radius: 999px;
  background: rgba(107, 167, 169, 0.15);
  padding: 5px 9px;
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 760;
}

.comment {
  border: 1px solid rgba(31, 76, 103, 0.13);
  border-radius: 8px;
  background: var(--paper-plain);
  padding: 12px;
}

.comment.internal {
  background: rgba(216, 195, 163, 0.18);
}

.comment-label {
  margin-bottom: 6px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.comment p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.section {
  padding: clamp(58px, 8vw, 112px) var(--gutter);
}

.section.alt {
  background: var(--paper-plain);
}

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

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

.feature-card,
.plain-card,
.security-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  padding: 22px;
}

.feature-card p,
.plain-card p,
.security-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 70px);
}

.check-list,
.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.detail-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.check-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--teal-deep);
}

.workflow {
  display: grid;
  gap: 12px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  padding: 16px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-plain);
  font-weight: 760;
}

.workflow-step p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.page-head {
  padding: clamp(54px, 8vw, 104px) var(--gutter) clamp(32px, 5vw, 64px);
}

.page-head-inner {
  display: grid;
  gap: 18px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.page-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  border-color: rgba(31, 76, 103, 0.34);
  color: var(--ink);
  outline: none;
}

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

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

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

.permission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  padding: 16px;
}

.permission-card h3 {
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.permission-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  overflow: hidden;
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: rgba(220, 236, 235, 0.5);
  color: var(--ink);
  font-size: 0.86rem;
}

.info-table td {
  color: var(--ink-soft);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.74);
  padding: 20px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

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

.metric {
  border-top: 2px solid var(--teal);
  background: rgba(255, 253, 249, 0.6);
  padding: 16px 0 0;
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.band {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-plain);
  padding: clamp(26px, 4vw, 42px);
}

.band h2,
.band h3 {
  color: var(--paper-plain);
}

.band p {
  color: rgba(255, 253, 249, 0.76);
}

.band a {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-end {
  padding: 30px var(--gutter) 42px;
}

.site-end-inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.site-end a {
  color: var(--navy);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .button:focus-visible,
  .reveal {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper-plain);
    color: var(--ink);
  }

  .site-nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-plain);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .desk-board {
    grid-template-columns: 1fr;
  }

  .queue-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .permission-grid,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-owner {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .system-visual {
    margin-inline: -4px;
  }

  .thread-heading {
    display: grid;
  }

  .feature-grid,
  .two-grid,
  .security-grid,
  .permission-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .site-end-inner {
    display: grid;
  }
}
