/* Talklace marketing site. Mobile first; breakpoints at 640px, 900px and 1024px. */

:root {
  --teal: #0F6B5C;
  --teal-hover: #0C5A4D;
  --tint: #E3F1EE;
  --tint-hover: #EEF6F4;
  --text: #1C1F23;
  --muted: #5D6670;
  --muted-2: #3E4A52;
  --faint: #68717A;
  --bg: #F5F6F7;
  --white: #FFFFFF;
  --line: #E6E8EB;
  --line-2: #EEF0F2;
  --line-3: #F2F4F5;
  --border: #D5D9DE;
  --dark: #121417;
  --dark-accent: #3FB59C;
  --shadow-card: 0 1px 2px rgba(16, 24, 32, .04);
  --font-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 64px;
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
}
h1, h2 { text-wrap: balance; }

img, svg { display: block; }
svg { flex: none; }

a { color: var(--teal); }
a:hover { color: var(--teal-hover); }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

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

.site-footer :focus-visible,
.cta :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--teal);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.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 { max-width: 1200px; margin: 0 auto; }

/* Visibility helpers */
.only-desktop { display: none; }
@media (min-width: 640px) {
  .only-mobile { display: none; }
  .only-desktop { display: initial; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(15, 107, 92, .22);
}
.btn-primary:hover { background: var(--teal-hover); color: var(--white); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0 24px;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(225, 228, 232, .8);
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  flex: 1;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; }
.brand span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.header-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-signin { display: none; }

.btn-header {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.btn-header:hover { background: var(--teal-hover); color: var(--white); }

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #E1E4E8;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  padding: 8px 16px 20px;
  border-top: 1px solid #ECEEF0;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px solid var(--line-3);
}
.mobile-nav a.mobile-signin {
  margin-top: 16px;
  justify-content: center;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .header-bar { height: 76px; padding: 0 24px; gap: 48px; }
  .brand { flex: none; gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 21px; }
  .header-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
  }
  .header-nav a, .header-signin {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted-2);
    text-decoration: none;
    transition: color .2s;
  }
  .header-nav a:hover, .header-signin:hover { color: var(--teal); }
  .header-actions { gap: 24px; }
  .header-signin { color: var(--text); font-weight: 600; font-size: 15px; }
  .btn-header { padding: 0 20px; border-radius: 11px; font-size: 15px; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Sections and type ---------- */

.sec { padding: 64px 20px 0; }
.eyebrow { margin: 0; color: var(--teal); font-weight: 600; font-size: 14px; }
.sec-title {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sec-head { max-width: 640px; }
.sec-head-wide { max-width: 680px; }
.sec-lead { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

@media (min-width: 640px) {
  .sec { padding: 104px 24px 0; }
  .eyebrow { font-size: 15px; }
  .sec-title { margin-top: 10px; font-size: 42px; line-height: 1.12; }
  .sec-lead { margin-top: 14px; font-size: 17px; }
}

.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

@media (hover: hover) {
  .card-hover { transition: box-shadow .2s, transform .2s; }
  .card-hover:hover { box-shadow: 0 14px 34px rgba(16, 24, 32, .08); transform: translateY(-2px); }
}

/* Gentle reveal on scroll, where the browser supports scroll-driven animations */
@keyframes tl-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal > * {
      animation: tl-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* ---------- Hero ---------- */

.hero { background: var(--white); padding: 32px 20px 40px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }

.pill-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
}
.pill-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 620px;
}
.hero-lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
}
.hero-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.hero-ticks { display: none; }

.hero-demo { flex: 1 1 100%; min-width: 0; }

@media (min-width: 640px) {
  .hero { padding: 72px 24px 88px; }
  .pill-badge { font-size: 14px; padding: 8px 14px; }
  .pill-badge::before { width: 8px; height: 8px; }
  .hero h1 { margin-top: 24px; font-size: 48px; line-height: 1.05; }
  .hero-lead { margin-top: 24px; font-size: 20px; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
  .hero-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--muted);
  }
  .hero-ticks span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-ticks svg { color: var(--teal); }
  .hero-demo { flex: 0 0 auto; width: 460px; max-width: 100%; margin: 0 auto; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 60px; }
}

