:root{
  --bg:#F7F8FA;
  --card:#FFFFFF;
  --text:#0B0F17;
  --muted:#6B7280;
  --line:#E5E7EB;
  --shadow: 0 1px 2px rgba(0,0,0,.06);
  --radius: 14px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.topbar{
  position:sticky; top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:36px; height:36px;
  border-radius:12px;
  background: linear-gradient(135deg, #111 0%, #444 100%);
}
.name{ font-weight:700; }
.tag{ font-size:12px; color:var(--muted); margin-top:2px; }
.brandLogoFull{
  height:60px;
  width:auto;
  display:block;
}

.actions{ display:flex; gap:10px; align-items:center; }
.userInfo{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.landingHeader .actions .btn{
  min-width:110px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}
.landingHeader .actions a.btn{
  text-decoration:none;
}
.topbar .actions .btn{
  min-width:110px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

.btn{
  border:1px solid #111;
  background:#111;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.btn.secondary{
  background:#fff;
  color:#111;
  border:1px solid var(--line);
}
.btn.ghost{
  background:transparent;
  color:#111;
  border:1px solid var(--line);
}
.btn.tiny{
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.wrap{ max-width:1200px; margin:0 auto; padding:18px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:16px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}

.cardTitle{
  font-weight:800;
  margin-bottom:14px;
}

.lbl{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:12px 0 6px;
}

.inp{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  outline:none;
  background:#fff;
}
.inp:focus{ border-color:#C7CBD3; }

.area{ resize:vertical; }

.row{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.col{ }

.splitHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
}

.scopeList{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.scopeItem{ display:flex; gap:8px; align-items:center; }
.scopeItem input{ flex:1; }
.scopeItem button{
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}

.hint{
  margin-top:14px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:12px;
}

.paper{
  border:1px solid var(--line);
  border-radius:16px;
  background:#FCFCFD;
  padding:18px;
  min-height:640px;
  position:relative;
}

.pHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pClient{ font-size:20px; font-weight:800; }
#pContactLine{
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
  white-space:pre-line;
}
#pLogo{
  max-height:50px;
  display:none;
}
.pTitle{ font-size:13px; color:#111; font-weight:700; margin-top:6px; text-transform: capitalize; }
.hr{ height:1px; background:var(--line); margin:14px 0; }

.sec{ margin-bottom:14px; }
.secT{ font-size:11px; color:var(--muted); font-weight:700; letter-spacing:.02em; text-transform: uppercase; }
.secB{ margin-top:6px; font-size:13px; line-height:1.35; }

.table{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  margin-top:10px;
  margin-bottom:20px;
  background:#fff;
}
.tRow{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:0;
}
.tRow.three{
  grid-template-columns: repeat(3, 1fr);
}
.tRow > div{
  padding:10px 12px;
  font-size:12px;
}
.tHead{
  background:#F3F4F6;
  font-weight:700;
  text-transform:none;
  font-size:11px;
  color:#111;
}

.foot{
  position:absolute;
  left:18px;
  right:18px;
  bottom:14px;
  font-size:11px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:12px;
}
#pContact{
  max-width:70%;
}
#pSign{
  position:absolute;
  right:18px;
  bottom:34px;
  max-height:40px;
  display:none;
}
.pSigRow{
  position:absolute;
  left:18px;
  right:18px;
  bottom:14px;
  display:flex;
  align-items:flex-end;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  margin-top:20px;
}
.pSigLine{
  flex:1 1 auto;
  border-bottom:1px solid var(--line);
  height:12px;
}
.pDateLine{
  width:100px;
  border-bottom:1px solid var(--line);
  height:12px;
}

.warn{
  margin-top:10px;
  font-size:12px;
  color:#8A3B00;
  background:#FFF3E8;
  border:1px solid #FFD7B8;
  padding:10px 12px;
  border-radius:12px;
}
.errorModal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(3,7,18,.4);
  z-index:60;
  padding:18px;
}
.errorModal.open{
  display:flex;
}
.errorCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  width:min(420px, 92vw);
  box-shadow: var(--shadow);
}
.errorTitle{ font-weight:800; margin-bottom:8px; }
.errorText{ font-size:13px; color:var(--text); }
.errorActions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.list{
  margin-top:16px;
  background:transparent;
}
.listHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 10px 0;
}
.recent{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.rowItem{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow: var(--shadow);
}
.rowMain{ display:flex; flex-direction:column; gap:2px; }
.rowTop{ font-weight:800; }
.rowSub{ font-size:12px; color:var(--muted); }
.rowBtns{ display:flex; gap:8px; }

/* ---------- landing ---------- */
.landingHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 28px;
  background:rgba(255,255,255,.9);
  border-bottom:1px solid var(--line);
}
.landingMain{
  max-width:1100px;
  margin:0 auto;
  padding:28px;
}
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:stretch;
  padding:24px 0 10px;
}
.heroText{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.heroText h1{
  font-size:40px;
  line-height:1.05;
  margin:0 0 10px;
}
.heroText p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:16px;
}
.heroCta{ display:flex; gap:10px; flex-wrap:wrap; }
.heroCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow);
}
.heroExample{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid var(--line);
}
.heroLabel{
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:10px;
}
.heroPaper{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:#FCFCFD;
}
.heroClient{ font-weight:800; font-size:16px; }
.heroTitle{ font-size:12px; margin-top:4px; color:#111; font-weight:700; }
.heroLine{ height:1px; background:var(--line); margin:10px 0; }
.heroBlock{ font-size:12px; color:#111; margin-bottom:8px; }

.landingSection{ padding:23px 0; }
.landingSection.features{ padding:23px 0; }
.sectionTitle{
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:12px;
  font-weight:700;
}
.featureGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.featureCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  box-shadow: var(--shadow);
}
.featureTitle{ font-weight:800; margin-bottom:6px; }
.featureBody{ color:var(--muted); font-size:13px; }

.stepGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.stepCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:12px;
}
.stepNum{
  font-weight:800;
  font-size:12px;
  color:#111;
  background:#F3F4F6;
  border-radius:999px;
  padding:6px 10px;
}
.stepText{ font-size:13px; }

.priceGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.priceGrid.three{
  grid-template-columns: repeat(3, 1fr);
}
.priceCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.priceCard .btn{
  margin-top:auto;
}
.priceCard.featured{ border-color:#111; }
.priceName{ font-weight:800; font-size:24px; }
.priceValue{ font-size:22px; font-weight:800; margin-top:6px; }
.priceNote{ color:var(--muted); font-size:13px; }
.priceList{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#111;
  font-size:13px;
  margin-top:8px;
}

.landingFooter{
  border-top:1px solid var(--line);
  padding:18px 28px 26px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.authModal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(3,7,18,.4);
  z-index:60;
  padding:18px;
}
.authCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  width:min(420px, 92vw);
  box-shadow: var(--shadow);
}
.authTitle{ font-weight:800; margin-bottom:4px; }
.authSub{ font-size:13px; color:var(--muted); margin-bottom:8px; }
.authActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
}
.authStatus{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  min-height:16px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .paper{ min-height:520px; }
  .row{ grid-template-columns: 1fr; }
  .hero{ grid-template-columns: 1fr; }
  .featureGrid{ grid-template-columns: 1fr; }
  .stepGrid{ grid-template-columns: 1fr; }
  .priceGrid{ grid-template-columns: 1fr; }
  .priceGrid.three{ grid-template-columns: 1fr; }
  .landingHeader{ padding:16px 18px; }
  .landingMain{ padding:18px; }
  .heroText h1{ font-size:30px; }
}

/* =========================
   LANDING — MARKETING TWEAKS
   ========================= */

.landingMain {
  max-width: 1200px;
}

/* HERO */
.hero {
  padding: 64px 0 48px;
  gap: 40px;
}

.heroText h1 {
  font-size: 48px;
  letter-spacing: -0.02em;
}

.heroText p {
  font-size: 18px;
  max-width: 520px;
}

/* Make CTA more visible */
.heroCta .btn {
  padding: 14px 22px;
  font-size: 16px;
}

/* Preview card = product highlight */
.heroCard {
  border-radius: 18px;
  padding: 20px;
}

.heroPaper {
  font-size: 13px;
  line-height: 1.45;
}

/* SECTION SPACING */
.landingSection {
  padding: 23px 0;
}

/* Headings hierarchy */
.sectionTitle {
  font-size: 12px;
  margin-bottom: 18px;
}

.landingSection p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
}

/* HOW IT WORKS */
.stepGrid {
  margin-top: 24px;
}

.stepCard {
  padding: 18px;
}

.stepText {
  font-size: 14px;
}

/* SEO BLOCK — intentionally quieter */
.seoSection {
  background: #f9fafb;
  border-top: 1px solid var(--line);
}

.seoSection h2 {
  font-size: 18px;
  margin-top: 36px;
}

.seoSection h3 {
  font-size: 15px;
  margin-top: 28px;
}

.seoSection p {
  font-size: 14px;
  color: #555;
}

/* FOOTER */
.landingFooter {
  font-size: 12px;
  color: var(--muted);
}

/* Responsive polish */
@media (max-width: 980px) {
  .heroText h1 {
    font-size: 34px;
  }

  .heroText p {
    font-size: 16px;
  }

  .hero {
    padding: 40px 0;
  }
}
