/* RosterBuddy marketing site. Values follow brand/BRAND.md and brand/tokens/tokens.css. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-600.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --rb-flare: #ff5a3c;
  --rb-night: #14213d;
  --rb-jetstream: #1864ab;
  --rb-cloud: #f6f4ef;
  --rb-white: #ffffff;
  --rb-slate: #5c6675;
  --rb-sunrise: #ffc43d;
  --rb-rule: #d9d5cc;
  --rb-rule-light: #e8e4db;
  --rb-rule-dark: #3a4868;

  --rb-font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --rb-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rb-radius-pill: 999px;
  --rb-radius-block: 28px;
  --rb-content-max: 1160px;
  --rb-gutter: 16px;
  --rb-cta-height: 52px;

  /* Motion: quick and soft, with a little overshoot for "buddy" moments. */
  --rb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rb-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--rb-cloud);
  font-family: var(--rb-font-body);
  color: var(--rb-night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--rb-jetstream);
}
a:hover {
  color: var(--rb-night);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--rb-jetstream);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--rb-night);
  color: var(--rb-white);
  border-radius: var(--rb-radius-pill);
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--rb-ease-out);
}
.skip-link:focus {
  top: 12px;
  color: var(--rb-white);
}

.page {
  min-height: 100vh;
  padding: 0 var(--rb-gutter);
}
.wrap {
  max-width: var(--rb-content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Type ---------- */

.display {
  margin: 0;
  font-family: var(--rb-font-display);
  font-weight: 800;
}
.h-hero {
  font-size: clamp(52px, 8vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.h-page {
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 820px;
}
.h-section {
  font-size: clamp(34px, 4vw, 49px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 640px;
}
.h-sub {
  font-size: clamp(30px, 3.5vw, 39px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}
.body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Logo ---------- */

.wordmark {
  font-family: var(--rb-font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--rb-night);
}
.wordmark span {
  color: var(--rb-flare);
}
.rings {
  display: block;
  overflow: visible;
}
.rings circle {
  transition: transform 0.45s var(--rb-ease-spring);
}

/* ---------- Navigation ---------- */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 calc(var(--rb-gutter) * -1);
  padding: 0 var(--rb-gutter);
  background: var(--rb-cloud);
  transition: box-shadow 0.25s ease;
}
.nav-shell.is-scrolled {
  /* A hairline, not a shadow: the brand has no drop shadows. */
  box-shadow: 0 1px 0 var(--rb-rule);
}
.nav {
  max-width: var(--rb-content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  transition: padding 0.25s var(--rb-ease-out);
}
.nav-shell.is-scrolled .nav {
  padding: 12px 0;
}
.nav a {
  color: var(--rb-night);
  text-decoration: none;
}
.nav-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.nav-home .wordmark {
  font-size: 25px;
}
.nav-home:hover .rings .ring-a {
  transform: translateX(3px);
}
.nav-home:hover .rings .ring-b {
  transform: translateX(-3px);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  font-size: 16px;
  font-weight: 600;
}
.nav-link {
  position: relative;
  padding: 10px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--rb-flare);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--rb-ease-out);
}
.nav .nav-link:hover,
.nav .nav-link[aria-current="page"] {
  color: var(--rb-flare);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav .nav-cta {
  background: var(--rb-night);
  color: var(--rb-white);
  border-radius: var(--rb-radius-pill);
  padding: 11px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.2s var(--rb-ease-out),
    background-color 0.2s ease;
}
.nav .nav-cta:hover {
  color: var(--rb-white);
  background: #22335a;
  transform: translateY(-2px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--rb-cta-height);
  padding: 0 26px;
  border-radius: var(--rb-radius-pill);
  border: 0;
  font-family: var(--rb-font-body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--rb-ease-out),
    background-color 0.2s ease,
    color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn-primary {
  background: var(--rb-flare);
  color: var(--rb-night);
}
.btn-primary:hover {
  background: #ff6e53;
  color: var(--rb-night);
}
.btn-outline {
  padding: 0 22px;
  color: var(--rb-night);
  border: 2px solid var(--rb-night);
}
.btn-outline:hover {
  background: var(--rb-night);
  color: var(--rb-white);
}
.btn-night {
  background: var(--rb-night);
  color: var(--rb-white);
}
.btn-night:hover {
  background: #22335a;
  color: var(--rb-white);
}
.btn .arrow {
  transition: transform 0.25s var(--rb-ease-spring);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: var(--rb-sunrise);
  color: var(--rb-night);
  border-radius: var(--rb-radius-pill);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}
.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rb-night);
}

/* ---------- Sections ---------- */

.section {
  border-top: 2px solid var(--rb-night);
  padding: 64px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.block {
  border-radius: var(--rb-radius-block);
  padding: 56px 48px;
  margin: 8px 0 72px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 56px 0 72px;
}
.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-end;
  justify-content: space-between;
}
.hero h1 {
  flex: 1 1 520px;
  max-width: 760px;
}
.hero-line {
  display: block;
}
.hero-aside {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 8px;
}

/* Roster-week figure */
.week-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.week-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.week-title {
  font-size: 15px;
  font-weight: 600;
}
.week-note {
  font-size: 14px;
  color: var(--rb-slate);
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.day {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-slate);
}
.day-label.is-out {
  color: var(--rb-flare);
}
.duty {
  min-height: 108px;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.duty-route {
  font-family: var(--rb-font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.duty-meta {
  font-size: 14px;
}
.duty-trip {
  grid-column: span 3;
  background: var(--rb-night);
  color: var(--rb-white);
}
.duty-trip .duty-meta {
  color: var(--rb-rule);
}
.duty-empty {
  border: 2px dashed var(--rb-rule);
}
.duty-off {
  background: var(--rb-white);
  justify-content: flex-end;
  font-size: 15px;
  font-weight: 600;
  color: var(--rb-slate);
}
.duty-out {
  background: var(--rb-flare);
  color: var(--rb-night);
  position: relative;
}
.duty-out .duty-meta,
.duty-in .duty-meta {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.duty-in {
  grid-column: span 2;
  background: var(--rb-sunrise);
  color: var(--rb-night);
}

/* How it works */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rb-night);
  transform-origin: left;
}
.step-num {
  font-family: var(--rb-font-display);
  font-size: 39px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rb-flare);
  display: inline-block;
}
.step h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Features */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--rb-rule);
  padding-top: 16px;
}
.feature h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

/* Trust */
.trust {
  background: var(--rb-night);
  color: var(--rb-white);
  gap: 40px 64px;
}
.trust-intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.trust-intro .body {
  color: var(--rb-rule);
}
.trust-list {
  flex: 1 1 420px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  position: relative;
}
.trust-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rb-rule-dark);
}
.trust-list li:last-child {
  border-bottom: 1px solid var(--rb-rule-dark);
}
.trust-key {
  flex: 0 0 110px;
  font-weight: 700;
  color: var(--rb-sunrise);
}
.trust-list .trust-val {
  font-size: 17px;
  line-height: 1.5;
}
.trust-rings {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 340px;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
}

/* Pricing teaser */
.price-teaser {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-start;
  justify-content: space-between;
}
.price-teaser-copy {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-teaser-copy .body {
  max-width: 520px;
}

/* FAQ */
.faq {
  gap: 32px;
}
.qa {
  margin: 0;
  display: flex;
  flex-direction: column;
  max-width: 820px;
}
.qa > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--rb-rule);
}
.qa > div:last-child {
  border-bottom: 1px solid var(--rb-rule);
}
.qa dt {
  font-size: 20px;
  font-weight: 700;
}
.qa dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}
.qa-tight > div {
  padding: 20px 0;
}
.qa-tight dt {
  font-size: 19px;
}

