/* Home page redesign: tabbed platform, security and comparison sections and the spacing rhythm.
   Loaded only on the Home template (see reve_page_config in functions.php); the fonts are in typography.css. */

/* Shared replacement-section styles. Include this block once. */
.rm-section {
  --rm-blue:#0068ff; --rm-ink:#171717; --rm-text:#292929; --rm-muted:#545454;
  --rm-field:#f8faff; --rm-line:#dce7f7; --rm-blue-ink:#004dbd;
  --rm-shadow:0 18px 52px rgba(20,52,107,.08);
  padding:70px 0; color:var(--rm-text); background:var(--rm-field);
  font:400 16px/1.65 Inter,system-ui,sans-serif;
}
.rm-section *, .rm-section *::before, .rm-section *::after {box-sizing:border-box}
.rm-section [hidden] {display:none!important}
.rm-section .rm-wrap {width:min(calc(100% - 80px),1232px);margin-inline:auto}
.rm-security .rm-wrap {width:min(calc(100% - 48px),1280px)}
.rm-section h2,.rm-section h3 {
  margin:0;color:var(--rm-ink);font-family:Manrope,Inter,sans-serif;
  font-weight:800;line-height:1.12;letter-spacing:-.04em;
}
.rm-section h2 {font-size:clamp(32px,4vw,48px);text-wrap:balance}
.rm-section h3 {font-size:clamp(25px,3vw,35px)}
.rm-section p {margin:0;color:var(--rm-muted)}
.rm-heading {text-align:center;margin:0 auto 30px}
.rm-heading p {max-width:660px;margin:15px auto 0}
.rm-tabs {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px;
  margin-bottom:20px;background:#edf3fe;border:1px solid var(--rm-line);border-radius:16px;
}
.rm-tabs button {
  min-height:53px;padding:10px 12px;border:1px solid transparent;border-radius:11px;
  background:transparent;color:var(--rm-muted);cursor:pointer;text-align:center;
  font:700 14px/1.3 Inter,system-ui,sans-serif;
}
.rm-tabs button:hover {color:var(--rm-blue-ink);background:#f8faff}
.rm-tabs button[aria-selected=true] {
  background:#fff;border-color:#dce7f7;color:var(--rm-blue-ink);
  box-shadow:inset 0 -3px 0 var(--rm-blue),0 3px 9px #14346b0d;
}
.rm-section :focus-visible {outline:2px solid var(--rm-blue);outline-offset:3px}
.rm-feature {
  display:grid;grid-template-columns:1fr 1fr;align-items:stretch;padding:14px;
  border-radius:26px;border:1px solid var(--rm-line);background:#fff;box-shadow:var(--rm-shadow);
}
.rm-feature-copy {padding:clamp(20px,3.2vw,48px);align-self:center}
.rm-feature-copy p {margin:12px 0 20px}
.rm-feature ul {display:grid;gap:9px;margin:0;padding:0;list-style:none}
.rm-feature li {display:grid;grid-template-columns:20px 1fr;gap:10px;font-size:14px;font-weight:600}
.rm-feature li::before {
  content:"";width:7px;height:7px;margin:8px 0 0 5px;border-radius:50%;background:var(--rm-blue);
  box-shadow:0 0 0 4px #e9f2ff;
}
.rm-feature-media,.rm-security-media {position:relative;overflow:hidden;background:#e4eeff}
.rm-feature-media {border-radius:16px;min-height:365px}
.rm-feature-media img,.rm-security-media img {position:absolute;width:100%;height:100%;inset:0;object-fit:cover;display:block}
.rm-security {background:#fff}
.rm-security-card {
  display:grid;grid-template-columns:1.08fr 1fr;border:1px solid var(--rm-line);
  border-radius:28px;overflow:hidden;background:linear-gradient(145deg,#fff,#edf4ff);box-shadow:var(--rm-shadow);
}
.rm-security-media {min-height:360px}
.rm-security-copy {align-self:center;padding:clamp(26px,5vw,72px)}
.rm-security-copy h2 {font-size:clamp(30px,3.1vw,44px);text-wrap:initial;max-width:520px}
.rm-security-copy h2::before {
  content:"";display:block;width:46px;height:4px;border-radius:3px;background:var(--rm-blue);margin-bottom:20px;
}
.rm-security-copy p {margin-top:17px;max-width:470px}
.rm-compare table {
  width:100%;table-layout:fixed;border-spacing:0;border:1px solid var(--rm-line);
  background:#fff;border-radius:20px;overflow:hidden;box-shadow:var(--rm-shadow);text-align:left;
}
.rm-label-col {width:24%}
.rm-compare th,.rm-compare td {padding:17px 22px;vertical-align:middle;overflow-wrap:anywhere}
.rm-compare thead {background:#f0f4fb}
.rm-compare thead th {color:var(--rm-ink);font-size:15px}
.rm-compare thead th:nth-child(2) {color:var(--rm-blue-ink);background:#e8f1ff;box-shadow:inset 0 3px var(--rm-blue)}
.rm-brand {display:flex;align-items:center;gap:10px}
.rm-brand img {object-fit:contain;flex:none}
.rm-compare tbody :is(th,td) {border-top:1px solid var(--rm-line);font-size:14px}
.rm-compare tbody th {font-weight:700;color:var(--rm-ink)}
.rm-compare tbody tr:nth-child(even) {background:#fafcff}
.rm-compare tbody td:nth-child(2) {background:#f1f6ff}
.rm-compare tbody td:nth-child(3) {color:var(--rm-muted)}
.rm-compare tbody td {border-left:1px solid var(--rm-line)}
.rm-status {display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;margin-right:9px;font-weight:700;line-height:1;vertical-align:middle}
.rm-yes {background:#deebff;color:var(--rm-blue-ink)}
.rm-no {background:#eef1f6;color:#545b6b}
@media(max-width:800px) {
  .rm-section {padding:52px 0}
  .rm-section .rm-wrap {width:calc(100% - 36px)}
  .rm-tabs {grid-template-columns:repeat(2,minmax(0,1fr))}
  .rm-feature,.rm-security-card {grid-template-columns:1fr}
  .rm-feature-media {grid-row:1;min-height:0;aspect-ratio:16/9}
  .rm-security-media {min-height:0;aspect-ratio:16/9}
  .rm-compare th,.rm-compare td {padding:13px 10px}
}
@media(max-width:450px) {
  .rm-section .rm-wrap {width:calc(100% - 28px)}
  .rm-feature {padding:8px}
  .rm-tabs button {padding:8px 5px;font-size:12px}
  .rm-label-col {width:28%}
  .rm-compare thead th,.rm-compare tbody :is(th,td) {font-size:11px;line-height:1.45}
  .rm-brand {align-items:flex-start;flex-direction:column;gap:5px}
  .rm-brand img {width:21px;height:21px}
  .rm-status {display:grid;margin:0 0 4px;width:19px;height:19px}
}

/* Content-driven section heights and a consistent page rhythm. */
main > :is(.section,.rm-section,.trusted-section) {
  min-height:0;
  height:auto;
  padding-block:64px;
}
main > .rm-security {padding-block:60px;background:#fff}
.rm-security .rm-wrap {width:min(calc(100% - 80px),1232px)}
.rm-security-card {
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
  gap:64px;
  align-items:center;
  border:0;
  border-radius:0;
  overflow:visible;
  background:none;
  box-shadow:none;
}
.rm-security-media {
  min-height:0;
  aspect-ratio:3/2;
  border-radius:22px;
  background:#f1f6fc;
  border:1px solid #e8eef6;
}
.rm-security-media img {object-fit:cover;object-position:center}
.rm-security-copy {padding:8px 0}
.rm-security-copy h2 {
  max-width:520px;
  font-size:clamp(28px,2.7vw,38px);
  font-weight:700;
  line-height:1.23;
  letter-spacing:-.035em;
  color:#17263b;
  text-wrap:balance;
}
.rm-security-copy h2::before {display:none}
.rm-security-copy p {
  max-width:480px;
  margin-top:20px;
  font-size:16px;
  line-height:1.8;
  color:#596678;
}
main > .industries-section {padding-top:64px}
@media (max-width:991px) {
  main > :is(.section,.rm-section,.trusted-section) {padding-block:52px}
  .rm-security-card {gap:36px}
  .rm-security-copy h2 {font-size:32px}
}
@media (max-width:800px) {
  .rm-security .rm-wrap {width:calc(100% - 36px)}
  .rm-security-card {grid-template-columns:1fr;gap:28px}
  .rm-security-media {aspect-ratio:3/2;max-width:600px;width:100%;margin-inline:auto}
  .rm-security-copy {padding:0;max-width:600px;margin-inline:auto;width:100%}
  .rm-security-copy h2 {max-width:580px}
  .rm-security-copy p {max-width:580px;margin-top:16px}
}
@media (max-width:575px) {
  main > :is(.section,.rm-section,.trusted-section) {padding-block:40px}
  .rm-security .rm-wrap {width:calc(100% - 28px)}
  .rm-security-card {gap:24px}
  .rm-security-media {border-radius:16px}
  .rm-security-copy h2 {font-size:29px;line-height:1.25}
  .rm-security-copy p {font-size:15px;line-height:1.75}
}
