:root {
  --ink: #25241e;
  --muted: #766f60;
  --paper: #fbf4e4;
  --line: #eee2c3;
  --red: #f26b4e;
  --green: #5e8c3f;
  --yellow: #f2a83d;
  --purple: #a77bd0;
  --teal: #3fae9e;
  --pink: #e87ba6;
  --white: #fffdf7;
  --a1: var(--red);
  --a2: var(--green);
  --a3: var(--yellow);
  --a4: var(--purple);
  --a5: var(--teal);
  --a6: var(--pink);
  --w-bold: 900;
}

@font-face {
  font-family: "Bagel Fat One";
  src: url("assets/fonts/all/bagel-fat-one-v2-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/all/nunito-v32-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/all/nunito-v32-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/all/nunito-v32-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/all/nunito-v32-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/all/nunito-v32-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.45;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header {
  margin-bottom: 18px;
}

.brand,
.header-button,
.button,
.subject-nav a,
.mini-grid a,
.site-footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  box-shadow: 0 5px 0 #d8512f;
  font-size: 25px;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.header-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
}

.header-button,
.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 5px 0 #000;
}

.button.secondary {
  background: var(--white);
  box-shadow: 0 5px 0 rgba(37, 36, 30, .14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 30px;
  align-items: center;
  min-height: 430px;
  padding: clamp(28px, 5vw, 56px);
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(248, 211, 223, .98), rgba(252, 230, 178, .98) 38%, rgba(210, 236, 190, .98) 70%, rgba(191, 232, 221, .98));
  box-shadow: 0 14px 0 rgba(37, 36, 30, .07);
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #3c4a2c;
  font-size: 14px;
  font-weight: 900;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
}

.hero h1 span {
  color: var(--green);
}

.hero p:not(.eyebrow) {
  max-width: 48ch;
  margin: 18px 0 0;
  color: #3f3d33;
  font-size: 17px;
}

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

.hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(94px, 1fr));
  gap: 14px;
  transform: rotate(-3deg);
}

.tile {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  box-shadow: 0 8px 0 rgba(37, 36, 30, .18);
}

.tile.red,
.app-icon.red {
  background: var(--red);
}

.tile.green,
.app-icon.green {
  background: var(--green);
}

.tile.yellow,
.app-icon.yellow {
  background: var(--yellow);
  color: #332715;
}

.tile.purple,
.app-icon.purple {
  background: var(--purple);
}

.subject-nav {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 20px;
  padding: 11px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 244, 228, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 0 rgba(37, 36, 30, .06);
}

.subject-nav a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.section {
  margin-top: 44px;
  scroll-margin-top: 96px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: .95;
}

.card-grid,
.collection-grid,
.mini-grid {
  display: grid;
  gap: 14px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.app-card {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 2px solid rgba(37, 36, 30, .08);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 7px 0 rgba(37, 36, 30, .1);
  transition: transform .15s ease, box-shadow .15s ease;
}

.app-card:hover,
.mini-grid a:hover,
.collection-grid article:hover {
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.app-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.app-subject {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-card strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.app-card > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.subject-list {
  display: grid;
  gap: 14px;
}

.subject-panel {
  padding: 18px;
  border: 2px solid rgba(37, 36, 30, .08);
  border-radius: 24px;
  box-shadow: 0 7px 0 rgba(37, 36, 30, .08);
  scroll-margin-top: 96px;
}

.subject-panel summary {
  list-style: none;
}

.subject-panel summary::-webkit-details-marker {
  display: none;
}

.subject-panel.red {
  background: #fde4dd;
}

.subject-panel.green {
  background: #e6f1de;
}

.subject-panel.yellow {
  background: #fcebc7;
}

.subject-panel.purple {
  background: #efe4f7;
}

.subject-panel.teal {
  background: #def2ef;
}

.subject-panel.pink {
  background: #f9e2ec;
}

.subject-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.subject-panel[open] .subject-title {
  margin-bottom: 14px;
}

.subject-title > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--white);
  font-size: 25px;
}

.subject-title h3 {
  margin: 0;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.subject-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.subject-title div {
  flex: 1;
  min-width: 0;
}

.subject-count {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.subject-arrow {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .74);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease;
}

.subject-panel[open] .subject-arrow {
  transform: rotate(90deg);
}

.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.mini-grid a {
  min-height: 58px;
  padding: 15px 16px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  font-weight: 900;
  transition: transform .15s ease, background .15s ease;
}

.collection-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.collection-grid article {
  min-height: 170px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 7px 0 rgba(37, 36, 30, .08);
  transition: transform .15s ease;
}

.collection-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
}

.collection-grid p {
  margin: 0;
  color: var(--muted);
}

.legal-page .bg {
  display: none;
}

.legal-page .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.legal-page .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.legal-page .logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  box-shadow: 0 5px 0 #d8512f;
  font-size: 25px;
}

