/* ===== Design Tokens — PropAnalyzer AI Brand ===== */
:root {
  /* Brand greens */
  --primary:         #1E5C35;   /* dark forest green — logo bg, CTA buttons */
  --primary-hover:   #174D2C;
  --primary-mid:     #2D7A4F;   /* medium green — hover states */
  --green-bright:    #38A169;   /* bright green — prices, active icons */
  --green-light:     #E8F5EE;   /* very light green tint — selected cards */
  --green-border:    #A7D7BA;   /* light green border */

  /* Score / status */
  --score-red:       #EF5350;
  --score-red-bg:    #FFEBEE;
  --score-orange:    #FFA726;
  --score-orange-bg: #FFF3E0;
  --score-green:     #43A047;
  --score-green-bg:  #E8F5E9;
  --tag-blue:        #1976D2;
  --tag-blue-bg:     #E3F2FD;

  /* Neutrals */
  --dark:            #111827;
  --text:            #1F2937;
  --text-muted:      #6B7280;
  --text-light:      #9CA3AF;
  --surface:         #F9FAFB;
  --surface-card:    #FFFFFF;
  --border:          #E5E7EB;
  --border-light:    #F3F4F6;
  --white:           #FFFFFF;

  /* Radius */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --shadow-green: 0 8px 24px rgba(30,92,53,.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 68px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Typography ===== */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; width: 100%; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--dark);
}
.nav-logo-img {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; flex-shrink: 0;
}
.nav-logo-img img {
  width: 36px; height: 36px; border-radius: 9px;
  object-fit: cover; display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.nav-logo-text { display: flex; align-items: baseline; gap: 0; }
.nav-logo-text .prop { color: var(--primary); }
.nav-logo-text .rest { color: var(--dark); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--r-sm);
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
  box-shadow: var(--shadow-green);
}
.nav-cta:hover { background: var(--primary-hover) !important; transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #0D2B1A 0%, var(--primary) 60%, #2D7A4F 100%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 56px;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,161,105,.18);
  border: 1px solid rgba(56,161,105,.35);
  color: #6EE29A;
  border-radius: 100px; padding: 5px 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 18px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #6EE29A; }
.hero-title { color: var(--white); margin-bottom: 18px; }
.hero-title em { font-style: normal; color: #7EE8A2; }
.hero-subtitle { color: rgba(255,255,255,.68); font-size: 1.05rem; margin-bottom: 38px; }

/* ===== Store Buttons ===== */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .875rem;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store-ios {
  background: var(--white); color: var(--dark);
  border-color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn-store-ios:hover { box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn-store-android {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-store-android:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}
.btn-store-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.btn-store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.btn-store-sub  { font-size: .68rem; font-weight: 400; opacity: .6; }
.btn-store-name { font-size: .95rem; font-weight: 700; }

/* dark-bg variant (hero + download section) already styled above */
/* light-bg variant for on-white sections */
.btn-store-primary {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-green);
}
.btn-store-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-store-secondary {
  background: var(--white); color: var(--dark);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-store-secondary:hover { border-color: var(--green-border); box-shadow: var(--shadow-md); }

/* ===== Hero Phone Mockups ===== */
.hero-screens {
  display: flex; justify-content: center; align-items: flex-end;
  gap: -20px; position: relative; padding-bottom: 10px;
}
.phone-frame {
  width: 200px;
  border-radius: 36px;
  border: 5px solid rgba(255,255,255,.18);
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
  overflow: hidden;
  flex-shrink: 0;
}
.phone-frame img { width: 100%; display: block; }
.phone-frame-back {
  margin-right: -40px;
  margin-bottom: 30px;
  opacity: .75;
  transform: scale(.93);
}

/* ===== Section Shell ===== */
.section { padding: 80px 24px; }
.section-alt { background: var(--surface); }
.container { max-width: 1160px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title { color: var(--dark); margin-bottom: 14px; }
.section-subtitle { font-size: 1rem; max-width: 540px; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto 52px; }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 20px; margin-top: 52px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-border);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.feature-card h3 { color: var(--dark); margin-bottom: 6px; }

/* ===== Stats Row ===== */
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 40px; margin-top: 52px;
}
.stat-item { text-align: center; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== How It Works ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-top: 52px; position: relative;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-green);
}
.step h3 { color: var(--dark); }

/* ===== Score Chips ===== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
}
.chip-red    { background: var(--score-red-bg);    color: var(--score-red); }
.chip-orange { background: var(--score-orange-bg); color: var(--score-orange); }
.chip-green  { background: var(--score-green-bg);  color: var(--score-green); }
.chip-blue   { background: var(--tag-blue-bg);     color: var(--tag-blue); }

/* ===== Screens Showcase ===== */
.screens-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 20px; margin-top: 52px; flex-wrap: wrap;
}
.screen-card {
  width: 195px; border-radius: var(--r-lg);
  overflow: hidden; border: 4px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform .25s;
}
.screen-card:hover { transform: translateY(-6px); }
.screen-card img { width: 100%; display: block; }
.screen-label {
  text-align: center; font-size: .78rem; font-weight: 600;
  color: var(--text-muted); margin-top: 10px;
}

/* ===== Download CTA ===== */
.download-section {
  background: linear-gradient(135deg, #0D2B1A 0%, var(--primary) 100%);
  padding: 88px 24px;
}
.download-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.download-inner h2 { color: var(--white); margin-bottom: 14px; }
.download-inner p  { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 38px; }
.download-buttons  { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  padding: 44px 24px 24px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--white); font-size: 1rem;
}
.footer-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: .875rem; color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  max-width: 1160px; margin: 24px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; color: rgba(255,255,255,.35); text-align: center;
}

