:root {
  --primary: #2F5BFF;
  --primary-dark: #1E3A8A;
  --background: #F4F8FF;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --border: #DCE6FF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

nav a {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, #E8F4FF 0%, var(--background) 100%);
}

.hero-container {
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Unified banner pattern - matches app BannerHeader on all pages */
.banner-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.banner-container {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  position: relative;
}

.banner-image-wrapper {
  width: 100%;
  aspect-ratio: 4;
  min-height: 96px;
  border-radius: 24px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Matches app BannerHeader: "GPT Ground" centered horizontally, top of banner */
.banner-brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0px;
  padding-left: 2rem;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.banner-title-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

.hero-subheadline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 36rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-store {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Store badge links: no frame, just the badge image */
.store-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  line-height: 0;
}
.store-link:hover {
  opacity: 0.9;
}

.btn-store.btn-coming-soon {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
  color: var(--text-secondary);
}

.store-badge {
  height: 40px;
  width: auto;
  display: block;
}

.store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.store-item.store-coming-soon {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.store-coming-soon-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.store-label {
  white-space: nowrap;
}

/* Compliance Badges */
.compliance-badges {
  padding: 2rem 0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* Mid-section Heading */
.mid-heading {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.mid-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.mid-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Feature Cards */
.feature-cards {
  padding: 0 0 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.card-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.footer-tagline {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.footer-company {
  margin: 0;
}

.flag {
  font-size: 1rem;
}

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

/* Legal pages banner - same pattern, match front page spacing (top + bottom) */
.banner-section-legal {
  padding: 2rem 0 1.5rem;
}

/* Legal pages (Privacy, Terms) */
.legal-content {
  padding: 0 0 3rem;
}

.legal-content .container {
  max-width: 720px;
  background: var(--surface);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.legal-content p,
.legal-content ul {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.cookie-banner--hidden {
  transform: translateY(100%);
}

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.cookie-banner .btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
