/* ============================================================
   Lockify – Main Stylesheet
   ============================================================ */

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

:root {
  --primary:       #1a73e8;
  --primary-dark:  #1558b0;
  --primary-light: #e8f0fe;
  --accent:        #34a853;
  --danger:        #ea4335;
  --text:          #1f2937;
  --text-muted:    #6b7280;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-card:       #ffffff;
  --border:        #e5e7eb;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-md:     0 4px 24px rgba(0,0,0,.12);
  --transition:    .2s ease;
  --max-width:     1200px;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:       #f1f5f9;
    --text-muted: #94a3b8;
    --bg:         #0f172a;
    --bg-alt:     #1e293b;
    --bg-card:    #1e293b;
    --border:     #334155;
    --primary-light: #1e3a5f;
    --shadow:     0 2px 12px rgba(0,0,0,.3);
    --shadow-md:  0 4px 24px rgba(0,0,0,.4);
  }
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

ul { list-style: none; }
code { font-family: 'Courier New', monospace; font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.logo-text { color: var(--primary); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 6px 12px; border-radius: 8px; color: var(--text); font-size: .95rem; transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 20px; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-link { display: block; width: 100%; padding: 10px 12px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: var(--primary); color: #fff;
  text-align: center; padding: 10px 20px; font-size: .9rem;
}
.announcement-bar a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  padding: 6px 14px; border-radius: 100px; font-size: .85rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; max-width: 480px; }
.hero-meta { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text-muted); }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 240px; height: 480px; background: var(--bg-card);
  border-radius: 36px; border: 3px solid var(--border);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  position: relative; overflow: hidden;
}
.phone-mockup::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: var(--border); border-radius: 0 0 16px 16px;
}
.phone-screen-icon { font-size: 4rem; }
.phone-screen-text { font-size: .85rem; color: var(--text-muted); text-align: center; padding: 0 20px; }

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 180px; height: 360px; }
}