@media (max-width: 639px) {
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Chat demo (hero phone) ---------- */

.chat-demo { width: 100%; max-width: 360px; margin: 0 auto; }

.chip-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.chip-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip-tab svg { width: 16px; height: 16px; }
.chip-tab:hover { border-color: var(--teal); }
.chip-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

.phone-stage { position: relative; display: flex; justify-content: center; margin-top: 20px; }
.phone-backdrop { display: none; }

.phone {
  position: relative;
  width: 292px;
  max-width: 100%;
  background: #1C1F23;
  border-radius: 48px;
  padding: 11px;
  box-shadow: 0 30px 60px rgba(16, 24, 32, .18);
}

.phone-screen {
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
  background: #ECE5DD;
  transition: background .4s;
}

.ph-head, .ph-foot { display: none; }
.chat-demo[data-ch="wa"] .ph-wa,
.chat-demo[data-ch="web"] .ph-web,
.chat-demo[data-ch="email"] .ph-email,
.chat-demo[data-ch="call"] .ph-call { display: flex; }
.chat-demo[data-ch="web"] .phone-screen { background: #F7F8F9; }
.chat-demo[data-ch="email"] .phone-screen { background: #F5F6F7; }
.chat-demo[data-ch="call"] .phone-screen { background: #15191D; }

.ph-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}

.ph-head.ph-wa {
  background: var(--teal);
  color: var(--white);
  padding: 26px 16px 14px;
  align-items: center;
  gap: 10px;
}
.ph-wa .ph-avatar { background: var(--tint); color: var(--teal); }
.ph-title { line-height: 1.25; flex: 1; min-width: 0; }
.ph-title b { display: block; font-weight: 600; font-size: 15px; }
.ph-title small { display: block; font-size: 12px; }
.ph-wa .ph-title small { opacity: .9; }

.ph-head.ph-web { background: var(--white); padding: 22px 12px 0; flex-direction: column; }
.ph-url {
  background: var(--line-3);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ph-url svg { width: 12px; height: 12px; }
.ph-webbar {
  padding: 12px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.ph-web .ph-avatar { width: 34px; height: 34px; background: var(--teal); color: var(--white); font-size: 14px; }
.ph-web .ph-title b { font-size: 14px; }
.ph-web .ph-title small { color: var(--muted); }
.ph-webbar > svg { color: var(--faint); width: 18px; height: 18px; }

.ph-head.ph-email {
  background: var(--white);
  padding: 24px 16px 14px;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
}
.ph-back { display: flex; align-items: center; gap: 4px; color: var(--teal); font-size: 13px; font-weight: 600; }
.ph-back svg { width: 16px; height: 16px; }
.ph-subject { margin-top: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.ph-email small { font-size: 12px; color: var(--muted); }

.ph-head.ph-call {
  padding: 30px 16px 16px;
  color: var(--white);
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #262B31;
}
.ph-call .ph-avatar {
  width: 58px;
  height: 58px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(63, 181, 156, .18);
  font-size: 22px;
}
.ph-call-title { margin-top: 10px; font-weight: 600; font-size: 15px; }
.ph-call small { font-size: 12px; color: #A3ABB4; }
.ph-wave { margin-top: 10px; height: 24px; display: flex; align-items: center; gap: 4px; }
.ph-wave span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--dark-accent);
  animation: tl-wave 1s infinite ease-in-out;
}
.ph-wave span:nth-child(2) { animation-delay: .12s; }
.ph-wave span:nth-child(3) { animation-delay: .24s; }
.ph-wave span:nth-child(4) { animation-delay: .36s; }
.ph-wave span:nth-child(5) { animation-delay: .48s; }
@keyframes tl-wave { 0%, 100% { height: 6px; } 50% { height: 22px; } }

.ph-msgs {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.msg {
  max-width: 80%;
  padding: 8px 11px;
  overflow-wrap: break-word;
}
.msg.c { align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.msg.a { align-self: flex-start; border-radius: 14px 14px 14px 4px; }
.msg.has-products { max-width: 90%; }
.msg .who {
  /* visually hidden on chat-style channels; shown on email and calls */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  opacity: .8;
  margin-bottom: 2px;
}
.msg.anim { animation: tl-in .35s ease-out both; }
@keyframes tl-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Channel themes */
.chat-demo[data-ch="wa"] .msg { box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat-demo[data-ch="wa"] .msg.c { background: #D9FDD3; color: var(--text); }
.chat-demo[data-ch="wa"] .msg.a { background: var(--white); color: var(--text); }
.chat-demo[data-ch="web"] .msg { box-shadow: 0 0 0 1px var(--line); }
.chat-demo[data-ch="web"] .msg.c { background: var(--teal); color: var(--white); }
.chat-demo[data-ch="web"] .msg.a { background: var(--white); color: var(--text); }
.chat-demo[data-ch="email"] .msg { box-shadow: 0 0 0 1px var(--line); max-width: 94%; border-radius: 12px; }
.chat-demo[data-ch="email"] .msg.c { background: var(--white); color: var(--text); }
.chat-demo[data-ch="email"] .msg.a { background: var(--tint); color: var(--text); }
.chat-demo[data-ch="call"] .msg.c { background: #2A3036; color: #F1F3F5; }
.chat-demo[data-ch="call"] .msg.a { background: var(--teal); color: var(--white); }
.chat-demo[data-ch="email"] .msg .who,
.chat-demo[data-ch="call"] .msg .who {
  position: static;
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.products { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.product {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 7px;
}
.product-img { width: 42px; height: 42px; flex: none; border: 1px solid var(--line); }
.img-tyre1 { border-radius: 50%; background: radial-gradient(circle, #C9CED4 0 22%, #3A4047 23% 60%, #1C1F23 61%); }
.img-tyre2 { border-radius: 50%; background: radial-gradient(circle, #DADDE1 0 20%, #4A5058 21% 58%, #23272C 59%); }
.img-mini { border-radius: 10px; background: repeating-linear-gradient(0deg, #D5D9DE 0 2px, #FFFFFF 2px 6px); }
.img-pro { border-radius: 10px; background: radial-gradient(circle, #C9CED4 0 6px, #F7F8F9 7px); }
.product-info { flex: 1; min-width: 0; }
.product-info b { display: block; font-weight: 600; font-size: 13px; }
.product-info span { display: block; font-size: 12px; color: var(--muted); }
.stock {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--tint);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.typing {
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
  padding: 13px 14px;
  display: flex;
  gap: 4px;
  background: var(--white);
  animation: tl-in .35s ease-out both;
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8A939C;
  animation: tl-bounce 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tl-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-demo[data-ch="wa"] .typing { box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat-demo[data-ch="web"] .typing { box-shadow: 0 0 0 1px var(--line); }
.chat-demo[data-ch="email"] .typing { background: var(--tint); box-shadow: 0 0 0 1px var(--line); }
.chat-demo[data-ch="email"] .typing span { background: var(--teal); }
.chat-demo[data-ch="call"] .typing { background: var(--teal); }
.chat-demo[data-ch="call"] .typing span { background: var(--tint); }

.ph-foot.ph-wa { padding: 8px 10px 16px; gap: 8px; align-items: center; }
.ph-input {
  flex: 1;
  background: var(--white);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--faint);
  font-size: 14px;
}
.ph-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-send svg { width: 18px; height: 18px; }
.ph-foot.ph-web {
  padding: 10px 14px 18px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line-2);
  background: var(--white);
}
.ph-foot.ph-web .ph-input { background: none; padding: 0; border-radius: 0; }
.ph-foot.ph-web .ph-send { width: 36px; height: 36px; border-radius: 10px; }
.ph-foot.ph-web .ph-send svg { width: 16px; height: 16px; }
.ph-foot.ph-email {
  padding: 10px 14px 18px;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.ph-foot.ph-email span {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-foot.ph-call { padding: 12px 20px 22px; justify-content: center; gap: 22px; }
.ph-foot.ph-call span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2A3036;
  color: #F1F3F5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-foot.ph-call span.end { background: #E5484D; color: var(--white); }
.ph-foot.ph-call svg { width: 20px; height: 20px; }

.float-chip { display: none; }

.demo-controls { margin-top: 14px; display: flex; justify-content: center; }
.play-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.play-toggle:hover { color: var(--teal); }
.play-toggle svg { width: 16px; height: 16px; }
.play-toggle .icon-play { display: none; }
.play-toggle[data-playing="false"] .icon-play { display: block; }
.play-toggle[data-playing="false"] .icon-pause { display: none; }

@media (min-width: 700px) and (max-width: 1083px), (min-width: 1360px) {
  .float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 12px 30px rgba(16, 24, 32, .12);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    max-width: 170px;
  }
  .float-chip .chip-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    background: var(--tint);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .float-chip .chip-icon svg { width: 16px; height: 16px; }
  .float-chip.chip-a { left: -78px; top: 140px; }
  .float-chip.chip-b { right: -78px; bottom: 96px; }
  .float-chip.anim { animation: tl-in .5s ease-out both; }
}

@media (min-width: 640px) {
  .chat-demo { max-width: 460px; }
  .phone { width: 320px; }
  .phone-screen { height: 620px; }
  .phone-backdrop {
    display: block;
    position: absolute;
    inset: 44px 28px 12px;
    background: var(--tint);
    border-radius: 40px;
  }
}

/* ---------- Channel strip ---------- */

.channels-sec { padding: 28px 20px 0; }
.channels {
  background: var(--white);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.channels-title { margin: 0; font-weight: 600; font-size: 15px; }
.channel-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.channel-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
.channel-list li svg { width: 18px; height: 18px; color: var(--teal); }
.channel-arrow { display: none; }
.channel-inbox {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.channel-inbox svg { width: 18px; height: 18px; }
.channel-inbox .one-inbox { display: none; }

@media (min-width: 900px) {
  .channels-sec { padding: 40px 24px 0; }
  .channels {
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
  }
  .channels-title { flex: 0 0 auto; }
  .channels-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 600px;
    justify-content: flex-end;
  }
  .channel-list { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .channel-list li { padding: 10px 14px; border-radius: 999px; }
  .channel-arrow { display: block; width: 22px; height: 22px; color: #8A939C; }
  .channel-inbox { margin: 0; padding: 10px 16px; border-radius: 999px; }
  .channel-inbox .all-in { display: none; }
  .channel-inbox .one-inbox { display: inline; }
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
}
.step-top { grid-row: 1 / span 3; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.step-icon, .step .step-extra { display: none; }
.step h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

@media (min-width: 640px) {
  .steps {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .step { display: block; border-radius: 20px; padding: 32px; }
  .step-top { display: flex; align-items: center; justify-content: space-between; }
  .step-num { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
  .step-icon { display: block; width: 26px; height: 26px; color: var(--teal); }
  .step h3 { margin-top: 28px; font-size: 21px; }
  .step p { margin-top: 10px; font-size: 16px; }
  .step .step-extra { display: block; margin-top: 22px; }
  .step .step-channels { display: flex; }
}

.code-line {
  display: block;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--teal);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.step-channels { display: flex; gap: 8px; }
.step-channels span {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-channels svg { width: 20px; height: 20px; }
.step-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.step-lead .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.step-lead .txt { flex: 1; }
.step-lead .time { color: var(--muted); }

/* ---------- Product: website chat + inbox ---------- */

.product-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: stretch; }

.webchat-card {
  flex: 1 1 400px;
  min-width: 0;
  background: var(--tint);
  border-radius: 20px;
  padding: 24px 20px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-title { margin: 0; font-family: var(--font-text); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.webchat-card p { margin: 4px 0 0; color: var(--muted-2); font-size: 15px; }

.widget {
  margin-top: 20px;
  align-self: center;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 16px 36px rgba(16, 24, 32, .14);
  overflow: hidden;
}
.widget-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.widget-head .ph-avatar { width: 30px; height: 30px; background: var(--teal); color: var(--white); font-size: 13px; }
.widget-head .ph-title b { font-size: 13px; }
.widget-head .ph-title small { font-size: 11px; color: var(--muted); }
.widget-head > svg { width: 18px; height: 18px; color: var(--faint); display: none; }
.widget-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.4;
  background: #FAFBFB;
}
.wbubble { max-width: 85%; padding: 8px 11px; }
.wbubble.c { align-self: flex-end; max-width: 82%; background: var(--teal); color: var(--white); border-radius: 13px 13px 4px 13px; }
.wbubble.a { align-self: flex-start; background: var(--white); border: 1px solid var(--line-2); border-radius: 13px 13px 13px 4px; }
.wproducts { display: flex; gap: 7px; }
.wproduct { flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--line-2); border-radius: 11px; padding: 7px; }
.wproduct-img {
  height: 64px;
  border-radius: 7px;
  background: var(--line-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wproduct-img i {
  display: block;
  background-color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  background-repeat: no-repeat;
}
.wproduct-img .mini {
  width: 28px;
  height: 46px;
  border-radius: 8px;
  background-image: repeating-linear-gradient(0deg, #D5D9DE 0 2px, transparent 2px 6px);
  background-size: 16px 24px;
  background-position: center 8px;
}
.wproduct-img .pro {
  width: 32px;
  height: 50px;
  border-radius: 16px;
  background-image: radial-gradient(circle, #C9CED4 0 5px, transparent 6px);
  background-size: 32px 32px;
  background-position: center 6px;
}
.wproduct b { display: block; font-weight: 600; font-size: 12px; margin-top: 6px; }
.wproduct-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.wproduct-meta span:last-child { font-size: 10px; font-weight: 600; color: var(--teal); }
.widget-foot { display: none; }

.inbox-card {
  flex: 1.6 1 620px;
  min-width: 0;
  padding: 24px 16px;
}
.inbox-card .panel-title, .inbox-card > p { padding: 0 4px; }
.inbox-card > p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.inbox-wrap { margin-top: 18px; }

@media (min-width: 640px) {
  .product-grid { gap: 24px; margin-top: 48px; }
  .webchat-card { border-radius: 24px; padding: 36px 32px 0; }
  .panel-title { font-size: 18px; }
  .webchat-card p { margin-top: 6px; }
  .widget { margin-top: 28px; border-radius: 20px 20px 0 0; box-shadow: 0 20px 44px rgba(16, 24, 32, .14); }
  .widget-head { padding: 14px 16px; }
  .widget-head .ph-avatar { width: 34px; height: 34px; font-size: 14px; }
  .widget-head .ph-title b { font-size: 14px; }
  .widget-head .ph-title small { font-size: 12px; }
  .widget-head > svg { display: block; }
  .widget-body { padding: 14px; gap: 8px; font-size: 14px; }
  .wbubble { padding: 9px 12px; }
  .wbubble.c { max-width: 80%; border-radius: 14px 14px 4px 14px; }
  .wbubble.a { border-radius: 14px 14px 14px 4px; }
  .wproducts { gap: 8px; }
  .wproduct { border-radius: 12px; padding: 8px; }
  .wproduct-img { height: 76px; border-radius: 8px; }
  .wproduct-img .mini { width: 34px; height: 56px; border-radius: 10px; background-size: 20px 30px; background-position: center 10px; }
  .wproduct-img .pro { width: 40px; height: 62px; border-radius: 20px; background-image: radial-gradient(circle, #C9CED4 0 6px, transparent 7px); background-size: 40px 40px; background-position: center 8px; }
  .wproduct b { font-size: 13px; margin-top: 8px; }
  .wproduct-meta { margin-top: 2px; font-size: 13px; }
  .wproduct-meta span:last-child { font-size: 11px; }
  .widget-foot {
    padding: 12px 14px 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--line-2);
  }
  .widget-foot .ph-input { background: none; padding: 0; border-radius: 0; }
  .widget-foot .ph-send { width: 34px; height: 34px; border-radius: 10px; }
  .widget-foot .ph-send svg { width: 16px; height: 16px; }
  .inbox-card { border-radius: 24px; padding: 36px 32px 40px; }
  .inbox-card .panel-title, .inbox-card > p { padding: 0; }
  .inbox-card > p { margin-top: 6px; }
  .inbox-wrap { margin-top: 28px; }
}

/* ---------- Inbox demo ---------- */

.inbox { width: 100%; max-width: 720px; margin: 0 auto; }
.inbox-screen {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}
.inbox-rail { display: none; }
.inbox-list {
  flex: 1 1 220px;
  min-width: 0;
  border-bottom: 1px solid var(--line-2);
}
.inbox-list-head {
  padding: 12px 14px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inbox-list-head b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.inbox-count { font-size: 11px; color: var(--muted); }
.inbox-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: start;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--line-3);
  border-radius: 0;
  background: var(--white);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  transition: background .15s;
}
.inbox-row:hover { background: #F2F8F6; }
.inbox-row[aria-pressed="true"] { background: var(--tint); }
.inbox-row:focus-visible { outline-offset: -3px; border-radius: 0; }
.row-top { display: flex; justify-content: space-between; width: 100%; }
.row-top b { font-weight: 600; }
.row-top span, .row-sub { color: var(--muted); }
.badge {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.badge-needs { color: #8A4B00; background: #FFF1DB; }
.badge-lead { color: var(--teal); background: var(--tint); }
.badge-ai { color: var(--muted-2); background: var(--line-2); }
.badge-you { color: var(--white); background: var(--text); }

.inbox-thread {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}
.thread-head {
  padding: 6px 8px 6px 14px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.thread-title { flex: 1; min-width: 0; }
.thread-title b { font-weight: 600; font-size: 14px; }
.thread-title span { color: var(--muted); }
.take-btn {
  height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.take-btn:hover { background: var(--teal-hover); }
.take-btn[data-taken="true"] { background: var(--white); color: var(--teal); }
.take-btn[data-taken="true"]:hover { background: var(--tint); }
.thread-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  justify-content: flex-end;
}
.tmsg { max-width: 84%; padding: 7px 10px; border-radius: 10px; }
.tmsg.c { align-self: flex-start; background: var(--bg); }
.tmsg.a { align-self: flex-end; background: var(--tint); }
.tmsg .who { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.tnote {
  background: #FFF8EC;
  border: 1px solid #F5DDB0;
  padding: 8px 10px;
  border-radius: 10px;
  color: #5C3B00;
}
.tnote b { font-weight: 700; }
.tjoined {
  align-self: center;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.anim-in { animation: tl-in2 .3s ease-out both; }
@keyframes tl-in2 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer {
  margin: 0 12px 12px;
  border: 1px solid #E1E4E8;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  background: #FAFBFB;
}
.composer .send { background: var(--faint); color: var(--white); font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.composer.active { border-color: var(--teal); color: var(--text); background: var(--white); }
.composer.active .send { background: var(--teal); }

@media (min-width: 720px) {
  .inbox-bezel { background: #1C1F23; border-radius: 16px 16px 0 0; padding: 10px 10px 0; }
  .inbox-screen { border: 0; border-radius: 8px 8px 0 0; height: 400px; flex-wrap: nowrap; }
  .inbox-rail {
    width: 52px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    flex: none;
  }
  .inbox-rail .rail-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
  }
  .inbox-rail svg { width: 18px; height: 18px; color: #8A939C; }
  .inbox-rail svg.on { color: var(--teal); }
  .inbox-list { max-width: 230px; border-bottom: 0; border-inline-end: 1px solid var(--line-2); }
  .inbox-thread { min-height: 0; }
  .inbox-base {
    height: 14px;
    background: var(--border);
    border-radius: 0 0 14px 14px;
    margin: 0 -24px;
    box-shadow: 0 10px 20px rgba(16, 24, 32, .10);
  }
}

/* ---------- Features ---------- */

.features {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature {
  border-radius: 16px;
  padding: 18px;
  display: flex;
  gap: 14px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

@media (min-width: 640px) {
  .features {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  .feature { display: block; border-radius: 20px; padding: 28px; }
  .feature-icon { width: 44px; height: 44px; border-radius: 12px; }
  .feature-icon svg { width: 22px; height: 22px; }
  .feature h3 { margin-top: 20px; font-size: 18px; }
  .feature p { margin-top: 8px; }
}

/* ---------- Industry demo ---------- */

.industry {
  margin-top: 28px;
  background: var(--white);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.ind-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ind-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ind-tab svg { width: 18px; height: 18px; }
.ind-tab:hover { border-color: var(--teal); }
.ind-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

.ind-panel { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; }
.ind-panel:focus-visible { outline-offset: 4px; }
.ind-chat {
  flex: 1.4 1 300px;
  min-width: 0;
  background: var(--bg);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
}
.ind-chat .b { max-width: 82%; padding: 9px 13px; }
.ind-chat .b.c { align-self: flex-end; background: var(--white); border-radius: 14px 14px 4px 14px; }
.ind-chat .b.a { align-self: flex-start; background: var(--teal); color: var(--white); border-radius: 14px 14px 14px 4px; }
.ind-did { flex: 1 1 240px; min-width: 0; background: var(--tint); border-radius: 18px; padding: 20px; }
.ind-did h3 { margin: 0; font-weight: 700; font-size: 17px; }
.ind-did ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.ind-did li { display: flex; gap: 10px; align-items: flex-start; }
.ind-did li svg { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }

.ind-panel.anim .ind-chat > * { animation: tl-in2 .4s ease-out both; }
.ind-panel.anim .ind-chat > *:nth-child(2) { animation-delay: .25s; }
.ind-panel.anim .ind-chat > *:nth-child(3) { animation-delay: .5s; }
.ind-panel.anim .ind-chat > *:nth-child(4) { animation-delay: .75s; }
.ind-panel.anim .ind-did li { animation: tl-in2 .4s ease-out both; animation-delay: .9s; }
.ind-panel.anim .ind-did li:nth-child(2) { animation-delay: 1.1s; }
.ind-panel.anim .ind-did li:nth-child(3) { animation-delay: 1.3s; }

@media (min-width: 400px) {
  .industry { padding: 24px; }
}
@media (min-width: 640px) {
  .industry { margin-top: 40px; }
}

/* ---------- Pricing ---------- */

.pricing-head { max-width: 640px; }
@media (min-width: 640px) {
  .pricing-head { margin: 0 auto; text-align: center; }
}

.picker { margin-top: 28px; }
@media (min-width: 640px) { .picker { margin-top: 40px; } }

.picker-bar {
  background: var(--white);
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  box-shadow: var(--shadow-card);
}
.picker-q { margin: 0; font-weight: 600; font-size: 15px; flex: 1 1 220px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pchip:hover { border-color: var(--teal); }
.pchip.fixed { background: var(--tint); color: var(--teal); border-color: var(--tint); cursor: default; }
.pchip.fixed svg { width: 16px; height: 16px; }
.pchip .box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pchip .box svg { width: 12px; height: 12px; visibility: hidden; }
.pchip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pchip[aria-pressed="true"] .box svg { visibility: visible; }

.plans {
  list-style: none;
  margin: 28px 0 0;
  padding: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 20px;
  align-items: stretch;
}
@media (max-width: 359px) {
  .plans { grid-template-columns: 1fr; }
}
.plan {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
@media (min-width: 400px) { .plan { padding: 30px; } }
.plan.is-fit {
  border: 2px solid var(--teal);
  padding: 29px 23px;
  box-shadow: 0 22px 48px rgba(15, 107, 92, .16);
  transform: translateY(-6px);
}
@media (min-width: 400px) { .plan.is-fit { padding: 29px; } }
.plan-popular {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--text);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.plan h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.fit-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--tint);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  animation: tl-in3 .35s ease-out both;
  display: none;
}
.plan.is-fit .fit-badge { display: inline-block; }
@keyframes tl-in3 { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.plan-for { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price .per { color: var(--muted); }
.plan-includes { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.plan-btn {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.plan.is-fit .plan-btn { background: var(--teal); color: var(--white); }
.plan-btn:hover, .plan.is-fit .plan-btn:hover { background: var(--teal-hover); color: var(--white); }
.plan-rule { height: 1px; background: var(--line-2); margin: 26px 0 18px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.plan-feats li { display: flex; gap: 10px; align-items: center; }
.plan-feats li svg { width: 18px; height: 18px; color: var(--teal); }
.plan-feats li.off { color: var(--faint); }
.plan-feats li.off svg { color: #B5BCC3; }
.plans-note { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.faq-intro { flex: 1 1 320px; }
.faq-more { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.faq-more a { font-weight: 600; }
.faq-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border-radius: 14px; padding: 0 18px; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: 0; }
.faq-item summary svg { width: 20px; height: 20px; color: var(--teal); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.faq-item p a { font-weight: 600; }

@media (max-width: 639px) {
  .faq-more { display: none; }
}
@media (min-width: 640px) {
  .faq-list { gap: 12px; }
  .faq-item { border-radius: 16px; padding: 0 24px; }
  .faq-item summary { min-height: 64px; font-size: 17px; gap: 16px; }
  .faq-item p { padding-bottom: 22px; font-size: 16px; }
}

/* ---------- Final CTA ---------- */

.cta {
  background: var(--teal);
  border-radius: 24px;
  padding: 44px 24px;
  text-align: center;
  color: var(--white);
}
.cta h2 { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.cta p { margin: 12px auto 0; max-width: 520px; font-size: 16px; color: #D7ECE7; }
.cta .btn {
  margin-top: 24px;
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
  width: 100%;
}
.cta .btn:hover { background: var(--tint); color: var(--teal-hover); }

@media (min-width: 640px) {
  .cta { border-radius: 28px; padding: 72px 40px; }
  .cta h2 { font-size: 48px; line-height: 1.1; }
  .cta p { margin-top: 16px; font-size: 18px; }
  .cta .btn { margin-top: 32px; width: auto; padding: 0 28px; }
}

/* ---------- Contact ---------- */

.contact-sec { padding: 40px 20px 56px; }
.contact-card {
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 24px;
}
.contact-card .eyebrow { font-size: 14px; }
.contact-name { margin: 4px 0 0; font-family: var(--font-text); font-size: 20px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.contact-card address { margin-top: 4px; font-style: normal; color: var(--muted-2); font-size: 15px; }
.contact-card .reply { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.contact-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: border-color .2s, color .2s;
}
.contact-mail svg { width: 18px; height: 18px; color: var(--teal); }
.contact-mail:hover { border-color: var(--teal); color: var(--teal); }

@media (min-width: 640px) {
  .contact-sec { padding: 80px 24px 96px; }
  .contact-card { border-radius: 20px; padding: 32px 36px; }
  .contact-card .eyebrow { font-size: 15px; }
  .contact-name { margin-top: 6px; font-size: 22px; }
  .contact-card address, .contact-card .reply { font-size: 16px; }
  .contact-mail { width: auto; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #E8EAED; padding: 48px 20px 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 300px; max-width: 380px; }
.footer-brand .brand { color: var(--white); flex: none; gap: 10px; }
.footer-brand .brand svg { width: 34px; height: 34px; }
.footer-brand .brand span { font-size: 21px; }
.footer-brand p { margin: 16px 0 0; color: #A3ABB4; font-size: 15px; line-height: 1.6; }
.footer-mail {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--dark-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.footer-mail svg { width: 18px; height: 18px; }
.footer-mail:hover { color: var(--white); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.footer-col { min-width: 140px; }
.footer-col h2 { margin: 0 0 4px; font-family: var(--font-text); font-size: 13px; font-weight: 600; color: #8C949D; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  color: #C9CED4;
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2A2E33;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: #8C949D;
}
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { max-width: 720px; }

@media (min-width: 640px) {
  .site-footer { padding: 72px 24px 40px; }
  .footer-bottom { margin-top: 48px; }
}

/* ---------- Legal pages ---------- */

.legal-page { line-height: 1.7; }

.legal-hero { background: var(--white); border-bottom: 1px solid #ECEEF0; padding: 28px 20px 24px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.crumbs a:hover { color: var(--teal); }
.legal-hero h1 { margin: 10px 0 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.legal-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  font-size: 14px;
  color: var(--muted);
}
.legal-meta .sep { display: none; }
.legal-tabs {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.legal-tabs a {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted-2);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.legal-tabs a:hover { background: var(--tint); color: var(--teal); }
.legal-tabs a[aria-current="page"] { background: var(--teal); color: var(--white); }
.legal-tabs .long { display: none; }

.legal-body { padding: 20px 20px 56px; }
.legal-grid { display: flex; flex-wrap: wrap; gap: 8px 56px; align-items: flex-start; }

.toc-aside { display: none; }
.toc-mobile { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; width: 100%; }
.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  cursor: pointer;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary svg { width: 20px; height: 20px; color: var(--teal); transition: transform .2s; }
.toc-mobile[open] summary svg { transform: rotate(180deg); }
.toc-mobile nav { display: flex; flex-direction: column; padding-bottom: 10px; font-size: 15px; line-height: 1.4; }
.toc-mobile nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted-2); text-decoration: none; }
.toc-mobile nav a:hover { color: var(--teal); }

.legal-article { flex: 1 1 560px; min-width: 0; max-width: 70ch; font-size: 16px; }
.legal-article > :first-child { margin-top: 12px; }
.legal-article h2 { margin: 32px 0 0; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.legal-article h3 { margin: 24px 0 0; font-size: 18px; line-height: 1.35; font-weight: 700; }
.legal-article p { margin: 10px 0 0; }
.legal-article ul, .legal-article ol { margin: 10px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-article a { font-weight: 600; }
.legal-article strong { font-weight: 600; }
.legal-intro { font-size: 17px; color: var(--muted-2); }

.legal-contact { margin-top: 36px; background: var(--tint); border-radius: 18px; padding: 22px; }
.legal-contact-head { display: flex; align-items: center; gap: 12px; }
.legal-contact-head span {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.legal-contact-head svg { width: 20px; height: 20px; }
.legal-article .legal-contact h2 { margin: 0; font-size: 20px; }
.legal-contact > p { margin: 12px 0 0; color: #2E3A40; font-size: 15px; line-height: 1.6; }
.legal-contact dl { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.legal-contact dt { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.legal-contact dd { margin: 0; font-weight: 600; }
.legal-contact .dd-email { display: none; }
.legal-contact .mail-btn {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.legal-contact .mail-btn:hover { background: var(--teal-hover); color: var(--white); }

@media (min-width: 640px) {
  .legal-article { font-size: 17px; }
  .legal-hero { padding: 56px 24px 40px; }
  .crumbs { font-size: 14px; }
  .legal-hero h1 { margin-top: 14px; font-size: 48px; line-height: 1.1; }
  .legal-meta { margin-top: 14px; font-size: 15px; gap: 12px 20px; }
  .legal-meta .sep { display: block; width: 4px; height: 4px; border-radius: 50%; background: #B5BCC3; }
  .legal-tabs { margin-top: 28px; gap: 8px; font-size: 15px; }
  .legal-tabs a { padding: 0 18px; }
  .legal-tabs .short { display: none; }
  .legal-tabs .long { display: inline; }
  .legal-body { padding: 56px 24px 96px; }
  .legal-article > :first-child { margin-top: 0; }
  .legal-article h2 { margin-top: 40px; font-size: 24px; }
  .legal-article h3 { margin-top: 28px; font-size: 19px; }
  .legal-article p { margin-top: 14px; }
  .legal-article ul, .legal-article ol { margin-top: 14px; padding-inline-start: 24px; gap: 8px; }
  .legal-contact { margin-top: 48px; border-radius: 20px; padding: 28px 28px 30px; }
  .legal-contact-head span { width: 44px; height: 44px; border-radius: 12px; }
  .legal-contact-head svg { width: 22px; height: 22px; }
  .legal-article .legal-contact h2 { font-size: 22px; }
  .legal-contact > p { margin-top: 14px; font-size: 17px; line-height: 1.7; }
  .legal-contact dl { margin-top: 18px; flex-direction: row; flex-wrap: wrap; gap: 10px 32px; font-size: 16px; }
  .legal-contact .dd-email { display: block; }
  .legal-contact .mail-btn { display: none; }
}

@media (min-width: 900px) {
  .toc-mobile { display: none; }
  .toc-aside {
    display: block;
    flex: 0 1 260px;
    min-width: 220px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
  .toc-label { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 12px 10px; line-height: 1.4; }
  .toc-aside nav { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
  .toc-aside nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted-2);
    text-decoration: none;
    transition: color .2s, background .2s;
  }
  .toc-aside nav a:hover { color: var(--teal); background: var(--tint-hover); }
  .toc-aside nav a.is-active { color: var(--teal); background: var(--tint); font-weight: 600; }
}

/* ---------- 404 ---------- */

.notfound { background: var(--white); padding: 72px 20px 96px; text-align: center; }
.notfound .code { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--teal); letter-spacing: -0.04em; }
.notfound h1 { margin: 16px 0 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.notfound p { margin: 14px auto 0; max-width: 460px; color: var(--muted); font-size: 17px; }
.notfound .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 640px) {
  .notfound { padding: 120px 24px 144px; }
  .notfound .code { font-size: 96px; }
  .notfound h1 { font-size: 48px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
