/*
 * kismatbots.com: the same warm, quiet, editorial world as the product (app.kismatbots.com).
 * Ivory paper, warm greys, a book serif for headings, near-black actions, the brand gold only
 * as a signature. The hero shows the product itself: a conversation playing out.
 */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f7f3;
  --surface: #fffefb;
  --sunk: #f2f0e9;
  --ink: #23211e;
  --ink-2: #4a4741;
  --muted: #7f7a70;
  --line: #e7e4db;
  --gold: #b7791f;
  --gold-deep: #8f5d16;
  --night: #1b1a18;
  --on-night: #f2efe8;
  /* The demo's client brand: a calm teal, so it reads as "a client's colors", not ours. */
  --demo: #1f6f6a;
  --display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #22211f;
    --surface: #2a2926;
    --sunk: #1d1c1a;
    --ink: #f2efe8;
    --ink-2: #d5d1c6;
    --muted: #aaa59a;
    --line: #3a3834;
    --gold: #d39a3f;
    --gold-deep: #e2b04a;
    --night: #121110;
    --on-night: #f2efe8;
    --demo: #3fa39b;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11" 1, "ss01" 1;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
}
::selection {
  background: rgb(183 121 31 / 0.22);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 50;
}
.skip:focus {
  left: 12px;
}

/* --- Buttons --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font: 500 14.5px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background-color 0.15s,
    color 0.15s,
    box-shadow 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15.5px;
}
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.1);
}
.btn-dark:hover {
  background: color-mix(in srgb, var(--ink) 88%, var(--gold));
}
.btn-quiet {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-quiet:hover {
  background: var(--sunk);
}
.btn-light {
  background: var(--on-night);
  color: var(--night);
}
.btn-light:hover {
  background: #fff;
}
.btn-ghost-light {
  color: var(--on-night);
  box-shadow: inset 0 0 0 1px rgb(242 239 232 / 0.25);
}
.btn-ghost-light:hover {
  background: rgb(242 239 232 / 0.08);
}

/* --- Nav ------------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 68px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 400 21px/1 var(--display);
  letter-spacing: -0.01em;
}
.mark {
  width: 30px;
  height: 30px;
}
/* The mark's box includes the antenna above the tile: lower the name to the tile's middle. */
.brand span {
  position: relative;
  top: 5.5px;
}
.nav nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav nav a,
.link-quiet {
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav nav a:hover,
.link-quiet:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* --- Hero ------------------------------------------------------------------------------ */
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 72px 96px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero h1 {
  margin-top: 18px;
  font: 400 clamp(42px, 5.6vw, 68px) / 1.03 var(--display);
  letter-spacing: -0.022em;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink-2);
}
.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* The demo: a chat panel in a client's colors, with the launcher below it. */
.demo {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
  padding-bottom: 76px;
}
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(40 30 15 / 0.06),
    0 14px 30px -10px rgb(40 30 15 / 0.16),
    0 40px 80px -24px rgb(40 30 15 / 0.24);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.18), transparent 70%), var(--demo);
  color: #fff;
  font: 600 16px/1 var(--body);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--demo) 14%, transparent);
}
.panel-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.panel-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.panel-sub .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.panel-log {
  height: 340px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.5;
}
.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  animation: rise 0.45s var(--ease) both;
}
.msg p + p {
  margin-top: 0.55em;
}
.msg.user {
  align-self: flex-end;
  background: var(--demo);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.bot {
  align-self: flex-start;
  background: var(--sunk);
  border-bottom-left-radius: 6px;
}
.msg.bot strong {
  font-weight: 600;
}
.msg.notice {
  align-self: center;
  max-width: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--muted);
  background: none;
}
.msg .who {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.note-chip {
  align-self: flex-start;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--demo) 80%, var(--ink));
  background: color-mix(in srgb, var(--demo) 10%, transparent);
  padding: 5px 10px;
  border-radius: 999px;
  animation: rise 0.45s var(--ease) both;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  padding: 13px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: var(--sunk);
  animation: rise 0.3s var(--ease) both;
}
.typing.from-user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--demo) 14%, var(--sunk));
  border-radius: 18px;
  border-bottom-right-radius: 6px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: wave 1.1s infinite ease-in-out;
}
.typing i:nth-child(2) {
  animation-delay: 0.14s;
}
.typing i:nth-child(3) {
  animation-delay: 0.28s;
}
.panel-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 12px 12px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
  box-shadow: 0 6px 16px -10px rgb(40 30 15 / 0.18);
}
.send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--demo);
  color: #fff;
  opacity: 0.45;
}
.launcher {
  position: absolute;
  right: 4px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 60%), var(--demo);
  color: #fff;
  box-shadow:
    0 1px 2px rgb(16 24 40 / 0.16),
    0 8px 24px -6px rgb(16 24 40 / 0.32);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* --- Sections -------------------------------------------------------------------------- */
.how,
.features,
.faq {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 88px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.how {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2,
.plans h2,
.start h2 {
  font: 400 clamp(32px, 3.6vw, 44px) / 1.1 var(--display);
  letter-spacing: -0.018em;
}
.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-2);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.step-n {
  display: block;
  font: italic 400 44px/1 var(--display);
  color: var(--gold);
}
.steps h3 {
  margin-top: 18px;
  font: 400 23px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.steps p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.features {
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature h3 {
  font: 400 21px/1.22 var(--display);
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}
.feature-lead {
  grid-column: span 2;
  background: var(--surface);
}
.feature-lead h3 {
  font-size: 27px;
  max-width: 18em;
}
.quote {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  max-width: 480px;
  font-size: 14px;
}
.quote-q,
.quote-a {
  padding: 9px 13px;
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
}
.quote-q {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 5px;
}
.quote-a {
  background: var(--sunk);
  border-bottom-left-radius: 5px;
}

.plans {
  background: var(--sunk);
  border-block: 1px solid var(--line);
}
.plans-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 64px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.plans p {
  margin-top: 12px;
  max-width: 40em;
  color: var(--ink-2);
}

.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font: 400 20px/1.3 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 300 24px/1 var(--body);
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 22px;
  max-width: 62ch;
  color: var(--ink-2);
}

.start {
  background: var(--night);
  color: var(--on-night);
}
.start-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 96px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.start h2 {
  max-width: 14em;
}
.start p {
  margin-top: 16px;
  max-width: 36em;
  font-size: 17px;
  color: rgb(242 239 232 / 0.72);
}
.start-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Footer and the Kismat Studio ribbon ----------------------------------------------- */
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 40px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}
.brand-small {
  font: 400 19px/1.2 var(--display);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--ink);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.ribbon {
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: var(--sunk);
  border-top: 1px solid var(--line);
}
.ribbon a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.ribbon a:hover {
  background-size: 100% 1px;
}

/* --- Small screens --------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 48px 72px;
  }
  .demo {
    justify-self: center;
  }
  .steps,
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-lead {
    grid-column: auto;
  }
  .nav nav {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav-actions .link-quiet {
    display: none;
  }
  .nav-inner {
    gap: 12px;
  }
  .how,
  .features,
  .faq {
    padding-block: 64px;
  }
  .panel-log {
    height: 320px;
  }
  .btn-lg {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- 404 ------------------------------------------------------------------------------- */
.notfound {
  min-height: calc(100dvh - 48px);
  max-width: 720px;
  margin: 0 auto;
  padding-block: 120px 80px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.notfound h1 {
  margin-top: 14px;
  font: 400 clamp(40px, 6vw, 60px) / 1.05 var(--display);
  letter-spacing: -0.02em;
}
