:root {
  --bg: #f8f2e8;
  --ink: #1d140d;
  --muted: #54473e;
  --accent: #c65a1e;
  --accent-2: #efb35c;
  --card: rgba(255, 248, 238, 0.76);
  --border: rgba(90, 60, 40, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 15%, #fff5e3, transparent 45%),
    radial-gradient(circle at 90% 10%, #ffd8a8, transparent 35%),
    linear-gradient(180deg, #f6e8d0 0%, var(--bg) 55%, #efe4d3 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  background: rgba(234, 138, 67, 0.34);
  top: -180px;
  left: -140px;
}

.bg-glow-2 {
  background: rgba(240, 198, 108, 0.34);
  bottom: -190px;
  right: -160px;
}

.site-header,
main,
.site-footer {
  width: min(1080px, calc(100vw - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.store-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
}

.hero {
  padding: 3rem 0 2rem;
  animation: rise 700ms ease-out both;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-icon {
  flex-shrink: 0;
}

.app-icon {
  width: 280px;
  height: 280px;
  border-radius: 22.5%;
  box-shadow: 0 20px 60px rgba(100, 50, 10, 0.22), 0 4px 16px rgba(0, 0, 0, 0.12);
  display: block;
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .app-icon {
    width: 160px;
    height: 160px;
  }
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0.65rem 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.02;
  max-width: 16ch;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.cta-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.badge-link {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.badge-link:hover {
  transform: translateY(-2px);
}

.badge-link img {
  display: block;
  width: auto;
  height: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff8ef;
  box-shadow: 0 9px 24px rgba(157, 72, 15, 0.28);
}

.btn-secondary {
  background: #fff9ed;
  color: var(--ink);
  border: 1px solid var(--border);
}

.features {
  padding: 1rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.screenshots {
  padding: 0.5rem 0 2.25rem;
}

.screenshots h2 {
  margin: 0.55rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.screenshots-lead {
  margin: 0.6rem 0 1.1rem;
  color: var(--muted);
  max-width: 64ch;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.shot-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.6rem;
  opacity: 0;
  transform: translateY(10px);
}

.shot-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

.shot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(55, 35, 20, 0.18);
}

.shot-card figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.support-banner {
  background: rgba(255, 248, 238, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 2.2rem;
}

.support-banner h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.support-banner p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.fallback-hero {
  min-height: calc(100vh - 180px);
  align-items: center;
}

.fallback-panel {
  flex: 1;
  min-width: min(100%, 340px);
}

.fallback-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(100, 50, 10, 0.12);
}

.fallback-preview img {
  width: 100%;
  max-width: 300px;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(55, 35, 20, 0.18);
}

.fallback-meta {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.fallback-meta strong {
  color: var(--ink);
}

.badge-link[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.page-hero {
  padding-bottom: 1rem;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.contact-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.form-stack,
.form-grid {
  margin-top: 0.8rem;
}

.form-stack label,
.form-grid label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.9rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  margin-top: 0.35rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-form-wrap {
  margin-bottom: 2.2rem;
}

.legal-content {
  grid-column: unset;
  margin-bottom: 2.2rem;
}

.legal-section {
  margin-bottom: 2.2rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

.legal-content p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-content ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.legal-content li {
  margin: 0.5rem 0;
}

.legal-content a {
  color: var(--accent);
}

.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

.card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

.card-icon {
  width: 36px;
  height: 36px;
  background: rgba(198, 90, 30, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-top: 1rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer-dot {
  margin: 0 0.35rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .card {
    grid-column: span 6;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(1080px, calc(100vw - 1.5rem));
  }

  .hero {
    padding-top: 2rem;
  }

  .card {
    grid-column: span 12;
  }

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

  .site-nav {
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .form-grid .full {
    grid-column: auto;
  }
}
