/* Direction A (color block) marketing brand. Loaded only on marketing pages,
   not the signed-in app. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body.site-a {
  --blue: #3626F2;
  --blue-d: #2218B8;
  --ink: #0D0B2E;
  --yellow: #FFD83D;
  --coral: #FF5A4A;
  --mint: #7CF0B5;
  --paper: #fff;
  --cream: #F4F2FF;
  --a-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --a-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --bg: var(--cream);
  --fill: var(--yellow);
  --on-fill: #0D0B2E;
  --fill-hover: #ffe36a;
  --accent: var(--yellow);
  --muted: #58557f;
  --line: rgba(13, 11, 46, .14);
  --soft: #ECEAFF;
  --sans: var(--a-body);
  --shadow: 0 1px 2px rgba(13, 11, 46, .06), 0 12px 32px rgba(13, 11, 46, .08);
  font-family: var(--a-body);
  background: var(--cream);
  color: var(--ink);
}
html[data-theme="dark"] body.site-a {
  --bg: #12102A;
  --cream: #12102A;
  --paper: #1C1840;
  --ink: #F4F2FF;
  --muted: #B8B4D8;
  --line: rgba(244, 242, 255, .16);
  --soft: #2A2658;
  --on-fill: #0D0B2E;
}

body.site-a h1,
body.site-a h2,
body.site-a h3 {
  font-family: var(--a-head);
  letter-spacing: -.025em;
}
body.site-a .wrap {
  max-width: 1180px;
  padding-left: 28px;
  padding-right: 28px;
}

/* Shared indigo header. On a Direction A hero the nav is transparent so the
   decorative circle stays continuous (no chopped rectangle, no 375 color band). */
