:root {
  --jo-ink: #151515;
  --jo-muted: #666;
  --jo-paper: #fffdf8;
  --jo-blue: #3155ff;
  --jo-red: #ff4b4b;
  --jo-yellow: #ffe45c;
  --jo-green: #2dbb72;
  --jo-border: #111;
  --jo-shadow: 6px 6px 0 #111;
  --jo-shadow-soft: 3px 3px 0 rgba(0, 0, 0, 0.22);
  --jo-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--jo-ink);
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    #ffffff;
  background-size: 18px 18px;
  font-family: "Comic Sans MS", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.jo-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 8px 12px;
  background: var(--jo-yellow);
  border: 2px solid var(--jo-border);
}

.jo-skip:focus {
  top: 12px;
}

.jo-topline {
  background: var(--jo-yellow);
  border-bottom: 2px dashed var(--jo-border);
  font-size: 13px;
  line-height: 1.5;
}

.jo-topline-inner,
.jo-header-inner,
.jo-footer-inner,
.jo-container {
  width: min(var(--jo-max), calc(100% - 28px));
  margin: 0 auto;
}

.jo-topline-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.jo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 4px solid var(--jo-border);
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}

.jo-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.jo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-1deg);
}

.jo-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--jo-red);
  border: 3px solid var(--jo-border);
  box-shadow: var(--jo-shadow-soft);
  image-rendering: pixelated;
  font-size: 24px;
  font-weight: 900;
}

.jo-brand-text strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.jo-brand-text span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--jo-muted);
}

.jo-nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 3px solid var(--jo-border);
  background: var(--jo-yellow);
  box-shadow: var(--jo-shadow-soft);
}

.jo-nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: var(--jo-border);
}

.jo-nav {
  justify-self: end;
}

.jo-nav-list,
.jo-actions,
.jo-footer-links,
.jo-footer-mini {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jo-nav-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.jo-nav-item {
  position: relative;
}

.jo-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  background: #fff;
  border: 2px solid transparent;
  font-size: 14px;
}

.jo-nav-link:hover,
.jo-nav-item:focus-within > .jo-nav-link {
  border-color: var(--jo-border);
  background: #eafff2;
  transform: rotate(.6deg);
}

.jo-nav-item.has-children > .jo-nav-link::after {
  content: "v";
  margin-left: 5px;
  font-size: 10px;
}

.jo-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  display: none;
  min-width: 210px;
  padding: 10px;
  background: #fff;
  border: 3px solid var(--jo-border);
  box-shadow: var(--jo-shadow);
}

.jo-nav-item:hover > .jo-dropdown,
.jo-nav-item:focus-within > .jo-dropdown {
  display: block;
}

.jo-dropdown a,
.jo-dropdown-title {
  display: block;
  padding: 7px 8px;
  font-size: 13px;
}

.jo-dropdown-title {
  margin-top: 3px;
  font-weight: 800;
  color: var(--jo-blue);
}

.jo-dropdown a:hover {
  background: var(--jo-yellow);
}

.jo-actions {
  gap: 8px;
  justify-self: end;
}

.jo-btn,
.jo-actions a,
.jo-hero-actions a,
.btn,
.btn-primary,
.btn-default,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--jo-ink) !important;
  background: #fff;
  border: 3px solid var(--jo-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--jo-shadow-soft);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none !important;
}

.jo-btn-primary,
.jo-actions .register a,
.jo-hero-actions .primary,
.btn-primary {
  background: var(--jo-yellow) !important;
}

.jo-btn:hover,
.jo-actions a:hover,
.jo-hero-actions a:hover,
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translate(-1px, -1px) rotate(-.5deg);
  box-shadow: 7px 7px 0 #111;
}

.jo-page {
  overflow: hidden;
}

.jo-hero {
  position: relative;
  padding: clamp(44px, 8vw, 96px) 0 44px;
}

.jo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(20px, 5vw, 62px);
  align-items: center;
}

.jo-kicker {
  display: inline-block;
  padding: 6px 10px;
  margin-bottom: 14px;
  background: #eafff2;
  border: 2px dashed var(--jo-border);
  transform: rotate(-1deg);
  font-size: 13px;
}

.jo-hero h1,
.page-hero h2,
.head-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 92px);
  line-height: .92;
  letter-spacing: 0;
}

.jo-hero h1 span {
  color: var(--jo-blue);
  text-shadow: 3px 3px 0 var(--jo-yellow);
}

.jo-lede {
  max-width: 700px;
  margin: 20px 0 0;
  color: #333;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
}

.jo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.jo-note {
  display: inline-block;
  margin-top: 18px;
  color: var(--jo-muted);
  font-size: 13px;
}

.jo-mock-browser {
  position: relative;
  min-height: 420px;
  padding: 34px 18px 20px;
  background: #f8f8f8;
  border: 4px solid var(--jo-border);
  box-shadow: var(--jo-shadow);
  transform: rotate(1deg);
}

.jo-browser-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 8px;
  background: #ddd;
  border-bottom: 3px solid var(--jo-border);
}

.jo-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--jo-border);
  background: var(--jo-red);
}

.jo-dot:nth-child(2) {
  background: var(--jo-yellow);
}

.jo-dot:nth-child(3) {
  background: var(--jo-green);
}

.jo-address {
  flex: 1;
  height: 16px;
  padding-left: 7px;
  background: #fff;
  border: 2px inset #bbb;
  color: #777;
  font-size: 11px;
  line-height: 12px;
}

.jo-bad-layout {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 12px;
}

