/* ── StudyOutlaws switching page (/switch/studyoutlaws/) ───────────────────
   Deliberately bare (owner, 2026-10-15): a price-swap intro, one centred
   headline, one very large button, the homepage's platform grid. Stands alone
   — loads only fonts and this file, none of the site's sheets. ── */

:root {
  --sw-red: #f40450;
  --sw-deep: #b80038;
  --sw-ink: #0d1117;
  --sw-quiet: #6b7280;
  --sw-rule: rgba(13, 17, 23, 0.14);
  --sw-glow: rgba(244, 4, 80, 0.4);
  --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html:has(body.sw-page), body.sw-page { margin: 0; padding: 0; background: #fff; }
body.sw-page main { background: #fff; }
body.sw-page {
  color: var(--sw-ink);
  font: 400 16px/1.5 "Geist", Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sw-intro *, .sw-hero *, .sw-platforms *, .sw-why * { box-sizing: border-box; }
.sw-tile img { display: block; }

/* ── intro: $7.99 struck through, then swapped for $2.49 ── */
.sw-intro {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: #fff;
  cursor: pointer;
}
.sw-intro[hidden] { display: none; }
.sw-intro.is-leaving { animation: sw-leave 0.55s var(--sw-ease) forwards; }
@keyframes sw-leave { to { opacity: 0; visibility: hidden; } }

.sw-intro-stage { position: relative; height: 1.1em; font: 900 clamp(88px, 17vw, 220px)/1 "Geist", Inter, system-ui, sans-serif; letter-spacing: -0.06em; }
.sw-intro-price {
  position: absolute; left: 50%; top: 0;
  white-space: nowrap; color: var(--sw-red);
  transform: translateX(-50%);
  will-change: transform, opacity, filter;
}
.sw-intro-price--new { opacity: 0; }
/* the strike: a red neon tube drawn left to right through the old price —
   white-hot core, red halo, a spark riding the leading edge, then a short
   flicker as it "catches". The clip-path insets are negative top and bottom
   so the halo isn't cut to the line's own 0.06em height. */
.sw-intro-strike {
  position: absolute; left: -6%; right: -6%; top: 50%; height: 0.06em; margin-top: -0.03em;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe3ea, #fff 45%, #ffd0dc);
  box-shadow:
    0 0 2px #fff,
    0 0 6px #ff4f86,
    0 0 14px #f40450,
    0 0 30px #f40450,
    0 0 60px rgba(244, 4, 80, 0.75),
    0 0 110px rgba(244, 4, 80, 0.45);
  transform: rotate(-7deg);
  clip-path: inset(-200px 100% -200px -200px);
  animation:
    sw-neon-draw 0.62s cubic-bezier(0.65, 0, 0.35, 1) 0.32s forwards,
    sw-neon-flicker 0.34s linear 0.96s;
}
.sw-intro-strike::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 0.2em; height: 0.2em; margin: -0.1em 0 0 -0.1em; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, #ff8fb0 40%, rgba(244, 4, 80, 0) 70%);
  box-shadow: 0 0 24px 8px rgba(244, 4, 80, 0.7);
  opacity: 0;
  animation: sw-neon-spark 0.62s cubic-bezier(0.65, 0, 0.35, 1) 0.32s forwards;
}
@keyframes sw-neon-draw {
  from { clip-path: inset(-200px 100% -200px -200px); }
  to { clip-path: inset(-200px -200px -200px -200px); }
}
@keyframes sw-neon-spark {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes sw-neon-flicker {
  0%, 100% { opacity: 1; }
  18% { opacity: 0.55; }
  30% { opacity: 1; }
  46% { opacity: 0.75; }
  58% { opacity: 1; }
}

/* ── page ── */

.sw-notice {
  max-width: 640px; margin: 22px auto 0; padding: 12px 16px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #78350f;
  font: 500 14.5px/1.5 "Geist", Inter, system-ui, sans-serif; text-align: center;
}
.sw-notice[hidden] { display: none; }
.sw-notice a { color: #92400e; font-weight: 700; }

.sw-hero {
  min-height: min(68vh, 640px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px 48px; text-align: center;
}
.sw-hero h1 {
  margin: 0;
  font: 900 clamp(40px, 5.4vw, 80px)/1.04 "Geist", Inter, system-ui, sans-serif;
  letter-spacing: -0.05em; color: var(--sw-ink);
  text-wrap: balance;
}
.sw-hero h1 > span { display: block; text-wrap: balance; }
.sw-hero h1 .sw-pop { color: var(--sw-red); white-space: nowrap; }

.sw-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: clamp(34px, 4.4vw, 52px);
  min-height: clamp(84px, 8vw, 116px); padding: 0 clamp(40px, 5vw, 76px); border-radius: 28px;
  color: #fff; text-decoration: none; white-space: nowrap;
  font: 800 clamp(24px, 2.7vw, 38px)/1 "Geist", Inter, system-ui, sans-serif; letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%), var(--sw-red);
  box-shadow: inset 0 -7px 0 var(--sw-deep), 0 22px 44px -16px var(--sw-glow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.sw-cta svg { width: 0.9em; height: 0.9em; flex: 0 0 auto; transition: transform 0.2s var(--sw-ease); }
.sw-cta:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: inset 0 -7px 0 var(--sw-deep), 0 28px 52px -16px var(--sw-glow); }
.sw-cta:hover svg { transform: translateX(4px); }
.sw-cta:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 var(--sw-deep), 0 8px 18px -10px var(--sw-glow); }
.sw-cta:focus-visible { outline: 4px solid var(--sw-red); outline-offset: 5px; }

.sw-fine { margin: 18px 0 0; color: var(--sw-quiet); font: 500 14px/1.5 "Geist", Inter, system-ui, sans-serif; }

/* page entrance once the intro has gone */
.sw-hero > * { transition: opacity 0.6s var(--sw-ease), transform 0.6s var(--sw-ease); }
.sw-pre .sw-hero > * { opacity: 0; transform: translateY(18px); }
.sw-hero > :nth-child(2) { transition-delay: 0.08s; }
.sw-hero > :nth-child(3) { transition-delay: 0.16s; }

/* ── platforms: the homepage grid, four across ── */
.sw-platforms { max-width: 920px; margin: 0 auto; padding: 8px 24px 72px; }
.sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sw-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 12px;
  text-decoration: none;
  transition: background 0.25s var(--sw-ease);
}
.sw-tile::before, .sw-tile::after { content: ""; position: absolute; pointer-events: none; }
.sw-tile::after {
  top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--sw-rule) 28%, var(--sw-rule) 72%, transparent);
}
.sw-tile::before {
  left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sw-rule) 22%, var(--sw-rule) 78%, transparent);
}
.sw-tile:nth-child(4n)::after { display: none; }
.sw-tile:nth-child(n+5)::before { display: none; }
.sw-tile:hover { background: #f7f8fa; }
.sw-tile img {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 12px; object-fit: contain;
}
.sw-tile strong { font: 700 15.5px/1.2 "Geist", Inter, system-ui, sans-serif; letter-spacing: -0.015em; color: var(--sw-ink); }

/* ── "the same kind of tool, for less" ── */
.sw-why { max-width: 1000px; margin: 0 auto; padding: 24px 24px 24px; text-align: center; }
.sw-why h2 {
  margin: 0; font: 900 clamp(32px, 4.2vw, 58px)/1.06 "Geist", Inter, system-ui, sans-serif;
  letter-spacing: -0.045em; color: var(--sw-ink); text-wrap: balance;
}
.sw-why .sw-pop { color: var(--sw-red); }
.sw-why h2 > span { display: block; }
.sw-why-lede { max-width: 60ch; margin: 18px auto 0; color: #4b5260; font: 400 clamp(16px, 1.3vw, 18.5px)/1.6 "Geist", Inter, system-ui, sans-serif; }

.sw-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 4vw, 52px); text-align: left; }
.sw-point { position: relative; padding: 4px clamp(18px, 2.4vw, 32px); }
.sw-point + .sw-point::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--sw-rule) 20%, var(--sw-rule) 80%, transparent);
}
.sw-point h3 { margin: 0 0 8px; font: 800 19px/1.25 "Geist", Inter, system-ui, sans-serif; letter-spacing: -0.02em; color: var(--sw-ink); }
.sw-point p { margin: 0; color: var(--sw-quiet); font: 400 15px/1.6 "Geist", Inter, system-ui, sans-serif; }

