/* Kith's public start page: small and self-contained, so it loads fast without the app's styles. */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/vendor/lexend/lexend-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/vendor/lexend/lexend-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f3ede3;
  --surface: #faf6ef;
  --surface-2: #ece4d6;
  --text: #2a241c;
  --muted: #6e6455;
  --border: #e0d5c2;
  --accent: #4a6cf7;
  --accent-strong: #3554d9;
  --accent-fill: #4060e8; /* buttons: white text on it is 5.2:1 */
  --accent-soft: #e7e8f5;
  --on-accent: #fff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 50px rgb(60 40 10 / 0.12);
  --radius: 14px;
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2333;
    --surface: #1f2636;
    --surface-2: #2a3142;
    --text: #e8eaf0;
    --muted: #9ba3b5;
    --border: #303849;
    --accent: #6d8bff;
    --accent-strong: #9db0ff;
    --accent-fill: #6d8bff; /* with dark text: 6:1 */
    --accent-soft: #28324f;
    --on-accent: #0d1222;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 18px 50px rgb(0 0 0 / 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---- navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}

.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7b95ff, #4a6cf7);
  color: #fff;
}

.brand.small {
  font-size: 1rem;
}

.brand.small .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.85rem;
}

/* ---- buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s, background 0.12s;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: var(--accent-fill);
  color: var(--on-accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.ghost {
  padding: 8px 16px;
  background: transparent;
}

/* ---- sections ---- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 600;
}

.lead {
  max-width: 640px;
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot {
  margin-top: 56px;
}

/* The hero's screenshot turns into the real app (a demo account at /demo) once it has loaded. */
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

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

.demo-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.demo-dots i:nth-child(2) {
  background: #febc2e;
}

.demo-dots i:nth-child(3) {
  background: #28c840;
}

.demo-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: 1px;
}

.hero-demo.live .demo-label::before {
  background: #28c840;
  box-shadow: 0 0 0 3px rgb(40 200 64 / 0.2);
}

.demo-open {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.demo-open:hover {
  color: var(--text);
}

.demo-stage {
  position: relative;
  aspect-ratio: 1360 / 850;
}

.demo-stage picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
  opacity: 0;
  visibility: hidden; /* not clickable or focusable while it loads: the screenshot and its button are */
  transition: opacity 0.5s;
}

.hero-demo.live iframe {
  opacity: 1;
  visibility: visible;
}

.demo-play {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  transform: translateX(-50%);
  transition: transform 0.12s, background 0.12s;
}

.demo-play:hover {
  background: var(--accent-strong);
  transform: translateX(-50%) translateY(-1px);
}

.hero-demo.live .demo-play {
  display: none;
}

.section {
  padding: 72px 0 24px;
  scroll-margin-top: 40px; /* jumping to #features etc. clears the sticky header */
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.features h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.features p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.split.reverse > div {
  order: 2;
}

.split p {
  color: var(--muted);
}

.checks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 8px 0;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 4px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
}

.steps strong {
  display: block;
  color: var(--text);
}

.features.compact li {
  background: transparent;
}

.more {
  margin: 20px 0 0;
}

.faq {
  max-width: 780px;
  margin-top: 26px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  padding: 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 18px;
  color: var(--muted);
}

.closing {
  margin: 80px 0 40px;
  padding: 56px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
}

.closing p {
  margin: 12px 0 26px;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer a:not(.brand) {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

/* ---- phones ---- */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav {
    gap: 12px;
    padding: 12px 16px;
  }
  .nav nav {
    display: none;
  }
  .nav .button {
    margin-left: auto;
  }
  main {
    padding: 0 16px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-shot {
    max-width: 300px;
    margin: 36px auto 0;
    border-radius: 28px;
  }
  /* Phones get the screenshot; the demo opens full screen. */
  .demo-chrome {
    display: none;
  }
  .demo-stage {
    aspect-ratio: auto;
  }
  .section {
    padding-top: 56px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .split.reverse > div {
    order: 0;
  }
  .footer {
    padding: 24px 16px 32px;
  }
}
