/* Data by Square shared components (session A). Loads after tokens.css; token names only. */

/* type helpers */
.h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: var(--track-h1); font-weight: 700; color: var(--text); text-wrap: balance; }
.h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--track-h2); font-weight: 700; text-wrap: balance; }
.h3 { margin: 0; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lead { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.small { font-size: var(--fs-small); color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 500; }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin: 20px auto 0; }
.hairline { height: 1px; margin: 0; border: 0; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .35), transparent); }
.eyebrow { display: inline-block; margin: 0 0 16px; color: var(--violet); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--r-control);
  font: 600 16px/1 var(--font); color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-primary); box-shadow: var(--glow); }
.btn-primary:hover, .btn-primary.is-hover { box-shadow: 0 14px 38px -8px rgba(162, 28, 240, .8); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible, .btn-primary.is-focus { box-shadow: var(--focus), var(--glow); }
.btn-secondary { background: var(--panel-2); border-color: var(--line-strong); }
.btn-secondary:hover, .btn-secondary.is-hover { border-color: rgba(139, 92, 246, .6); }
.btn-ghost { background: transparent; color: var(--muted); padding: 0 14px; }
.btn-ghost:hover, .btn-ghost.is-hover { color: var(--text); }
.btn.is-focus { box-shadow: var(--focus); }
.btn-primary.is-focus { box-shadow: var(--focus), var(--glow); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost.btn-sm { padding: 0 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* cards */
.card { position: relative; padding: 32px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-card); }
.card .h3 { margin: 24px 0 12px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.card-feature { border-color: rgba(139, 92, 246, .7); box-shadow: 0 0 0 1px rgba(139, 92, 246, .25), 0 30px 80px -40px rgba(139, 92, 246, .7); }

.icon-tile { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-control); background: var(--violet-tint); color: #b794ff; }
.icon-tile svg { width: 26px; height: 26px; }

/* chips: sentiment colour only in dot + border, never fill or text */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel);
  color: var(--muted); font: 500 13px/1 var(--font); white-space: nowrap;
}
.chip-platform { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--text); }
.chip-pos, .chip-neu, .chip-neg { color: var(--text); }
.chip-pos::before, .chip-neu::before, .chip-neg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.chip-pos { border-color: rgba(52, 211, 153, .4); }
.chip-pos::before { background: var(--pos); }
.chip-neu { border-color: rgba(138, 138, 160, .45); }
.chip-neu::before { background: var(--neu); }
.chip-neg { border-color: rgba(248, 113, 113, .4); }
.chip-neg::before { background: var(--neg); }
.chip-accent { border-color: transparent; background: var(--grad-primary); color: var(--text); font-weight: 600; }

.lock { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--muted); font: 500 12px/1.4 var(--font); }
.lock svg { width: 12px; height: 12px; }

/* search input: focus ring on the wrapper */
.input-search {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; margin: 0;
  padding: 8px 8px 8px 20px; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: calc(var(--r-control) + 4px); transition: border-color .2s, box-shadow .2s;
}
.input-search:focus-within, .input-search.is-focus { border-color: var(--violet); box-shadow: var(--focus); }
.input-search > svg { flex: none; width: 20px; height: 20px; color: var(--faint); }
.input-search input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; color: var(--text); font: 500 18px var(--font); }
.input-search input::placeholder { color: var(--faint); }
.input-search input:focus-visible { outline: none; box-shadow: none; }
.input-search .btn { flex: none; height: 48px; }
@media (max-width: 640px) {
  .input-search { flex-wrap: wrap; padding: 8px; }
  .input-search > svg { margin-left: 10px; }
  .input-search .btn { width: 100%; }
}

.pill-lang {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 14px; border: 0; border-radius: 8px;
  color: var(--text); font: 600 14px var(--font); cursor: pointer;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center,
    linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)), /* darkens the --blue end: white EN 4.3:1 to ~5.9:1 */
    linear-gradient(90deg, var(--blue), var(--electric));
}
.pill-lang option { background: var(--panel); color: var(--text); }

/* inline logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo img { display: block; flex: none; }
.logo-word { display: grid; line-height: 1; }
.logo-word b { font-size: 28px; line-height: .86; font-weight: 700; letter-spacing: -0.03em; }
.logo-word small { margin-top: 4px; color: var(--muted); font-size: 8.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.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; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav > .wrap { display: flex; align-items: center; gap: 24px; height: 80px; }
.nav > .wrap > nav { margin: 0 auto; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; white-space: nowrap; padding: 12px 18px; border-radius: var(--r-control); color: var(--text); font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; transition: background-color .2s; }
.nav-links a:hover { background: var(--panel-2); }
.nav-links a[aria-current] { background: linear-gradient(180deg, #23233a, #16162a); color: var(--violet); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-menu { position: relative; display: none; }
.nav-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-control); cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 20px; height: 20px; }
.nav-menu[open] summary { border-color: var(--violet); }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 4px; min-width: 220px; padding: 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.nav-menu-panel a:not(.btn) { padding: 12px 14px; border-radius: 10px; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.nav-menu-panel a:not(.btn):hover { background: var(--panel-2); }
.nav-menu-panel a:not(.btn)[aria-current] { color: var(--violet); }
.nav-menu-panel .btn { margin-top: 6px; }

@media (max-width: 1080px) {
  .nav > .wrap > nav { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-menu { display: block; }
}
@media (max-width: 640px) {
  .nav > .wrap { height: 68px; gap: 12px; }
  .nav-login, .nav-start { display: none; }
}

/* footer */
.footer { padding: 56px 0 40px; background: var(--ink); border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-note { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-small); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-base p { margin: 0; }

/* platform logo in a small dark square; the glyph is never recoloured beyond currentColor */
.pf { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); color: var(--text); transition: box-shadow .2s, border-color .2s; }
.pf svg { width: 55%; height: 55%; }
/* TikTok and YouTube allow only white (or black/red) marks: platform glyphs are always --text, wherever they sit */
.pf, svg:has(> use[href*="platforms.svg"]) { color: var(--text) !important; opacity: 1 !important; filter: none !important; }
.pf-sm { width: 22px; height: 22px; border-radius: 6px; }
.pf-md { width: 40px; height: 40px; border-radius: 10px; }
.pf-lg { width: 56px; height: 56px; border-radius: var(--r-tile); }
/* glow only where the square is clickable */
a.pf:hover, button.pf:hover, a:hover > .pf { border-color: rgba(139, 92, 246, .5); box-shadow: inset 0 0 12px rgba(139, 92, 246, .35); }
