@import url("/static/css/site-typography.css");
:root {
  --paper: #f7f7f2;
  --ink: #20231e;
  --muted: #62665d;
  --accent: #304bd4;
  --line: #dedfd6;
  --body-size: var(--type-body);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  font-size: var(--body-size);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  font: inherit;
  cursor: pointer;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #3858f3;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
p {
  line-height: 1.65;
}
h1 {
  font-size: clamp(44px, 6.4vw, 88px);
}
h2 {
  font-size: clamp(32px, 4vw, 56px);
}
h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.masthead,
.intro,
.collection,
.about,
.footer,
.product-page {
  width: min(1320px, calc(100% - 96px));
  margin-inline: auto;
}
.masthead {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.wordmark {
  font-size: 30px;
  letter-spacing: -0.025em;
  font-weight: 550;
  white-space: nowrap;
}
.word-dot {
  color: var(--accent);
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}
.masthead nav > a,
summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.masthead nav > a:hover,
.footer a:hover {
  color: var(--accent);
}
.language-menu {
  position: relative;
}
.language-menu summary {
  gap: 9px;
  list-style: none;
}
.language-menu summary::-webkit-details-marker {
  display: none;
}
.language-menu > div {
  position: absolute;
  right: 0;
  top: 50px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  min-width: 150px;
  box-shadow: 0 12px 30px #20231e15;
}
.language-menu a {
  display: block;
  padding: 10px;
}
.language-menu a:hover,
.language-menu a[aria-current] {
  background: #e5e8ed;
}
.intro {
  padding-block: 56px 40px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 650;
  margin-bottom: 26px;
}
.intro h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.intro h1 span {
  color: var(--accent);
}
.intro-bottom {
  margin-top: 22px;
  color: var(--muted);
}


.collection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project,
.next-project {
  box-shadow: 0 2px 6px rgb(32 35 30 / 4%), 0 12px 28px rgb(32 35 30 / 6%);
}
.project {
  --tone: #e3e7f5;
  background: var(--tone);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-width: 0;
}
.selene {
  --tone: #e6e6f6;
  --product-accent: #4b4a8f;
}
.arrebol {
  --tone: #f0ddc9;
  --product-accent: #8a4727;
}
.twineye {
  --tone: #dce5e9;
  --product-accent: #255e73;
}
.flashboard {
  --tone: #272b32;
  --product-accent: #eeedb1;
}
.lid {
  --tone: #e4e8cc;
  --product-accent: #4a631f;
}
.praylog {
  --tone: #eadfd3;
  --product-accent: #6d5140;
}
.cubesolver {
  --tone: #dbe8e2;
  --product-accent: #256852;
}
.starfold {
  --tone: #e2deed;
  --product-accent: #60478d;
}
.daysmark {
  --tone: #eee4d8;
  --product-accent: #795940;
}
.app-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 3px 6px #00000008;
}

.product-art {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
  height: 310px;
  position: relative;
}
.screen {
  width: 220px;
  object-fit: contain;
  object-position: top;
  border-radius: 20px;
  box-shadow: 0 22px 45px #11122520;
  height: auto;
  flex: none;
  align-self: flex-start;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.icon-art {
  align-items: center;
  margin-top: 10px;
}
.art-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  transform: rotate(-8deg);
  box-shadow: 0 20px 50px #29264222;
}
.flashboard.project {
  color: #f4f4dd;
}
.status {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  border: 1px solid currentColor;
  padding: 4px 12px;
  border-radius: 30px;
}
.about {
  padding-block: 56px;
}
.about > div {
  max-width: 64ch;
}
.about p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.footer {
  padding-block: 35px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand copyright social";
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer .wordmark {
  grid-area: brand;
  font-size: 24px;
}
.footer-copyright { grid-area: copyright; }
.footer .social-links { grid-area: social; }
.product-hero {
  margin-top: 24px;
  border-radius: 8px;
  background: var(--tone);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
  overflow: hidden;
  padding: 64px 54px;
  gap: 35px;
  align-items: center;
}
.product-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 38px;
}
.product-hero h1 {
  font-size: clamp(42px, 4.5vw, 66px);
  color: var(--product-accent);
  letter-spacing: -0.05em;
}
.hero-intro {
  margin-top: 24px;
  max-width: 36ch;
}
.download-row {
  margin-top: 30px;
}
.compatibility {
  font-size: 13px;
  margin-top: 18px;
  max-width: 42ch;
  color: var(--muted);
}
.product-hero .product-art {
  height: 480px;
  margin-top: 0;
  align-items: center;
  gap: 0;
  transform: rotate(-5deg);
}
.product-hero .screen {
  width: 58%;
  max-width: 250px;
}
.product-hero .screen-1 {
  margin-left: -50px;
  transform: translateY(95px) rotate(10deg);
  z-index: 1;
}
.product-hero .wide-art {
  transform: none;
  display: block;
  padding-top: 24px;
}
.product-hero .wide-art .screen {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
}
.product-hero .wide-art .screen-1 {
  margin: 18px 0 0 35px;
  transform: rotate(-4deg);
}
.product-hero .icon-art {
  transform: none;
}
.product-hero .art-icon {
  width: 235px;
  height: 235px;
  border-radius: 52px;
}
.flashboard .product-hero {
  color: #f5f4df;
}
.feature-story {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
.section-heading h2 {
  font-size: clamp(30px, 3.3vw, 45px);
}
.feature-list article {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature-list article:first-child {
  padding-top: 0;
  border-top: 0;
}
.feature-number {
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}
.feature-list p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}
.gallery-section {
  padding: 45px 0 80px;
}
.gallery-section > .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.gallery-controls {
  display: flex;
  gap: 10px;
}
.gallery-controls button {
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
}
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 5px 5px 24px;
  scrollbar-color: #9d9e96 transparent;
}
.shot-link {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
}
.shot-link img {
  width: 100%;
  border-radius: 20px;
}
.gallery-wide .shot-link {
  flex-basis: 75%;
}
.gallery-wide img {
  border-radius: 10px;
}
.theme-section {
  padding: 60px 45px;
  background: #e6e6f6;
  border-radius: 8px;
  overflow: hidden;
}
.theme-section h2 {
  font-size: 42px;
}
.theme-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin-top: 35px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}
.theme-gallery a {
  flex: 0 0 160px;
  scroll-snap-align: start;
}
.theme-gallery img {
  border-radius: 14px;
}
.support-section {
  padding: 100px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
}
.support-section h2 {
  font-size: 38px;
}
.support-section > div > a {
  font-size: 15px;
  display: inline-block;
  margin-top: 22px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.support-section details {
  border-bottom: 1px solid var(--line);
}
.support-section summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  padding: 22px 0;
  font-size: 18px;
  line-height: 1.5;
}
.support-section summary::-webkit-details-marker {
  display: none;
}
.support-section summary span {
  flex: none;
  font-size: 22px;
}
.support-section details[open] summary span {
  transform: rotate(45deg);
}
.support-section details p {
  font-size: 16px;
  color: var(--muted);
  padding-bottom: 24px;
}
.support-section li {
  margin: 15px 0;
  font-size: 16px;
  text-decoration: underline;
}
.product-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 40px 0 65px;
  font-size: 16px;
}
.lightbox {
  border: 0;
  padding: 58px 20px 20px;
  background: var(--paper);
  max-width: 95vw;
  max-height: 95dvh;
  border-radius: 12px;
}
.lightbox::backdrop {
  background: #151825d9;
  backdrop-filter: blur(8px);
}
.lightbox img {
  max-height: 78dvh;
  max-width: 85vw;
  object-fit: contain;
  margin: auto;
}
.lightbox form {
  position: absolute;
  top: 8px;
  right: 12px;
}
.lightbox button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 32px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.store-qr-caption {
  color: #20231e;
}
.enter {
  animation: enter 0.7s ease-out both;
}
@keyframes enter {
  from {
    opacity: 0.15;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1100px) {
  .feature-story > .section-heading {
    position: sticky;
    top: 60px;
    align-self: start;
  }
}
@media (max-width: 1000px) {
  .masthead,
  .intro,
  .collection,
  .about,
  .footer,
  .product-page {
    width: calc(100% - 48px);
  }
  .intro {
    padding-top: 55px;
  }

  .product-hero {
    padding: 40px 30px;
    gap: 15px;
    min-height: 580px;
  }
  .product-hero .screen {
    width: 70%;
  }
  .product-hero .screen-1 {
    margin-left: -95px;
  }
  .feature-story,
  .support-section {
    gap: 40px;
  }
  .footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .masthead,
  .intro,
  .collection,
  .about,
  .footer,
  .product-page {
    width: calc(100% - 36px);
  }
  .masthead {
    height: 78px;
  }
  .wordmark {
    font-size: 27px;
  }
  .masthead nav {
    gap: 18px;
    font-size: 14px;
  }

  .intro {
    padding-block: 36px 30px;
  }
  .intro h1 {
    font-size: clamp(32px, 8vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.035em;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .intro-bottom {
    margin-top: 22px;
    gap: 20px;
  }
  .intro-bottom p {
    font-size: 16px;
    max-width: 24ch;
    text-wrap: pretty;
  }

  .collection {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about {
    padding-block: 36px;
  }
  .footer {
    padding-block: 28px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand social" "copyright copyright";
    gap: 16px 12px;
    font-size: 14px;
  }
  .footer .wordmark {
    font-size: 22px;
    gap: 8px;
  }
  .product-hero {
    grid-template-columns: 1fr;
    padding: 30px 25px 0;
    gap: 16px;
    margin-top: 18px;
    min-height: 0;
  }
  .product-identity {
    margin-bottom: 26px;
    font-size: var(--type-body);
    gap: 12px;
  }
  .product-identity .app-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  .product-hero h1 {
    font-size: clamp(36px, 9.2vw, 49px);
    line-height: 1.12;
  }
  .hero-intro {
    margin-top: 20px;
    font-size: 17px;
  }
  .download-row {
    margin-top: 24px;
  }
  .compatibility {
    font-size: 13px;
    margin-top: 14px;
  }
  .product-hero .product-art {
    height: 390px;
    margin-top: 22px;
    align-items: flex-start;
    padding-top: 5px;
    gap: 0;
  }
  .product-hero .screen {
    width: 66%;
    max-width: 220px;
  }
  .product-hero .screen-1 {
    margin-left: -65px;
    transform: translateY(55px) rotate(10deg);
  }
  .product-hero .wide-art {
    height: 350px;
  }
  .product-hero .wide-art .screen {
    width: 100%;
    max-width: none;
  }
  .product-hero .icon-art {
    height: 275px;
    align-items: center;
    margin: 0;
    padding: 20px;
  }
  .product-hero .art-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
  }
  .feature-story {
    padding: 65px 0 35px;
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .feature-list article {
    padding: 23px 0;
    gap: 18px;
  }
  .feature-list h3 {
    font-size: 21px;
  }
  .gallery-section {
    padding: 35px 0 50px;
  }
  .gallery-section h2 {
    font-size: 29px;
  }
  .gallery-controls {
    gap: 8px;
  }
  .gallery-controls button {
    height: 44px;
    width: 44px;
  }
  .shot-link {
    flex-basis: 76%;
  }
  .gallery {
    gap: 18px;
  }
  .gallery-wide .shot-link {
    flex-basis: 92%;
  }
  .theme-section {
    padding: 35px 24px;
  }
  .theme-section h2 {
    font-size: 34px;
  }
  .theme-gallery a {
    flex-basis: 145px;
  }
  .support-section {
    grid-template-columns: 1fr;
    padding: 65px 0 25px;
    gap: 25px;
  }
  .support-section h2 {
    font-size: 32px;
  }
  .support-section summary {
    font-size: 17px;
  }
  .product-end {
    padding: 30px 0 45px;
    flex-wrap: wrap;
    gap: 25px;
  }
  .product-end > a {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The collection ends with a non-interactive note, not a download link. */
.next-project {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}
.next-project h2 {
  font-size: clamp(28px, 2.5vw, 34px);
  color: var(--accent);
}
.next-dots {
  display: flex;
  gap: 12px;
}
.next-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.next-dots i:nth-child(2) {
  opacity: 0.55;
}
.next-dots i:nth-child(3) {
  opacity: 0.25;
}
@media (max-width: 650px) {
  .next-project {
    min-height: 280px;
    padding: 35px 24px;
  }
  .next-project h2 {
    font-size: 28px;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  flex: none;
}
.footer .wordmark .brand-logo {
  width: 30px;
  height: 30px;
}
@media (max-width: 650px) {
  .masthead .wordmark {
    font-size: 22px;
    gap: 8px;
  }
  .masthead .brand-logo {
    width: 30px;
    height: 30px;
  }
}

/* Compact collection: copy and complete, upright artwork share one row. */
.project-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 24px;
  padding: 30px;
  min-height: 360px;
}
.project-info {
  min-width: 0;
}
.project-info > .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  margin-bottom: 20px;
}
.project-copy h2 {
  font-size: 26px;
  overflow-wrap: anywhere;
}
.project-copy p {
  margin-top: 12px;
  font-size: var(--type-body);
  max-width: 26ch;
}
.project .product-art {
  height: auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  align-items: center;
}
.project .screen {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  transform: none;
  box-shadow: 0 6px 18px #20231e12;
  transition: transform 0.25s ease;
}
.project .wide-art .screen {
  width: 100%;
  border-radius: 6px;
}
.project .art-icon {
  width: 120px;
  height: 120px;
  max-width: 100%;
  border-radius: 26px;
  transform: none;
  box-shadow: none;
  transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .project-link:hover .screen,
  .project-link:hover .art-icon {
    transform: scale(1.025);
  }
}
@media (min-width: 651px) and (max-width: 1000px) {
  .collection {
    grid-template-columns: 1fr;
  }
  .project-link {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }
}
@media (max-width: 650px) {
  .project-link {
    padding: 24px 20px;
    gap: 18px;
    min-height: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .project-copy h2 {
    font-size: 23px;
  }
  .project-copy p {
    font-size: 16px;
    line-height: 1.6;
  }
  .project-info > .app-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin-bottom: 16px;
  }
  .project .screen {
    max-height: 260px;
    border-radius: 8px;
  }
  .project .art-icon {
    width: 86px;
    height: 86px;
    border-radius: 20px;
  }
}

.project-preview { display: block; min-width: 0; }
.project .download-row { margin-top: 20px; }
