/* ==========================================================
   Cleef Chat – home page additions
   Loaded after index_modern.css and uses its colours (--bg, --card, ...).
   ========================================================== */

/* logo text: same look as the old ".brand h1", the h1 is now the hero title */
.brand-name { font: normal 28px/1 "SCRIPTBL", var(--font); }
.brand-name small { font: 500 12px var(--font); color: var(--muted); margin-left: 6px; }

h1.hero-title { margin: 16px 0 8px; }
.titlepart .sub { margin: 4px 0 24px; font-size: 14.5px; color: var(--muted); }

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

/* headings inside panels (were h4) */
.titlebox .h4, .sec-head h2 { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; flex-basis: 100%; }
.sec-head .more { font-size: 14px; font-weight: 600; white-space: nowrap; }

.hero-stats li { min-width: 90px; }

/* ---------- 3 steps ---------- */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.howto li {
  counter-increment: s;
  position: relative;
  padding: 18px 18px 16px 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--item);
  color: var(--muted);
  font-size: 14px;
}
.howto li::before {
  content: counter(s);
  position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 750;
}
.howto b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* ---------- feature grid ---------- */
.cando { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cando article {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--item);
  transition: border-color 0.2s, transform 0.2s;
}
.cando article:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-2px); }
.cando h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.cando p { margin: 0; color: var(--muted); font-size: 13.5px; }
.cando .f-icon { width: 40px; height: 40px; border-radius: 12px; }
.cando .f-icon svg { width: 20px; height: 20px; }
:root[data-theme="light"] .f-icon svg { stroke: var(--accent); }

/* ---------- security + E2E ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.trust .panel { margin-bottom: 0; }
.checks { list-style: none; margin: 0 0 16px; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.checks li b { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px;
  width: 4px; height: 8px;
  border: solid var(--green); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.honest { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--muted); }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; }

.e2e { position: relative; overflow: hidden; }
.e2e::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(124, 92, 255, 0.22), transparent 60%);
}
.e2e > * { position: relative; }
.soon {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 92, 168, 0.14); color: var(--pink);
  font-size: 12.5px; font-weight: 700;
}
.e2e h2 { margin: 0 0 8px; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.e2e > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.lockflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 0 0 16px; text-align: center; font-size: 12.5px; color: var(--muted); }
.lockflow span { padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.lockflow b { display: block; color: var(--text); font-size: 13.5px; }
.lockflow i { font-style: normal; color: var(--accent-2); font-size: 18px; }
.lockflow .mid { border-style: dashed; }

/* ---------- feedback ---------- */
.voices { columns: 3 280px; column-gap: 14px; }
.voices figure {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--item);
}
.voices blockquote { margin: 0; font-size: 14px; line-height: 1.6; }
.voices blockquote::before { content: "“"; display: block; height: 22px; font: 800 40px/1 Georgia, serif; color: var(--accent); }
.voices figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- forum cards (author, time, answers) ---------- */
.foruments .item { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.foruments .item-link { display: block; flex: 1; padding: 18px 20px 12px; color: inherit; }
.foruments .item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.foruments .item-link:hover h3 { color: var(--accent-2); }
.foruments .item p { margin: 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.item-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}
.item-meta .author { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; color: var(--text); }
.item-meta .author img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; padding: 1.5px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.item-meta .author b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta a.author:hover b { color: var(--accent-2); }
.item-meta time { white-space: nowrap; }
.item-meta .answers { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.item-meta .answers svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--item); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 11px; font-size: 20px; color: var(--accent-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.faq summary h3 { display: inline; margin: 0; font-size: 15px; font-weight: 650; }

/* ---------- SEO text ---------- */
.seo h2 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.seo p { margin: 0 0 10px; }

@media (max-width: 980px) {
  .trust { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand-name small { display: none; }
}
@media (max-width: 600px) {
  .sec-head h2, .e2e h2 { font-size: 19px; }
  .lockflow { grid-template-columns: 1fr; }
  .lockflow i { transform: rotate(90deg); }
  .item-meta { padding: 10px 16px 12px; }
  .foruments .item-link { padding: 16px 16px 10px; }
}