/* ===== Inner Page Hero ===== */
.page-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  background: linear-gradient(160deg, #0D2B1A 0%, var(--primary) 100%);
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1rem; }

/* ===== Page Content ===== */
.page-content {
  max-width: 820px; margin: 0 auto;
  padding: 60px 24px 96px;
}

/* ===== Support Cards ===== */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin-bottom: 52px;
}
.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 22px; text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.support-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-border); }
.support-card-icon { font-size: 1.9rem; margin-bottom: 10px; }
.support-card h3  { color: var(--dark); margin-bottom: 6px; }
.support-card p   { font-size: .875rem; }
.support-link {
  display: inline-block; margin-top: 10px;
  font-size: .875rem; font-weight: 600; color: var(--primary);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.support-link:hover { border-color: var(--primary); }

/* ===== FAQ ===== */
.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-weight: 600; color: var(--dark); font-size: .975rem;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 18px 0; user-select: none;
}
.faq-toggle {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--primary); transition: background .2s;
}
.faq-item.open .faq-toggle { background: var(--green-light); }
.faq-toggle-icon::before { content: '+'; }
.faq-item.open .faq-toggle-icon::before { content: '−'; }
.faq-answer {
  color: var(--text-muted); font-size: .93rem; line-height: 1.7;
  padding-bottom: 18px; display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* ===== Legal / Privacy ===== */
.updated-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); border: 1px solid var(--green-border);
  border-radius: 100px; padding: 5px 14px;
  font-size: .8rem; color: var(--primary); font-weight: 500;
  margin-bottom: 36px;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-sm); padding: 22px 26px; margin-bottom: 44px;
}
.legal-toc h3 { color: var(--dark); margin-bottom: 12px; font-size: .95rem; }
.legal-toc ol { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.legal-toc li { font-size: .9rem; }
.legal-toc a { color: var(--primary); font-weight: 500; }
.legal-toc a:hover { text-decoration: underline; }

.legal-section { margin-bottom: 40px; scroll-margin-top: 88px; }
.legal-section h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}
.legal-section p, .legal-section li {
  font-size: .94rem; color: var(--text-muted); line-height: 1.78;
}
.legal-section ul, .legal-section ol {
  padding-left: 20px; margin-top: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.legal-section ul li { list-style: disc; }
.legal-section a { color: var(--primary); text-decoration: underline; }
.legal-section strong { color: var(--dark); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .store-buttons { justify-content: center; }
  .hero-screens { order: -1; }
  .phone-frame-back { display: none; }
  .phone-frame { width: 170px; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 60px 16px; }
  .download-section { padding: 64px 16px; }
  .page-content { padding: 40px 16px 72px; }
}
