:root {
  color-scheme: light;
  --background: #f8f8f3;
  --paper: #fff;
  --ink: #1d1c24;
  --muted: #54515c;
  --line: #e3e2dc;
  --accent: #dfff73;
  --purple: #4e348b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.55;
}

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

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

.container {
  width: min(74rem, calc(100% - 5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  font-size: 1.48rem;
  font-weight: 760;
  letter-spacing: -.055em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: .67rem;
  background: var(--ink);
}

.brand-mark::after, .spark, .hero-star span {
  clip-path: polygon(50% 0, 64% 35%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 35%);
}

.brand-mark::after {
  content: "";
  width: 1.35rem;
  aspect-ratio: 1;
  background: var(--accent);
}

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); margin-inline-start: auto; }
.language-menu { position: relative; z-index: 1; }
.language-menu summary {
  padding: .48rem .75rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--paper);
  font-size: .9rem;
  cursor: pointer;
}
.language-menu ul {
  position: absolute;
  inset-inline-end: 0;
  min-width: 11rem;
  margin: .45rem 0 0;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--paper);
  box-shadow: 0 .4rem 1rem #1d1c241a;
  list-style: none;
}
.language-menu a { display: block; padding: .4rem .55rem; border-radius: .35rem; }
.language-menu a:hover, .language-menu a[aria-current] { background: #f1ebfb; color: var(--purple); }
.site-nav a, .footer-inner > a:last-child { font-size: .94rem; color: var(--muted); }
.site-nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; text-underline-offset: .24em; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-block: clamp(2.25rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 5.25vw, 4.9rem);
  font-weight: 780;
  line-height: 1.13;
  letter-spacing: -.06em;
}

.hero h1 > span { display: block; }
.hero h1 > span:last-child { color: var(--purple); }
.hero h1 { overflow-wrap: anywhere; }

.hero-copy > p {
  max-width: 25rem;
  margin: 1.4rem 0 1.85rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 680;
  font-size: .95rem;
}

.button-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-primary:hover { background: var(--purple); border-color: var(--purple); }
.button-secondary:hover { background: var(--paper); border-color: var(--purple); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1.37;
  border: 1px solid #ece5fc;
  border-radius: 2rem;
  background: radial-gradient(ellipse at 49% 54%, #f5efff 0, #e9dfff 60%, #dfd1fa 100%);
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 84%;
  height: 48%;
  border: 1px solid #9877cc75;
  border-radius: 50%;
  transform: rotate(-26deg);
}

.orbit-inner { width: 62%; height: 74%; transform: rotate(38deg); }

.hero-star {
  display: grid;
  place-items: center;
  width: 32%;
  aspect-ratio: 1;
  transform: rotate(-10deg);
  filter: drop-shadow(0 .4rem .25rem #71529b48);
}

.hero-star span { width: 100%; height: 100%; background: linear-gradient(145deg, #f4ffa4, #d5f56a 72%); }
.spark { position: absolute; width: 5%; aspect-ratio: 1; background: #815db4; }
.spark-top { top: 25%; right: 34%; }
.spark-bottom { bottom: 22%; left: 31%; width: 3.5%; }

.hero-icon {
  position: absolute;
  width: var(--icon-size);
  height: auto;
  aspect-ratio: 1;
  border-radius: 25%;
  background: var(--paper);
  box-shadow: 0 .45rem 1.3rem #57398934;
  object-fit: cover;
  transform: rotate(var(--tilt));
}

.hero-pet { --icon-size: 17%; --tilt: -15deg; top: 21%; left: 17%; }
.hero-comma { --icon-size: 15%; --tilt: 12deg; right: 16%; top: 20%; padding: 2%; }
.hero-learn { --icon-size: 14%; --tilt: -9deg; right: 20%; bottom: 16%; }
.hero-dapper { --icon-size: 12%; --tilt: 12deg; left: 20%; bottom: 15%; }

.site-section { margin-bottom: clamp(4.25rem, 8vw, 7.5rem); }
.section-heading { margin-bottom: 1.35rem; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3.4vw, 2.65rem);
  letter-spacing: -.045em;
  line-height: 1.2;
}

.section-heading p { margin: .6rem 0 0; color: var(--muted); }

.app-grid, .tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.app-card, .tool-grid a {
  height: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.15rem;
}

.app-card:hover, .tool-grid a:hover { border-color: #9985ba; }
.app-links a:hover, .tool-grid a:hover h3 { text-decoration: underline; text-underline-offset: .19em; }

.app-art {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  aspect-ratio: 1.48;
}

.app-art img { display: block; }
.pet-art { background: #f2e4f4; }
.pet-art img { position: absolute; bottom: -15%; width: 86%; }
.comma-art { background: #ffefde; }
.comma-art img { position: absolute; bottom: -12%; width: 69%; }
.learn-art { background: #e7e4fa; }
.learn-art img { position: absolute; top: 13%; width: 45%; border-radius: 1rem; box-shadow: 0 .3rem 1rem #4137784d; transform: rotate(-9deg); }
.dapper-art { background: #dae5f2; }
.dapper-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.easycar-art { place-items: center; background: #e6eeee; }
.easycar-art img { width: 40%; height: auto; border-radius: 24%; }
.arrow-art, .screw-art { background: #ede2d5; }
.arrow-art img, .screw-art img { width: 100%; height: 100%; object-fit: cover; }
.screw-art img { position: absolute; inset: 0; object-position: 50% 52%; }
.pono-art { place-items: center; background: #e9e2f7; }
.pono-art img { width: 40%; height: auto; border-radius: 24%; }

.app-description {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.1rem 1.1rem;
}

.app-description h3, .tool-grid h3 { margin: 0; font-size: 1.15rem; line-height: 1.32; }
.app-description p, .tool-grid p { margin: .45rem 0 .9rem; color: var(--muted); font-size: .94rem; }
.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem;
  margin-top: auto;
}
.app-links a {
  padding: .42rem .62rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--purple);
  font-size: .83rem;
  font-weight: 650;
}
.app-links a:hover { border-color: #9985ba; }
.app-links .product-link { border-color: transparent; }
.tools-section { padding-top: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--line); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.25rem;
}

.filters button {
  min-height: 2.65rem;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .94rem;
  cursor: pointer;
}

.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tool-grid a { display: block; padding: 1.15rem 1.1rem; border-radius: .95rem; }
.tool-grid h3 { font-size: 1.06rem; }
.tool-grid p { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.25rem; }

@media (max-width: 68rem) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 59rem) {
  .container { width: calc(100% - 3rem); }
  .app-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 45rem) {
  .hero { grid-template-columns: 1fr; gap: 1.85rem; }
  .hero-art { aspect-ratio: 1.48; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.25rem); }
  .hero-copy > p { margin-block: .9rem 1.25rem; }
}

@media (max-width: 32rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .6rem; padding-block: .7rem; }
  .site-nav { order: 1; width: 100%; margin-inline-start: 0; }
  .hero-art { border-radius: 1.35rem; }
  .app-grid, .tool-grid { gap: .65rem; }
  .app-description, .tool-grid a { padding: .85rem .75rem; }
  .app-description h3 { font-size: 1.05rem; }
}