.jo-crude-card,
.jo-card,
.jo-plan,
.jo-panel,
.jo-stat,
.box,
.card,
.info-box,
.article-content,
.article-sidebar,
.blog-post {
  background: var(--jo-paper) !important;
  border: 3px solid var(--jo-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--jo-shadow-soft) !important;
}

.jo-crude-card {
  padding: 12px;
  min-height: 95px;
}

.jo-crude-card:nth-child(2) {
  margin-top: 34px;
  background: #e9f0ff !important;
}

.jo-crude-card:nth-child(3) {
  grid-column: 1 / -1;
  width: 76%;
  margin-left: 14%;
  background: #fff3f3 !important;
}

.jo-pixel {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px 16px, var(--jo-blue) 16px 32px, transparent 32px),
    linear-gradient(#ff4b4b 8px, transparent 8px 16px, #ffe45c 16px 24px, transparent 24px);
  background-size: 40px 32px;
  border: 3px solid #111;
  image-rendering: pixelated;
}

.jo-section {
  padding: clamp(38px, 7vw, 84px) 0;
}

.jo-section.alt {
  background: #f5fbff;
  border-block: 4px solid var(--jo-border);
}

.jo-section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.jo-section-title h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1;
}

.jo-section-title p {
  max-width: 500px;
  margin: 0;
  color: var(--jo-muted);
  line-height: 1.7;
}

.jo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.jo-card,
.jo-plan,
.jo-panel,
.jo-stat {
  padding: 18px;
}

.jo-card:nth-child(2n),
.jo-plan:nth-child(2n) {
  transform: rotate(.6deg);
}

.jo-card:nth-child(3n),
.jo-plan:nth-child(3n) {
  transform: rotate(-.5deg);
}

.jo-card h3,
.jo-plan h3,
.jo-panel h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.jo-card p,
.jo-plan p,
.jo-panel p {
  margin: 0;
  color: #333;
  line-height: 1.65;
}

.jo-price {
  margin: 14px 0;
  font-size: 38px;
  font-weight: 900;
}

.jo-price small {
  font-size: 14px;
  color: var(--jo-muted);
}

.jo-list {
  margin: 16px 0;
  padding-left: 20px;
  line-height: 1.8;
}

.jo-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.jo-stat strong {
  display: block;
  font-size: clamp(26px, 4vw, 44px);
}

.jo-band {
  padding: 28px;
  background: var(--jo-yellow);
  border: 4px solid var(--jo-border);
  box-shadow: var(--jo-shadow);
}

.jo-band h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 58px);
}

.jo-band p {
  max-width: 780px;
  margin: 0 0 20px;
  line-height: 1.7;
}

.page-hero,
.bg-half-170 {
  margin: 0 !important;
  padding: clamp(44px, 8vw, 84px) 0 !important;
  color: var(--jo-ink) !important;
  background: #fff3f3 !important;
  border-bottom: 4px solid var(--jo-border);
}

.page-hero .container,
.section .container,
.space2x .container,
.container {
  width: min(var(--jo-max), calc(100% - 28px)) !important;
  max-width: var(--jo-max) !important;
}

.hero-slogan,
.text-muted,
.para-desc {
  color: #444 !important;
}

.section,
.space2x,
#contact-info,
.sections {
  padding: clamp(34px, 6vw, 70px) 0 !important;
}

.row {
  row-gap: 18px;
}

.footer {
  padding: 38px 0 0;
  background: #111;
  color: #fff;
  border-top: 5px solid var(--jo-yellow);
}

.foot {
  padding: 34px 0;
  background: var(--jo-yellow);
  border-top: 4px solid var(--jo-border);
  border-bottom: 4px solid var(--jo-border);
}

.jo-footer {
  background: #111;
  color: #fff;
  border-top: 5px solid var(--jo-yellow);
}

.jo-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 38px 0;
}

.jo-footer h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.jo-footer p {
  margin: 0;
  color: #d8d8d8;
  line-height: 1.7;
}

.jo-footer-links {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.jo-footer-links a {
  display: inline-block;
  padding: 7px 9px;
  color: #111;
  background: #fff;
  border: 2px solid #fff;
}

.jo-footer-mini {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed #777;
  color: #bbb;
  font-size: 13px;
}

.jo-float {
  will-change: transform;
}

@media (max-width: 900px) {
  .jo-header-inner {
    grid-template-columns: auto auto;
  }

  .jo-nav-toggle {
    display: block;
    justify-self: end;
  }

  .jo-nav,
  .jo-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  body.jo-menu-open .jo-nav,
  body.jo-menu-open .jo-actions {
    display: block;
  }

  .jo-nav-list,
  .jo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jo-nav-link,
  .jo-actions a {
    width: 100%;
    justify-content: flex-start;
  }

  .jo-dropdown {
    position: static;
    display: block;
    min-width: 0;
    margin: 4px 0 8px 18px;
    box-shadow: none;
  }

  .jo-hero-grid,
  .jo-footer-inner {
    grid-template-columns: 1fr;
  }

  .jo-grid,
  .jo-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jo-section-title {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .jo-topline-inner {
    display: block;
  }

  .jo-grid,
  .jo-stat-row,
  .jo-bad-layout {
    grid-template-columns: 1fr;
  }

  .jo-crude-card:nth-child(2),
  .jo-crude-card:nth-child(3) {
    width: auto;
    margin: 0;
  }

  .jo-mock-browser {
    min-height: 0;
    transform: none;
  }

  .jo-footer-links {
    justify-content: flex-start;
  }
}

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