/* Signup */
.signup {
  background: var(--rb-flare);
  color: var(--rb-night);
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.signup h2 {
  flex: 1 1 400px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 360px;
  align-items: flex-start;
}
.signup-input {
  flex: 1 1 220px;
  min-height: var(--rb-cta-height);
  border: 2px solid var(--rb-night);
  border-radius: var(--rb-radius-pill);
  padding: 0 20px;
  font-family: var(--rb-font-body);
  font-size: 17px;
  background: var(--rb-white);
  color: var(--rb-night);
  transition: transform 0.2s var(--rb-ease-out);
}
.signup-input:focus {
  transform: translateY(-1px);
}
.signup-input::placeholder {
  color: var(--rb-slate);
}
.signup-status {
  flex: 1 1 100%;
  margin: 4px 0 0;
  min-height: 1.5em;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.signup-trap {
  position: absolute;
  left: -9999px;
}
.signup-done {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
/* Focus moves here after signup so screen readers announce it; it isn't a control. */
.signup-done:focus {
  outline: none;
}
.signup-form[hidden],
.signup-done[hidden] {
  display: none;
}
.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
}

/* Footer */
.footer {
  border-top: 2px solid var(--rb-night);
  padding: 32px 0 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 15px;
  color: var(--rb-slate);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-brand .wordmark {
  font-size: 20px;
  letter-spacing: -0.04em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a {
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Pricing page */
.pricing-hero {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pricing-hero .lede {
  max-width: 620px;
}
.pricing-hero .btn {
  align-self: flex-start;
}
.section-snug {
  padding: 48px 0 64px;
  gap: 28px;
}
.section-snug.is-last {
  padding-bottom: 72px;
  gap: 24px;
}
.included {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  font-size: 17px;
  line-height: 1.5;
}
.included li {
  border-top: 1px solid var(--rb-rule);
  padding: 14px 0 14px 34px;
  position: relative;
}
.included li::before {
  /* A small pair of buddy rings as the bullet. */
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 22px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke-width='7'%3E%3Ccircle cx='22' cy='20' r='15' stroke='%2314213D'/%3E%3Ccircle cx='42' cy='20' r='15' stroke='%23FF5A3C'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding: 48px 0 80px;
}
.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--rb-font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  break-after: avoid;
}
.legal h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 700;
  break-after: avoid;
}
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.legal ul,
.legal ol {
  margin: 0 0 12px;
  padding-left: 24px;
}
.legal li {
  margin-bottom: 6px;
}
.legal .muted {
  color: var(--rb-slate);
}
.tablewrap {
  overflow-x: auto;
  margin: 12px 0 20px;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  line-height: 1.45;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--rb-rule);
}
.legal th {
  font-weight: 700;
  border-top: 2px solid var(--rb-night);
}
.callout {
  background: var(--rb-white);
  border: 2px solid var(--rb-night);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 0 20px;
  break-inside: avoid;
}
.callout p,
.callout .callout-list {
  margin: 0;
}
.legal .callout-title {
  margin: 0 0 8px;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cols,
  .steps,
  .included {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .duty-trip,
  .duty-in {
    grid-column: span 1;
  }
  .block {
    padding: 40px 24px;
  }
  .trust-key {
    flex-basis: 84px;
  }
  /* The nav wraps to two rows on phones; pinned, it would eat a fifth of the screen. */
  .nav-shell {
    position: static;
  }
}

/* ---------- Motion ----------
   Everything below is decoration. It only runs when the visitor hasn't asked for reduced
   motion, and reveal states only apply once site.js has added the `js` class, so the page
   reads fully without JavaScript. */

@media (prefers-reduced-motion: no-preference) {
  /* Logo: the two rings slide together on load. */
  .js .nav-home .ring-a {
    animation: rb-ring-a 0.9s var(--rb-ease-spring) 0.1s both;
  }
  .js .nav-home .ring-b {
    animation: rb-ring-b 0.9s var(--rb-ease-spring) 0.1s both;
  }

  /* Hero headline lines rise out of a mask. */
  .js .hero-line {
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
  }
  .js .hero-line > span {
    display: inline-block;
    animation: rb-rise 0.9s var(--rb-ease-out) both;
    animation-delay: calc(0.15s + var(--i, 0) * 0.12s);
  }
  .js .hero-aside > *,
  .js .pricing-hero > * {
    animation: rb-fade-up 0.8s var(--rb-ease-out) both;
    animation-delay: calc(0.35s + var(--i, 0) * 0.1s);
  }

  /* Roster week: days drop in one by one, then the swap plays out. */
  .js .week .day {
    animation: rb-fade-up 0.6s var(--rb-ease-out) both;
    animation-delay: calc(0.55s + var(--i, 0) * 0.07s);
  }
  .js .duty-out {
    animation: rb-bob 2.4s ease-in-out 1.6s infinite;
  }
  .js .duty-out .swap-icon {
    animation: rb-spin 4.8s var(--rb-ease-out) 1.4s infinite;
  }
  .js .duty-in {
    animation: rb-arrive 0.9s var(--rb-ease-spring) 1.25s both;
  }

  /* Scroll reveals. */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s var(--rb-ease-out),
      transform 0.7s var(--rb-ease-out);
    transition-delay: calc(var(--i, 0) * 0.08s);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js .step::before {
    transform: scaleX(0);
    transition: transform 0.9s var(--rb-ease-out);
    transition-delay: calc(var(--i, 0) * 0.12s);
  }
  .js .step.is-in::before {
    transform: scaleX(1);
  }
  .js .step .step-num {
    transform: scale(0.4);
    transition: transform 0.6s var(--rb-ease-spring);
    transition-delay: calc(0.15s + var(--i, 0) * 0.12s);
  }
  .js .step.is-in .step-num {
    transform: none;
  }
  .js .trust-rings {
    animation: rb-drift 14s ease-in-out infinite alternate;
  }
  .js .included li::before {
    transition: transform 0.4s var(--rb-ease-spring);
  }
  .js .included li:hover::before {
    transform: scale(1.25) rotate(-8deg);
  }
  .signup-done .rings {
    animation: rb-pop 0.7s var(--rb-ease-spring) both;
  }
  .signup-done .ring-a {
    animation: rb-ring-a 0.9s var(--rb-ease-spring) 0.1s both;
  }
  .signup-done .ring-b {
    animation: rb-ring-b 0.9s var(--rb-ease-spring) 0.1s both;
  }
  .signup-form.is-shaking {
    animation: rb-shake 0.4s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@keyframes rb-ring-a {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: none;
  }
}
@keyframes rb-ring-b {
  from {
    transform: translateX(14px);
  }
  to {
    transform: none;
  }
}
@keyframes rb-rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes rb-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rb-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes rb-spin {
  0%,
  70% {
    transform: rotate(0);
  }
  85%,
  100% {
    transform: rotate(180deg);
  }
}
@keyframes rb-arrive {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rb-drift {
  from {
    transform: translate(0, 0) rotate(0);
  }
  to {
    transform: translate(-24px, -16px) rotate(-10deg);
  }
}
@keyframes rb-pop {
  from {
    transform: scale(0.5);
  }
  to {
    transform: none;
  }
}
@keyframes rb-shake {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

/* ---------- Print (legal pages especially) ---------- */

@media print {
  body,
  .page {
    background: #fff;
  }
  .nav-shell,
  .footer,
  .skip-link {
    display: none;
  }
  .page {
    padding: 0;
  }
  .legal {
    max-width: none;
    padding: 0;
  }
  .legal h1 {
    font-size: 32pt;
  }
  .legal h2 {
    font-size: 17pt;
    margin-top: 24pt;
  }
  .legal p,
  .legal li {
    font-size: 11pt;
    orphans: 3;
    widows: 3;
  }
  .legal a {
    color: inherit;
  }
  .callout {
    border-width: 1pt;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
