:root{
  --bg:#f7f8fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;
  --brand:#0d9488;
  --brand-ink:#064e3b;
  --brand-soft:#e6fffb;
  --accent:#f97316;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a{color:inherit}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

main{flex: 1 0 auto}
.footer{flex: 0 0 auto}

.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  height:68px;gap:16px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:800;text-decoration:none;
  letter-spacing:-0.2px;
}
.brand-badge{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, var(--brand), #22c55e);
  color:white;font-weight:900;
  box-shadow:0 8px 18px rgba(13,148,136,.25);
}
.navlinks{display:flex;gap:18px;align-items:center}
.navlinks a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  padding:10px 10px;border-radius:12px;
}
.navlinks a:hover{background:#f1f5f9;color:var(--text)}
.cta{
  display:flex;gap:10px;align-items:center;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;border-radius:14px;
  text-decoration:none;font-weight:700;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
}
.btn:hover{box-shadow:0 8px 18px rgba(15,23,42,.08)}
.btn.primary{
  border-color:transparent;
  background:linear-gradient(135deg, var(--brand), #10b981);
  color:white;
}
.btn.primary:hover{box-shadow:0 14px 28px rgba(13,148,136,.22)}
.btn.soft{
  background:var(--brand-soft);
  border-color:rgba(13,148,136,.25);
  color:var(--brand-ink);
}

.hero{
  background:
    radial-gradient(900px 380px at 10% 10%, rgba(13,148,136,.18), transparent 55%),
    radial-gradient(820px 360px at 90% 25%, rgba(249,115,22,.14), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom:1px solid var(--border);
}
.hero-inner{padding:56px 0 44px}
.hero-grid{
  display:grid;
  /* Right column is intentionally narrower for visual balance */
  grid-template-columns: 1fr minmax(360px, 420px);
  gap: 22px;
  align-items: stretch; /* equal column heights */
}
.hero-col{min-height: 100%}
.hero-col--left{
  display:flex;
  flex-direction: column;
  height: 100%;
}
.stats--bottom{
  /* Push KPI row to the bottom of the hero */
  margin-top: auto;
}
.hero-panel{
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}
.hero-panel-title{
  margin:10px 0 0;
  font-size:20px;
  letter-spacing:-0.2px;
}
.hero-panel-sub{
  margin:8px 0 0;
  color: var(--muted);
  font-size:14px;
}
.hero-mini{
  margin-top:12px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
}
.hero-mini-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-mini-kpi{
  border:1px solid var(--border);
  background:#f8fafc;
  border-radius: 16px;
  padding: 9px 9px;
}
.hero-mini-kpi-label{font-size:12px;color:var(--muted);font-weight:700}
.hero-mini-kpi-value{margin-top:4px;font-size:18px;font-weight:900;color:var(--text)}
.hero-mini-chart{
  margin-top:10px;
  height: 92px;
  display:flex;
  align-items:flex-end;
  gap: 8px;
  padding: 9px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13,148,136,.08), rgba(13,148,136,.02));
  border: 1px dashed rgba(13,148,136,.25);
}
.hero-mini-bar{
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13,148,136,.95), rgba(16,185,129,.85));
  box-shadow: 0 10px 20px rgba(13,148,136,.18);
}
.hero-modules{
  margin-top:12px;
  display:grid;
  gap: 10px;
}
.hero-module{
  display:block;
  text-decoration:none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
}
.hero-module:hover{
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(13,148,136,.25);
}
.hero-module-tag{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(13,148,136,.10);
  border: 1px solid rgba(13,148,136,.18);
  color: var(--brand-ink);
  font-weight: 900;
  font-size: 11px;
}
.hero-module-name{
  display:block;
  margin-top:8px;
  font-weight: 900;
  letter-spacing:-0.2px;
}
.hero-module-desc{
  display:block;
  margin-top:4px;
  color: var(--muted);
  font-size: 13px;
}
.hero--full{
  /* Fullscreen hero minus sticky header height */
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.hero--full .container{width:100%}
.hero--full .hero-inner{
  /* Slightly larger breathing room for fullscreen */
  padding: 64px 0 52px;
}
.kicker{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;
  background:rgba(13,148,136,.09);
  border:1px solid rgba(13,148,136,.18);
  color:var(--brand-ink);
  font-weight:700;
}
.kicker-dot{width:8px;height:8px;border-radius:999px;background:var(--brand)}
.h1{margin:16px 0 0;font-size:44px;line-height:1.1;letter-spacing:-0.8px}
.lead{margin:14px 0 0;max-width:760px;color:var(--muted);font-size:18px}
.hero-actions{margin-top:22px;display:flex;gap:12px;flex-wrap:wrap}
.stats{margin-top:28px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:14px 14px;box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.stat b{
  display:block;
  font-size:16px;
  line-height:1.15;
  letter-spacing:-0.2px;
  white-space:nowrap; /* keep KPI titles on one line */
}
.stat span{display:block;margin-top:2px;color:var(--muted);font-size:13px}

.section{padding:52px 0}
.section.white{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-title{margin:0;font-size:30px;letter-spacing:-0.4px}
.section-sub{margin:10px 0 0;color:var(--muted);max-width:820px}

.grid3{margin-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.grid2{margin-top:22px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.card h3{margin:0;font-size:16px}
.card p{margin:8px 0 0;color:var(--muted);font-size:14px}
.pill{
  display:inline-flex;align-items:center;
  padding:6px 10px;border-radius:999px;
  background:#f1f5f9;border:1px solid var(--border);
  color:var(--muted);font-weight:700;font-size:12px;
}
.price{
  margin-top:10px;
  font-weight:900;
  font-size:20px;
}
.list{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.list li{margin:6px 0}

.steps{margin-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.step-num{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(13,148,136,.12);
  color:var(--brand-ink);
  font-weight:900;
}

.cta-panel{
  background:linear-gradient(135deg, var(--brand), #10b981);
  color:white;
  border-radius:28px;
  padding:26px;
  box-shadow:0 22px 44px rgba(13,148,136,.25);
  border:1px solid rgba(255,255,255,.16);
}
.cta-panel p{color:rgba(255,255,255,.88)}
.form{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap:10px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
  color:white;
  outline:none;
}
.input::placeholder{color:rgba(255,255,255,.76)}
.form .btn{border-color:transparent}
.small{font-size:12px;color:rgba(255,255,255,.82);margin-top:10px}

.footer{
  padding:34px 0;
  color:#cbd5e1;
  background:#0b1220;
}
.footer a{text-decoration:none;color:#cbd5e1}
.footer a:hover{color:white}
.footer-top{
  display:flex;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-left:auto; /* keep links close to the right button */
}
.footer-btn{margin-left:6px}
.footer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: rgba(226,232,240,.88);
}
.footer-btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: rgba(226,232,240,.96);
}
.footer-copy{margin-top:14px;color:#94a3b8;font-size:13px}

.breadcrumbs{
  font-size:13px;
  color:var(--muted);
}
.breadcrumbs a{text-decoration:none;color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}

.table-wrap{
  margin-top:18px;
  overflow:auto;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}
table{width:100%;border-collapse:collapse;min-width:840px}
th,td{padding:14px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
th{background:#f8fafc;color:#334155;font-size:13px}
td{font-size:14px}
.muted{color:var(--muted)}
.tag{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f1f5f9;border:1px solid var(--border);font-size:12px;color:#334155;font-weight:700}

@media (max-width: 980px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .form{grid-template-columns:1fr}
  .h1{font-size:38px}
  .navlinks{display:none}
  .hero--full{min-height: calc(100vh - 68px)}
  .hero-grid{grid-template-columns:1fr}
  .stats--bottom{margin-top: 28px}
  .hero-panel{height:auto}
}

/* Auth (Roistat-like) */
.rs-top-section{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.rs-top-section--single{
  grid-template-columns: 1fr;
  /* Align header row to the same width as the form box */
  max-width: 480px;
}
.rs-auth-header-new{
  margin-bottom: 12px;
}
.rs-form-header-wrapper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.rs-form-header-link{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap:wrap;
}
.rs-form-text{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.rs-form-link{
  color: var(--brand);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}
.rs-form-link:hover{color: var(--brand-ink); text-decoration: underline}

.rs-form-box{
  display:flex;
  justify-content:flex-start;
}
.rs-auth-form{
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.rs-form-title{
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.4px;
}
.rs-form-description{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.rs-content-section{margin-top: 16px}
.rs-form-input-box{margin-top: 12px}
.rs-form-input{
  width: 100%;
  height: 48px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
}
.rs-form-input:focus{
  box-shadow: 0 0 0 3px rgba(13,148,136,.14);
  border-color: rgba(13,148,136,.35);
}
.rs-form-note{
  margin-top: 10px;
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}
.rs-form-button{
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--brand), #10b981);
  color: white;
  font-weight: 900;
  cursor: pointer;
}
.rs-form-button:hover{filter: brightness(1.03)}
.rs-restore-password-link{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  font-size: 13px;
}
.rs-restore-password-link a{
  color: var(--brand);
  text-decoration:none;
  font-weight: 900;
}
.rs-restore-password-link a:hover{text-decoration: underline; color: var(--brand-ink)}
.rs-divider{color: var(--muted); font-weight: 700}
.rs-oauth{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.rs-oauth-text{color: var(--muted); font-size: 13px; font-weight: 700}
.rs-oauth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
}
.rs-oauth-btn:hover{background:#eef2f7}
.rs-form-hint{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.rs-link{
  font-weight: 900;
  color: var(--brand);
  text-decoration: none;
}
.rs-link:hover{color: var(--brand-ink); text-decoration: underline}

/* Login page: center and slightly taller form */
.page-login main.section{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 44px 0;
}
.page-login .rs-top-section{width:100%}
.page-login .rs-auth-form{min-height: 520px}
.page-login .rs-auth-form{
  display:flex;
  flex-direction:column;
}
.page-login .rs-content-section{
  display:flex;
  flex-direction:column;
  flex: 1 1 auto;
}
.page-login .rs-form-bottom{
  margin-top:auto; /* push button + links + hint to bottom */
  display:flex;
  flex-direction:column;
}
.page-login .rs-form-bottom .rs-form-hint{margin-top: 12px}
.page-login .rs-form-hint{text-align:center}
.page-login .rs-restore-password-link{
  font-size: 12px;
  color: var(--muted);
}
.page-login .rs-restore-password-link a{
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.page-login .rs-restore-password-link a:hover{
  color: var(--text);
  text-decoration: underline;
}

.page-register main.section{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 44px 0;
}
.page-register .rs-top-section{width:100%}
.page-register .rs-auth-form{min-height: 560px}
.page-register .rs-auth-form{
  display:flex;
  flex-direction:column;
}
.page-register .rs-content-section{
  display:flex;
  flex-direction:column;
  flex: 1 1 auto;
}
.page-register .rs-form-bottom{
  margin-top:auto; /* push button + links + hint to bottom */
  display:flex;
  flex-direction:column;
}
.page-register .rs-form-bottom .rs-form-hint{margin-top: 12px}
.page-register .rs-form-hint{text-align:center}

@media (max-height: 720px){
  .page-login main.section{align-items:flex-start}
  .page-login .rs-auth-form{min-height: 0}
}

@media (max-height: 760px){
  .page-register main.section{align-items:flex-start}
  .page-register .rs-auth-form{min-height: 0}
}

@media (max-width: 980px){
  .rs-top-section{grid-template-columns:1fr}
}
