/* ============================================
   ParsaDev - Light Gold Theme
   Mobile-first, Playfair Display + Inter
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-gold: #D4A843;
  --color-gold-dark: #B8860B;
  --color-gold-glow: rgba(212, 168, 67, 0.15);
  --color-gold-light: #F9F3E3;
  --color-text: #1A1A1A;
  --color-text-muted: #757575;
  --color-border: #E0E0E0;
  --color-card: #FAFAFA;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9F3E3;
  --color-footer: #F5F5F5;
  --color-success: #2E7D32;
  --color-danger: #C62828;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --radius-pill: 100px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.25);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 700;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

/* --- Header / Nav --- */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  text-decoration: none;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-gold-dark);
}

.breadcrumbs span {
  margin: 0 0.35rem;
  color: var(--color-border);
}

/* --- Hero (Home) --- */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  background: var(--color-bg);
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-family: var(--font-body);
}

/* --- App Cards Grid --- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.app-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-gold);
  text-decoration: none;
  color: inherit;
}

.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.app-card-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.app-card-info p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.app-card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-gold-glow);
  color: var(--color-gold-dark);
}

.badge--free {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--color-success);
}

/* --- App Landing Page Hero (Split) --- */
.app-hero {
  padding: 3rem 0 2rem;
}

.app-hero--full {
  padding: 4rem 0 3rem;
  background: var(--color-bg);
}

.app-hero--split .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.app-hero__text {
  text-align: center;
  max-width: 520px;
}

.app-hero__text h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.app-hero .app-tagline {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-gold);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-gold);
}

.store-btn:hover {
  background-color: var(--color-gold-dark);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.35);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Phone Mockup --- */
.phone-mockup {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.phone-mockup__frame {
  position: relative;
  background: #1A1A1A;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup__screen {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.phone-mockup__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section Styles --- */
.section--alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content-narrow {
  max-width: 700px;
  margin: 0 auto;
}

.content-narrow p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.content-narrow h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  padding-left: 4.5rem;
}

.step-number {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gold);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

.step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.step-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- Persona Cards --- */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.persona-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.persona-card:hover {
  box-shadow: var(--shadow);
}

.persona-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold-dark);
  font-family: var(--font-body);
  font-weight: 600;
}

.persona-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-gold-light);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.cta-footnote {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* --- App Links Row --- */
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem 0 3rem;
}

.app-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.app-links a:hover {
  color: var(--color-gold-dark);
  text-decoration: none;
  border-bottom-color: var(--color-gold-dark);
}

/* --- Legal / Content Pages --- */
.content-page {
  padding: 2rem 0 3rem;
}

.content-page h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.content-page .last-updated {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 600;
}

.content-page p,
.content-page ul,
.content-page ol {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.content-page ul li,
.content-page ol li {
  margin-bottom: 0.35rem;
}

.content-page strong {
  color: var(--color-text);
}

/* --- FAQs --- */
.faq-section {
  margin-bottom: 2.5rem;
}

.faq-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 600;
}

.faq-item {
  margin-bottom: 1.25rem;
}

.faq-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--color-gold-dark);
  font-family: var(--font-body);
  font-weight: 600;
}

.faq-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- Support Page --- */
.support-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.support-card h2 {
  border: none;
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.support-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.support-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.support-email:hover {
  background-color: var(--color-gold);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-gold);
}

.support-topics {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.support-topics li {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 5rem 0;
}

.error-page h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}

.error-page p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background-color: var(--color-gold);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-gold);
}

.btn:hover {
  background-color: var(--color-gold-dark);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.35);
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background-color: transparent;
  color: var(--color-gold-dark);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  background-color: var(--color-gold-glow);
  text-decoration: none;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-footer);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* --- Responsive: Tablet+ --- */
@media (min-width: 600px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .support-topics {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .app-hero__text h1 {
    font-size: 2.25rem;
  }

  .persona-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .app-hero--split .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .app-hero__text {
    text-align: left;
    flex: 1;
    max-width: 480px;
  }

  .app-hero__text .store-buttons {
    justify-content: flex-start;
  }

  .phone-mockup {
    width: 280px;
  }

  .app-hero--full {
    padding: 5rem 0 4rem;
  }

  .app-hero__text h1 {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-hero__text h1 {
    font-size: 2.75rem;
  }

  .phone-mockup {
    width: 300px;
  }
}
