:root {
  --page-bg: #f8e8ab;
  --ink: #1d1300;
  --ink-soft: rgba(29, 19, 0, 0.72);
  --card: rgba(255, 248, 221, 0.78);
  --line: rgba(29, 19, 0, 0.12);
  --shadow: 0 24px 80px rgba(113, 76, 0, 0.16);
  --radius: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  background: var(--page-bg);
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: 1.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, rgba(255, 250, 232, 0.96), rgba(255, 233, 138, 0.86)),
    #fff6d1;
  box-shadow: var(--shadow);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-left: 1.75rem;
  margin-bottom: 1.1rem;
}

.hero-logo {
  display: block;
  width: min(283px, 55vw);
  max-height: 133px;
  flex: 0 0 auto;
  height: auto;
  object-fit: contain;
}

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.apps {
  grid-column: 1 / -1;
}

.label {
  display: block;
  width: 100%;
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1rem;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px dashed rgba(29, 19, 0, 0.24);
  border-radius: 22px;
  background: rgba(255, 252, 242, 0.66);
}

.app-icon {
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  border: 1px solid rgba(29, 19, 0, 0.1);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(113, 76, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.app-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.app-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.store-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.store-badge img {
  display: block;
  height: 2.35rem;
  width: auto;
}

.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0 0 0.75rem;
  gap: 1.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1;
}

.footer-nav-secondary {
  margin-top: 1.25rem;
  padding-bottom: 0;
}

.footer-label {
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-link {
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.footer-separator {
  display: inline-block;
  color: rgba(29, 19, 0, 0.4);
  font-weight: 400;
  line-height: 1;
  transform: translateY(-0.02em);
}

@media (max-width: 860px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-brand {
    justify-content: space-between;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-logo {
    width: min(212px, 41vw);
    max-height: 100px;
  }

  h1 {
    flex: 1 1 auto;
    white-space: normal;
    text-align: center;
  }

  .label {
    font-size: 1.16rem;
  }

  .app-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-icon {
    width: 4.95rem;
    height: 4.95rem;
  }

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

  .app-name {
    text-align: center;
  }

  .store-actions {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }
}
