/* KrotiBot homepage (krotibot.amlethal.com). Same system as the download page (deploy/kroti-download): the app's
   ink pills, each bot's bubble tone, the private desktop's sky and the chief's tangerine. The memorable thing here is
   the cast: the bots themselves, animated, around the chief. No web fonts. */
:root {
  --sky: #eef3ff;
  --paper: #ffffff;
  --ink: #1a2238;
  --muted: #586379;
  --line: #d6deef;
  --hair: #e9eef7;
  --tangerine: #f2802e;
  --focus: #2f6feb;
  --tone-peach: #fde3cf;
  --tone-honey: #fbe9c3;
  --tone-sky: #dbe7ff;
  --tone-mint: #d7f2e6;
  --tone-rose: #fbdde4;
  --tone-lilac: #e7e0fa;
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC",
    "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(56rem 34rem at 78% 4rem, rgba(242, 128, 46, 0.12), transparent 70%),
    linear-gradient(180deg, var(--sky) 0, var(--sky) 34rem, var(--paper) 58rem);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.875rem; background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

.top, main, .foot { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 9px; }
.top-links { display: flex; align-items: center; gap: 1.25rem; }
.top-links a { font-weight: 600; text-decoration: none; font-size: 0.9375rem; }
.top-links a:hover { text-decoration: underline; }
.lang {
  font: inherit; font-size: 0.875rem; font-weight: 600; min-width: 2.75rem; min-height: 2rem; padding: 0.125rem 0.75rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--ink); cursor: pointer;
}
.lang:hover { background: var(--paper); }

/* Hero: the name set large on the left, the cast on the right. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0 5rem;
}
h1 {
  margin: 0;
  font-size: clamp(3.75rem, 9vw, 7.25rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.tagline { text-wrap: balance; margin: 1.25rem 0 0; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.4; font-weight: 700; }
.lede { margin: 1rem 0 0; max-width: 32em; font-size: 1.125rem; color: var(--muted); }
.get { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.primary {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3.25rem; padding: 0.75rem 1.75rem 0.75rem 1.375rem;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(26, 34, 56, 0.65); transition: background-color 120ms ease, transform 120ms ease;
}
.primary:hover { background: #2b3552; }
.primary:active { transform: translateY(1px); }
.primary:focus-visible { border-radius: 999px; }
.quiet { font-weight: 600; text-decoration: underline; text-decoration-color: var(--tangerine); text-decoration-thickness: 2px; }
.quiet:hover { text-decoration-color: var(--ink); }
.meta { margin: 0.875rem 0 0; font-size: 0.9375rem; color: var(--muted); }

/* The cast: the chief in the middle, eight bots around her, each on its own bubble tone. */
.cast { margin: 0; }
.cast-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.bot { display: grid; justify-items: center; text-align: center; gap: 0.125rem; }
.bot img {
  width: 100%;
  max-width: 6.5rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tone);
  margin-bottom: 0.375rem;
}
.bot b { font-size: 0.9375rem; line-height: 1.35; }
.bot span { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.bot.chief { grid-column: 2 / span 2; grid-row: 1 / span 2; align-self: center; }
.bot.chief img {
  max-width: 13.5rem;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--tangerine), 0 26px 50px -26px rgba(242, 128, 46, 0.7);
  margin-bottom: 0.875rem;
}
.bot.chief b { font-size: 1.125rem; }
.bot.chief span { font-size: 0.875rem; }
.bot[data-tone="peach"] { --tone: var(--tone-peach); }
.bot[data-tone="honey"] { --tone: var(--tone-honey); }
.bot[data-tone="sky"] { --tone: var(--tone-sky); }
.bot[data-tone="mint"] { --tone: var(--tone-mint); }
.bot[data-tone="rose"] { --tone: var(--tone-rose); }
.bot[data-tone="lilac"] { --tone: var(--tone-lilac); }
.cast figcaption { margin: 1.75rem auto 0; max-width: 30em; text-align: center; font-size: 0.9375rem; color: var(--muted); }

/* Facts and install */
.facts, .install { padding: 4rem 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 2rem; font-size: 1.75rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 13rem minmax(0, 36em); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.facts dl > div:first-child { padding-top: 0; }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

/* Install is a real sequence, so it is numbered. */
.install ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.install li { counter-increment: step; position: relative; padding-top: 3.5rem; }
.install li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--tangerine); font-weight: 800; font-size: 1rem; line-height: 1;
}
h3 { margin: 0 0 0.5rem; font-size: 1.125rem; line-height: 1.45; font-weight: 700; }
.install li p { margin: 0; color: var(--muted); max-width: 30em; }
.aside { margin: 2rem 0 0; max-width: 44em; font-size: 0.9375rem; color: var(--muted); }
.aside + .aside { margin-top: 0.5rem; }
.aside a { color: var(--ink); font-weight: 600; }

.foot { padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.foot p { margin: 0 0 0.25rem; max-width: 48em; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 2rem 0 4rem; }
  .install ol { grid-template-columns: 1fr; gap: 2rem; }
  .install li { padding-top: 0; padding-left: 3.25rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .top, main, .foot { padding-left: 1.125rem; padding-right: 1.125rem; }
  .top-links { gap: 0.875rem; }
  .primary { width: 100%; justify-content: center; }
  .cast-grid { gap: 1rem 0.5rem; }
  .bot span { display: none; }
  .bot.chief span { display: block; }
  .facts dl > div { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
}
