/* ============ COMPARE PAGE ============ */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; background: radial-gradient(120% 120% at 50% -20%, var(--blue-wash) 0%, #fff 60%); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { max-width: 600px; margin: 0 auto; }

/* head-to-head logos */
.versus { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 34px 0 6px; }
.versus .vs-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 20px; box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.versus .vs-card.them { color: var(--muted); }
.versus .vs-card .lm { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.versus .vs-card.us .lm { background: #fff; }
.versus .vs-card.us .lm img { width: 100%; height: 100%; object-fit: cover; }
.versus .vs-card .them-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--mist-2); display: grid; place-items: center; color: var(--faint); }
.versus .vs-core { font-family: var(--font-display); font-weight: 800; color: var(--orange); font-size: 15px; }

/* ---------- MATRIX ---------- */
.matrix-sec { padding: 70px 0; }
.matrix { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.mx-head { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr 1fr; position: sticky; top: 70px; z-index: 5; background: #fff; border-bottom: 2px solid var(--line); }
.mx-head > div { padding: 18px 16px; text-align: center; }
.mx-head .mx-prod { font-family: var(--font-display); font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mx-head .mx-us { color: var(--blue); background: var(--blue-wash); border-radius: 12px 12px 0 0; }
.mx-head .mx-us .lm { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; }
.mx-head .mx-us .lm img { width: 100%; height: 100%; object-fit: cover; }
.mx-head .mx-them { color: var(--muted); font-size: 16px; }
.mx-head .mx-corner { text-align: left; font-family: var(--font-display); font-weight: 700; color: var(--ink); display: flex; align-items: flex-end; }

.mx-group { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr 1fr; }
.mx-group .mx-cat { grid-column: 1 / -1; background: var(--mist); padding: 11px 16px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.mx-group .mx-cat .material-icons { font-size: 16px; color: var(--blue); }
.mx-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; border-top: 1px solid var(--line-2); }
.mx-row > div { padding: 14px 16px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13.5px; }
.mx-row .mx-feat { justify-content: flex-start; text-align: left; font-weight: 500; color: var(--ink); }
.mx-row .mx-cell.us { background: #f7faff; }
.cell-yes { color: #1e8f54; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.cell-yes .material-icons { font-size: 18px; background: #e3f5ea; border-radius: 50%; padding: 3px; }
.cell-no .material-icons { color: #c8d2df; font-size: 18px; }
.cell-part { font-size: 12px; font-weight: 600; color: var(--orange); background: var(--orange-wash); border-radius: 999px; padding: 4px 11px; }
.cell-txt { color: var(--muted); font-weight: 500; }
.cell-txt.good { color: var(--blue); font-weight: 600; }

/* ---------- deep-dive cards ---------- */
.deep { background: var(--mist); }
.deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.deep-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-sm); }
.deep-card .ichip { margin-bottom: 18px; }
.deep-card h3 { font-size: 22px; margin-bottom: 10px; }
.deep-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.vs-line { display: flex; align-items: stretch; gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.vs-line .vl { flex: 1; padding: 14px 16px; }
.vs-line .vl.us { background: var(--blue-wash); }
.vs-line .vl.them { background: var(--mist); }
.vs-line .vl .who { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.vs-line .vl.us .who { color: var(--blue); }
.vs-line .vl.them .who { color: var(--faint); }
.vs-line .vl .what { font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* ---------- migration ---------- */
.migrate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 15px; }
.step b { font-family: var(--font-display); font-size: 16px; display: block; margin-bottom: 3px; }
.step p { color: var(--muted); font-size: 14px; }
.import-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.import-drop { margin: 22px; border: 2px dashed #c8d6ea; border-radius: 14px; padding: 32px; text-align: center; background: var(--blue-wash); }
.import-drop .material-icons { font-size: 40px; color: var(--blue); }
.import-drop b { font-family: var(--font-display); display: block; margin-top: 10px; font-size: 16px; }
.import-drop span { font-size: 13px; color: var(--muted); }
.import-prog { margin: 0 22px 22px; }
.import-prog .ip-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); }
.import-prog .ip-row .material-icons { color: #1e8f54; font-size: 18px; }
.import-prog .ip-row .ct { margin-left: auto; color: var(--faint); font-size: 12.5px; }

/* ---------- honesty ---------- */
.honesty { background: var(--ink); color: #c4cedd; }
.honesty .eyebrow { color: var(--cyan-soft); }
.honesty .eyebrow::before { background: var(--orange-soft); }
.honesty h2 { color: #fff; }
.honest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.honest-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 26px; }
.honest-card .material-icons { color: var(--cyan-soft); font-size: 26px; margin-bottom: 14px; }
.honest-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.honest-card p { font-size: 14px; color: #93a3bb; }

/* matrix: included-with-account annotation */
.mx-cell.us.incl-cell { flex-direction: column; gap: 5px; }
.mx-cell .incl { font-size: 10px; font-weight: 700; color: var(--blue); background: var(--blue-wash); border-radius: 999px; padding: 2px 9px; line-height: 1.25; text-align: center; letter-spacing: .01em; }

/* matrix: responsive competitor toggle (hidden until narrow) */
.mx-toggle { display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 1000px; margin: 0 auto 16px; }
.mx-toggle .lbl { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--muted); }
.mx-toggle button { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.mx-toggle button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 920px) and (min-width: 761px) {
  .mx-head, .mx-group { grid-template-columns: 1.5fr .82fr .82fr .82fr .82fr; }
  .mx-head { top: 0; }
  .mx-row > div, .mx-head > div { padding: 12px 7px; font-size: 11.5px; }
  .mx-head .mx-prod { font-size: 14px; }
  .mx-cell .incl { font-size: 9px; }
}

/* narrow: collapse to Feature + Pratiquer + one selected competitor */
@media (max-width: 760px) {
  .mx-toggle { display: flex; }
  .mx-head, .mx-group { grid-template-columns: 1.45fr 1fr 1.05fr; }
  .mx-head { top: 0; }
  .mx-row > div, .mx-head > div { padding: 13px 10px; font-size: 13px; }
  .matrix .mx-head > :nth-child(3), .matrix .mx-row > :nth-child(3),
  .matrix .mx-head > :nth-child(4), .matrix .mx-row > :nth-child(4),
  .matrix .mx-head > :nth-child(5), .matrix .mx-row > :nth-child(5) { display: none; }
  .matrix.show-anki .mx-head > :nth-child(3), .matrix.show-anki .mx-row > :nth-child(3),
  .matrix.show-quizlet .mx-head > :nth-child(4), .matrix.show-quizlet .mx-row > :nth-child(4),
  .matrix.show-memrise .mx-head > :nth-child(5), .matrix.show-memrise .mx-row > :nth-child(5) { display: flex; }
}

@media (max-width: 900px) {
  .deep-grid, .migrate-grid { grid-template-columns: 1fr; gap: 32px; }
  .honest-grid { grid-template-columns: 1fr; }
  .versus { flex-direction: column; gap: 12px; }
}