/* ── see it work: the two lead clips ── */
.sw-demos { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 6vw, 88px) 24px 0; text-align: center; }
.sw-demos h2, .sw-quiz h2 {
  margin: 0; font: 900 clamp(32px, 4.2vw, 58px)/1.06 "Geist", Inter, system-ui, sans-serif;
  letter-spacing: -0.045em; color: var(--sw-ink);
}
.sw-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(28px, 3.4vw, 44px); text-align: left; }
.sw-demo { margin: 0; }
.sw-video {
  position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 9);
  border-radius: 22px; background: #0d1117;
  box-shadow: 0 1px 2px rgba(13, 17, 23, 0.06), 0 30px 60px -36px rgba(13, 17, 23, 0.55);
}
.sw-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-demo figcaption { padding: 16px 4px 0; }
.sw-demo-name { display: inline-flex; align-items: center; gap: 10px; color: var(--sw-ink); font: 800 19px/1.2 "Geist", Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.sw-demo-name img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; object-fit: contain; }
.sw-demo-name small { color: var(--sw-quiet); font-weight: 500; font-size: 14px; letter-spacing: 0; }
.sw-demo figcaption p { margin: 6px 0 0; color: var(--sw-quiet); font: 400 15px/1.55 "Geist", Inter, system-ui, sans-serif; }