body.site-a header.top {
  background: var(--blue);
  color: #fff;
}
body.site-a .hero-a .top-a {
  background: transparent;
  color: #fff;
  /* Above .hero-grid (z-index: 2, later in the DOM). At the same
     z-index the headline, subtitle, and CTA painted over the open
     mobile menu, so "Pricing" was unreadable and "breaks." sat on
     top of the panel. */
  z-index: 30;
}
body.site-a header.top {
  position: relative;
  z-index: 30;
}
body.site-a header.top {
  margin: 0;
  padding: 0;
  display: block;
}
body.site-a header.top .top-inner,
body.site-a .hero-a .top-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
  gap: .75rem;
}
body.site-a .mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
body.site-a .mark .logo { height: 26px; width: auto; }
body.site-a .nav { gap: 26px; }
body.site-a .nav a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  opacity: .92;
  text-decoration: none;
}
body.site-a .nav a:hover { opacity: 1; }
body.site-a .login-link,
body.site-a .nav .login-link.pill {
  background: #fff;
  color: #0D0B2E !important;
  padding: 10px 18px;
  border-radius: 99px;
  border: 0;
  font: 600 15px var(--a-body);
  cursor: pointer;
  opacity: 1 !important;
}
body.site-a .login-link:hover { background: #fff; }
body.site-a .theme {
  color: #fff;
  background: none;
  border: 0;
}
body.site-a .theme:hover { background: rgba(255,255,255,.12); color: #fff; }
body.site-a .nav-toggle {
  background: #fff;
  color: #0D0B2E;
  border: 0;
}

@media (max-width: 720px) {
  body.site-a .nav {
    background: #fff;
    border: 2px solid #0D0B2E;
    color: #0D0B2E;
    z-index: 31;
  }
  body.site-a .nav a,
  body.site-a .nav .login-link,
  body.site-a .nav .login-link.pill {
    color: #0D0B2E !important;
    background: transparent;
    width: 100%;
    text-align: left;
    border-radius: 8px;
  }
  body.site-a .nav a:hover,
  body.site-a .nav .login-link:hover { background: var(--soft); }
  body.site-a header.top .top-inner,
  body.site-a .hero-a .top-a { position: relative; }
  body.site-a .hero-a .top-a .nav,
  body.site-a header.top .nav {
    position: absolute;
    top: calc(100% - .25rem);
    left: 0;
    right: 0;
  }
}

/* Yellow hard-shadow CTA — used by .start and .btn-a */
body.site-a .start,
body.site-a a.start,
body.site-a .btn-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: #0D0B2E;
  font: 700 20px/1 var(--a-head);
  padding: 18px 30px;
  height: auto;
  border: 0;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 6px 0 #0D0B2E;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
body.site-a .start:hover,
body.site-a a.start:hover,
body.site-a .btn-a:hover {
  background: var(--yellow);
  color: #0D0B2E;
  transform: translateY(3px);
  box-shadow: 0 3px 0 #0D0B2E;
}
body.site-a .start:focus-visible,
body.site-a .btn-a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.site-a footer {
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0 60px;
}
body.site-a footer a { color: var(--muted); text-decoration: none; }
body.site-a footer a:hover { color: var(--ink); }

/* Homepage hero */
.hero-a {
  background: var(--blue);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 84px;
}
.hero-a:before {
  content: "";
  position: absolute;
  right: -180px;
  top: -200px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--blue-d);
}
.hero-a:after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -190px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--coral);
  opacity: .9;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
  padding-top: 6px;
}
.hero-a h1 {
  font-family: var(--a-head);
  font-weight: 700;
  font-size: 68px;
  /* 0.98 was tighter than Space Grotesk's descenders, so g/y tails
     were clipped in the line box (and hidden by overflow:hidden on
     .hero-a). 1.05 leaves room for the tails without loosening the
     stacked headline much. */
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0;
  isolation: isolate;
}
.hero-a h1 em {
  font-style: normal;
  background: var(--yellow);
  color: #0D0B2E;
  padding: .06em .12em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  /* Paint the highlight behind the preceding line's glyphs so a
     wrapped yellow box cannot cover the g/y tails of the line above. */
  position: relative;
  z-index: -1;
}
.hero-a .sub {
  font-size: 21px;
  margin: 22px 0 30px;
  max-width: 430px;
  color: #E4E1FF;
}
.hero-a .note {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 15px;
  color: #cfcaff;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}

/* Tilted sample review */
.hero-demo {
  position: relative;
  z-index: 2;
  background: #fff;
  color: #0D0B2E;
  border-radius: 22px;
  padding: 22px 24px 8px;
  box-shadow: 0 30px 60px rgba(8, 4, 90, .45);
  transform: rotate(1.2deg);
  margin-top: 44px;
}
.hero-demo-bar {
  padding-right: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font: 600 14px var(--a-head);
  color: #6a6790;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-demo-bar i {
  font-style: normal;
  background: #F4F2FF;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--blue);
}
.hero-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px dashed #d9d6f5;
}
.hero-row:first-of-type { border-top: 0; }
.hero-row p { font: 400 16px/1.5 Arial, Helvetica, sans-serif; margin: 0; color: #0D0B2E; }
.hero-demo mark {
  background: #FFE46B;
  padding: 2px 3px;
  border-radius: 3px;
  color: inherit;
}
.hero-demo mark.r {
  background: #FFB7AE;
  text-decoration: underline wavy var(--coral);
}
.hero-comment {
  background: #0D0B2E;
  color: #fff;
  border-radius: 14px 14px 14px 3px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}
.hero-comment b {
  display: block;
  color: var(--yellow);
  font: 700 11px var(--a-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.hero-gauge {
  z-index: 3;
  position: absolute;
  right: -34px;
  top: -66px;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.3));
  transform: rotate(-4deg);
}
.hero-gauge svg { width: 100%; height: 100%; display: block; }
.hero-gauge .t {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font: 700 52px/1 var(--a-head);
  color: #0D0B2E;
  padding-top: 6px;
}
.hero-gauge .t small {
  display: block;
  font: 600 14px var(--a-head);
  color: #6a6790;
  margin-top: 2px;
}

.section-a { padding: 84px 0 0; }
.section-a h2 {
  font-size: 44px;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 38px;
  color: var(--ink);
}
.steps-a {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-a {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px;
  border: 2px solid #0D0B2E;
  position: relative;
  color: #0D0B2E;
}
.step-a .n {
  position: absolute;
  top: -18px;
  left: 24px;
  background: var(--yellow);
  border: 2px solid #0D0B2E;
  color: #0D0B2E;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 18px var(--a-head);
}
.step-a svg { width: 64px; height: 64px; margin-bottom: 14px; }
.step-a h3 { font: 700 26px var(--a-head); letter-spacing: -.01em; margin: 0; color: #0D0B2E; }
.step-a p { color: #58557f; margin: 6px 0 0; }

.who-a {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.who-card {
  border-radius: 26px;
  padding: 30px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  border: 2px solid #0D0B2E;
  transition: transform .15s;
  color: #0D0B2E;
}
.who-card:hover { transform: translateY(-4px) rotate(-.5deg); color: #0D0B2E; }
.who-card h3 { font: 700 32px/1.05 var(--a-head); letter-spacing: -.02em; margin: 0; }
/* Subtitles are 19px / 700 so they count as large text (AA 3:1). White on coral
   is 3.08:1 — passes large, fails small — so the label stays large. */
.who-card span { font: 700 19px/1.3 var(--a-head); }
.who-k1 { background: var(--yellow); }
.who-k2 { background: var(--coral); color: #fff; }
.who-k2:hover { color: #fff; }
.who-k3 { background: var(--mint); }
.gift-line { margin: 22px 0 0; font-weight: 600; }
.gift-line a { text-decoration: underline; }

.price-teaser {
  background: #0D0B2E;
  color: #fff;
  border-radius: 34px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 84px 0 0;
}
.price-teaser:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--blue);
}
.price-teaser > * { position: relative; z-index: 1; }
.price-teaser .amt {
  font: 700 120px/.9 var(--a-head);
  letter-spacing: -.05em;
  color: #fff;
}
.price-teaser .amt small {
  font-size: 34px;
  letter-spacing: 0;
  color: var(--yellow);
}
.price-teaser .lead {
  font-size: 20px;
  color: #d7d4ff;
  margin: 12px 0 0;
}
.price-teaser ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font: 600 20px var(--a-head);
}
.price-teaser li { padding: 6px 0; }
.price-teaser li:before { content: "✓"; color: var(--mint); margin-right: 10px; }
.price-teaser .btn-a { box-shadow: 0 6px 0 #000; }
.price-teaser .btn-a:hover { box-shadow: 0 3px 0 #000; }

/* Survey card — Direction A, logic unchanged */
body.site-a .survey-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  z-index: 8000;
  max-height: min(70vh, 28rem);
  overflow: visible;
  box-sizing: border-box;
  background: #fff;
  color: #0D0B2E;
  border: 3px solid #0D0B2E;
  border-radius: 22px;
  padding: 20px 18px 16px;
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 3px #0D0B2E, 0 30px 60px rgba(13, 11, 46, .35);
  animation: survey-pop .6s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes survey-pop {
  from { transform: translateY(40px) scale(.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.site-a .survey-card { animation: none; }
  body.site-a .start,
  body.site-a a.start,
  body.site-a .btn-a,
  body.site-a .who-card { transition: none; }
  body.site-a .start:hover,
  body.site-a a.start:hover,
  body.site-a .btn-a:hover { transform: none; }
}
body.site-a .survey-card[hidden] { display: none; }
body.site-a .survey-tag {
  position: absolute;
  top: -15px;
  left: 18px;
  background: var(--coral);
  color: #0D0B2E;
  font: 700 12px/1 var(--a-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  border: 2px solid #0D0B2E;
}
body.site-a .survey-close {
  position: absolute;
  top: 8px;
  right: 10px;
  float: none;
  margin: 0;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #0D0B2E;
  padding: 0.15rem 0.35rem;
}
body.site-a .survey-title {
  font: 700 19px/1.15 var(--a-head);
  margin: 8px 28px 12px 0;
  color: #0D0B2E;
}
body.site-a .survey-choice {
  font: 600 14px var(--a-body);
  border: 2px solid #0D0B2E;
  background: #fff;
  color: #0D0B2E;
  border-radius: 99px;
  padding: 6px 12px;
  cursor: pointer;
}
body.site-a .survey-choice:hover { background: var(--yellow); border-color: #0D0B2E; }
body.site-a .survey-choice.is-selected { background: var(--blue); color: #fff; border-color: #0D0B2E; }
body.site-a #survey-details label { font-weight: 600; font-size: 14px; color: #0D0B2E; }
body.site-a #survey-text {
  border: 2px solid #0D0B2E;
  border-radius: 12px;
  background: #fff;
  color: #0D0B2E;
}
body.site-a #survey-text:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
body.site-a .survey-send {
  background: #0D0B2E;
  color: #fff;
  border: 0;
  border-radius: 99px;
  padding: 10px 22px;
  font: 700 15px var(--a-head);
}
body.site-a .survey-send:hover:not(:disabled) { background: #0D0B2E; opacity: .92; }
body.site-a .survey-thanks { color: #0D0B2E; font: 600 16px var(--a-head); }

@media (max-width: 900px) {
  .hero-a h1 { font-size: 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-a, .who-a { grid-template-columns: 1fr; }
  .price-teaser { grid-template-columns: 1fr; padding: 34px 26px; }
  .price-teaser .amt { font-size: 92px; }
  .section-a h2 { font-size: 34px; }
  .section-a { padding: 56px 0 0; }
  .price-teaser { margin-top: 56px; }
}
@media (max-width: 600px) {
  body.site-a .wrap { padding-left: 18px; padding-right: 18px; }
  body.site-a .mark .logo { height: 22px; }
  body.site-a .mark i { display: none; }
  .hero-a h1 { font-size: 44px; }
  .hero-a .sub { font-size: 18px; }
  .hero-a .btn-a,
  body.site-a .hero-a .btn-a { font-size: 18px; padding: 16px 24px; width: 100%; }
  .hero-a { padding-bottom: 56px; }
  .hero-demo { padding: 16px 14px 4px; transform: none; margin-top: 76px; }
  .hero-row { grid-template-columns: 1fr; gap: 10px; }
  .hero-row p { font-size: 15px; }
  .hero-gauge { width: 116px; height: 116px; right: 6px; top: -62px; }
  .hero-gauge .t { font-size: 40px; }
  .hero-gauge .t small { font-size: 11px; }
  .hero-demo-bar { padding-right: 100px; align-items: flex-start; white-space: normal; line-height: 1.25; }
  .hero-demo-bar i { display: none; }
  /* Keep the score ring on the corner without covering the sample caption. */
  .hero-demo .hero-caption { padding-right: 108px; }
  body.site-a .survey-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px 16px 14px;
    box-shadow: 5px 5px 0 var(--yellow), 5px 5px 0 3px #0D0B2E, 0 20px 40px rgba(13, 11, 46, .35);
  }
  body.site-a .survey-title { font-size: 17px; margin-bottom: 8px; }
  body.site-a .survey-choice { font-size: 12.5px; padding: 5px 10px; }
  body.site-a footer { padding-bottom: 230px; }
}

html[data-theme="dark"] .hero-demo,
html[data-theme="dark"] .step-a,
html[data-theme="dark"] body.site-a .survey-card,
html[data-theme="dark"] body.site-a #survey-text {
  background: #fff;
  color: #0D0B2E;
}
html[data-theme="dark"] .hero-row p { color: #0D0B2E; }
html[data-theme="dark"] .step-a h3 { color: #0D0B2E; }
html[data-theme="dark"] .price-teaser { background: #0A0824; }
html[data-theme="dark"] .who-k1,
html[data-theme="dark"] .who-k3 { color: #0D0B2E; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.top-a { position: relative; }
@media (max-width: 720px) {
  .top-a.is-open .nav { display: flex; }
}

/* Header is outside .wrap so the indigo bar is naturally full-bleed */
body.site-a header.top {
  background: var(--blue);
  color: #fff;
  margin: 0 0 1.5rem;
  padding: 0;
}
body.site-a header.top .top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
  gap: .75rem;
}

body.site-a .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
body.site-a .secondary-cta {
  color: var(--ink);
  font: 600 16px var(--a-body);
  text-decoration: underline;
}
body.site-a .secondary-cta:hover { color: var(--blue); }
html[data-theme="dark"] body.site-a .secondary-cta:hover { color: var(--yellow); }
/* #E4E1FF on indigo #3626F2 is 6.08:1 AA; on darker #2218B8 is 8.73:1.
   body.site-a .secondary-cta (ink) is more specific than .hero-a .secondary-cta,
   which is why the first pass stayed unreadable ink-on-indigo (2.46:1). */
body.site-a .hero-a .secondary-cta,
body.site-a .hero-a .secondary-cta:visited {
  color: #E4E1FF;
  text-decoration: underline;
}
body.site-a .hero-a .secondary-cta:hover,
body.site-a .hero-a .secondary-cta:focus-visible {
  color: #fff;
}
html[data-theme="dark"] body.site-a .hero-a .secondary-cta,
html[data-theme="dark"] body.site-a .hero-a .secondary-cta:visited {
  color: #E4E1FF;
}
html[data-theme="dark"] body.site-a .hero-a .secondary-cta:hover,
html[data-theme="dark"] body.site-a .hero-a .secondary-cta:focus-visible {
  color: #fff;
}

/* Indigo header: always use the light logo, regardless of theme */
body.site-a .logo-light { display: none !important; }
body.site-a .logo-dark { display: block !important; }
body.site-a .mark i {
  display: inline;
  color: #d7d4ff;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  /* Re-assert after display:inline; the earlier 600px hide is overridden otherwise. */
  body.site-a .mark i { display: none; }
}
body.site-a .support-line {
  text-align: center;
  margin: 0 0 1rem;
  font: 500 15px var(--a-body);
  color: var(--muted, #58557f);
}
body.site-a .support-line a { color: inherit; text-decoration: underline; }

/* Letter-grade sample ring: a full ring, not a 0–100 arc, because these
   landing-page samples only have letter grades. */
.hero-gauge .t.letter { font-size: 44px; }
.hero-gauge .t.letter small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.hero-demo .hero-caption {
  margin: 8px 0 14px;
  font: 600 13px var(--a-head);
  color: #6a6790;
}

/* Dark mode: the Direction A hero (and its in-hero nav) stay indigo so the
   band cannot return. Cards and comments stay ink-on-white for contrast. */
html[data-theme="dark"] .hero-a,
html[data-theme="dark"] body.site-a .hero-a .top-a {
  background-color: transparent;
}
html[data-theme="dark"] .hero-a { background: var(--blue); }

/* Cases: tabbed sample cards and homepage audience switcher */
.case-tablist,
.hero-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}
.case-tab,
.hero-switch a,
.hero-switch button {
  font: 700 14px var(--a-head);
  letter-spacing: -.01em;
  text-decoration: none;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 99px;
  padding: 8px 14px;
  cursor: pointer;
}
.case-tab:hover,
.hero-switch a:hover,
.hero-switch button:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.case-tab:focus-visible,
.hero-switch a:focus-visible,
.hero-switch button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.case-tab[aria-selected="true"],
.hero-switch a[aria-selected="true"],
.hero-switch a[aria-current="page"],
.hero-switch button[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0D0B2E;
}
.case-tab[aria-selected="true"]:hover,
.hero-switch a[aria-selected="true"]:hover,
.hero-switch a[aria-current="page"]:hover,
.hero-switch button[aria-pressed="true"]:hover {
  background: var(--yellow);
  color: #0D0B2E;
}
.case-stage,
.hero-switch-stage {
  display: grid;
  position: relative;
}
.case-stage > *,
.hero-switch-stage > * {
  grid-area: 1 / 1;
  min-width: 0;
}
/* Keep every card in layout so switching cannot shift the hero height. */
.case-stage > [hidden],
.hero-switch-stage > [hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.case-stage > :not([hidden]),
.hero-switch-stage > :not([hidden]) {
  visibility: visible;
  z-index: 1;
}
.hero-demo .case-more {
  margin: 4px 0 16px;
  font: 600 14px var(--a-body);
}
.hero-demo .case-more a {
  color: var(--blue);
  text-decoration: underline;
}
.cases-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0 0 56px;
}
.cases-card {
  background: var(--paper);
  border: 2px solid #0D0B2E;
  border-radius: 24px;
  padding: 28px;
  text-decoration: none;
  color: #0D0B2E;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s;
}
.cases-card:hover { transform: translateY(-4px); color: #0D0B2E; }
.cases-card h2 { font: 700 32px/1.05 var(--a-head); letter-spacing: -.02em; margin: 0; }
.cases-card p { margin: 0; color: #58557f; font-weight: 500; }
.cases-card span { font: 700 15px var(--a-head); }
@media (max-width: 900px) {
  .cases-index { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .case-tab,
  .hero-switch a,
  .hero-switch button { font-size: 13px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cases-card { transition: none; }
}
html[data-theme="dark"] .cases-card {
  background: #fff;
  color: #0D0B2E;
}
html[data-theme="dark"] .cases-card:hover { color: #0D0B2E; }
html[data-theme="dark"] .cases-card p { color: #58557f; }

/* UC PIQ landing: form sits in the hero on desktop; sticky Pay bar on phones. */
body.site-a.piq-page .piq-hero-copy { grid-area: copy; }
body.site-a.piq-page .piq-form { grid-area: form; }
body.site-a.piq-page .piq-hero .hero-demo { grid-area: sample; }
body.site-a.piq-page .hero-a {
  padding-bottom: 40px;
}
body.site-a.piq-page .piq-form {
  background: #fff;
  color: #0D0B2E;
  border: 3px solid #0D0B2E;
  border-radius: 18px;
  padding: 22px 20px 20px;
  position: relative;
  z-index: 3;
  box-shadow: 6px 6px 0 #FFD60A, 6px 6px 0 3px #0D0B2E;
}
body.site-a.piq-page .piq-form h2 {
  font: 700 1.35rem var(--a-head);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
body.site-a.piq-page .piq-allow {
  margin: 0 0 16px;
  color: #3a3760;
  font-size: 15px;
}
body.site-a.piq-page .piq-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 12px 0 6px;
}
body.site-a.piq-page .piq-form select,
body.site-a.piq-page .piq-form textarea,
body.site-a.piq-page .piq-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #0D0B2E;
  border-radius: 10px;
  padding: 10px 12px;
  font: 16px/1.4 var(--a-body, inherit);
  background: #fff;
  color: #0D0B2E;
}
body.site-a.piq-page .piq-form select.piq-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 44px 10px 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5L12.5 6' stroke='%230D0B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}
body.site-a.piq-page .piq-form select.piq-select:focus,
body.site-a.piq-page .piq-form select.piq-select:focus-visible,
body.site-a.piq-page .piq-form textarea:focus,
body.site-a.piq-page .piq-form textarea:focus-visible,
body.site-a.piq-page .piq-form input[type="email"]:focus,
body.site-a.piq-page .piq-form input[type="email"]:focus-visible {
  outline: 2px solid var(--blue, #3626F2);
  outline-offset: 2px;
}
body.site-a.piq-page .piq-prompt-text {
  margin: 8px 0 0;
  font-size: 14px;
  color: #3a3760;
  line-height: 1.45;
}
body.site-a.piq-page .piq-count {
  margin: 6px 0 0;
  font-size: 13px;
  color: #3a3760;
}
body.site-a.piq-page .piq-count.is-over { color: #9b1c1c; font-weight: 700; }
body.site-a.piq-page .piq-form .cta,
body.site-a.piq-page #piq-pay {
  width: 100%;
  margin-top: 16px;
}
body.site-a.piq-page .piq-form .checkout-message {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #9b1c1c;
  font-weight: 600;
  font-size: 15px;
}
body.site-a.piq-page .piq-refund {
  margin: 14px 0 0;
  font-size: 14px;
  color: #3a3760;
}
body.site-a.piq-page .piq-refund a {
  color: #2218B8;
  font-weight: 700;
}
body.site-a.piq-page {
  --piq-bar-space: 0px;
}

/* Desktop / laptop: form in the right column, sample full-width below. */
@media (min-width: 721px) {
  body.site-a.piq-page .piq-hero {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 36rem);
    grid-template-areas:
      "copy form"
      "sample sample";
    gap: 28px 36px;
    padding-top: 6px;
  }
  body.site-a.piq-page .piq-form {
    margin: 0;
    max-width: none;
    width: 100%;
  }
  body.site-a.piq-page .piq-hero .hero-demo {
    margin-top: 36px;
    max-width: none;
    width: 100%;
  }
  body.site-a.piq-page .piq-form textarea { min-height: 7rem; }
}

/* Shorter laptop windows: keep textarea + Pay $10 on the first screen. */
@media (min-width: 721px) and (max-height: 820px) {
  body.site-a.piq-page .hero-a h1 { font-size: 52px; }
  body.site-a.piq-page .hero-a .sub { margin: 14px 0 0; font-size: 18px; }
  body.site-a.piq-page .piq-form { padding: 16px 18px 16px; }
  body.site-a.piq-page .piq-form textarea { min-height: 5.25rem; }
  body.site-a.piq-page .piq-allow { margin-bottom: 10px; }
  body.site-a.piq-page .piq-form label { margin-top: 8px; }
}

@media (max-width: 720px) {
  body.site-a.piq-page {
    padding-bottom: var(--piq-bar-space, 0px);
  }
  body.site-a.piq-page .hero-a { padding-bottom: 12px; }
  body.site-a.piq-page .piq-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "sample"
      "form";
    gap: 16px;
  }
  body.site-a.piq-page .hero-demo { margin-top: 20px; }
  /* Size the ring to its box (the previous 128px svg overflowed a 116px box)
     and reserve space in the bar and caption so the score cannot cover copy. */
  body.site-a.piq-page .hero-gauge {
    width: 112px;
    height: 112px;
    right: 8px;
    top: -58px;
  }
  body.site-a.piq-page .hero-gauge svg { width: 100%; height: 100%; }
  body.site-a.piq-page .hero-demo-bar,
  body.site-a.piq-page .hero-demo .hero-caption {
    padding-right: 112px;
  }
  body.site-a.piq-page .hero-row:nth-child(n+4) { display: none; }
  body.site-a.piq-page .piq-form { margin-top: 4px; padding: 16px 16px 14px; }
  body.site-a.piq-page .piq-form textarea { min-height: 6.5rem; }
  body.site-a.piq-page .piq-checkout-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #fff;
    color: #0D0B2E;
    border-top: 3px solid #0D0B2E;
    box-shadow: 0 -6px 0 #FFD60A;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body.site-a.piq-page .piq-checkout-bar.is-away {
    transform: translateY(110%) !important;
    pointer-events: none;
  }
  body.site-a.piq-page .piq-checkout-bar label { margin: 0 0 6px; }
  body.site-a.piq-page .piq-checkout-bar #piq-pay { margin-top: 10px; }
  body.site-a.piq-page .piq-checkout-bar .checkout-message {
    margin: 8px 0 0;
    min-height: 0;
  }
  body.site-a.piq-page .piq-checkout-bar .checkout-message:empty { display: none; }
  body.site-a.piq-page .piq-refund { margin: 8px 0 0; font-size: 13px; }
}
/* App use-case switcher */
.mode-switch {
  display: inline-flex;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  margin-right: 8px;
}
.mode-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 12px/1.2 inherit;
  padding: 6px 10px;
  cursor: pointer;
}
.mode-switch button[aria-pressed="true"] {
  background: #2218B8;
  color: #fff;
}
#piq-prompt-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 8px;
}
#piq-prompt-bar[hidden] { display: none; }
#piq-prompt-bar select { max-width: 100%; }
#piq-app-count { font-size: 13px; opacity: .75; }
#piq-app-count.is-over { color: #9b1c1c; font-weight: 700; }
#piq-results .piq-score { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
#piq-results .piq-spot { border-top: 1px solid rgba(13,11,46,.12); padding: 10px 0; }
