/* ============================================
   Skill App — Shared Styles (Amo-inspired)
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: #1a1919;
  background: linear-gradient(180deg, #fcfbfa 0%, #f5f1ed 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- White border frame (Amo-style) ---------- */

.page-frame {
  position: fixed;
  inset: 0;
  border: 1.5rem solid #fff;
  z-index: 10;
  pointer-events: none;
}

/* ---------- Main content area ---------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 36.625rem;
  padding: 5rem 1rem 3rem;
}

main.landing {
  max-width: 46rem;
  justify-content: center;
  padding: 3rem 1rem;
}

.landing-grid {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.landing-grid .card-wrapper {
  flex: 1;
}

.landing-grid .card {
  height: 100%;
}

@media (max-width: 640px) {
  main.landing {
    max-width: 25rem;
  }

  .landing-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- Card ---------- */

.card-wrapper {
  /* Gradient border trick: outer element carries the gradient */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
  border-radius: 15px;
  padding: 0.5px;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.04),
    0 4px 8px 0 rgba(0, 0, 0, 0.03);
  width: 100%;
}

.card {
  background: #fcfcfc;
  border-radius: 15px;
  padding: 1.5rem;
}

/* ---------- Landing card layout ---------- */

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

.app-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 10.69px;
  flex-shrink: 0;
}

.app-name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
}

.tagline {
  font-size: 0.875rem;
  color: #8a8784;
  margin-top: 0.125rem;
}

.description {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #8a8784;
  margin-bottom: 0;
}

.badge-area {
  padding-top: 1rem;
}

.appstore-badge {
  display: inline-block;
}

.appstore-badge img {
  height: 2.25rem;
  width: auto;
}

/* ---------- Content pages (privacy, terms, contact) ---------- */

.content-card {
  padding: 2.5rem 2rem;
}

.content-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.content-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4a4846;
  margin-bottom: 1rem;
}

.content-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-card li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4a4846;
  margin-bottom: 0.25rem;
}

.content-card a {
  color: #1a1919;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-card a:hover {
  color: #8a8784;
}

/* ---------- Contact form ---------- */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #1a1919;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #1a1919;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8a8784;
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: #1a1919;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #333;
}

/* ---------- Footer ---------- */

footer {
  width: 100%;
  max-width: 36.625rem;
  padding: 4rem 1rem 5rem;
  text-align: center;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #1a1919;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #8a8784;
}

.footer-copy {
  font-size: 0.75rem;
  color: #8a8784;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .page-frame {
    display: none;
  }

  main {
    padding: 2rem 1rem;
  }

  .content-card {
    padding: 1.5rem 1.25rem;
  }

  .content-card h1 {
    font-size: 1.25rem;
  }
}
