/* ChillTalk marketing site */
:root {
  --ink: #17153B;
  --paper: #FBFBFE;
  --surface: #F1F0F8;
  --line: #E2E1EE;
  --muted: #55537A;
  --video: #FF4F79;
  --voice: #00A896;
  --text: #FFC23C;
  --on-mode: #17153B;
  --focus: #3D5AFE;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 28px;
  --radius-sm: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F1FB;
    --paper: #121030;
    --surface: #1B1940;
    --line: #2E2C57;
    --muted: #AEACD0;
    --focus: #8C9EFF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem var(--display); letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.btn { color: var(--paper); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; background: none; border: 1.5px solid var(--line); color: var(--ink); font: 700 .95rem var(--body); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 12px; text-align: center; border: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 1rem var(--body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-big { min-height: 58px; padding: 0 32px; font-size: 1.1rem; }
.btn-video { background: var(--video); color: var(--on-mode); }
.btn-voice { background: var(--voice); color: var(--on-mode); }
.btn-text { background: var(--text); color: var(--on-mode); }

.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 72px); }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; margin-bottom: 1.6em; }
.hero-page { padding-bottom: clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.hero-page h1 { max-width: 20ch; }
.hero-page.mode-video { border-bottom: 6px solid var(--video); }
.hero-page.mode-voice { border-bottom: 6px solid var(--voice); }
.hero-page.mode-text  { border-bottom: 6px solid var(--text); }

/* The speech-bubble mode picker: the one bold element on the site */
.bubbles {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(16px, 2.4vw, 28px);
  margin: 8px 0 28px; padding-bottom: 22px;
}
.bubble {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 210px; padding: 26px 26px 24px;
  border-radius: var(--radius-lg);
  color: var(--on-mode); text-decoration: none;
  transition: transform .18s ease;
}
.bubble::after {
  content: ""; position: absolute; bottom: -20px; width: 40px; height: 26px;
  background: inherit; clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.bubble:nth-child(odd)::after { left: 34px; }
.bubble:nth-child(even)::after { right: 34px; clip-path: polygon(0 0, 100% 0, 70% 100%); }
.bubble:hover { transform: translateY(-4px) rotate(-.6deg); }
.bubble:nth-child(2):hover { transform: translateY(-4px) rotate(.6deg); }
.b-video { background: var(--video); }
.b-voice { background: var(--voice); }
.b-text  { background: var(--text); }
.b-verb { font: 800 clamp(2.4rem, 5.4vw, 4rem)/0.95 var(--display); letter-spacing: -0.035em; }
.b-what { font-size: 1.02rem; font-weight: 700; max-width: 26ch; line-height: 1.35; }

@media (max-width: 760px) {
  .bubbles { grid-template-columns: 1fr; gap: 30px; }
  .bubble { min-height: 0; flex-direction: row; align-items: center; padding: 18px 20px; }
  .b-verb { font-size: 2.3rem; }
  .b-what { max-width: 20ch; font-size: .95rem; }
}
@media (max-width: 420px) {
  .bubble { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; color: var(--muted); font-weight: 700; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.facts .online::before { background: var(--voice); }
.facts li[hidden] { display: none; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--surface); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split p { max-width: 58ch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 28px 0 0; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font: 800 2.4rem/1 var(--display); margin-bottom: 12px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; margin-top: 28px; }
.uses p { color: var(--muted); max-width: 46ch; }
@media (max-width: 700px) { .uses { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; font-weight: 700; font-size: 1.1rem; }
.checklist li { padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 3px solid var(--voice); border-bottom: 3px solid var(--voice); transform: rotate(-45deg); }

/* Mock blurred call */
.mock { margin: 0; }
.mock-screen { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: #2a2650; }
.mock-blur {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 50% 42%, #e7b49a 0 16%, transparent 17%),
    radial-gradient(ellipse at 50% 92%, #3e5fbf 0 34%, transparent 35%),
    linear-gradient(160deg, #6b5aa8, #2b2756 70%);
  filter: blur(26px);
}
.mock-tag { position: absolute; left: 16px; bottom: 16px; background: rgba(23,21,59,.8); color: #fff; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; }
.mock figcaption { color: var(--muted); font-size: .95rem; margin-top: 12px; }

/* Prose pages */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.levels { list-style: none; padding-left: 0 !important; }
.levels li { padding: 12px 0 12px 18px; border-left: 3px solid var(--line); margin-bottom: 10px; }
.crumbs { margin-bottom: 1em; font-weight: 700; }
.post-date { color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list a { display: block; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list a:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.post-list h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.post-list p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 800 1.6rem var(--display); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--paper); opacity: .8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; }
.foot-grid nav a { color: var(--muted); text-decoration: none; }
.foot-grid nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid h2 { font: 700 1rem var(--body); letter-spacing: 0; margin-bottom: 6px; }
.foot-note { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.flag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px; background: var(--surface); border-radius: var(--radius-lg); }
.flag-grid img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(23,21,59,.12); }