/* ---------- Trust Bar ---------- */
.trust-bar { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.trust-icon { font-size: 1.2rem; }

/* ---------- Feature Cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition); box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: .95rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Why Section ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.why-item-title { font-weight: 700; margin-bottom: 4px; }
.why-item-desc { font-size: .95rem; color: var(--text-muted); }
.why-visual { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px; text-align: center; border: 1px solid var(--border); }
.why-visual-icon { font-size: 5rem; margin-bottom: 16px; }
.why-visual-text { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stat-card { text-align: center; padding: 32px 20px; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Download CTA ---------- */
.download-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.download-cta .section-title { color: #fff; }
.download-cta .section-subtitle { color: rgba(255,255,255,.8); margin-left: auto; margin-right: auto; }
.play-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; padding: 14px 28px;
  border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  transition: var(--transition); text-decoration: none;
}
.play-store-btn:hover { background: #222; color: #fff; text-decoration: none; transform: translateY(-2px); }
.play-store-icon { font-size: 1.6rem; }
.play-store-text-small { font-size: .7rem; font-weight: 400; display: block; }
.play-store-text-main { font-size: 1rem; font-weight: 700; display: block; }

/* ---------- Changelog Preview ---------- */
.changelog-entry { border-left: 3px solid var(--primary); padding-left: 20px; margin-bottom: 32px; }
.changelog-version { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.changelog-date { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.changelog-list { display: flex; flex-direction: column; gap: 6px; }
.changelog-item { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; }
.changelog-tag {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.tag-added { background: #d1fae5; color: #065f46; }
.tag-improved { background: #dbeafe; color: #1e40af; }
.tag-fixed { background: #fef3c7; color: #92400e; }
.tag-security { background: #fce7f3; color: #9d174d; }
.tag-performance { background: #ede9fe; color: #5b21b6; }

@media (prefers-color-scheme: dark) {
  .tag-added { background: #064e3b; color: #6ee7b7; }
  .tag-improved { background: #1e3a5f; color: #93c5fd; }
  .tag-fixed { background: #451a03; color: #fcd34d; }
  .tag-security { background: #500724; color: #f9a8d4; }
  .tag-performance { background: #2e1065; color: #c4b5fd; }
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 18px 20px;
  background: var(--bg-card); border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question[aria-expanded="true"] { color: var(--primary); }
.faq-chevron { font-size: .8rem; transition: transform .2s; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: .95rem; color: var(--text-muted); line-height: 1.7; }
.faq-answer.open { display: block; }

/* ---------- Updates / News ---------- */
.updates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.update-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.update-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.update-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.update-badge {
  padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 700;
}
.badge-release { background: var(--primary-light); color: var(--primary); }
.badge-feature { background: #d1fae5; color: #065f46; }
.badge-security { background: #fce7f3; color: #9d174d; }
.badge-fix { background: #fef3c7; color: #92400e; }
.update-date { font-size: .85rem; color: var(--text-muted); }
.update-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.update-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

@media (prefers-color-scheme: dark) {
  .badge-feature { background: #064e3b; color: #6ee7b7; }
  .badge-security { background: #500724; color: #f9a8d4; }
  .badge-fix { background: #451a03; color: #fcd34d; }
}

/* ---------- Contact Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-link-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.contact-link-item:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.contact-link-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-link-label { font-size: .8rem; color: var(--text-muted); }
.contact-link-value { font-weight: 600; color: var(--text); font-size: .95rem; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card); color: var(--text);
  font-size: 1rem; font-family: var(--font); transition: var(--transition);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero { padding: 60px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-hero-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* ---------- Prose (policy/terms) ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.8; }
.prose ul { margin: 12px 0 16px 20px; list-style: disc; }
.prose ul li { margin-bottom: 6px; color: var(--text-muted); line-height: 1.7; }
.prose a { color: var(--primary); }
.prose .last-updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 32px; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.8rem; font-weight: 700; margin: 16px 0 12px; }
.error-desc { color: var(--text-muted); margin-bottom: 32px; }

/* ---------- Download Page ---------- */
.download-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.download-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.download-info-item { padding: 16px; background: var(--bg-alt); border-radius: var(--radius); }
.download-info-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }
.download-info-value { font-weight: 700; font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 48px; text-align: center; border: 1px solid var(--border); }
.about-visual-icon { font-size: 5rem; margin-bottom: 16px; }
.value-list { display: flex; flex-direction: column; gap: 16px; }
.value-item { display: flex; gap: 12px; align-items: flex-start; }
.value-icon { font-size: 1.3rem; flex-shrink: 0; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer-logo:hover { text-decoration: none; }
.footer-tagline { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.footer-brand-credit { font-size: .85rem; color: var(--text-muted); }
.footer-heading { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); text-decoration: none; }
.footer-icon { margin-right: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--primary); }
.footer-pkg { font-size: .8rem; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }
.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; }

/* ---------- Font Awesome icon helpers ---------- */
.fa-icon-lg  { font-size: 2rem;   color: var(--primary); }
.fa-icon-xl  { font-size: 3rem;   color: var(--primary); }
.fa-icon-hero{ font-size: 4.5rem; color: var(--primary); }
.feature-icon i, .why-item-icon i, .value-icon i,
.trust-icon i, .contact-link-icon i { color: var(--primary); }

/* ---------- Pricing badge ---------- */
.price-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fcd34d;
  padding: 6px 14px; border-radius: 100px;
  font-size: .85rem; font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .price-badge { background: #451a03; color: #fcd34d; border-color: #92400e; }
}
.price-note {
  font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.price-note i { color: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
}

/* ---------- Phone mockup FA icon ---------- */
.phone-screen-icon { font-size: 3.5rem; color: var(--primary); margin-bottom: 8px; }

/* ---------- Extra responsive fixes ---------- */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 1.75rem; }
  .btn-lg { padding: 13px 22px; font-size: 1rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { justify-content: center; }
  .play-store-btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .download-info-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 12px; }
  .trust-bar-inner { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .download-info-grid { grid-template-columns: 1fr; }
}

/* Prevent any horizontal overflow */
html, body { max-width: 100%; overflow-x: hidden; }
.hero::before { max-width: 100vw; }

/* ============================================================
   Pricing Section
   ============================================================ */
.pricing-section { background: var(--bg-alt); }
.pricing-card {
  max-width: 480px; margin: 0 auto;
  background: var(--bg-card); border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: 100px; font-size: .8rem; font-weight: 700;
  margin-bottom: 20px;
}
.pricing-amount { font-size: 3.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.pricing-period { font-size: .9rem; color: var(--text-muted); margin: 6px 0 16px; }
.pricing-desc { font-size: .95rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.pricing-features { text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-muted); }
.pricing-features li i { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   Extra responsive improvements
   ============================================================ */
@media (max-width: 480px) {
  .pricing-card { padding: 28px 20px; }
  .pricing-amount { font-size: 2.8rem; }
}
@media (max-width: 360px) {
  .pricing-card { padding: 20px 14px; }
}

/* ============================================================
   RESPONSIVE HARDENING — overflow, word-break, grid fixes
   ============================================================ */

/* --- Global overflow protection --- */
*, *::before, *::after { min-width: 0; }
html, body { overflow-x: hidden; max-width: 100%; }

/* --- Safe text wrapping for long strings --- */
code, .download-info-value, .contact-link-value,
.footer-pkg, .breadcrumb, .changelog-version,
.update-title, .prose p, .prose li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* code blocks (package names, URLs) */
code {
  word-break: break-all;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

/* --- Buttons: allow wrapping on very narrow screens --- */
.btn {
  white-space: normal;
  text-align: center;
  word-break: break-word;
}
/* Keep single-word buttons from wrapping unnecessarily */
.btn-sm { white-space: nowrap; }

/* Play Store button: allow text to wrap on small screens */
.play-store-btn {
  flex-wrap: wrap;
  max-width: 100%;
}
.play-store-text-main { word-break: break-word; }

/* --- Download info grid: smarter responsive layout --- */
.download-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* Package field: always full-width so the long name has room */
.download-info-item--wide {
  grid-column: 1 / -1;
}

/* --- Download card: tighter padding on mobile --- */
@media (max-width: 600px) {
  .download-card { padding: 20px 16px; }
  .download-info-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 400px) {
  .download-info-grid { grid-template-columns: 1fr; }
}

/* --- Contact link values: prevent URL overflow --- */
.contact-link-item { min-width: 0; }
.contact-link-text { min-width: 0; overflow: hidden; }
.contact-link-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

/* --- Hero: prevent overflow on very small screens --- */
.hero-badge { flex-wrap: wrap; }
.hero-title { overflow-wrap: break-word; word-break: break-word; }
.hero-desc { overflow-wrap: break-word; }
.hero-meta-item { flex-shrink: 0; }

/* --- Announcement bar: allow wrapping --- */
.announcement-bar { word-break: break-word; }

/* --- Changelog: prevent long version strings overflowing --- */
.changelog-entry { overflow: hidden; }
.changelog-version { overflow-wrap: break-word; word-break: break-word; }
.changelog-item { overflow-wrap: break-word; word-break: break-word; }

/* --- FAQ: question text must wrap, not overflow --- */
.faq-question {
  gap: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* Keep chevron from shrinking away */
.faq-chevron { flex-shrink: 0; margin-left: auto; padding-left: 8px; }

/* --- Footer: prevent long package name overflowing --- */
.footer-bottom { overflow-wrap: break-word; word-break: break-word; }
.footer-pkg code { word-break: break-all; }

/* --- Prose pages (privacy, terms): safe wrapping --- */
.prose { overflow-wrap: break-word; word-break: break-word; }
.prose h2, .prose h3 { overflow-wrap: break-word; }

/* --- Page hero: title wrapping on mobile --- */
.page-hero-title { overflow-wrap: break-word; word-break: break-word; }
.page-hero-desc { overflow-wrap: break-word; }

/* --- Pricing card: safe on narrow screens --- */
.pricing-card { overflow-wrap: break-word; word-break: break-word; }
.pricing-features li { overflow-wrap: break-word; word-break: break-word; }

/* --- Update cards: title wrapping --- */
.update-title { overflow-wrap: break-word; word-break: break-word; }
.update-desc { overflow-wrap: break-word; }

/* --- Feature cards: safe wrapping --- */
.feature-title { overflow-wrap: break-word; }
.feature-desc { overflow-wrap: break-word; }

/* --- Why section items --- */
.why-item-title { overflow-wrap: break-word; }
.why-item-desc { overflow-wrap: break-word; }

/* --- Stat cards: number wrapping on tiny screens --- */
.stat-number { overflow-wrap: break-word; word-break: break-word; }

/* --- Trust bar: items wrap cleanly --- */
.trust-bar-inner { row-gap: 12px; }
.trust-item { flex-shrink: 0; }

/* --- Section subtitle: safe wrapping --- */
.section-subtitle { overflow-wrap: break-word; }

/* --- btn-group: always wraps, never overflows --- */
.btn-group { flex-wrap: wrap; }

/* --- Responsive: 375px and below --- */
@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 32px; }
  .hero-title { font-size: 1.55rem; }
  .page-hero { padding: 40px 0 28px; }
  .page-hero-title { font-size: 1.5rem; }
  .download-card { padding: 16px 12px; }
  .pricing-card { padding: 20px 12px; }
  .pricing-amount { font-size: 2.4rem; }
  .btn-lg { padding: 12px 16px; font-size: .95rem; }
  .play-store-btn { padding: 12px 16px; }
  .stat-card { padding: 24px 12px; }
  .stat-number { font-size: 1.8rem; }
  .feature-card { padding: 20px 16px; }
  .faq-question { padding: 14px 16px; font-size: .95rem; }
  .faq-answer { padding: 0 16px 14px; }
  .error-code { font-size: 5rem; }
}

/* --- Responsive: 320px --- */
@media (max-width: 320px) {
  .container { padding: 0 10px; }
  .hero-title { font-size: 1.4rem; }
  .section-title { font-size: 1.4rem; }
  .btn { padding: 10px 14px; font-size: .9rem; }
  .nav-link { font-size: .9rem; padding: 8px 10px; }
  .footer-grid { gap: 24px; }
}
