/* App-store specific styles on top of the shared theme (base.css). */

button, input, select, textarea { font-family: inherit; }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { width: 100%; }

/* ===== Store hero: title + app cards ===== */
.hero-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.25rem;
}

.hero { padding-top: 8.5rem; }

.hero-apps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  gap: 1.5rem;
}

.app-card {
  display: block;
  text-align: left;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s,
    border-color 0.5s,
    background var(--transition-theme);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(192, 132, 252, 0.3);
}

.app-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 30%, transparent), color-mix(in srgb, var(--accent-2) 30%, transparent));
  border: 1px solid var(--border-glass);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card:hover .app-icon { transform: scale(1.12) rotate(5deg); }

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.app-open {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
  font-weight: 500;
}

.app-open i { font-style: normal; display: inline-block; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.app-card:hover .app-open i { transform: translateX(5px); }

.app-card.soon {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 220px;
  color: var(--text-muted);
}
.app-card.soon:hover { transform: none; box-shadow: none; border-color: var(--border-glass); }
.app-card.soon b { display: block; font-size: 2rem; font-weight: 300; margin-bottom: 0.25rem; }
.app-card.soon span { font-size: 0.875rem; }

.footer-links a.footer-note { color: var(--text-muted); pointer-events: none; }

/* ===== Tool pages (an app's own screen) ===== */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-bg .hero-bg { position: absolute; }

.tool {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 8rem 1.25rem 4rem;
}

.tool-head { text-align: center; margin-bottom: 2.25rem; }
.tool-head .section-title { margin-bottom: 0.75rem; }
.tool-head p { color: var(--text-secondary); font-weight: 300; }

.tool-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.field {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field::placeholder { color: var(--text-muted); }
.field:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.15); }

.search-row { display: flex; gap: 0.75rem; }
.search-row .field { flex: 1; min-width: 0; }
.search-row .btn { flex: none; justify-content: center; }

@media (max-width: 560px) {
  .tool { padding-top: 6.5rem; }
  .tool-card { padding: 1.25rem; }
  .search-row { flex-direction: column; }
  .hero-stack { gap: 2.5rem; }
  .app-card { padding: 1.5rem; }
}

/* ===== Size tuning =====
   The original theme is sized for a full-screen marketing landing page (title up to 128px).
   An app store needs a calmer scale, so these override base.css sizes without editing it. */
.nav { padding: 0.85rem 2.5rem; }
.logo { font-size: 1.45rem; }
.nav-links { gap: 2rem; }
.nav-links a { font-size: 0.8rem; }
.theme-toggle { width: 40px; height: 40px; }
.theme-icon { width: 18px; height: 18px; }

.hero { padding: 7.5rem 2rem 4.5rem; }
.hero-tag { font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: 0.85rem; }
.hero-title { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.05; margin-bottom: 1rem; }
/* The gradient text (background-clip: text) is only painted inside the line's box, and with the
   tight line-height the tails of g/j/p/q/y hang below it and get cut off. Extend the box down
   and pull the following content back up by the same amount so spacing doesn't change. */
.title-line { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero-subtitle { font-size: 1rem; margin-bottom: 0; }
.hero-stack { gap: 2.75rem; }

.app-card { padding: 1.6rem; }
.app-icon { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 14px; margin-bottom: 1rem; }
.app-card h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.app-card p { font-size: 0.875rem; margin-bottom: 1rem; }
.app-open { font-size: 0.75rem; }
.app-card.soon { min-height: 190px; }

.section-label { font-size: 0.8rem; }
.tool { padding-top: 7rem; }
.tool-head .section-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.tool-head p { font-size: 0.95rem; }

@media (max-width: 768px) {
  .nav { padding: 0.75rem 1rem; }
  .logo { font-size: 1.25rem; }
  .theme-toggle { width: 40px; height: 40px; }
  .nav-links a { font-size: 0.95rem; }
  .hero { padding: 6.5rem 1.25rem 3.5rem; }
  .hero-title { font-size: clamp(2.25rem, 10vw, 3rem); }
}
