*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #C9A84C; --gold-light: #E8D5A0; --gold-dark: #8B6B1F;
  --ink: #0F0E0C; --cream: #FAF7F2; --cream-dark: #F0EBE0;
  --sand: #D6C9A8; --muted: #6B6355; --white: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif; --sans: 'DM Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); overflow-x: hidden; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250,247,242,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0; /* important */
}

.logo span {
  color: var(--gold);
  font-style: italic;
  margin-left: 0;
}
nav a { font-size: 0.85rem; font-weight: 500; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
nav a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--cream) !important; padding: 0.5rem 1.25rem; border-radius: 2px; }
.nav-cta:hover { background: var(--gold-dark); color: var(--cream) !important; }
nav > div { display: flex; gap: 2rem; align-items: center; }.nav-right{
  display:flex;
  align-items:center;
  gap:1.2rem;
}
.nav-login-btn{
  background:transparent;
  border:1px solid var(--sand);
  padding:0.55rem 1rem;
  border-radius:6px;
  cursor:pointer;
  font-family:var(--sans);
  font-size:0.82rem;
  transition:0.2s;
}
.nav-login-btn:hover{
  border-color:var(--gold);
  color:var(--gold-dark);
}
.nav-user{
  display:flex;
  align-items:center;
  gap:0.8rem;
}
.nav-user-info{
  display:flex;
  align-items:center;
  gap:0.55rem;
}
.nav-user-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--gold);
  color:var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.82rem;
  font-weight:700;
}
.nav-user-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
#nav-username{
  font-size:0.82rem;
  font-weight:600;
  color:var(--ink);
}
.nav-signout-btn{
  background:none;
  border:1px solid var(--sand);
  padding:0.45rem 0.8rem;
  border-radius:6px;
  cursor:pointer;
  font-size:0.78rem;
  transition:0.2s;
}
.nav-signout-btn:hover{
  border-color:#c0392b;
  color:#c0392b;
}
/* USER MENU */

.nav-user{
  position:relative;
}

/* trigger button */

.user-menu-trigger{
  display:flex;
  align-items:center;
  gap:0.7rem;

  background:white;
  border:1px solid var(--sand);

  padding:0.45rem 0.7rem;
  border-radius:12px;

  cursor:pointer;

  transition:all 0.2s ease;

  font-family:var(--sans);
}

.user-menu-trigger:hover{
  border-color:var(--gold);
  box-shadow:0 8px 25px rgba(0,0,0,0.06);
}

/* avatar */

.nav-user-avatar,
.dropdown-avatar{

  width:38px;
  height:38px;

  border-radius:50%;

  background:linear-gradient(
    135deg,
    var(--gold),
    var(--gold-dark)
  );

  color:white;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:700;
  font-size:0.9rem;

  flex-shrink:0;
}

/* text */

.user-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.1;
}

.user-name{
  font-size:0.82rem;
  font-weight:600;
  color:var(--ink);
}

.user-plan{
  font-size:0.7rem;
  color:var(--muted);
}

.user-arrow{
  font-size:0.8rem;
  color:var(--muted);
}

/* dropdown */

.user-dropdown{

  position:absolute;

  top:60px;
  right:0;

  width:270px;

  background:white;

  border:1px solid #eee;

  border-radius:18px;

  padding:0.7rem;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.12);

  display:none;
  flex-direction:column;

  z-index:9999;
}

.user-dropdown.show{
  display:flex;
}

/* header */

.dropdown-header{
  display:flex;
  align-items:center;
  gap:0.8rem;

  padding:0.7rem;
}

.dropdown-name{
  font-size:0.9rem;
  font-weight:600;
  color:var(--ink);
}

.dropdown-email{
  font-size:0.75rem;
  color:var(--muted);
  margin-top:2px;
}

/* divider */

.dropdown-divider{
  height:1px;
  background:#f1f1f1;
  margin:0.5rem 0;
}

