/* Squadio /alternatives — shared styles
   Brand: Poppins / IBM Plex Sans Arabic, purple #422E87, accent #FFC628 */

:root {
  --brand: #422E87;
  --brand-dark: #322365;
  --brand-tint: #EBE4FF;
  --accent: #FFC628;
  --ink: #212529;
  --head: #3B3B3B;
  --muted: #6b6b76;
  --tint: #F6F5F9;
  --tint-2: #ECEAF3;
  --line: #E3E1EC;
  --white: #ffffff;
  --ok: #1f9d55;
  --radius: 12px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(20, 12, 45, .06), 0 8px 28px rgba(20, 12, 45, .06);
}

html[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--head); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 37px; width: auto; }
.brand-word {
  font-family: "Poppins", sans-serif;
  font-weight: 800; font-size: 1.4rem; color: var(--brand); letter-spacing: -.02em;
}
.site-nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-inline-start: 8px;
}
.site-nav a { color: var(--ink); font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.lang-switch {
  font-weight: 600; font-size: .9rem; color: var(--brand-dark);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.lang-switch:hover { background: var(--tint); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 30px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(66, 46, 135, .28); }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-accent { background: var(--accent); color: #1a1300; }
.btn-accent:hover { filter: brightness(.96); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-row-center { justify-content: center; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 198, 40, .12), transparent 60%),
    linear-gradient(180deg, var(--tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 3vw + 26px, 78px) 0 clamp(46px, 3vw + 30px, 82px);
}
.hero h1 { max-width: 18ch; }
.hero-sub { font-size: 1.12rem; color: #43424b; max-width: 62ch; margin-top: 14px; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--head); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 4vw, 76px) 0; }
.section-tint { background: var(--tint); }
.section h2 { max-width: 28ch; }

.footnote { font-size: .82rem; color: var(--muted); margin-top: 16px; }
.text-link { font-weight: 600; }

/* ---------- TL;DR ---------- */
.tldr { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tldr-col {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow);
}
.tldr-col h2 { font-size: 1.1rem; margin-bottom: .4em; }
.tldr-col p { margin: 0; color: #3f3e48; font-size: .98rem; }
.tldr-squadio { border-top: 4px solid var(--brand); }
.tldr-col:not(.tldr-squadio) { border-top: 4px solid var(--accent); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; margin-top: 8px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: #46454f; font-size: .95rem; }

/* ---------- comparison grid (hub) ---------- */
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmp-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); color: var(--ink);
}
.cmp-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); transition: .15s; }
.cmp-card h3 { margin: 0; }
.cmp-card > p { margin: 0; color: #46454f; font-size: .92rem; }
.cmp-card-about { font-size: .82rem !important; color: var(--muted) !important; flex: 1; padding-top: 4px; border-top: 1px solid var(--line); }
.cmp-card-go { color: var(--brand); font-weight: 600; font-size: .9rem; }

.about-line {
  margin-top: 14px; font-size: .92rem; color: var(--muted);
  border-inline-start: 3px solid var(--line); padding-inline-start: 12px;
  max-width: 62ch;
}
.about-line strong { color: var(--head); font-weight: 600; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
table.cmp.cmp-wide { min-width: 900px; }
table.cmp th, table.cmp td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--brand-dark); color: #fff; font-weight: 600; position: sticky; top: 0; }
table.cmp thead th.col-squadio { background: var(--brand); }
table.cmp tbody th[scope="row"] { font-weight: 600; color: var(--head); background: var(--tint); width: 200px; }
table.cmp td.col-squadio { background: #f8f6ff; }
table.cmp td.is-win { background: #f0faf3; }
table.cmp td.col-squadio.is-win { background: #eef8f7; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }

.edge {
  display: inline-block; margin-top: 8px; font-size: .72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.edge-sq { background: var(--brand-tint); color: var(--brand-dark); }
.edge-co { background: #d9f2e0; color: #14683a; }
.edge-tie { background: var(--tint-2); color: var(--muted); }

/* ---------- lists ---------- */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: #3f3e48; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok);
  -webkit-mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

.link-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.link-list a { font-weight: 600; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps .step { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700;
}
.steps .step h3 { margin-bottom: .2em; }
.steps .step p { margin: 0; color: #46454f; font-size: .95rem; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 14px; font-size: 1.05rem; color: var(--head); font-weight: 500; }
.quote blockquote::before { content: "\201C"; color: var(--accent); font-size: 2rem; font-weight: 800; line-height: 0; margin-inline-end: 2px; }
.quote figcaption { font-size: .88rem; color: var(--muted); font-weight: 600; }
.quote figcaption span { font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 600; color: var(--head); font-size: 1rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.3rem; flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; color: #46454f; font-size: .96rem; }

/* ---------- recommendation / verdict band ---------- */
.verdict-band {
  background: linear-gradient(135deg, #f3f0ff 0%, #fbf6e8 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(38px, 4vw, 60px) 0;
}
.verdict-band .verdict-label {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  margin-bottom: 14px;
}
.verdict-band h2 { max-width: 24ch; margin-bottom: .4em; }
.verdict-band p { color: #3f3e48; font-size: 1.02rem; margin-bottom: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: clamp(44px, 5vw, 72px) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9e5f7; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid {
  display: grid; gap: 30px 40px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer-grid h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.footer-grid nav { display: flex; flex-direction: column; gap: 9px; }
.footer-grid nav a { color: var(--ink); font-size: .9rem; }
.footer-grid nav a:hover { color: var(--brand); }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: .88rem; max-width: 34ch; }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cmp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .tldr { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-4, .cmp-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .header-actions { gap: 10px; }
}

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