@layer reset, base, components, pages, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

  body,
  h1,
  h2,
  h3,
  p,
  ul,
  ol,
  dl,
  dd,
  figure {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
  }

  img,
  picture,
  svg {
    display: block;
    max-width: 100%;
  }

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

@layer base {
  :root {
    --ink: #17152f;
    --ink-soft: #35315a;
    --paper: #f8f8fc;
    --white: #ffffff;
    --electric: #3657ff;
    --electric-dark: #1e37bd;
    --lemon: #ffdf3f;
    --coral: #ff6159;
    --bubble: #8f55ff;
    --aqua: #2dceb8;
    --lavender: #e8e2ff;
    --line: #292645;
    --muted: #625e7a;
    --focus: #f23d85;
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow-pop: 7px 7px 0 var(--ink);
    --container: min(1180px, calc(100% - 40px));
    --font-display: "Coiny", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    --font-body: "Atkinson Hyperlegible Next", "Trebuchet MS", sans-serif;
    --font-utility: "Trebuchet MS", sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --z-header: 30;
    --z-menu: 40;
  }

  html {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-synthesis: none;
  }

  body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  h1,
  h2,
  h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 7.5vw, 5.75rem);
  }

  h2 {
    font-size: clamp(2.15rem, 4.8vw, 4.25rem);
  }

  h3 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
  }

  p,
  li,
  dd {
    text-wrap: pretty;
  }

  p {
    max-width: 70ch;
  }

  a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
  }

  :focus-visible {
    outline: 4px solid var(--focus);
    outline-offset: 4px;
  }

  ::selection {
    background: var(--lemon);
    color: var(--ink);
  }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: calc(var(--z-menu) + 10);
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    transform: translateY(-180%);
    border: 3px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--lemon);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms var(--ease-out);
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .site-header {
    position: sticky;
    z-index: var(--z-header);
    top: 0;
    border-bottom: 2px solid var(--ink);
    background: rgba(248, 248, 252, 0.96);
  }

  .site-header-inner {
    width: var(--container);
    min-height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1;
    text-decoration: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    transform: rotate(-5deg);
    border: 3px solid var(--ink);
    border-radius: 9px;
    background: var(--lemon);
    color: var(--ink);
    font-family: var(--font-utility);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--font-utility);
    font-size: 0.93rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms var(--ease-out);
  }

  .site-nav a:hover {
    transform: translateY(-2px);
    background: var(--lavender);
  }

  .site-nav .nav-cta {
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--white);
  }

  .site-nav .nav-cta:hover {
    background: var(--electric);
  }

  .nav-toggle {
    min-width: 46px;
    min-height: 46px;
    display: none;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--lemon);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    font-family: var(--font-utility);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms ease;
  }

  .button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .button:active {
    transform: translate(1px, 1px);
    box-shadow: none;
  }

  .button-primary {
    background: var(--lemon);
    color: var(--ink);
  }

  .button-primary:hover {
    background: #ffe866;
  }

  .button-secondary {
    background: var(--white);
    color: var(--ink);
  }

  .button-ink {
    background: var(--ink);
    color: var(--white);
  }

  .section-heading {
    width: var(--container);
    margin-inline: auto;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
  }

  .section-heading > div {
    display: grid;
    gap: 12px;
  }

  .section-heading h2 {
    max-width: 14ch;
  }

  .section-heading p {
    max-width: 58ch;
    color: var(--ink-soft);
    font-size: 1.08rem;
  }

  .section-label,
  .app-tag {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-family: var(--font-utility);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1;
  }

  .category-nav {
    width: var(--container);
    margin: 34px auto 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-nav button,
  .category-nav a {
    min-height: 44px;
    padding: 9px 15px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-utility);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
  }

  .category-nav button[aria-pressed="true"],
  .category-nav button:hover,
  .category-nav a:hover {
    background: var(--ink);
    color: var(--white);
  }

  .app-list {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 22px;
    list-style: none;
  }

  .app-card {
    --card-tilt: 0deg;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: rotate(var(--card-tilt));
    border: 3px solid var(--ink);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-pop);
    transition: transform 220ms var(--ease-out), opacity 180ms ease;
  }

  .app-card:nth-child(5n + 2) {
    --card-tilt: 0.55deg;
  }

  .app-card:nth-child(5n + 4) {
    --card-tilt: -0.55deg;
  }

  .app-card[hidden] {
    display: none;
  }

  .app-card:hover {
    transform: translate(-3px, -5px) rotate(calc(var(--card-tilt) * -1));
    box-shadow: 11px 12px 0 var(--accent, var(--electric));
  }

  .app-card-media {
    position: relative;
    min-height: 230px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background: var(--surface, var(--lavender));
    color: var(--ink);
    text-decoration: none;
  }

  .app-card-media::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -42px;
    bottom: -56px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--accent, var(--lemon));
  }

  .app-card-media img {
    position: relative;
    z-index: 1;
    width: 156px;
    height: 156px;
    object-fit: cover;
    transform: rotate(-3deg);
    border: 4px solid var(--white);
    border-radius: 28%;
    box-shadow: 5px 6px 0 var(--ink);
    transition: transform 260ms var(--ease-out);
  }

  .app-card:hover .app-card-media img {
    transform: rotate(3deg) scale(1.045);
  }

  .app-card-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 21px 20px 23px;
    border-top: 3px solid var(--ink);
  }

  .app-card-copy h3 {
    font-family: var(--font-body);
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
  }

  .app-card-copy h3 a {
    text-decoration: none;
  }

  .app-card-copy h3 a:hover {
    color: var(--electric-dark);
    text-decoration: underline;
  }

  .app-card-copy .button {
    margin-top: auto;
  }

  .catalog-status {
    width: var(--container);
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
  }

  .app-card-copy p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .app-card-arrow {
    margin-top: auto;
    color: var(--electric-dark);
    font-family: var(--font-utility);
    font-size: 0.9rem;
    font-weight: 900;
  }

  .site-faq {
    width: 100%;
  }

  .site-faq > .section-heading,
  .site-faq > .faq-list {
    width: min(880px, calc(100% - 40px));
    margin-inline: auto;
  }

  .site-faq details {
    border-top: 2px solid var(--ink);
  }

  .site-faq details:last-child {
    border-bottom: 2px solid var(--ink);
  }

  .site-faq summary {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 54px 18px 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
  }

  .site-faq summary::-webkit-details-marker {
    display: none;
  }

  .site-faq summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--lemon);
    font-size: 1.35rem;
    line-height: 1;
  }

  .site-faq details[open] summary::after {
    content: "−";
    background: var(--aqua);
  }

  .site-faq details p {
    padding: 0 48px 24px 0;
    color: var(--ink-soft);
  }

  .site-footer {
    position: relative;
    overflow: hidden;
    padding: 70px 0 30px;
    border-top: 3px solid var(--ink);
    background: var(--ink);
    color: var(--white);
  }

  .site-footer::after {
    content: "AA";
    position: absolute;
    right: -20px;
    bottom: -90px;
    color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    font-size: clamp(12rem, 30vw, 26rem);
    line-height: 1;
    pointer-events: none;
  }

  .footer-inner {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
    gap: 48px;
  }

  .footer-intro {
    display: grid;
    align-content: start;
    gap: 16px;
  }

  .footer-intro h2 {
    max-width: 12ch;
    color: var(--white);
    font-size: clamp(2.3rem, 5vw, 4.7rem);
  }

  .footer-intro p {
    max-width: 48ch;
    color: #d7d4ee;
  }

  .footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .footer-column h3 {
    margin-bottom: 5px;
    color: var(--lemon);
    font-family: var(--font-utility);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }

  .footer-column a {
    width: fit-content;
    color: var(--white);
  }

  .footer-bottom {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin: 52px auto 0;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    border-top: 1px solid #514d70;
    color: #c9c5e2;
    font-size: 0.9rem;
  }
}