.legal-page .brandText p {
  margin: 0;
}

.legal-page .brandTitle {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
}

.legal-page .brandSub {
  color: var(--muted);
  font-size: 13px;
}

.legal-page .btnRow,
.legal-page .heroActions,
.legal-page .footRight {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-page .btn,
.legal-page .linkBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(37, 36, 30, .14);
}

.legal-page .btnPrimary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 5px 0 #000;
}

.legal-page .btnIcon {
  margin-right: 7px;
}

.legal-page .hero {
  grid-template-columns: 1fr;
  min-height: 0;
}

.legal-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #3c4a2c;
  font-size: 14px;
  font-weight: 900;
}

.legal-page .kdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.legal-page .lead {
  max-width: 70ch;
  margin: 18px 0 0;
  color: #3f3d33;
  font-size: 17px;
}

.legal-page .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.legal-page .card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 7px 0 rgba(37, 36, 30, .08);
}

.legal-page .card.legal {
  grid-column: 1 / -1;
}

.legal-page .accentLine {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--green);
}

.legal-page .cardBody {
  padding-top: 8px;
}

.legal-page .appTitle {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.legal-page .text,
.legal-page .legal p,
.legal-page .legal li {
  color: #3f3d33;
  font-size: 15px;
  font-weight: 700;
}

.legal-page .text {
  margin: 0 0 14px;
}

.legal-page .legal h2 {
  margin: 28px 0 10px;
  color: var(--green);
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.legal-page .legal h2:first-child {
  margin-top: 0;
}

.legal-page .legal h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.legal-page .legal p {
  margin: 0 0 14px;
}

.legal-page .legal ul,
.legal-page .list {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page .legal li,
.legal-page .list li {
  margin-bottom: 8px;
}

.legal-page .index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 9px;
  padding: 0;
  list-style: none;
}

.legal-page .index li {
  margin: 0;
}

.legal-page .index-link,
.legal-page .inlineLink,
.legal-page .seal a,
.legal-page .legal a {
  color: var(--green);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-page .index-link {
  display: block;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fbf4e4;
  text-decoration: none;
}

.legal-page .m-elements,
.legal-page .glossary {
  padding-left: 22px;
}

.legal-page .seal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}

.legal-page footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.legal-page .footLeft {
  display: grid;
  gap: 4px;
}

.site-footer {
  margin-top: 54px;
  padding: 22px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.site-footer span:last-child {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 22px;
  }

  .hero-board {
    grid-template-columns: repeat(4, 1fr);
    transform: none;
  }

  .tile {
    border-radius: 16px;
    font-size: 28px;
  }

  .header-button {
    width: 100%;
  }

  .legal-page .wrap {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .legal-page .btnRow,
  .legal-page .footRight {
    width: 100%;
  }

  .legal-page .btn,
  .legal-page .linkBtn {
    flex: 1 1 160px;
  }

  .legal-page .cards {
    grid-template-columns: 1fr;
  }

  .subject-title {
    align-items: flex-start;
  }

  .subject-count {
    display: none;
  }
}

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