/* indigo mosaic bricks: 1-2-1 tesserae, 8px joints, no chat-composer */
:root {
  --mosaic-deep: #283593;
  --mosaic-tile: #C5CAE9;
  --mosaic-night: #1A237E;
  --mosaic-wash: #E8EAF6;
  --mosaic-grout: #9FA8DA;
  --mosaic-ink: #12163A;
  --mosaic-chip: #3949AB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    repeating-linear-gradient(45deg, #E8EAF6 0 10px, #EEF0F8 10px 20px);
  color: var(--mosaic-ink);
  line-height: 1.7;
  font-size: 16px;
}

.tk-mast {
  background: var(--mosaic-night);
  color: #E8EAF6;
  padding: 0.9rem 3vw;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.65rem;
}
.tk-wordmark {
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  font-size: 1.05rem;
}
.tk-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}
.tk-rail a {
  display: block;
  background: var(--mosaic-deep);
  color: #E8EAF6;
  text-decoration: none;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
}
.tk-rail a:hover { background: var(--mosaic-chip); }

.tk-stage { width: min(1080px, 94vw); margin: 1.4rem auto 2.4rem; }
.tk-hero {
  background: var(--mosaic-deep);
  color: #fff;
  padding: 1.6rem 1.4rem 1.5rem;
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.tk-hero h1 { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.32; max-width: 20em; }
.tk-hero p { max-width: 40em; color: var(--mosaic-tile); }
.tk-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tk-icons figure {
  background: var(--mosaic-night);
  padding: 0.75rem 0.6rem;
  text-align: center;
  min-height: 6.2rem;
}
.tk-icons figcaption { font-size: 0.8rem; margin-top: 0.35rem; color: var(--mosaic-tile); }
.tk-icons svg { width: 34px; height: 34px; }

.tk-slab { margin-top: 8px; background: #F5F6FC; padding: 1.35rem 1.2rem 1.5rem; }
.tk-slab h2 {
  font-size: 1.28rem;
  color: var(--mosaic-night);
  margin-bottom: 0.75rem;
}
.tk-slab p { margin-bottom: 0.7rem; max-width: 46em; }

.tk-full { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tk-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.tk-tessera {
  background: #fff;
  padding: 1rem 0.95rem;
  border: 8px solid var(--mosaic-wash);
  min-height: 8.5rem;
}
.tk-tessera h3 { color: var(--mosaic-deep); font-size: 1rem; margin-bottom: 0.4rem; }

.tk-flow {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
  margin-top: 8px;
}
.tk-flow > span {
  background: var(--mosaic-chip);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem;
}
.tk-flow > div { background: #fff; padding: 0.8rem 0.9rem; border: 8px solid var(--mosaic-wash); }

.tk-listen, .tk-record { background: #fff; padding: 1.05rem; border: 8px solid var(--mosaic-wash); }
.tk-listen { border-top: 8px solid var(--mosaic-deep); }
.tk-record { border-top: 8px solid var(--mosaic-chip); }
.tk-listen h3, .tk-record h3 { margin-bottom: 0.45rem; color: var(--mosaic-night); }

.tk-gridtable { width: 100%; border-collapse: separate; border-spacing: 8px; margin-left: -8px; width: calc(100% + 16px); }
.tk-gridtable th, .tk-gridtable td {
  background: #fff;
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.tk-gridtable th { background: var(--mosaic-night); color: #fff; }

.tk-bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0.8rem 0;
  max-width: 22rem;
}
.tk-bubbles i {
  display: block;
  height: 12px;
  background: var(--mosaic-tile);
  align-self: flex-start;
  width: 62%;
}
.tk-bubbles i:nth-child(2) { width: 44%; align-self: flex-end; background: var(--mosaic-grout); }
.tk-bubbles i:nth-child(3) { width: 71%; }

.tk-faq details {
  background: #fff;
  margin-bottom: 8px;
  padding: 0.8rem 0.9rem;
  border-left: 8px solid var(--mosaic-deep);
}
.tk-faq summary { cursor: pointer; font-weight: 700; color: var(--mosaic-night); }
.tk-faq p { margin-top: 0.45rem; }

.tk-colophon {
  background: var(--mosaic-night);
  color: var(--mosaic-tile);
  padding: 1.6rem 3vw 2rem;
  font-size: 0.9rem;
}
.tk-colophon p { margin-bottom: 0.5rem; max-width: 54em; }

@media (max-width: 800px) {
  .tk-icons, .tk-two, .tk-flow { grid-template-columns: 1fr; }
}