/* ── quiz automation ── */
.sw-quiz {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(64px, 7vw, 104px) 24px 0;
}
.sw-tag {
  display: inline-block; margin-bottom: 14px; padding: 6px 11px; border-radius: 999px;
  background: #fff0f4; border: 1px solid #f9c3d2; color: var(--sw-deep);
  font: 800 12px/1 "Geist", Inter, system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
.sw-quiz-copy > p { margin: 16px 0 0; color: #4b5260; font: 400 clamp(16px, 1.3vw, 18px)/1.6 "Geist", Inter, system-ui, sans-serif; }
.sw-quiz-copy ul { list-style: none; margin: 20px 0 0; padding: 0; }
.sw-quiz-copy li { position: relative; padding: 7px 0 7px 30px; color: var(--sw-ink); font: 600 15.5px/1.45 "Geist", Inter, system-ui, sans-serif; }
.sw-quiz-copy li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--sw-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── the offer, once more ── */
.sw-close { max-width: 1000px; margin: 0 auto; padding: clamp(24px, 3vw, 40px) 24px 88px; text-align: center; }

.sw-vs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px; margin: clamp(44px, 5vw, 64px) auto 0;
  border: 1px solid #e7eaf0; border-radius: 22px; overflow: hidden;
}
.sw-vs-col { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px 24px; }
.sw-vs-col + .sw-vs-col { border-left: 1px solid #e7eaf0; }
.sw-vs-col span { color: var(--sw-quiet); font: 700 12px/1 "Geist", Inter, system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.sw-vs-col b { font: 900 clamp(40px, 4.4vw, 56px)/1 "Geist", Inter, system-ui, sans-serif; letter-spacing: -0.05em; color: var(--sw-ink); }
.sw-vs-col b small { margin-left: 3px; color: var(--sw-quiet); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.sw-vs-old { color: #9aa1ad !important; text-decoration: line-through; text-decoration-color: var(--sw-red); text-decoration-thickness: 3px; }
.sw-vs-old small { display: inline-block; text-decoration: none; }
.sw-vs-col em { font-style: normal; color: var(--sw-quiet); font: 500 13.5px/1.3 "Geist", Inter, system-ui, sans-serif; }
.sw-vs-col--us { background: #fff5f8; }
.sw-vs-col--us b { color: var(--sw-red); }

.sw-cta--again { margin-top: clamp(36px, 4vw, 48px); }

.sw-foot {
  padding: 22px 24px 28px; text-align: center;
  color: #9aa1ad; font: 500 12.5px/1.6 "Geist", Inter, system-ui, sans-serif;
}
.sw-foot a { color: inherit; }

@media (max-width: 900px) {
  .sw-quiz { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .sw-hero { min-height: 0; padding-top: 48px; }
  .sw-cta { white-space: normal; width: 100%; max-width: 420px; text-align: center; }
  .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-points { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sw-point + .sw-point::before { display: none; }
  .sw-vs { grid-template-columns: minmax(0, 1fr); }
  .sw-demo-grid, .sw-quiz { grid-template-columns: minmax(0, 1fr); }
  .sw-vs-col + .sw-vs-col { border-left: 0; border-top: 1px solid #e7eaf0; }
  .sw-tile:nth-child(4n)::after { display: block; }
  .sw-tile:nth-child(n+5)::before { display: block; }
  .sw-tile:nth-child(2n)::after { display: none; }
  .sw-tile:nth-child(n+7)::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-hero > *, .sw-cta, .sw-cta svg { transition: none; }
}
