/* VIP Vybz website theme – matches Flutter app: dark, gold accent */

:root {
  --gold: #D4AF37;
  --black: #0a0a0a;
  --black-pure: #000000;
  --surface: #1a1a1a;
  --surface-light: #252525;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.12);
  --focus-ring: var(--gold);
  --success-bg: rgba(76, 175, 80, 0.15);
  --success-border: rgba(76, 175, 80, 0.5);
  --error-bg: rgba(244, 67, 54, 0.15);
  --error-border: rgba(244, 67, 54, 0.5);
  --info-bg: rgba(33, 150, 243, 0.12);
  --info-border: rgba(33, 150, 243, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--black);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--black-pure);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.app-logo {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.app-logo:hover {
  opacity: 0.9;
  color: var(--gold);
  text-decoration: none;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-dim);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.nav-link-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-link-desktop {
    display: inline;
  }
}

/* Main */
.app-main {
  flex-grow: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .app-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Message container */
.message-container {
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.message-box {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
}

.message-success {
  background: var(--success-bg);
  color: #a5d6a7;
  border-color: var(--success-border);
  border-left-color: #4caf50;
}

.message-error {
  background: var(--error-bg);
  color: #ef9a9a;
  border-color: var(--error-border);
  border-left-color: #f44336;
}

.message-info {
  background: var(--info-bg);
  color: #90caf9;
  border-color: var(--info-border);
  border-left-color: #2196f3;
}

/* Footer */
.app-footer {
  margin-top: auto;
  background-color: var(--black-pure);
  border-top: 1px solid var(--border);
}

.footer-content {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-content p {
  margin: 0;
  color: var(--text-dim);
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  flex: 1;
}

.page-main {
  flex: 1;
}

/* Typography */
h1, h2, h3 {
  letter-spacing: 0.05em;
  font-weight: 800;
  margin-top: 0;
}

h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #e5c04a;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Site nav */
.site-nav {
  background-color: var(--black-pure);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.site-nav__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-nav__brand {
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-right: 0.5rem;
}

.site-nav__brand:hover {
  color: #e5c04a;
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-nav__links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-nav__links a:hover {
  color: var(--gold);
}

/* Main content */
.page-main {
  flex: 1;
}

/* Prose (legal, release notes) */
.prose {
  max-width: 65ch;
}

.prose p { color: var(--text-muted); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.25rem; }
.prose em { color: var(--text-dim); font-style: italic; }
.prose .prose__top-space { margin-top: 2rem; }

/* Messages */
.messages {
  margin-bottom: 1rem;
}

.message {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid;
}

.message--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: #a5d6a7;
}

.message--error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: #ef9a9a;
}

.message--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: #90caf9;
}

.message p { margin: 0; color: inherit; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--black-pure);
}

.btn--primary:hover {
  background-color: #e5c04a;
}

.btn--secondary {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn--secondary:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error-summary {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  color: #ef9a9a;
}

.form-error-message {
  color: #ef9a9a;
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.required-star {
  color: #ef9a9a;
}

.form-help-text {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.form-action {
  margin-top: 1.5rem;
}

/* Honeypot (hidden) */
.h-pot {
  display: none !important;
  visibility: hidden !important;
  position: absolute;
  left: -9999px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background-color: var(--black-pure);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer__links {
  margin-top: 0.75rem;
}

.site-footer__links a {
  margin-right: 1rem;
}

/* Hero (home) */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.hero__title {
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__intro {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero__cta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.hero__cta .btn {
  margin: 0;
}

/* Section heading */
.section-heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Features section */
.features-section {
  padding: 3rem 0;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  background-color: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.feature-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Homepage: audience sections (clients / professionals) */
.audience-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.audience-section--alt {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .audience-section--alt {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.audience-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section-lead {
  text-align: center;
  max-width: 42rem;
  margin: -0.5rem auto 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.features-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Subscriptions disclaimer (home) */
.subscription-note {
  max-width: 52rem;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.subscription-note__title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
  text-align: center;
}

.subscription-note__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.subscription-note__text a {
  font-weight: 600;
}

/* Download page */
.download-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 52rem;
}

/* CTA banner */
.cta-banner {
  background-color: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.cta-banner h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cta-banner p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.cta-banner .btn {
  margin: 0;
}

/* Download buttons – row layout so App Store and Google Play are side by side */
.download-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.download-list__item {
  flex: 0 0 auto;
  margin: 0;
}

.download-list a,
.download-list__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: var(--black-pure);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.download-list a:hover,
.download-list__btn:hover {
  background-color: #e5c04a;
  text-decoration: none;
}

.download-list__icon {
  display: inline-flex;
  flex-shrink: 0;
  height: 1.5rem;
  width: 1.5rem;
}

.download-list__icon svg {
  height: 100%;
  width: auto;
}

.download-list .download-list__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
}

@media (max-width: 480px) {
  .download-list {
    flex-wrap: wrap;
  }
}
