/* ThinkChat v2 site — shared tokens, base and chrome (landing + features).
   Palette is the original ThinkChat palette; this file is its single source of truth. */

:root {
  --coral: #ff6b57;
  --coral-dark: #e9503f;
  --violet: #7762d8;
  --lavender: #eee9ff;
  --lavender-deep: #cdbfe9;
  --peach: #ffe6de;
  --ivory: #fff9f2;
  --paper: #fffdf9;
  --aubergine: #332b3a;
  --aubergine-deep: #241f2a;
  --muted: #776b65;
  --line: #eaded5;
  --green: #dcebdc;
  --green-ink: #3f7d57;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-soft: 0 12px 30px rgba(90, 65, 55, .07);
  --shadow-lift: 0 24px 60px rgba(90, 65, 55, .12);
  --shadow-coral: 0 12px 28px rgba(255, 107, 87, .24);

  --font: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .68, .32, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--aubergine);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Section heads (original: small label, very large tight h2) ---------- */

.label {
  display: inline-block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.h2 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.h2 .hl { color: var(--coral); }

.lead { max-width: 600px; color: var(--muted); font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.7; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Soft orbs (original hero decoration) ---------- */

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
  opacity: .5;
}
.orb-peach { background: var(--peach); }
.orb-lavender { background: var(--lavender); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

.btn-coral { background: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn-coral:hover { background: var(--coral-dark); }

.btn-outline { background: var(--paper); border-color: var(--line); color: var(--aubergine); }
.btn-outline:hover { border-color: var(--lavender-deep); }

.btn-dark { background: var(--aubergine); color: #fff; }
.btn-dark:hover { background: var(--aubergine-deep); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

/* ---------- Announcement + nav ---------- */

.announce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  padding: 10px 20px;
  background: var(--aubergine);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.announce a { color: #ffd5ce; text-decoration: underline; text-underline-offset: 3px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 249, 242, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.05em;
}
.brand img { width: 20px; height: 26px; object-fit: contain; }

.nav-links { display: flex; gap: 30px; font-size: 13.5px; font-weight: 600; }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--violet); }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 13.5px; font-weight: 600; }
.nav-login:hover { color: var(--violet); }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Footer (original aubergine, without the gradient top line) ---------- */

.foot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 28px;
  color: #fff;
  background:
    radial-gradient(900px 260px at 6% -10%, rgba(255, 107, 87, .22), transparent 62%),
    radial-gradient(760px 260px at 94% 0%, rgba(119, 98, 216, .22), transparent 58%),
    linear-gradient(180deg, #3a3142 0%, #2c2533 45%, var(--aubergine-deep) 100%);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) 1fr 1.1fr 1.1fr;
  gap: 44px 36px;
  padding-bottom: 40px;
}

.brand-light { color: #fff; }
.foot-brand p { margin-top: 16px; max-width: 330px; color: rgba(255, 255, 255, .64); font-size: 14px; line-height: 1.7; }

.foot-social { display: flex; gap: 10px; margin-top: 22px; }
.foot-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  transition: background .25s, transform .25s;
}
.foot-social a:hover { background: var(--coral); transform: translateY(-2px); color: #fff; }
.foot-social svg { width: 16px; height: 16px; }

.foot-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.foot-col h4 {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.foot-col a { color: rgba(255, 255, 255, .78); transition: color .2s; }
.foot-col a:hover { color: #ffd5ce; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  font-size: 12.5px;
}

/* ---------- FAQ (landing + features) ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
a.inline { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq-list .pm::before, .faq-list .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--coral); transition: transform .25s var(--ease); }
.faq-list .pm::after { transform: rotate(90deg); }
.faq-list details[open] .pm::after { transform: rotate(0); }
.faq-list details p { margin: -6px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 60ch; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; }
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav-login { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Headings wrap evenly instead of leaving a single orphaned word. */
h1, h2, h3, .h2 { text-wrap: balance; }
