:root {
  color-scheme: light;
  --paper: #fff9ef;
  --surface: #ffffff;
  --ink: #1f2633;
  --muted: #697386;
  --line: #d9dee8;
  --coral: #ff6f61;
  --coral-strong: #db3f35;
  --sky: #2d9cdb;
  --sky-soft: #dff3ff;
  --green: #44b36a;
  --green-soft: #e6f8dd;
  --yellow: #ffd45a;
  --violet: #8564cf;
  --shadow: 0 18px 42px rgba(31, 38, 51, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
}

body {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(45, 156, 219, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(68, 179, 106, 0.07) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

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

.site-shell {
  min-height: 100svh;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(31, 38, 51, 0.1);
  background: rgba(255, 249, 239, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  font-size: 1.25rem;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topnav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 38, 51, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover {
  border-color: rgba(45, 156, 219, 0.48);
  background: #ffffff;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.legal-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.legal-links a:hover {
  color: var(--sky);
  text-decoration: underline;
}

.launchpad {
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 58px) 0 28px;
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
}

.intro {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 470px;
}

.kicker {
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green-soft);
  box-shadow: 3px 3px 0 var(--ink);
  color: #225532;
  font-size: 0.86rem;
  font-weight: 900;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.65rem, 8vw, 6.65rem);
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 9ch;
}

.intro-copy {
  margin: 0;
  color: #4b5565;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.5;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}

.app-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--ink);
}

.app-card-paint {
  transform: rotate(-1.2deg);
}

.app-card-bugs {
  transform: rotate(1deg);
  margin-top: 30px;
}

.app-card-rysuje {
  transform: rotate(0.8deg);
  margin-top: 14px;
}

.preview {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: #eef6f9;
}

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

.preview-paint {
  background: #ffffff;
}

.preview-paint img {
  object-position: center;
}

.preview-bugs::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(10, 20, 14, 0.76), rgba(10, 20, 14, 0));
}

.preview-rysujeapp {
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(45, 156, 219, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(68, 179, 106, 0.1) 1px, transparent 1px),
    #fffdf7;
  background-size: 22px 22px;
}

.phone-preview {
  width: min(72%, 150px);
  aspect-ratio: 9 / 16;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 9px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #111827;
  box-shadow: 5px 5px 0 rgba(31, 38, 51, 0.22);
}

.phone-paper {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #ffffff;
}

.phone-paper::before {
  content: "";
  position: absolute;
  inset: 13% 16% auto;
  height: 7px;
  border-radius: 999px;
  background: var(--yellow);
}

.scribble,
.sticker-star {
  position: absolute;
  display: block;
}

.scribble {
  width: 58%;
  height: 28%;
  border: 8px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.scribble-coral {
  left: 12%;
  top: 31%;
  color: var(--coral);
  transform: rotate(-18deg);
}

.scribble-sky {
  right: 8%;
  top: 48%;
  color: var(--sky);
  transform: rotate(21deg);
}

.scribble-green {
  left: 24%;
  bottom: 12%;
  color: var(--green);
  transform: rotate(8deg);
}

.sticker-star {
  right: 18%;
  top: 28%;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 55%, 79% 91%, 50% 70%, 21% 91%, 32% 55%, 2% 35%, 39% 34%);
}

.mini-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mini-palette span {
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.mini-palette span:nth-child(1) {
  background: var(--coral);
}

.mini-palette span:nth-child(2) {
  background: var(--sky);
}

.mini-palette span:nth-child(3) {
  background: var(--green);
}

.mini-palette span:nth-child(4) {
  background: var(--yellow);
}

.app-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.app-eyebrow {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--sky-soft);
  color: #155b7d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-card-bugs .app-eyebrow {
  background: var(--green-soft);
  color: #245c36;
}

.app-card-rysuje .app-eyebrow {
  background: #f0e9ff;
  color: #5a3da5;
}

.app-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.app-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.43;
  font-weight: 650;
}

.app-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--coral);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.app-card-bugs .app-button {
  background: var(--green);
}

.app-card-rysuje .app-button {
  background: var(--violet);
}

.app-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.app-button:hover {
  background: var(--coral-strong);
}

.app-card-bugs .app-button:hover {
  background: #2f9652;
}

.app-card-rysuje .app-button:hover {
  background: #6b4eb3;
}

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

.studio-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 52px;
}

.studio-panel,
.studio-note {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--ink);
}

.studio-panel {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-panel p {
  margin: 3px 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  line-height: 1.1;
  font-weight: 900;
}

.meter {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 48px;
  flex: 0 0 auto;
}

.meter span {
  width: 12px;
  border: 2px solid var(--ink);
  border-radius: 6px 6px 4px 4px;
  background: var(--yellow);
}

.meter span:nth-child(1) {
  height: 24px;
  background: var(--coral);
}

.meter span:nth-child(2) {
  height: 40px;
  background: var(--sky);
}

.meter span:nth-child(3) {
  height: 30px;
  background: var(--green);
}

.meter span:nth-child(4) {
  height: 46px;
  background: var(--yellow);
}

.meter span:nth-child(5) {
  height: 34px;
  background: var(--violet);
}

.studio-note {
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--ink);
  font-weight: 850;
}

.studio-note svg {
  width: 24px;
  height: 24px;
  color: var(--coral-strong);
  flex: 0 0 auto;
}

.studio-drawing {
  align-self: stretch;
  min-height: 128px;
  margin: 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.2deg);
}

