/*
 * Artha Auto-Plan — Landing Page Styles
 * Depends on: theme.css
 */

body { background: var(--navy); }

/* ── HEADER ── */
header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         20px 60px;
  border-bottom:   1px solid var(--border);
}
.brand          { display: flex; flex-direction: column; text-decoration: none; }
.brand-name     { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); letter-spacing: -.5px; }
.brand-sub      { font-size: .7rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.header-links   { display: flex; gap: 24px; align-items: center; }
.header-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.header-links a:hover { color: var(--cream); }
.btn-retrieve        { background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); color: var(--gold); padding: 8px 20px; border-radius: 2px; font-size: .82rem; text-decoration: none; transition: all .2s; }
.btn-retrieve:hover  { background: rgba(201,168,76,.25); }

/* ── HERO ── */
.hero {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  padding:               80px 60px 60px;
  max-width:             1200px;
  margin:                0 auto;
  align-items:           center;
}
.hero-text h1    { font-family: var(--font-serif); font-size: 3.2rem; line-height: 1.15; color: var(--cream); margin-bottom: 20px; }
.hero-text h1 em { font-style: italic; color: var(--gold); }
.hero-text p     { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 36px; font-weight: 300; }
.cta-group       { display: flex; flex-direction: column; gap: 12px; }
.btn-main        { display: inline-block; background: var(--gold); color: var(--navy); padding: 16px 40px; font-weight: 600; font-size: .95rem; border-radius: 2px; text-decoration: none; letter-spacing: .3px; transition: all .2s; width: fit-content; }
.btn-main:hover  { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,.3); }
.cta-note        { font-size: .78rem; color: var(--muted); }

/* ── HERO VISUAL (sample plan card) ── */
.hero-visual   { position: relative; }
.plan-card     { background: rgba(255,255,255,.04); border: 1px solid rgba(201,168,76,.2); border-radius: 6px; padding: 28px 32px; }
.plan-card-header     { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.plan-card-header h3  { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); }
.plan-card-header .ref { font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 2px; font-family: monospace; }
.plan-metric         { margin-bottom: 16px; }
.plan-metric-label   { font-size: .68rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 3px; }
.plan-metric-value   { font-size: 1.3rem; font-weight: 600; color: var(--cream); }
.plan-metric-value.gold  { color: var(--gold); }
.plan-metric-value.green { color: #68d391; }
.plan-metrics-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-badge          { display: inline-block; background: rgba(26,107,74,.2); color: #68d391; border: 1px solid rgba(26,107,74,.3); padding: 3px 10px; border-radius: 2px; font-size: .72rem; font-weight: 500; margin-top: 12px; }

/* ── HOW IT WORKS ── */
.how     { padding: 60px; border-top: 1px solid rgba(255,255,255,.06); max-width: 1200px; margin: 0 auto; }
.how h2  { font-family: var(--font-serif); font-size: 2rem; color: var(--cream); margin-bottom: 8px; text-align: center; }
.how-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-weight: 300; }
.steps   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step    { text-align: center; position: relative; }
.step::after { content: '→'; position: absolute; right: -20px; top: 24px; color: rgba(201,168,76,.3); font-size: 1.2rem; }
.step:last-child::after { display: none; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.3); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold); margin: 0 auto 16px; }
.step h3  { font-size: .88rem; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
.step p   { font-size: .78rem; color: var(--muted); line-height: 1.5; }
 
/* ── FAQ ── */
.faq-section { 
    padding: 60px; 
    border-top: 1px solid rgba(255,255,255,.06); 
    max-width: 1200px; 
    margin: 0 auto; 
}

.faq-section h2 { 
    font-family: var(--font-serif); 
    font-size: 2rem; 
    color: var(--cream); 
    margin-bottom: 8px; 
    text-align: center; 
}

.faq-sub { 
    text-align: center; 
    color: var(--muted); 
    margin-bottom: 48px; 
    font-weight: 300; 
}

.faq-list { 
    max-width: 800px; 
    margin: 0 auto; 
}

.faq-item { 
    background: rgba(201,168,76,.03); 
    border: 1px solid rgba(201,168,76,.08); 
    border-radius: 12px; 
    margin-bottom: 20px; 
    overflow: hidden; 
    transition: all .3s ease; 
}

.faq-item:hover { 
    border-color: rgba(201,168,76,.2); 
    box-shadow: 0 8px 32px rgba(201,168,76,.08); 
}

.faq-question { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--cream); 
    padding: 24px 32px; 
    margin: 0; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
    font-family: -apple-system, BlinkMacSystemFont, sans-serif; 
}

.faq-question::after { 
    content: '▼'; 
    font-size: 12px; 
    color: var(--gold); 
    transition: transform .3s ease; 
    font-weight: 300; 
}

.faq-answer {
    font-size: .92rem;
    color: var(--cream);
    padding: 0 32px 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: padding .3s ease, max-height .4s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;  /* Large enough for any answer length */
    padding: 24px 32px 32px;
}

.faq-answer p { 
    margin: 0; 
    opacity: 0; 
    transition: opacity .2s ease .1s;  /* Fade in after expand */
}

.faq-item.active .faq-answer p { 
    opacity: 1; 
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  /* Header */
  header {
    flex-direction: column;
    align-items:    flex-start;
    gap:            14px;
    padding:        18px 20px;
  }
  .header-links { gap: 12px; }
  .header-links a:first-child { display: none; } /* hide metainvestment.in link — saves space */
  .btn-retrieve { padding: 8px 16px; font-size: .8rem; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    gap:     32px;
    padding: 40px 20px 32px;
  }
  .hero-text h1   { font-size: 2.2rem; }
  .hero-text p    { font-size: .92rem; margin-bottom: 28px; }
  .btn-main       { padding: 14px 28px; width: 100%; text-align: center; box-sizing: border-box; }
  .hero-visual    { order: -1; }   /* show sample card above text on mobile */
  .plan-card      { padding: 20px; }

  /* How It Works — 2×2 grid instead of 4-column row */
  .how    { padding: 40px 20px; }
  .steps  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .step::after { display: none; }  /* hide → arrows in 2-col layout */

  /* FAQ */
  .faq-section  { padding: 40px 20px; }
  .faq-question { padding: 20px; font-size: .92rem; }
  .faq-answer   { padding: 0 20px 0; }
  .faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 16px 20px 24px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap:     8px;
    padding: 24px 20px;
  }
}



/* ── FOOTER ── */
footer   { border-top: 1px solid rgba(255,255,255,.06); padding: 28px 60px; display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
footer p { font-size: .78rem; color: var(--muted); }
footer a { color: var(--gold); text-decoration: none; }