/* items */

.dropdown-item{

  width:100%;

  border:none;
  background:none;

  text-align:left;

  padding:0.85rem 0.9rem;

  border-radius:10px;

  font-size:0.84rem;

  cursor:pointer;

  transition:all 0.18s ease;

  color:var(--ink);

  font-family:var(--sans);
}

.dropdown-item:hover{
  background:#f8f8f8;
}

.logout-item{
  color:#c0392b;
}
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 8rem 3rem 4rem; gap: 4rem; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 55%; height: 100%; background: var(--cream-dark); z-index: 0; }
.hero-left { position: relative; z-index: 1; }
.hero-right { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
h1 { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.1; color: var(--ink); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--gold-dark); }
.hero-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 440px; margin-bottom: 2.5rem; font-weight: 300; }
.waitlist-form { display: flex; gap: 0; max-width: 440px; border: 1px solid var(--sand); border-radius: 3px; overflow: hidden; background: var(--white); box-shadow: 0 8px 32px rgba(15,14,12,0.08); }
.waitlist-form input { flex: 1; padding: 0.9rem 1.2rem; border: none; outline: none; font-family: var(--sans); font-size: 0.9rem; color: var(--ink); background: transparent; }
.waitlist-form input::placeholder { color: var(--sand); }
.waitlist-form button { padding: 0.9rem 1.5rem; background: var(--gold); color: var(--ink); border: none; cursor: pointer; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s; white-space: nowrap; }
.waitlist-form button:hover { background: var(--gold-dark); color: var(--white); }
.hero-trust { margin-top: 1.5rem; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero-trust::before { content: '✓'; color: var(--gold); font-weight: 600; }

.proposal-card { background: var(--white); border: 1px solid var(--sand); border-radius: 4px; padding: 2rem; box-shadow: 0 20px 60px rgba(15,14,12,0.12); animation: floatUp 0.8s ease-out forwards; opacity: 0; transform: translateY(30px); }
@keyframes floatUp { to { opacity: 1; transform: translateY(0); } }
.proposal-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--cream-dark); }
.proposal-logo { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.proposal-badge { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); background: rgba(201,168,76,0.12); padding: 0.25rem 0.75rem; border-radius: 20px; }
.proposal-title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--ink); }
.proposal-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 1.25rem; }
.proposal-section { margin-bottom: 1rem; }
.proposal-section-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.35rem; }
.proposal-line { height: 8px; background: var(--cream-dark); border-radius: 2px; margin-bottom: 0.4rem; }
.proposal-line.w-full { width: 100%; } .proposal-line.w-3q { width: 75%; } .proposal-line.w-half { width: 50%; } .proposal-line.w-2q { width: 40%; }
.proposal-price-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--cream); border-radius: 3px; margin-top: 1rem; }
.proposal-price-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.proposal-price-value { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.proposal-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--cream-dark); display: flex; gap: 0.5rem; }
.btn-sign { flex: 1; padding: 0.6rem; background: var(--ink); color: var(--cream); border: none; border-radius: 2px; font-size: 0.75rem; font-weight: 500; cursor: pointer; letter-spacing: 0.04em; }
.btn-wa { padding: 0.6rem 1rem; background: #25D366; color: white; border: none; border-radius: 2px; font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.ai-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: var(--muted); margin-top: 0.75rem; }
.ai-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.stats { background: var(--ink); color: var(--cream); padding: 3rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2.8rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.8rem; color: rgba(250,247,242,0.6); font-weight: 300; letter-spacing: 0.04em; }

.section { padding: 6rem 3rem; }
.section-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.section-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold); }
h2 { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.02em; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 4rem; }
.step { padding: 2rem; background: var(--white); border: 1px solid var(--sand); border-radius: 4px; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,14,12,0.08); }
.step-num { font-family: var(--serif); font-size: 4rem; color: rgba(201,168,76,0.15); position: absolute; top: 0.5rem; right: 1rem; line-height: 1; }
.step-icon { width: 40px; height: 40px; background: rgba(201,168,76,0.12); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1.25rem; }
.step h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.75rem; }
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