.studio-drawing img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  object-position: center 42%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
}

.studio-drawing figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sky);
  text-decoration: underline;
}

@media (max-width: 920px) {
  .launchpad {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro {
    max-width: 760px;
  }

  h1 {
    max-width: 12ch;
  }

  .app-card-bugs {
    margin-top: 0;
  }

  .app-card-rysuje {
    margin-top: 0;
  }

  .studio-band {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  }

  .studio-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topnav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-links {
    justify-content: flex-start;
  }

  .launchpad {
    min-height: auto;
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

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

  .app-card {
    transform: none;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .studio-band {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1180px);
    padding-bottom: 32px;
  }

  .studio-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-drawing {
    transform: none;
  }

  .studio-drawing img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .site-footer {
    justify-content: flex-start;
    width: min(100% - 24px, 1180px);
    padding-bottom: 24px;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    white-space: normal;
  }

  .topnav a {
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .app-card {
    padding: 10px;
  }
}

/* Open Design draft: confident creative studio for ages 7-10. */
:root {
  --paper: #fff7fd;
  --ink: #241833;
  --muted: #675d78;
  --line: #e8d8f3;
  --coral: #ff7a5c;
  --coral-strong: #e85f43;
  --sky: #1db9e8;
  --sky-soft: #e5f8ff;
  --green: #68cf72;
  --green-soft: #edffe9;
  --yellow: #ffd85f;
  --violet: #7c5cff;
  --pink: #ff5fa2;
}

body {
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 185, 232, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #fff7fd 0%, #f6fbff 46%, #fffbea 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 86px 18px auto auto;
  width: 148px;
  height: 96px;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(36deg, transparent 45%, var(--pink) 46% 55%, transparent 56%),
    linear-gradient(-36deg, transparent 45%, var(--yellow) 46% 55%, transparent 56%),
    linear-gradient(90deg, transparent 45%, var(--sky) 46% 55%, transparent 56%);
}

.topbar {
  border-bottom: 2px solid rgba(36, 24, 51, 0.12);
  background: rgba(255, 247, 253, 0.9);
}

.brand-mark {
  background:
    linear-gradient(135deg, var(--yellow) 0 48%, var(--pink) 49% 100%);
  color: var(--ink);
}

.topnav a {
  border: 2px solid rgba(36, 24, 51, 0.16);
  background: #ffffff;
  box-shadow: 3px 3px 0 rgba(36, 24, 51, 0.16);
}

.topnav a:nth-child(1):hover {
  background: #fff1f8;
  border-color: var(--pink);
}

.topnav a:nth-child(2):hover {
  background: #e5f8ff;
  border-color: var(--sky);
}

.topnav a:nth-child(3):hover {
  background: #edffe9;
  border-color: var(--green);
}

.kicker {
  background: #fff1f8;
  color: #86305d;
}

h1 {
  text-shadow: 4px 4px 0 rgba(255, 216, 95, 0.82);
}

.intro-copy {
  color: #584b66;
}

.app-card {
  border-color: var(--ink);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--pink), var(--yellow), var(--sky), var(--green)) border-box;
  box-shadow: 8px 8px 0 rgba(36, 24, 51, 0.92);
}

.app-card::before {
  content: "";
  width: 56px;
  height: 18px;
  justify-self: center;
  margin-top: -28px;
  margin-bottom: -8px;
  border: 2px solid rgba(36, 24, 51, 0.18);
  border-radius: 4px;
  background: rgba(255, 216, 95, 0.72);
  transform: rotate(-3deg);
}

.app-card-rysuje::before {
  background: rgba(124, 92, 255, 0.25);
  transform: rotate(3deg);
}

.app-card-bugs::before {
  background: rgba(104, 207, 114, 0.36);
}

.app-eyebrow {
  border: 1px solid rgba(36, 24, 51, 0.12);
}

.app-button {
  border-radius: 8px;
}

.studio-panel,
.studio-note,
.studio-drawing {
  background: #ffffff;
  box-shadow: 6px 6px 0 rgba(36, 24, 51, 0.9);
}

/* Open Design v2 polish: less skin, more product-grade launchpad. */
.intro {
  position: relative;
}

.intro::after {
  content: "";
  width: 118px;
  height: 14px;
  margin-top: 2px;
  border: 2px solid rgba(36, 24, 51, 0.16);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--sky), var(--green));
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-action {
  background: var(--yellow);
}

.secondary-action {
  background: #ffffff;
}

.primary-action svg,
.secondary-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.primary-action:active,
.secondary-action:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 430px;
  margin: 6px 0 0;
}

.studio-stats div {
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(36, 24, 51, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 3px 3px 0 rgba(36, 24, 51, 0.12);
}

.studio-stats dt {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 950;
}

.studio-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-grid {
  perspective: 1200px;
}

.app-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 10px 12px 0 rgba(36, 24, 51, 0.95);
}

.app-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(36, 24, 51, 0.16);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 2px 2px 0 rgba(36, 24, 51, 0.16);
}

.app-card-rysuje::after {
  background: var(--violet);
}

.app-card-bugs::after {
  background: var(--green);
}

.preview {
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.64);
}

.app-copy h2 {
  color: var(--ink);
}

.app-copy p {
  color: #5d5369;
}

@media (max-width: 680px) {
  .studio-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .studio-stats {
    grid-template-columns: 1fr;
  }
}
