/* ============================================================
   SesameReviews — design system
   Matched to the live Sesame HR brand (sesamehr.es)
   Font: Albert Sans · Navy #1F2D52 · Violet #6C63FF · BG #F6F8FF
   ============================================================ */

:root {
  --navy: #1F2D52;
  --navy-deep: #16203d;
  --violet: #6C63FF;
  --violet-hover: #5C56DB;
  --lavender: #AEA9FF;
  --indigo: #443CC7;
  --teal: #19D9A0;
  --star: #F5C842;

  --ink: #2b3350;
  --muted: #5f6886;
  --line: #e3e7f4;
  --bg: #F6F8FF;
  --bg-alt: #eef1ff;
  --white: #ffffff;
  --offwhite: #F8FAFC;

  --radius: 16px;
  --radius-lg: 28px;
  --radius-btn: 14px;
  --shadow-sm: 0 2px 10px rgba(31, 45, 82, .05);
  --shadow-md: 0 18px 40px rgba(31, 45, 82, .09);
  --shadow-lg: 0 30px 60px rgba(31, 45, 82, .12);
  --maxw: 1140px;
  --font: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.1; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 0; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { color: var(--navy); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-soft { background: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 720px; line-height: 1.55; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--violet); margin-bottom: .6rem; }
.accent { color: var(--violet); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 248, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(227, 231, 244, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--navy); font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand-logo { height: 27px; width: auto; display: block; }
.brand-suffix { font-weight: 800; color: var(--navy); font-size: 1.2rem; letter-spacing: -.02em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--violet); text-decoration: none; }
.lang-switch { font-size: .9rem; font-weight: 700; color: var(--navy); border: 1.5px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.lang-switch:hover { border-color: var(--violet); color: var(--violet); text-decoration: none; }
/* language switcher (dropdown) */
.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--navy); background: #fff; user-select: none;
  transition: border-color .15s ease, color .15s ease;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary:hover { border-color: var(--violet); color: var(--violet); }
.lang-switcher summary .globe { flex: none; }
.lang-switcher summary::after {
  content: ""; margin-left: 1px; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  transition: transform .2s ease;
}
.lang-switcher[open] summary::after { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 7px; z-index: 60; display: grid; gap: 2px;
}
.lang-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .94rem;
}
.lang-dropdown a:hover { background: var(--bg-alt); color: var(--navy); text-decoration: none; }
.lang-dropdown a.is-current { color: var(--violet); background: rgba(108,99,255,.08); }
.lang-dropdown a.is-current::after { content: "✓"; font-weight: 800; font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem; padding: 14px 28px;
  border-radius: var(--radius-btn); cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* Primary = navy (brand) */
.btn-primary { background: var(--navy); color: var(--offwhite); box-shadow: 0 8px 20px rgba(31,45,82,.22); }
.btn-primary:hover { background: var(--violet-hover); color: #fff; }
/* Secondary = lavender (brand) */
.btn-secondary { background: var(--lavender); color: var(--navy); }
.btn-secondary:hover { background: #9b95ff; color: var(--navy); }
/* Ghost = navy outline for light backgrounds */
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); background: rgba(108,99,255,.05); }
/* Outline = white, for use on violet/navy bands */
.btn-outline { background: #fff; color: var(--violet); border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--violet-hover); }

/* ---------- Promo strip ---------- */
.promo {
  background: linear-gradient(270deg, #000 0%, var(--indigo) 96%);
  color: #fff; text-align: center; font-size: .92rem; font-weight: 600;
  padding: 10px 16px;
}
.promo a { color: #fff; text-decoration: underline; }

/* ---------- Hero (light lavender, Sesame style) ---------- */
.hero {
  background:
    radial-gradient(820px 460px at 88% -8%, rgba(108,99,255,.18), transparent 60%),
    radial-gradient(640px 420px at -5% 108%, rgba(174,169,255,.20), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  color: var(--ink);
  padding: 92px 0 84px;
}
.hero h1 { color: var(--navy); max-width: 15ch; }
.hero .lead { color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { margin-top: 28px; color: var(--muted); font-size: .94rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }

/* big rating card in hero (white, floating) */
.rating-hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.rating-hero .score { font-size: 3.8rem; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -.04em; }
.rating-hero .out { color: var(--muted); font-weight: 700; font-size: 1.1rem; }
.rating-hero .src-list { margin-top: 24px; display: grid; gap: 2px; }
.src-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.src-row:first-child { border-top: 0; }
.src-name { color: var(--navy); font-weight: 600; }
.src-score { color: var(--navy); font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* ---------- Stars ---------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }
.stars-sm { font-size: .95rem; }

/* ---------- Source/rating cards grid ---------- */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.source-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.source-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.source-card .platform { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.source-card .big { font-size: 2.4rem; font-weight: 900; color: var(--violet); line-height: 1; letter-spacing: -.03em; }
.source-card .count { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 34px; align-items: center; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Review cards ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.review-card.hidden { display: none; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.reviewer { font-weight: 700; color: var(--navy); }
.reviewer .role { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.review-quote { font-size: 1.06rem; color: var(--ink); margin: 0 0 16px; line-height: 1.55; }
.review-quote strong { color: var(--navy); }
.review-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(108,99,255,.1); color: var(--violet-hover); text-transform: uppercase; letter-spacing: .04em; }
.tag.platform { background: rgba(31,45,82,.07); color: var(--navy); }
.verified { font-size: .8rem; color: #12a978; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Feature / pros-cons ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.panel.pros { border-top: 5px solid #12a978; }
.panel.cons { border-top: 5px solid #e0823a; }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin-bottom: 10px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
table.compare thead th.highlight { background: var(--violet); }
table.compare tbody th { font-weight: 700; color: var(--navy); background: var(--bg); }
table.compare td.win { color: #12a978; font-weight: 700; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; padding: 22px 24px; font-weight: 700; color: var(--navy); font-size: 1.08rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--violet); font-weight: 400; transition: transform .2s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 24px; color: var(--muted); }
.faq-item .faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #fff; border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9e7ff; max-width: 600px; margin: 0 auto 26px; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb7d6; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer a { color: #aeb7d6; display: block; margin-bottom: 8px; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
/* official logo is navy; invert to white on the dark footer */
.footer-brand .brand-logo { filter: brightness(0) invert(1); }
.footer-brand .brand-suffix { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .85rem; color: #8590b5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-disclaimer { max-width: 70ch; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--violet); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.feature .ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(108,99,255,.1); color: var(--violet); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .sources { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .sources { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 42px 22px; }
}