.ai-chat-section { padding: 80px 20px; background: #f9f7f2; }
.chat-container { width: 700px; max-width: 95%; margin: auto; background: white; border-radius: 20px; box-shadow: 0px 10px 30px rgba(0,0,0,0.1); overflow: hidden; }
.chat-container header { background: #C9A84C; color: black; padding: 20px; text-align: center; }
.chat-container header h1 { font-family: var(--serif); font-size: 1.5rem; }
.chat-container header p { font-size: 0.88rem; margin-top: 0.3rem; opacity: 0.75; }

/* Usage counter bar */
.usage-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: #fff8ee;
  border-bottom: 1px solid #f0e0b0; font-size: 0.82rem;
}
.usage-bar .usage-text { color: #8B6B1F; font-weight: 500; }
.usage-bar .usage-dots { display: flex; gap: 5px; }
.usage-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0d0a0; }
.usage-dot.used { background: #C9A84C; }
.upgrade-link { font-size: 0.78rem; color: #C9A84C; font-weight: 600; cursor: pointer; text-decoration: underline; }

.language-select { display: flex; justify-content: center; gap: 20px; padding: 20px; }
.language-select button { padding: 10px 20px; border: none; background: #C9A84C; color: white; border-radius: 10px; cursor: pointer; font-family: var(--sans); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.language-select button.lang-active { background: #111; color: white; }
.chat-box { height: 400px; overflow-y: auto; padding: 20px; background: #fafafa; display: flex; flex-direction: column; gap: 8px; }
.message { padding: 12px 14px; margin-bottom: 4px; border-radius: 10px; max-width: 80%; font-size: 0.88rem; line-height: 1.6; }
.bot-message { background: #ececec; align-self: flex-start; }
.user-message { background: #C9A84C; color: white; align-self: flex-end; }
.bot-message.proposal-output { max-width: 100%; white-space: pre-wrap; background: #fff; border-left: 3px solid #C9A84C; font-size: 0.82rem; font-family: var(--sans); }
.typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing-dots span { width: 8px; height: 8px; border-radius: 50%; background: #999; animation: bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-7px); opacity: 1; } }
.input-area { display: flex; padding: 20px; gap: 0; }
.input-area input { flex: 1; padding: 12px; border: 1px solid #ddd; border-right: none; font-family: var(--sans); font-size: 0.9rem; outline: none; border-radius: 6px 0 0 6px; }
.input-area button { padding: 12px 22px; background: black; color: white; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.9rem; font-weight: 500; border-radius: 0 6px 6px 0; transition: background 0.2s; }
.input-area button:hover { background: #333; }
.download-section { display: flex; justify-content: center; gap: 20px; padding: 25px; flex-wrap: wrap; }
.pdf-btn { background: linear-gradient(135deg, #111, #333); color: white; border: none; padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.3s ease; box-shadow: 0px 5px 15px rgba(0,0,0,0.15); font-family: var(--sans); }
.pdf-btn:hover { transform: translateY(-3px); background: linear-gradient(135deg, #222, #444); }
.pdf-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E); color: white; border: none; padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.3s ease; box-shadow: 0px 5px 15px rgba(37,211,102,0.3); font-family: var(--sans); }
.whatsapp-btn:hover { transform: translateY(-3px); background: linear-gradient(135deg,#1ebe5d,#0f7b6c); }
.whatsapp-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3rem; }
.feature { padding: 1.75rem; border: 1px solid var(--sand); border-radius: 4px; background: var(--white); display: flex; gap: 1rem; align-items: flex-start; transition: border-color 0.2s; }
.feature:hover { border-color: var(--gold); }
.feature-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.feature h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink); }
.feature p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; font-weight: 300; }

.testimonial-strip { background: var(--cream-dark); padding: 4rem 3rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial { background: var(--white); border: 1px solid var(--sand); border-radius: 4px; padding: 1.5rem; }
.testimonial-stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-quote { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.65; color: var(--ink); margin-bottom: 1rem; }
.testimonial-author { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

.pricing { background: var(--cream-dark); }
.pricing-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.pricing-card { background: var(--white); border: 1px solid var(--sand); border-radius: 4px; padding: 2rem; }
.pricing-card.featured { border-color: var(--gold); position: relative; }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.9rem; border-radius: 20px; white-space: nowrap; }
.plan-name { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.plan-price { font-family: var(--serif); font-size: 2.5rem; color: var(--ink); line-height: 1; margin-bottom: 0.25rem; }
.plan-price span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 300; }
.plan-desc { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; margin-top: 0.5rem; font-weight: 300; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li { font-size: 0.82rem; color: var(--ink); padding: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--cream-dark); font-weight: 300; }
.plan-features li::before { content: '✓'; color: var(--gold); font-weight: 600; font-size: 0.75rem; flex-shrink: 0; }
.plan-btn { width: 100%; padding: 0.85rem; border-radius: 2px; font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.plan-btn.outline { background: transparent; border: 1px solid var(--sand); color: var(--ink); }
.plan-btn.outline:hover { border-color: var(--ink); }
.plan-btn.filled { background: var(--ink); border: 1px solid var(--ink); color: var(--cream); }
.plan-btn.filled:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.cta-section { background: var(--ink); padding: 6rem 3rem; text-align: center; color: var(--cream); }
.cta-section h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-section p { color: rgba(250,247,242,0.6); font-size: 1rem; font-weight: 300; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; border: 1px solid rgba(201,168,76,0.4); border-radius: 3px; overflow: hidden; }
.cta-form input { flex: 1; padding: 0.9rem 1.2rem; background: rgba(255,255,255,0.05); border: none; outline: none; color: var(--cream); font-family: var(--sans); font-size: 0.9rem; }
.cta-form input::placeholder { color: rgba(250,247,242,0.35); }
.cta-form button { padding: 0.9rem 1.5rem; background: var(--gold); border: none; color: var(--ink); font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.cta-form button:hover { background: var(--gold-light); }

footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: center; }
footer .logo { color: var(--cream); }
footer p { font-size: 0.78rem; color: rgba(250,247,242,0.4); font-weight: 300; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.lang-badges { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.lang-badge { font-size: 0.72rem; padding: 0.3rem 0.75rem; border: 1px solid var(--sand); border-radius: 20px; color: var(--muted); background: var(--white); }
.success-msg { display: none; font-size: 0.82rem; color: var(--gold-dark); margin-top: 0.75rem; font-weight: 500; }

/* ── UPGRADE POPUP ─────────────────────────────────── */
.popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,14,12,0.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.popup-overlay.show { display: flex; }
.popup-box {
  background: var(--white); border-radius: 16px;
  padding: 2.5rem; max-width: 420px; width: 90%;
  text-align: center; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: popIn 0.3s ease;
}
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-close {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 1.3rem; cursor: pointer; color: var(--muted);
  background: none; border: none; line-height: 1;
}
.popup-icon { font-size: 3rem; margin-bottom: 1rem; }
.popup-box h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--ink); }
.popup-box p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.5rem; font-weight: 300; }
.popup-price { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin-bottom: 0.25rem; }
.popup-price span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.popup-features { list-style: none; margin-bottom: 1.5rem; text-align: left; }
.popup-features li { font-size: 0.82rem; padding: 0.35rem 0; display: flex; gap: 0.5rem; align-items: center; border-bottom: 1px solid var(--cream-dark); color: var(--ink); }
.popup-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.popup-btn {
  width: 100%; padding: 0.9rem; background: var(--gold); color: var(--ink);
  border: none; border-radius: 6px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  letter-spacing: 0.04em; transition: background 0.2s;
}
.popup-btn:hover { background: var(--gold-dark); color: var(--white); }
.popup-dismiss { display: block; margin-top: 0.75rem; font-size: 0.78rem; color: var(--muted); cursor: pointer; text-decoration: underline; }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; gap: 2rem; }
  .hero::before { display: none; }
  .hero-right { display: none; }
  .steps, .features-grid, .pricing-cards, .stats, .testimonial-strip { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
  .cta-section { padding: 4rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .download-section { flex-direction: column; align-items: center; }
  .pdf-btn, .whatsapp-btn { width: 100%; max-width: 300px; }
}

/* ── AUTH OVERLAY ──────────────────────────────────── */
.auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(15,14,12,0.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.auth-overlay.show { display: flex; }
.auth-box {
  background: var(--white); border-radius: 20px;
  padding: 2.5rem 2rem; max-width: 400px; width: 92%;
  text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: popIn 0.3s ease;
}
.auth-logo { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.25rem; }
.auth-logo span { color: var(--gold); font-style: italic; }
.auth-tagline { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.75rem; }
.auth-tabs { display: flex; border: 1px solid var(--sand); border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; padding: 0.6rem; font-family: var(--sans); font-size: 0.85rem;
  font-weight: 500; border: none; cursor: pointer; transition: all 0.2s;
  background: var(--cream-dark); color: var(--muted);
}
.auth-tab.active { background: var(--ink); color: var(--cream); }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-input {
  padding: 0.85rem 1rem; border: 1px solid var(--sand); border-radius: 8px;
  font-family: var(--sans); font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; color: var(--ink);
}
.auth-input:focus { border-color: var(--gold); }
.auth-btn {
  padding: 0.85rem; background: var(--ink); color: var(--cream);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.auth-btn:hover { background: var(--gold-dark); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--sand); }
.auth-divider span { font-size: 0.75rem; color: var(--muted); }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem; border: 1.5px solid var(--sand); border-radius: 8px;
  background: var(--white); color: var(--ink); font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
  width: 100%;
}
.google-btn:hover { border-color: #4285F4; background: #f8f9ff; }
.google-icon { width: 18px; height: 18px; }
.auth-error { color: #c0392b; font-size: 0.8rem; padding: 0.5rem 0.75rem; background: #fdecea; border-radius: 6px; display: none; }
.auth-success { color: #27ae60; font-size: 0.8rem; padding: 0.5rem 0.75rem; background: #eafaf1; border-radius: 6px; display: none; }
.auth-footer { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }
.auth-loading { display: none; }
.auth-loading.show { display: block; }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--sand);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── USER HEADER BAR ───────────────────────────────── */
.user-bar {
  display: none; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: #f0faf5; border-bottom: 1px solid #b8e8d0;
  font-size: 0.82rem;
}
.user-bar.show { display: flex; }
.user-info { display: flex; align-items: center; gap: 0.5rem; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.user-name { font-weight: 500; color: var(--ink); }
.user-email { color: var(--muted); font-size: 0.75rem; }
.signout-btn {
  font-size: 0.78rem; color: var(--muted); cursor: pointer;
  background: none; border: 1px solid var(--sand); border-radius: 4px;
  padding: 0.25rem 0.6rem; transition: all 0.2s; font-family: var(--sans);
}
.signout-btn:hover { border-color: #c0392b; color: #c0392b; }

/* ── CHAT LOCK OVERLAY ─────────────────────────────── */
.chat-lock {
  position: relative;
}
.chat-lock-overlay {
  display: none; position: absolute; inset: 0; z-index: 10;
  background: rgba(250,247,242,0.95); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; flex-direction: column;
  border-radius: 0 0 20px 20px; gap: 0.75rem; text-align: center; padding: 2rem;
}
.chat-lock-overlay.show { display: flex; }
.lock-icon { font-size: 2.5rem; }
.lock-title { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.lock-desc { font-size: 0.85rem; color: var(--muted); max-width: 280px; line-height: 1.6; }
.lock-btn {
  padding: 0.75rem 2rem; background: var(--ink); color: var(--cream);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.lock-btn:hover { background: var(--gold-dark); }





/* ───────────────── MOBILE RESPONSIVE ───────────────── */

@media (max-width: 768px) {

  body{
    overflow-x:hidden;
  }

@media (max-width:768px){

  nav{
    padding:0.9rem 1rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:0.8rem;

    position:fixed;
    top:0;
    left:0;
    right:0;

    z-index:99999;

    overflow:visible; /* IMPORTANT */
  }

  nav > div{
    display:flex;
    align-items:center;
    gap:1rem;
    flex-wrap:nowrap;
  }

  .nav-right{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:0.7rem;

    overflow:visible; /* IMPORTANT */
  }

  .nav-user{
    position:relative;
    overflow:visible; /* IMPORTANT */
  }

  .user-menu-trigger{
    display:flex;
    align-items:center;
    gap:0.5rem;

    padding:0.45rem 0.7rem;

    background:white;

    border:1px solid var(--sand);

    border-radius:12px;

    cursor:pointer;
  }

  .user-dropdown{

    position:fixed; /* CHANGE FROM absolute */

    top:75px;
    right:15px;

    width:240px;

    background:white;

    border-radius:16px;

    z-index:999999;

    display:none;

    flex-direction:column;

    box-shadow:0 20px 50px rgba(0,0,0,0.18);
  }

  .user-dropdown.show{
    display:flex;
  }

}
  /* HERO SECTION */

  .hero{
    grid-template-columns:1fr;
    padding:7rem 1rem 3rem;
    gap:2rem;
  }

  .hero::before{
    display:none;
  }

  .hero-right{
    display:none;
  }

  h1{
    font-size:2.3rem;
  }

  .hero-sub{
    font-size:0.92rem;
    line-height:1.7;
  }

  /* FORMS */

  .waitlist-form,
  .cta-form{
    flex-direction:column;
    border-radius:12px;
    overflow:hidden;
  }

  .waitlist-form input,
  .cta-form input{
    width:100%;
    border-bottom:1px solid #eee;
  }

  .waitlist-form button,
  .cta-form button{
    width:100%;
  }

  /* STATS */

  .stats{
    grid-template-columns:1fr;
    padding:2rem 1rem;
  }

  .stat-num{
    font-size:2rem;
  }

  /* GENERAL SECTIONS */

  .section{
    padding:4rem 1rem;
  }

  h2{
    font-size:2rem;
  }

  /* CARDS */

  .steps,
  .features-grid,
  .pricing-cards,
  .testimonial-strip{
    grid-template-columns:1fr;
  }

  .step,
  .feature,
  .testimonial,
  .pricing-card{
    padding:1.3rem;
  }

  /* CHAT SECTION */

  .chat-container{
    width:100%;
    border-radius:16px;
  }

  .chat-box{
    height:320px;
    padding:15px;
  }

  .message{
    max-width:90%;
    font-size:0.82rem;
  }

  .input-area{
    flex-direction:column;
    gap:10px;
    padding:15px;
  }

  .input-area input{
    border-radius:8px;
    border-right:1px solid #ddd;
  }

  .input-area button{
    width:100%;
    border-radius:8px;
  }

  .download-section{
    flex-direction:column;
    align-items:center;
  }

  .pdf-btn,
  .whatsapp-btn{
    width:100%;
    max-width:100%;
  }

  /* POPUPS */

  .popup-box,
  .auth-box{
    width:94%;
    padding:2rem 1.2rem;
    border-radius:16px;
  }

  .popup-box h3{
    font-size:1.3rem;
  }

  /* PRICING */

  .plan-price{
    font-size:2rem;
  }

  /* FOOTER */

  footer{
    flex-direction:column;
    gap:1rem;
    text-align:center;
    padding:2rem 1rem;
  }

  /* LANGUAGE BUTTONS */

  .language-select{
    flex-wrap:wrap;
    gap:10px;
  }

  .language-select button{
    width:100%;
  }

  /* USER BAR */

  .user-bar{
    flex-direction:column;
    gap:0.7rem;
    align-items:flex-start;
  }

}

/* EXTRA SMALL DEVICES */

@media (max-width: 480px){

  h1{
    font-size:2rem;
  }

  h2{
    font-size:1.7rem;
  }

  .proposal-card{
    padding:1.2rem;
  }

  .proposal-title{
    font-size:1.1rem;
  }

  .proposal-price-value{
    font-size:1rem;
  }

  .popup-price{
    font-size:1.6rem;
  }

  .chat-container header h1{
    font-size:1.2rem;
  }

  .chat-container header p{
    font-size:0.75rem;
  }

  .nav-login-btn{
    padding:0.45rem 0.8rem;
    font-size:0.72rem;
  }

}

/* ── STRIPE PAYMENT MODAL ─────────────────────────── */
.payment-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(15,14,12,0.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.payment-overlay.show { display: flex; }

.payment-box {
  background: var(--white); border-radius: 20px;
  padding: 2.2rem 2rem; max-width: 420px; width: 92%;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  animation: popIn 0.3s ease;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}

.payment-close {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 1.2rem; cursor: pointer; color: var(--muted);
  background: none; border: none;
}

.payment-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1.2rem;
}

.payment-logo {
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
}
.payment-logo span { color: var(--gold); font-style: italic; }

.payment-plan-badge {
  background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.85rem; border-radius: 20px;
}

.payment-price {
  text-align: center; margin-bottom: 1.2rem;
}
.payment-amount {
  font-family: var(--serif); font-size: 2.8rem;
  color: var(--ink); line-height: 1;
}
.payment-period {
  font-size: 0.85rem; color: var(--muted); margin-left: 4px;
}

.payment-features-list {
  list-style: none; margin-bottom: 1.2rem;
  background: var(--cream); border-radius: 10px; padding: 1rem 1.2rem;
}
.payment-features-list li {
  font-size: 0.82rem; color: var(--ink);
  padding: 0.3rem 0; font-weight: 300;
}
.payment-features-list li::first-letter { color: var(--gold); font-weight: 700; }

.payment-divider {
  height: 1px; background: var(--sand); margin-bottom: 1.2rem;
}

.payment-field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

#stripe-card-element {
  border: 1.5px solid var(--sand); border-radius: 8px;
  padding: 13px 12px; margin-bottom: 0.75rem;
  transition: border-color 0.2s; background: #fff;
}
#stripe-card-element.focused { border-color: var(--gold); }

.stripe-error {
  color: #c0392b; font-size: 0.78rem;
  min-height: 18px; margin-bottom: 0.5rem;
}

.payment-row { margin-bottom: 0.75rem; }

.payment-input {
  width: 100%; padding: 12px;
  border: 1.5px solid var(--sand); border-radius: 8px;
  font-family: var(--sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; color: var(--ink);
}
.payment-input:focus { border-color: var(--gold); }

.payment-submit-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #C9A84C, #8B6B1F);
  color: #0F0E0C; border: none; border-radius: 10px;
  font-family: var(--sans); font-size: 1rem;
  font-weight: 700; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
  margin-bottom: 0.75rem;
}
.payment-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,168,76,0.5);
}
.payment-submit-btn:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

.payment-secure-note {
  text-align: center; font-size: 0.72rem;
  color: var(--muted); line-height: 1.5;
}

@media (max-width: 480px) {
  .payment-box { padding: 1.8rem 1.2rem; }
  .payment-amount { font-size: 2.2rem; }
}