@layer pages {
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(780px, calc(100svh - 72px));
    display: grid;
    align-items: center;
    border-bottom: 3px solid var(--ink);
    background: var(--electric);
    color: var(--white);
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(260px, 34vw, 560px);
    aspect-ratio: 1;
    top: -20%;
    left: 33%;
    transform: rotate(17deg);
    border: 4px solid var(--ink);
    border-radius: 14px;
    background: var(--lemon);
  }

  .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(300px, 42vw, 700px);
    aspect-ratio: 1;
    right: -22%;
    bottom: -56%;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
  }

  .hero-inner {
    width: var(--container);
    margin-inline: auto;
    padding-block: clamp(72px, 9vw, 128px);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    align-items: center;
    gap: clamp(48px, 8vw, 108px);
  }

  .hero-copy {
    display: grid;
    justify-items: start;
    gap: 24px;
  }

  .hero-copy .section-label {
    transform: rotate(-2deg);
    background: var(--lemon);
    color: var(--ink);
  }

  .hero-copy h1 {
    color: var(--white);
    text-shadow: 4px 5px 0 var(--ink);
  }

  .hero-copy p {
    max-width: 54ch;
    color: #f1efff;
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    line-height: 1.55;
  }

  .hero-copy .button-secondary {
    background: transparent;
    color: var(--white);
  }

  .hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e1ff;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .hero-note::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--aqua);
  }

  .hero-stage {
    position: relative;
    min-height: 520px;
  }

  .sticker-deck {
    position: absolute;
    inset: 0;
  }

  .hero-sticker {
    --sticker-x: 0px;
    --sticker-y: 0px;
    --sticker-r: 0deg;
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(190px, 23vw, 285px);
    aspect-ratio: 1;
    overflow: hidden;
    transform: translate(calc(-50% + var(--sticker-x)), calc(-50% + var(--sticker-y))) rotate(var(--sticker-r));
    border: 6px solid var(--white);
    border-radius: 26%;
    background: var(--white);
    box-shadow: 9px 11px 0 var(--ink);
    transition: transform 520ms var(--ease-out), filter 320ms ease;
  }

  .hero-sticker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-sticker span {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 7px 9px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--lemon);
    color: var(--ink);
    font-family: var(--font-utility);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
  }

  .hero-sticker[data-deck="0"] {
    z-index: 5;
    --sticker-x: 0px;
    --sticker-y: -12px;
    --sticker-r: -3deg;
  }

  .hero-sticker[data-deck="1"] {
    z-index: 4;
    --sticker-x: 78px;
    --sticker-y: 15px;
    --sticker-r: 11deg;
  }

  .hero-sticker[data-deck="2"] {
    z-index: 3;
    --sticker-x: -78px;
    --sticker-y: 28px;
    --sticker-r: -13deg;
  }

  .hero-sticker[data-deck="3"] {
    z-index: 2;
    --sticker-x: 25px;
    --sticker-y: 55px;
    --sticker-r: 18deg;
    filter: saturate(0.8) brightness(0.88);
  }

  .hero-sticker[data-deck="4"] {
    z-index: 1;
    --sticker-x: -28px;
    --sticker-y: 64px;
    --sticker-r: -20deg;
    filter: saturate(0.65) brightness(0.78);
  }

  .deck-controls {
    position: absolute;
    z-index: 8;
    right: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .deck-controls button {
    min-width: 50px;
    min-height: 50px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--lemon);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    transition: transform 180ms var(--ease-out);
  }

  .deck-controls button:hover {
    transform: rotate(8deg) scale(1.04);
  }

  .deck-shuffle {
    position: absolute;
    z-index: 8;
    right: 0;
    bottom: 8px;
  }

  .app-catalog {
    padding-block: clamp(86px, 11vw, 150px);
    background: var(--paper);
  }

  .studio-note {
    padding-block: clamp(88px, 11vw, 150px);
    border-block: 3px solid var(--ink);
    background: var(--lemon);
  }

  .studio-note-inner {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(48px, 9vw, 120px);
    align-items: start;
  }

  .studio-note h2 {
    max-width: 10ch;
  }

  .studio-note-copy {
    display: grid;
    gap: 22px;
    color: var(--ink-soft);
    font-size: 1.12rem;
  }

  .studio-principles {
    display: grid;
    gap: 0;
    list-style: none;
  }

  .studio-principles li {
    padding: 17px 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: baseline;
    gap: 12px;
    border-top: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 800;
  }

  .studio-principles li::before {
    content: "✦";
    color: var(--electric-dark);
    font-size: 1.15rem;
  }

  .faq-section {
    padding-block: clamp(86px, 11vw, 140px);
    background: var(--white);
  }

  .faq-section .section-heading {
    width: min(880px, calc(100% - 40px));
    margin-bottom: 38px;
  }

  .breadcrumb {
    width: var(--container);
    margin-inline: auto;
    padding-block: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 0.92rem;
  }

  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
  }

  .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 7px;
    color: var(--muted);
  }

  .breadcrumb a {
    color: var(--electric-dark);
    font-weight: 800;
  }

  .app-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(58px, 8vw, 104px);
    border-block: 3px solid var(--ink);
    background: var(--surface, var(--lavender));
  }

  .app-hero::after {
    content: "";
    position: absolute;
    width: clamp(220px, 31vw, 470px);
    aspect-ratio: 1;
    right: -10%;
    bottom: -45%;
    transform: rotate(18deg);
    border: 4px solid var(--ink);
    border-radius: var(--radius-md);
    background: var(--accent);
  }

  .app-hero-inner {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(240px, 0.72fr);
    align-items: center;
    gap: clamp(46px, 8vw, 100px);
  }

  .app-icon-frame {
    position: relative;
    width: min(100%, 330px);
    aspect-ratio: 1;
    justify-self: center;
    transform: rotate(-3deg);
    border: 7px solid var(--white);
    border-radius: 28%;
    background: var(--white);
    box-shadow: 11px 13px 0 var(--ink);
  }

  .app-hero .hero-stage {
    min-height: 390px;
    display: grid;
    place-items: center;
  }

  .app-icon-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24%;
  }

  .app-hero-copy {
    display: grid;
    justify-items: start;
    gap: 21px;
  }

  .app-hero-copy h1 {
    max-width: 14ch;
    color: var(--surface-ink, var(--ink));
  }

  .app-hero-copy > p {
    max-width: 58ch;
    color: var(--surface-ink, var(--ink-soft));
    font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  }

  .app-hero-copy .app-tag {
    color: var(--surface-ink, var(--ink));
  }

  .app-facts {
    border-bottom: 3px solid var(--ink);
    background: var(--ink);
    color: var(--white);
  }

  .app-facts .section-heading {
    padding-block: 44px 30px;
  }

  .app-facts .section-heading h2 {
    color: var(--white);
  }

  .app-facts .section-heading p {
    color: #d9d5ef;
  }

  .fact-list {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    list-style: none;
  }

  .fact-list > * {
    min-width: 0;
    padding: 24px 22px;
    border-right: 1px solid #514d70;
  }

  .fact-list > *:first-child {
    border-left: 1px solid #514d70;
  }

  .fact-list dt,
  .fact-label {
    margin-bottom: 5px;
    color: var(--lemon);
    font-family: var(--font-utility);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .fact-list dd,
  .fact-value {
    overflow-wrap: anywhere;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 700;
  }

  .content-section {
    padding-block: clamp(76px, 10vw, 126px);
  }

  .content-section:nth-of-type(even) {
    background: var(--white);
  }

  .content-grid {
    width: min(1040px, calc(100% - 40px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(210px, 0.66fr) minmax(0, 1.34fr);
    gap: clamp(42px, 8vw, 100px);
    align-items: start;
  }

  .content-grid > header {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 14px;
  }

  .content-copy {
    display: grid;
    gap: 20px;
    color: var(--ink-soft);
    font-size: 1.08rem;
  }

  .feature-list,
  .steps {
    display: grid;
    gap: 0;
    list-style: none;
  }

  .feature-list li,
  .steps li {
    position: relative;
    padding: 19px 0 19px 48px;
    border-top: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 750;
  }

  .feature-list li:last-child,
  .steps li:last-child {
    border-bottom: 2px solid var(--ink);
  }

  .feature-list li::before {
    content: "✓";
    position: absolute;
    top: 18px;
    left: 4px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--aqua);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 900;
  }

  .steps {
    counter-reset: step;
  }

  .steps li {
    counter-increment: step;
  }

  .steps li::before {
    content: counter(step);
    position: absolute;
    top: 17px;
    left: 2px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: rotate(-4deg);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--lemon);
    color: var(--ink);
    font-family: var(--font-utility);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .disclaimer {
    width: min(1040px, calc(100% - 40px));
    margin: clamp(48px, 7vw, 78px) auto;
    padding: 18px 20px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    background: #fff5ba;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 700;
  }

  .disclaimer h2 {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .related-apps {
    padding-block: clamp(76px, 10vw, 126px);
    border-top: 3px solid var(--ink);
    background: var(--lavender);
  }

  .related-apps .section-heading {
    margin-bottom: 34px;
  }

  .app-page .faq-section {
    border-top: 3px solid var(--ink);
  }

  .app-showcase {
    width: 100%;
    margin: 20px auto 0;
    overflow: hidden;
    transform: rotate(0.4deg);
    border: 4px solid var(--ink);
    border-radius: var(--radius-md);
    background: var(--ink);
    box-shadow: 9px 10px 0 var(--accent, var(--electric));
  }

  .app-showcase img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .error-mark {
    width: min(68vw, 280px);
    height: min(68vw, 280px);
    border-width: 6px;
    border-radius: 28%;
    background: var(--lemon);
    color: var(--electric-dark);
    font-size: clamp(3.2rem, 9vw, 5.8rem);
    box-shadow: 12px 14px 0 var(--ink);
  }

  .app-showcase figcaption {
    padding: 13px 16px;
    color: var(--white);
    font-size: 0.9rem;
  }

  .privacy-page {
    background: var(--lavender);
  }

  .legal-shell {
    width: min(940px, calc(100% - 32px));
    margin-inline: auto;
    padding-block: clamp(44px, 7vw, 84px) clamp(84px, 11vw, 140px);
  }

  .legal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 64px);
    border: 3px solid var(--ink);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--lemon);
  }

  .legal-hero::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -58px;
    bottom: -88px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
  }

  .legal-hero > * {
    position: relative;
    z-index: 1;
  }

  .legal-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 6vw, 5rem);
  }

  .legal-hero p {
    max-width: 58ch;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 1.08rem;
  }

  .legal-actions {
    margin-top: 24px;
  }

  .legal-document {
    padding: clamp(28px, 5vw, 58px);
    border: 3px solid var(--ink);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .legal-content {
    max-width: 72ch;
    margin-inline: auto;
    color: var(--ink-soft);
  }

  .legal-content > h2 {
    margin-top: 2.1em;
    margin-bottom: 0.65em;
    padding-top: 0.85em;
    border-top: 2px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .legal-content > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .legal-content p + p,
  .legal-content p + div,
  .legal-content div + p,
  .legal-content ul + p {
    margin-top: 1em;
  }

  .legal-content ul {
    margin: 14px 0 22px 1.2em;
    padding-left: 1em;
  }

  .legal-content li + li {
    margin-top: 7px;
  }

  .legal-content a {
    color: var(--electric-dark);
    font-weight: 700;
    overflow-wrap: anywhere;
  }
}

@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .no-js [data-filter],
  .no-js [data-deck-shuffle] {
    display: none;
  }

  [data-tilt] {
    will-change: transform;
  }

  @media (max-width: 900px) {
    :root {
      --container: min(100% - 30px, 760px);
    }

    .nav-toggle {
      display: grid;
    }

    .site-nav {
      position: fixed;
      z-index: var(--z-menu);
      top: 74px;
      right: 15px;
      left: 15px;
      display: grid;
      padding: 12px;
      transform: translateY(-14px) scale(0.98);
      transform-origin: top;
      border: 3px solid var(--ink);
      border-radius: var(--radius-md);
      background: var(--white);
      box-shadow: 7px 7px 0 var(--ink);
      opacity: 0;
      visibility: hidden;
      transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 180ms ease;
    }

    .site-nav[data-open="true"] {
      transform: translateY(0) scale(1);
      opacity: 1;
      visibility: visible;
    }

    .site-nav a {
      width: 100%;
      justify-content: center;
    }

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

    .hero {
      min-height: 0;
    }

    .hero-stage {
      min-height: 470px;
    }

    .studio-note-inner,
    .content-grid {
      grid-template-columns: 1fr;
    }

    .content-grid > header {
      position: static;
    }

    .fact-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fact-list > *:nth-child(2) {
      border-right: 1px solid #514d70;
    }

    .fact-list > *:nth-child(n + 3) {
      border-top: 1px solid #514d70;
    }

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

    .footer-intro {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 620px) {
    :root {
      --container: min(100% - 24px, 560px);
    }

    body {
      font-size: 1rem;
    }

    .site-header-inner {
      min-height: 64px;
    }

    .brand-mark {
      width: 38px;
      height: 38px;
    }

    .brand-name {
      max-width: 140px;
    }

    .site-nav {
      top: 66px;
      right: 12px;
      left: 12px;
    }

    .hero-inner {
      padding-block: 54px 70px;
      gap: 30px;
    }

    .hero-copy {
      gap: 19px;
    }

    .hero-copy h1 {
      text-shadow: 3px 4px 0 var(--ink);
    }

    .hero-stage {
      min-height: 390px;
    }

    .hero-sticker {
      width: min(62vw, 240px);
    }

    .hero-sticker[data-deck="1"] {
      --sticker-x: 54px;
    }

    .hero-sticker[data-deck="2"] {
      --sticker-x: -54px;
    }

    .deck-controls {
      right: 6px;
    }

    .section-heading {
      align-items: start;
      flex-direction: column;
    }

    .category-nav {
      flex-wrap: nowrap;
      overflow-x: auto;
      margin-top: 28px;
      padding: 3px 3px 10px;
      scroll-snap-type: x proximity;
    }

    .category-nav button,
    .category-nav a {
      flex: 0 0 auto;
      scroll-snap-align: start;
    }

    .app-list {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .app-card-media {
      min-height: 205px;
    }

    .studio-note-inner {
      gap: 34px;
    }

    .app-hero {
      padding-block: 48px 62px;
    }

    .app-hero-inner {
      gap: 42px;
    }

    .app-icon-frame {
      width: min(72vw, 270px);
      box-shadow: 8px 9px 0 var(--ink);
    }

    .fact-list {
      grid-template-columns: 1fr;
    }

    .fact-list > * {
      border-right: 1px solid #514d70;
      border-left: 1px solid #514d70;
    }

    .fact-list > *:not(:first-child) {
      border-top: 1px solid #514d70;
    }

    .content-section {
      padding-block: 68px;
    }

    .content-grid {
      width: var(--container);
      gap: 30px;
    }

    .site-faq summary {
      min-height: 66px;
      padding-right: 48px;
      font-size: 1.05rem;
    }

    .site-faq details p {
      padding-right: 0;
    }

    .footer-inner {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .footer-intro {
      grid-column: auto;
    }

    .footer-bottom {
      margin-top: 40px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }

    .app-card,
    .app-card > a:hover,
    .app-card > a:hover .app-card-media img,
    .hero-sticker {
      transform: none;
    }
  }
}
