/* ══════════════════════════════════════
   BÂTIDEVIS — LANDING CSS
   Variables & Reset
══════════════════════════════════════ */
:root {
  --navy: #0F1E3D;
  --navy2: #1A2F5A;
  --orange: #F97316;
  --orange2: #EA6C0A;
  --concrete: #F2F1EF;
  --white: #FAFAF9;
  --green: #16A34A;
  --text: #0F1E3D;
  --muted: #6B7280;
  --border: #E4E3E1;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 4px 24px rgba(15,30,61,.12);
  --shadow-lg: 0 12px 48px rgba(15,30,61,.18);
  --font-d: 'Space Grotesk', sans-serif;
  --font-b: 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); background: var(--white); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; border: none; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 24px; }

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 200; background: rgba(15,30,61,.96); backdrop-filter: blur(12px); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 800; font-size: 20px; color: white; }
.brand-icon { width: 36px; height: 36px; background: var(--orange); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all .18s; }
.nav-link:hover { color: white; background: rgba(255,255,255,.08); }
.nav-cta { background: var(--orange); color: white; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: all .18s; }
.nav-cta:hover { background: var(--orange2); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-hamburger span { width: 22px; height: 2px; background: white; border-radius: 2px; display: block; }

/* ── HERO ── */
.hero { background: var(--navy); min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px 80px; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,.14) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.35); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 600; color: #FDBA74; margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: blink 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.3 } }
.hero h1 { font-family: var(--font-d); font-size: clamp(34px,6vw,68px); font-weight: 800; color: white; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { font-size: clamp(15px,2vw,19px); color: rgba(255,255,255,.6); max-width: 540px; line-height: 1.6; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.btn-hero-primary { background: var(--orange); color: white; padding: 16px 32px; border-radius: var(--r-sm); font-family: var(--font-d); font-weight: 700; font-size: 16px; transition: all .2s; box-shadow: 0 8px 32px rgba(249,115,22,.4); display: inline-block; }
.btn-hero-primary:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-hero-ghost { background: rgba(255,255,255,.08); color: white; padding: 16px 28px; border-radius: var(--r-sm); font-weight: 600; font-size: 16px; border: 1.5px solid rgba(255,255,255,.2); transition: all .2s; display: inline-block; }
.btn-hero-ghost:hover { background: rgba(255,255,255,.14); }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat .val { font-family: var(--font-d); font-size: 30px; font-weight: 800; color: white; }
.hero-stat .val span { color: var(--orange); }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* Phone mockup */
.phone-wrap { width: 210px; background: #1A2F5A; border-radius: 30px; border: 5px solid rgba(255,255,255,.12); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.5); animation: float 4s ease-in-out infinite; margin-top: 48px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.phone-screen { background: var(--concrete); padding: 10px; }
.phone-topbar { background: var(--navy); border-radius: 8px 8px 0 0; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; margin: -10px -10px 10px; }
.phone-topbar span { font-family: var(--font-d); font-weight: 700; font-size: 11px; color: white; }
.p-av { width: 22px; height: 22px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; }
.p-card { background: white; border-radius: 7px; padding: 9px; margin-bottom: 7px; box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.p-card-header { font-family: var(--font-d); font-weight: 700; font-size: 10px; color: var(--navy); margin-bottom: 5px; }
.p-row { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 2px; }
.p-total { display: flex; justify-content: space-between; font-family: var(--font-d); font-weight: 700; font-size: 11px; color: var(--navy); padding-top: 5px; border-top: 1px solid var(--border); margin-top: 3px; }
.p-card-signed { border-left: 3px solid var(--green); }
.p-signed-badge { height: 36px; background: #F0FDF4; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--green); font-weight: 600; }
.p-send { background: var(--orange); color: white; border-radius: 6px; padding: 7px; text-align: center; font-weight: 700; font-size: 9px; margin-top: 5px; }

/* ── FEATURES ── */
.features { background: var(--white); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: 10px; }
.section-title { font-family: var(--font-d); font-size: clamp(26px,4vw,46px); font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 14px; }
.section-sub { font-size: 15px; color: var(--muted); line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin-top: 56px; }
.feat-card { background: white; border-radius: var(--r); padding: 28px; border: 1.5px solid var(--border); transition: all .25s; }
.feat-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-icon { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feat-card h3 { font-family: var(--font-d); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── HOW ── */
.how { background: var(--navy); }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-top: 56px; }
.how-step { text-align: center; padding: 0 16px; }
.step-num { width: 70px; height: 70px; border-radius: 50%; background: rgba(249,115,22,.12); border: 2px solid rgba(249,115,22,.3); display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 26px; color: var(--orange); margin: 0 auto 16px; }
.how-step h4 { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: white; margin-bottom: 8px; }
.how-step p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ── SIGNATURE ── */
.sig-section { background: var(--concrete); }
.sig-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; }
.sig-text p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 16px 0 24px; }
.sig-bullets { display: flex; flex-direction: column; gap: 14px; }
.sig-bullet { display: flex; align-items: flex-start; gap: 14px; }
.sig-bull-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.sig-bullet strong { font-size: 14px; display: block; margin-bottom: 2px; }
.sig-bullet span { font-size: 13px; color: var(--muted); }
.sig-demo-card { background: white; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-lg); border: 1.5px solid var(--border); }
.sig-demo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sig-doc-title { font-family: var(--font-d); font-weight: 700; font-size: 15px; }
.sig-status { display: inline-flex; align-items: center; gap: 6px; background: #FEF3C7; color: #B45309; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; transition: all .3s; }
.sig-status.signed { background: #DCFCE7; color: var(--green); }
.sig-fields { margin-bottom: 16px; }
.sig-field-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.sig-field-row strong { color: var(--text); }
.sig-mention { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sig-pad { border: 2px dashed var(--border); border-radius: 10px; height: 110px; position: relative; overflow: hidden; margin-bottom: 14px; background: #FAFAFA; cursor: crosshair; touch-action: none; transition: border-color .2s; }
.sig-pad.signed { border: 2px solid var(--green); background: #F0FDF4; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.sig-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-sig-clear { border: 1.5px solid var(--border); color: var(--muted); border-radius: var(--r-sm); padding: 10px; font-size: 13px; font-weight: 600; background: white; transition: all .18s; }
.btn-sig-clear:hover { border-color: #DC2626; color: #DC2626; }
.btn-sig-confirm { background: var(--navy); color: white; border-radius: var(--r-sm); padding: 10px; font-size: 13px; font-weight: 700; transition: all .18s; }
.btn-sig-confirm:hover { background: var(--navy2); }
.sig-cert { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 10px 14px; margin-top: 12px; font-size: 12px; color: var(--green); display: none; gap: 8px; align-items: flex-start; }
.sig-cert.show { display: flex; }

/* ── PRICING ── */
.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 24px; margin-top: 56px; max-width: 800px; margin-inline: auto; margin-top: 56px; }
.plan-card { border-radius: 20px; padding: 36px; border: 2px solid var(--border); position: relative; transition: all .25s; }
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-featured { border-color: var(--orange); background: var(--navy); color: white; }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: white; padding: 5px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-name { font-family: var(--font-d); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.plan-price { font-family: var(--font-d); font-size: 46px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.plan-price sup { font-size: 18px; vertical-align: super; font-weight: 600; }
.plan-price sub { font-size: 13px; font-weight: 400; opacity: .6; }
.plan-featured .plan-price { color: var(--orange); }
.plan-desc { font-size: 14px; opacity: .7; margin-bottom: 26px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 26px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 10px; line-height: 1.4; }
.plan-features li::before { content: '✓'; font-weight: 700; color: var(--green); flex-shrink: 0; }
.plan-featured .plan-features li::before { color: #4ADE80; }
.btn-plan { width: 100%; padding: 14px; border-radius: 10px; font-family: var(--font-d); font-weight: 700; font-size: 15px; transition: all .2s; display: block; text-align: center; }
.btn-plan-primary { background: var(--orange); color: white; box-shadow: 0 4px 16px rgba(249,115,22,.35); }
.btn-plan-primary:hover { background: var(--orange2); transform: translateY(-1px); }
.btn-plan-outline { border: 2px solid var(--border); color: var(--navy); background: white; }
.btn-plan-outline:hover { border-color: var(--navy); }

/* QR */
.qr-block { text-align: center; margin-top: 48px; padding: 32px; background: var(--concrete); border-radius: var(--r); border: 1.5px solid var(--border); max-width: 500px; margin-inline: auto; }
.qr-block h3 { font-family: var(--font-d); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.qr-block p { color: var(--muted); font-size: 14px; }
.qr-wrap { display: inline-block; padding: 14px; background: white; border-radius: 12px; box-shadow: var(--shadow); margin: 16px auto; }
.qr-url { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── SUBSCRIPTION ── */
.sub-section { background: var(--concrete); }
.sub-wrap { max-width: 580px; margin: 0 auto; background: white; border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); }
.sub-header { margin-bottom: 24px; }
.sub-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.sub-progress-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width .4s ease; }
.sub-steps-nav { display: flex; gap: 0; background: var(--concrete); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.sub-step-btn { flex: 1; padding: 9px; font-size: 13px; font-weight: 600; border-radius: 7px; text-align: center; cursor: pointer; color: var(--muted); transition: all .2s; }
.sub-step-btn.active { background: var(--navy); color: white; }
.sub-step { display: none; animation: fadeUp .25s ease; }
.sub-step.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px) } to { opacity:1; transform:none } }
.sub-success { display: none; text-align: center; padding: 16px 0; }
.sub-success.show { display: block; animation: fadeUp .3s ease; }
.success-icon { font-size: 56px; margin-bottom: 14px; }
.sub-success h3 { font-family: var(--font-d); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.sub-success p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

/* FORM FIELDS */
.fg { margin-bottom: 16px; }
.fl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; margin-bottom: 6px; }
.fi { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 15px; color: var(--text); background: white; transition: border .18s; }
.fi:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.1); outline: none; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-weight: 600; font-size: 13px; background: white; transition: all .18s; color: var(--navy); }
.btn-oauth:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.plan-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.plan-opt { border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: all .2s; text-align: center; background: white; }
.plan-opt.selected { border-color: var(--orange); background: #FFF7ED; }
.po-name { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.plan-opt.selected .po-name { color: var(--orange); }
.po-price { font-size: 13px; color: var(--muted); }
.po-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
.plan-info { border-radius: 10px; padding: 14px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.plan-info-green { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.plan-info-orange { background: #FFF7ED; border: 1px solid #FED7AA; color: #92400E; }
.pay-icons { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pay-icon { background: var(--concrete); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.cgv-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.cgv-label a { color: var(--orange); }
.guarantee-box { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--green); margin: 12px 0; }
.btn-submit { width: 100%; padding: 15px; background: var(--orange); color: white; border-radius: var(--r-sm); font-family: var(--font-d); font-weight: 700; font-size: 15px; transition: all .2s; box-shadow: 0 6px 24px rgba(249,115,22,.3); display: block; text-align: center; cursor: pointer; }
.btn-submit:hover { background: var(--orange2); transform: translateY(-1px); }
.btn-back { display: block; width: 100%; text-align: center; padding: 12px; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 10px; cursor: pointer; background: none; border: none; font-family: inherit; }
.btn-back:hover { color: var(--text); }

/* FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,.5); text-align: center; padding: 40px 24px; font-size: 13px; line-height: 1.9; }
.footer-brand { font-size: 18px; font-family: var(--font-d); margin-bottom: 6px; }
.footer-brand strong { color: white; }
.footer-legal { margin-top: 8px; font-size: 11px; }
.footer-legal a { color: rgba(255,255,255,.4); }

/* TOAST */
.toast { position: fixed; bottom: 24px; left: 20px; right: 20px; max-width: 480px; margin: 0 auto; background: var(--navy); color: white; padding: 13px 18px; border-radius: var(--r-sm); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 10px; z-index: 1000; box-shadow: 0 8px 32px rgba(0,0,0,.3); animation: slideUp .3s ease; }
.toast.hidden { display: none; }
@keyframes slideUp { from { transform:translateY(20px); opacity:0 } to { transform:none; opacity:1 } }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(15,30,61,.98); flex-direction: column; padding: 16px; gap: 4px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .sig-inner { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .field-row-2 { grid-template-columns: 1fr; }
  .oauth-row { grid-template-columns: 1fr; }
  .plan-opts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 64px 20px; }
  .how-steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .sub-wrap { padding: 24px 20px; }
}
