/* Gadaa Tips — developer site */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #e2e8f0;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft: #eff6ff;
  --color-navy: #0c1929;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4rem;
  --max-w: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-link:hover {
  color: var(--color-navy);
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.logo-mark svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  color: var(--color-text);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.nav-cta-desktop {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 0 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile .btn {
  margin: 1rem;
  align-self: stretch;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-cta-desktop {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #eef4ff 0%, var(--color-bg) 55%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-phone-wrapper {
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-phone-frame {
  position: relative;
  width: min(100%, 290px);
  padding: 0.625rem;
  background: var(--color-navy);
  border-radius: 2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 48px -12px rgba(12, 25, 41, 0.28),
    0 8px 24px -4px rgba(12, 25, 41, 0.15),
    0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-phone-frame:hover {
  transform: translateY(-3px);
  box-shadow:
    0 28px 56px -12px rgba(12, 25, 41, 0.35),
    0 12px 28px -4px rgba(12, 25, 41, 0.2),
    0 0 0 1px rgba(15, 23, 42, 0.1);
}

.hero-phone-screen {
  position: relative;
  border-radius: 1.625rem;
  overflow: hidden;
  background: #ffffff;
  display: block;
  line-height: 0;
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 1024;
  object-fit: contain;
  border-radius: 1.625rem;
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .hero-phone-wrapper {
    justify-self: end;
    justify-content: flex-end;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* App cards */
.apps-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.app-card-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.app-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  object-fit: cover;
  background: var(--color-accent-soft);
}

.app-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.app-card h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-navy);
}

.app-card-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  flex: 1;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.app-details-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  display: none;
}

.app-details-panel.is-visible {
  display: block;
}

.app-details-panel dl {
  margin: 0.75rem 0 0;
}

.app-details-panel dt {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.app-details-panel dd {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.play-badge:hover {
  color: #fff;
  background: #1e293b;
}

.play-badge.is-soon {
  background: #94a3b8;
  cursor: default;
}

/* Value cards */
.values-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-navy);
}

.value-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.about-highlights svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

/* Privacy teaser */
.privacy-teaser {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.privacy-teaser a {
  font-weight: 600;
}

/* Contact */
.contact-box {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer .logo-link {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Subpages */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, #eef4ff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-navy);
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.prose h2 {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--color-text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.review-banner {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.app-detail-page .app-hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 4rem;
  margin: 0;
  color: var(--color-accent);
}

.hidden {
  display: none !important;
}
