/* ============================================================
   The "upgrading from" pages, starting with /switch-from-isams.
   Loaded after integrations.css (page shell, .sec bands, CTA) and
   product.css (the hero, chapters and mocks). Only what those two do
   not have lives here: the question cards, the "where you'll find
   things" map, the plan across a school year, who does what, and the
   questions at the foot.

   These pages name another company's product. They describe it, they
   never run it down, and they carry the trademark note at the foot.
   ============================================================ */

/* ---------- the questions every school asks, each linking to its answer ---------- */
.sw-qs-sec { padding-block: 0 clamp(56px, 8vh, 96px); }
.sw-qs-h { margin-bottom: 18px; font-family: var(--mono); font-weight: 700; font-size: var(--t-label); letter-spacing: var(--trk-label); text-transform: uppercase; color: var(--pink); }
.sw-qs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sw-qs a {
  display: flex; flex-direction: column; gap: 9px; height: 100%; padding: 18px 16px 16px;
  background: #fff; border: 3px solid var(--black); border-radius: 14px; box-shadow: var(--cube-shadow-m, 4px 4px 0 0 #000);
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.sw-qs a:hover, .sw-qs a:focus-visible { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 #000; }
.sw-qs .q { font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.sw-qs .a { font-size: 14.5px; line-height: 1.5; }
.sw-qs .go { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-weight: 700; font-size: 13px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* anchors land clear of the fixed menu */
.sw [id] { scroll-margin-top: 96px; }

/* ---------- where you'll find things: their module, ours, what you gain ---------- */
.sw-map { background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-xl, 10px 10px 0 0 #000); overflow: hidden; }
.sw-map table { width: 100%; border-collapse: collapse; }
.sw-map th { padding: 13px 20px; text-align: left; background: var(--black); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sw-map td { padding: 16px 20px; vertical-align: middle; border-top: 2px dashed #d6d6d6; font-size: var(--t-body); line-height: 1.5; }
.sw-map tbody tr:first-child td { border-top: 0; }
.sw-map .from { width: 27%; }
.sw-map .to { width: 27%; position: relative; padding-left: 44px; }
.sw-map .to::before { content: "\2192"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--pink); }
.sw-map .from span { display: inline-block; margin: 3px 4px 3px 0; padding: 5px 10px; border: 2px solid var(--black); border-radius: 8px; background: var(--cube-secondary-1100, #f4f4f4); font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.2; }
.sw-map .to a { display: inline; font-weight: 700; font-size: 17px; text-decoration: none; background-image: linear-gradient(to top, transparent .05em, var(--green) .05em, var(--green) 1.2em, transparent 1.2em); padding: 0 .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sw-map .to a:hover { background-image: linear-gradient(to top, transparent .05em, var(--yellow) .05em, var(--yellow) 1.2em, transparent 1.2em); }
.sw-map-note { margin-top: 20px; text-align: center; font-size: 15px; color: var(--cube-gray-600, #5b5b5b); }

/* ---------- the plan: two systems across a school year ---------- */
.sw-plan { background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-xl, 10px 10px 0 0 #000); padding: 22px 22px 14px; }
.sw-plan-grid { display: grid; grid-template-columns: 76px repeat(6, minmax(0, 1fr)); gap: 8px 0; align-items: stretch; }
.sw-plan .when { grid-row: 1; padding: 0 8px 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-left: 2px dashed #cfcfcf; }
.sw-plan .when.sw { color: var(--pink); }
.sw-plan .lane { display: flex; align-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.sw-plan .bar { display: flex; align-items: center; min-height: 38px; padding: 6px 12px; border: 2px solid var(--black); font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.sw-plan .bar + .bar { border-left: 0; }
.sw-plan .bar.s { border-radius: 10px 0 0 10px; }
.sw-plan .bar.e { border-radius: 0 10px 10px 0; }
.sw-plan .bar.old { background: var(--cube-gray, #e5e5e5); }
.sw-plan .bar.old.fade { background: repeating-linear-gradient(135deg, #fff 0 7px, #e5e5e5 7px 14px); }
.sw-plan .bar.trial { background: #fff; border-style: dashed; }
.sw-plan .bar.part { background: #c9fbe0; }
.sw-plan .bar.full { background: var(--green); }
.sw-plan .steps { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 8px; padding: 0; list-style: none; }
.sw-plan .steps li { padding: 12px 10px 6px 8px; border-left: 2px dashed #cfcfcf; font-size: 14px; line-height: 1.45; }
.sw-plan .steps b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.sw-plan .steps .w, .sw-plan .steps .st { display: none; }
.sw-plan .steps li.sw b { background: var(--pink); color: #fff; display: table; padding: 1px 6px; }
.sw-plan figcaption { margin-top: 14px; padding-top: 10px; border-top: 2px dashed #cfcfcf; font-family: var(--mono); font-size: 12px; color: var(--cube-gray-600, #5b5b5b); }

/* ---------- the two promises ----------
   Commitments a school will hold us to: not paying for KeelOS while iSAMS
   still runs, and full access to its own data at no extra charge. The tilted
   black label is the one the integrations hub uses for "Our promise". */
.sw-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 26px; }
/* no single word left alone on the last line of a centred heading */
.sw .sec-h h2 { text-wrap: balance; }
.sw-promises > div { position: relative; background: var(--yellow); border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-xl, 10px 10px 0 0 #000); padding: 34px 28px 28px; }
.sw-promises > div:nth-child(2) { background: var(--green); }
.sw-promises .lbl { position: absolute; top: -15px; left: 22px; padding: 7px 11px; background: var(--black); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg); }
.sw-promises h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.sw-promises p { margin-top: 12px; font-size: var(--t-lead); line-height: var(--lh-lead); }

/* ---------- who does what ---------- */
.sw-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sw-who > div { background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-l, 6px 6px 0 0 #000); padding: 24px 24px 22px; }
.sw-who > div.us { background: var(--black); color: #fff; box-shadow: 6px 6px 0 0 var(--pink); }
.sw-who h3 { font-size: var(--t-h3, 22px); margin-bottom: 14px; }
.sw-who ul { list-style: none; display: grid; gap: 11px; }
.sw-who li { position: relative; padding-left: 28px; font-size: var(--t-body); line-height: var(--lh-body, 1.6); }
.sw-who li::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; background: var(--yellow); border: 2.5px solid var(--black); }
.sw-who .us li::before { background: var(--green); border-color: #fff; }
.sw-who b { font-weight: 700; }

/* ---------- questions at the foot ---------- */
.sw-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.sw-faq details { background: #fff; border: 3px solid var(--black); border-radius: 12px; }
.sw-faq details[open] { box-shadow: var(--cube-shadow-m, 4px 4px 0 0 #000); }
.sw-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.3; }
.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2.5px solid var(--black); border-radius: 50%; font-family: var(--mono); font-size: 20px; line-height: 1; }
.sw-faq details[open] summary::after { content: "\2212"; background: var(--yellow); }
.sw-faq summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 9px; }
.sw-faq p { padding: 0 18px 18px; font-size: var(--t-body); line-height: var(--lh-body, 1.6); max-width: 66ch; }

/* the button under a centred section head: the PressButton island drops the
   link's own margin, so the wrapper carries it */
.sw-btn { margin-top: clamp(24px, 4vh, 36px); text-align: center; }

/* the trademark note */
.sw-legal { margin: 0 auto; padding: clamp(44px, 7vh, 64px) var(--sp-gutter) clamp(40px, 6vh, 64px); max-width: 760px; text-align: center; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--cube-gray-600, #5b5b5b); position: relative; z-index: 1; }

/* ---------- narrower screens ---------- */
@media (max-width: 1040px) {
  /* six columns are too narrow to read below this, so the plan turns on its
     side: the two lanes go, and each step says where both systems stand */
  .sw-plan { padding: 18px 16px 12px; }
  .sw-plan-grid { display: block; }
  .sw-plan .when, .sw-plan .lane, .sw-plan .bar { display: none; }
  .sw-plan .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
  .sw-plan .steps li { position: relative; padding: 0 0 20px 26px; border-left: 3px solid var(--black); margin-left: 7px; }
  .sw-plan .steps li:last-child { padding-bottom: 4px; border-left-color: transparent; }
  .sw-plan .steps li::before { content: ""; position: absolute; left: -10.5px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--black); }
  .sw-plan .steps li.sw::before { background: var(--pink); }
  .sw-plan .steps li:last-child::before { background: var(--green); }
  .sw-plan .steps .w { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cube-gray-600, #5b5b5b); }
  .sw-plan .steps .st { display: block; margin-top: 7px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
  .sw-plan .steps b { font-size: 16px; }
}

@media (max-width: 820px) {
  .sw-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-who, .sw-promises { grid-template-columns: minmax(0, 1fr); }

  /* the map: each row becomes a card, their module above ours */
  .sw-map { border: 0; border-radius: 0; box-shadow: none; background: none; overflow: visible; }
  .sw-map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sw-map table, .sw-map tbody, .sw-map tr, .sw-map td { display: block; width: auto; }
  .sw-map tr { background: #fff; border: 3px solid var(--black); border-radius: 14px; box-shadow: var(--cube-shadow-m, 4px 4px 0 0 #000); padding: 14px 16px 16px; }
  .sw-map tr + tr { margin-top: 16px; }
  .sw-map td, .sw-map tbody tr:first-child td { padding: 0; border: 0; }
  .sw-map .from, .sw-map .to { width: auto; }
  .sw-map tbody tr td.to { padding: 10px 0 8px 30px; }
  .sw-map .to::before { left: 2px; }
}

@media (max-width: 620px) {
  .sw-qs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sw-qs a { padding: 15px 16px 14px; }
  .sw-faq summary { font-size: 16px; padding: 14px 15px; }
  .sw-faq p { padding: 0 15px 16px; }
}

/* five boxes across a phone: the labels step down so no word breaks */
@media (max-width: 480px) {
  .sw .m-flow .src li { font-size: 9.5px; padding-inline: 1px; }
}

/* a text link under a chapter's ticks */
.pd-copy .pd-inline { margin-top: 22px; font-family: var(--mono); font-weight: 700; font-size: 15px; }
