/* ---------- RESET & BRAND TOKENS ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9a54e;
  --gold-dark: #b48e3c;
  --green: #0b7a4a;
  --navy: #1e3a5f;
  --bg-light: #f9fafc;
  --bg-white: #ffffff;
  --text-dark: #1c2b3a;
  --text-muted: #4a5f73;
  --border-light: #e3e9f0;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html[dir='rtl'] body {
  font-family: var(--font-ar);
}

#app,
.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ---------- TYPOGRAPHY & LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 70ch;
}

a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

.gold-text {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  transition: top 0.15s ease;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- PULL QUOTE ---------- */
.pull-quote {
  margin: 48px auto;
  max-width: 880px;
  padding: 32px 40px;
  border-left: 6px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 165, 78, 0.06) 0%, transparent 100%);
  border-radius: 0 24px 24px 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  left: 20px;
  top: -10px;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

html[dir='rtl'] .pull-quote {
  border-left: none;
  border-right: 6px solid var(--gold);
  background: linear-gradient(270deg, rgba(201, 165, 78, 0.06) 0%, transparent 100%);
  border-radius: 24px 0 0 24px;
  padding: 32px 40px 32px 32px;
}

html[dir='rtl'] .pull-quote::before {
  left: auto;
  right: 20px;
}

@media (max-width: 600px) {
  .pull-quote {
    padding: 24px 24px 24px 32px;
    font-size: 1.2rem;
  }

  html[dir='rtl'] .pull-quote {
    padding: 24px 32px 24px 24px;
  }
}

/* ---------- HEADER ---------- */
header.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span.logo-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover {
  color: var(--navy);
}

.header-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--navy);
  display: block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-light);
  border-radius: 40px;
  padding: 4px 6px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 30px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--navy);
  color: white;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.9rem;
    display: none;
    justify-content: flex-start;
  }

  .header-nav.open {
    display: flex;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  background: white;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--navy);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #152a44;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: white;
  border: none;
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: white;
  transform: translateY(-2px);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 60px;
  background: var(--navy);
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.store-badge i {
  font-size: 1.6rem;
}

.store-badge:hover {
  background: #0f263b;
  color: white;
  transform: translateY(-2px);
}

.store-badge.alt {
  background: white;
  color: var(--navy);
  border: 1px solid var(--border-light);
}

.store-badge.alt:hover {
  background: #f8faff;
  color: var(--navy);
}

.store-badge.lg {
  padding: 16px 32px;
  font-size: 1.15rem;
  border-radius: 70px;
}

.store-badge.lg i {
  font-size: 2.2rem;
}

/* ---------- HERO ---------- */
.hero {
  padding: 60px 0 30px;
  background: linear-gradient(145deg, #ffffff 0%, #f9fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-subheadline {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.hero-screenshot {
  background: #eff2f7;
  border-radius: 32px;
  min-height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.placeholder-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 14px;
  border-radius: 40px;
  display: inline-block;
}

/* ---------- SECTIONS ---------- */
section.section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg-light);
}

/* ---------- FEATURE CARDS ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(201, 165, 78, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--gold);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  font-size: 0.98rem;
}

/* ---------- WHY PUNCHIN ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.why-card {
  background: white;
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--gold);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(30, 58, 95, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon i {
  font-size: 1.8rem;
  color: var(--navy);
}

.why-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.why-card p {
  font-size: 1rem;
}

/* ---------- HOW IT WORKS (STEPS) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  background: white;
  padding: 32px 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.92rem;
}

/* ---------- OLD WAY VS PUNCHIN WAY ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.compare-col {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
}

.compare-col.old {
  background: #f4f6f8;
  border-color: #e0e5eb;
}

.compare-col.new {
  background: white;
  border-color: rgba(11, 122, 74, 0.3);
  box-shadow: 0 0 0 1px rgba(11, 122, 74, 0.1), var(--shadow-sm);
}

.compare-col h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-col.old h3 {
  color: #6b7c8f;
}

.compare-col.new h3 {
  color: var(--green);
}

.compare-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-col li {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.compare-col li i {
  font-size: 0.85rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.compare-col.old li i {
  color: #9aaab8;
}

.compare-col.new li i {
  color: var(--green);
}

/* ---------- SECURITY & TRUST ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.security-card {
  background: white;
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.security-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(201, 165, 78, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.security-icon i {
  font-size: 1.8rem;
  color: var(--gold);
}

.security-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.security-card p {
  font-size: 0.98rem;
}

/* ---------- SCREENSHOTS ---------- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.screen-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.screen-card:hover {
  transform: scale(1.01);
}

.screen-image {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  margin: 16px 16px 0;
  border-radius: 18px;
  background: #eff2f7;
  border: 1px solid var(--border-light);
}

.screen-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-card p {
  padding: 16px 18px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  max-width: none;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  padding: 80px 0 100px;
  background: linear-gradient(145deg, #ffffff 0%, #f9fafc 100%);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.final-cta p {
  margin: 0 auto 32px;
  max-width: 50ch;
}

.final-cta .badge-group {
  justify-content: center;
  gap: 20px;
}

/* ---------- SUPPORT / CONTACT & FAQ ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-form {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s;
  background: var(--bg-light);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: white;
}

.form-success {
  margin-top: 16px;
  background: rgba(11, 122, 74, 0.08);
  border: 1px solid var(--green);
  color: #0b5a37;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-error {
  margin-bottom: 16px;
  background: rgba(200, 40, 40, 0.08);
  border: 1px solid #c82828;
  color: #8f1d1d;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item h4 i {
  color: var(--gold);
  font-size: 1.2rem;
}

html[dir='rtl'] .faq-item h4 i {
  margin-right: 0;
}

.faq-item p {
  font-size: 1rem;
}

.support-email {
  margin-top: 20px;
  background: rgba(201, 165, 78, 0.08);
  padding: 14px 20px;
  border-radius: 40px;
  display: inline-block;
  font-weight: 500;
}

/* ---------- LEGAL PAGES ---------- */
.legal-content {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  padding: 48px 44px;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.legal-content h2 {
  margin-top: 0;
}

.legal-content h3 {
  margin: 28px 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 28px;
  margin-bottom: 16px;
}

html[dir='rtl'] .legal-content ul {
  padding-left: 0;
  padding-right: 28px;
}

.legal-badge {
  background: rgba(201, 165, 78, 0.15);
  color: #8a6d2b;
  padding: 2px 10px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  margin: 4px 0;
}

@media (max-width: 900px) {
  .legal-content {
    padding: 32px 22px;
  }
}

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-brand .logo span.logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col li i {
  color: var(--gold);
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-email i {
  margin-right: 8px;
  color: var(--gold);
}

html[dir='rtl'] .footer-email i {
  margin-right: 0;
  margin-left: 8px;
}

.footer-email a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- RTL OVERRIDES ---------- */
html[dir='rtl'] .hero-grid {
  direction: rtl;
}

html[dir='rtl'] .skip-link {
  left: auto;
  right: 0;
  border-radius: 0 0 0 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .badge-group {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .screens-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-nav {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .store-badge.lg {
    padding: 12px 22px;
    font-size: 1rem;
  }

  .store-badge.lg i {
    font-size: 1.6rem;
  }
}

/* ---------- Not found ---------- */
.not-found {
  text-align: center;
  padding: 6rem 0;
}

/* Language toggle is rendered as links in the server-rendered site. */
a.lang-btn {
  display: inline-block;
  text-decoration: none;
}
