:root {
  --primary: #1e3a8a;
  --secondary: #f97316;
  --accent: #ec4899;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --text: #374151;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --mint: #d1fae5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  background: var(--white);
}

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

a {
  color: #10b981;
  font-weight: 500;
  text-decoration: underline;
}

a:hover {
  color: var(--secondary);
}

h1,
h2,
h3,
h4 {
  font-family: "Nunito", Arial, sans-serif;
}

h1 {
  color: var(--primary);
  font-weight: 800;
}

h2 {
  color: var(--primary);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 0 8%;
  background: rgba(255, 255, 255, 0.88);
  border: 0 solid var(--line);
  border-bottom-width: 1px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 13px -3px rgba(2, 6, 23, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.logo {
  flex: 0 0 auto;
  margin: 5px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 13px 20px;
  color: var(--primary);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover {
  color: var(--white);
  background: var(--accent);
}

.main-nav a.active {
  color: var(--white);
  background: var(--purple);
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 40px;
  color: var(--white);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: var(--secondary);
  border-radius: 12px;
}

.header-button:hover {
  color: var(--white);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 3px 8px 3px 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(124, 58, 237, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px auto;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.is-menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.is-menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  scroll-margin-top: 80px;
  background: linear-gradient(172deg, #60a5fa 0%, #8b5cf6 100%);
  border-radius: 3px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: center;
  width: min(1216px, 100%);
  margin: 0 auto;
  padding: 42px 22px 70px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero h1 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 24px;
  line-height: 1.25;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.check-list {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0 0 10px 40px;
  color: var(--white);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.check-list li + li {
  margin-top: 5px;
}

.check-list li:not(:last-child) {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.75);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 10px;
  height: 6px;
  border: solid #8b5cf6;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}

.download-art {
  align-self: center;
  width: 60%;
  margin-top: 0;
}

.download-art img {
  width: 100%;
}

.hero-art {
  width: 92%;
  justify-self: center;
}

.hero-art img {
  border: 2px solid #7a7a7a;
  border-radius: 45px;
  box-shadow: 5px 5px 22px -9px rgba(0, 0, 0, 0.5);
}

.section {
  border: 1px solid var(--line);
  padding: 50px 0;
}

.section > h1,
.content-wrap > h1,
.contact-wrap > h1,
.appstores-wrap > h1 {
  scroll-margin-top: 80px;
  margin: 10px 0;
  text-align: center;
}

.screenshots-section {
  background: var(--white);
}

.screenshots-section h1 {
  font-size: 2.5em;
  line-height: 1;
}

.carousel-shell {
  position: relative;
  width: min(1140px, calc(100% - 32px));
  margin: 20px auto 0;
  padding-bottom: 34px;
  overflow: hidden;
  --carousel-gap: 12px;
  --slides-visible: 2;
}

.screenshots-track {
  display: flex;
  gap: var(--carousel-gap);
  cursor: grab;
  touch-action: pan-y;
  transition: transform 500ms ease;
  will-change: transform;
}

.screenshots-track.dragging {
  cursor: grabbing;
  transition: none;
}

.screenshot-slide {
  flex: 0 0 calc((100% - (var(--slides-visible) - 1) * var(--carousel-gap)) / var(--slides-visible));
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.screenshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 3px 3px 7px -2px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 34px;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #943eda;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.22;
}

.carousel-dots button.active {
  opacity: 1;
}

.appstores-section,
.contact-section {
  background: var(--soft);
}


.appstores-wrap {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 24px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 5px 5px 12px rgba(2, 6, 23, 0.24);
}

.appstores-wrap h1 {
  margin: 0 0 8px;
}

.appstores-note {
  margin: 0 auto 22px;
  max-width: 640px;
  color: var(--muted);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin: 0 auto;
}

.store {
  flex: 0 0 200px;
  max-width: 200px;
}

@media (max-width: 1023px) {
  .store {
    flex-basis: 220px;
    max-width: 220px;
  }
}

@media (max-width: 600px) {
  .store {
    flex-basis: calc(50% - 7px);
    max-width: 220px;
  }
}

.store {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
}

.store img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 768 / 227;
  object-fit: contain;
}

.about-section {
  background: var(--white);
}

.content-wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.content-wrap h1 {
  margin-bottom: 20px;
}

.content-wrap p,
.content-wrap li {
  font-size: 16px;
  line-height: 1.5;
}

.content-wrap h2 {
  margin: 24px 0 12px;
  font-size: 1.5em;
}

.content-wrap ul {
  margin-top: 0;
  padding-left: 40px;
}

.contact-wrap {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
}

.contact-note {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  text-align: center;
}

.contact-note.is-success {
  color: #059669;
}

.contact-note.is-error {
  color: #dc2626;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-card.is-sending .submit-button {
  opacity: 0.6;
  pointer-events: none;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 5px 5px 11px rgba(166, 166, 166, 0.47);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
}

textarea {
  resize: vertical;
}

.submit-button {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  margin-top: 0;
  padding: 0 40px;
  color: #ffffff;
  font: 500 15px "Roboto", Arial, sans-serif;
  background: var(--purple);
  border: 0;
  border-radius: 16px;
  transition: background 200ms ease;
}

.submit-button:hover {
  background: var(--purple-dark);
}

.submit-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.site-footer {
  padding: 36px 8% 28px;
  background: linear-gradient(172deg, #1e3a8a 0%, #7c3aed 100%);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1216px;
  margin: 0 auto;
}

.footer-brand p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-copyright {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a {
  color: var(--mint);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--white);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.9;
}

.footer-links a:hover {
  color: var(--mint);
  opacity: 1;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 28px 20px 24px;
  }

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

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0 5%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    order: 1;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 63px;
  }

  .download-art {
    width: 437px;
    max-width: 100%;
  }

  .hero-art {
    order: 0;
    width: min(86%, 760px);
  }

  .screenshots-track {
    gap: var(--carousel-gap);
  }

  .carousel-shell {
    --carousel-gap: 8px;
  }
}

@media (max-width: 767px) {
  .site-header {
    min-height: 50px;
    padding: 0;
    flex-wrap: wrap;
  }

  .logo {
    margin: 8px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    order: 99;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0 16px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease, padding 240ms ease;
  }

  .is-menu-open .main-nav {
    max-height: 320px;
    padding: 8px 16px 16px;
  }

  .main-nav a {
    padding: 12px 16px;
    text-align: center;
  }

  .header-button {
    display: none;
  }

  .hero-inner {
    padding: 32px 20px 45px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2,
  .check-list li {
    font-size: 24px;
  }

  .check-list {
    text-align: left;
  }

  .hero-art {
    width: 100%;
  }

  .screenshots-section h1 {
    font-size: 2.5rem;
  }

  .screenshots-track {
    gap: var(--carousel-gap);
  }

  .carousel-shell {
    width: min(767px, calc(100% - 32px));
    --slides-visible: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
