/* HAZOPNexus Public / Landing Page Styles */
:root {
  --navy:   #182D46;
  --navy2:  #1e3a58;
  --teal:   #1a7f6e;
  --slate:  #414F5E;
  --bg:     #F6F5F2;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { font-family: 'Poppins', system-ui, sans-serif; color: var(--text); background: #fff; }

/* ── Landing nav ── */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 62px;
}
.landing-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 18px; font-weight: 700;
  text-decoration: none;
}
.landing-logo-icon {
  width: 34px; height: 34px; background: rgba(255,255,255,.15);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
}
.landing-nav-links { display: flex; align-items: center; gap: 28px; }
.landing-nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.landing-nav-links a:hover { color: #fff; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all .18s; white-space: nowrap; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary   { background: var(--teal);  color: #fff; border-color: var(--teal); }
.btn-primary:hover   { background: #158a78; border-color: #158a78; }
.btn-secondary { background: var(--navy);  color: #fff; border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy2); }
.btn-white     { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-hero { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2035 60%, #0a3a3a 100%);
  color: #fff; padding: 80px 24px 60px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  background: rgba(26,127,110,.3); color: rgba(255,255,255,.9);
  border: 1px solid rgba(26,127,110,.5); border-radius: 20px;
  padding: 4px 16px; font-size: 12px; font-weight: 600; letter-spacing: .4px;
}
.hero-title { font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero-sub { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 680px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 48px; }

/* Worksheet preview */
.hero-preview {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; overflow: hidden; max-width: 860px; margin: 0 auto;
  text-align: left;
}
.hero-preview-bar {
  background: rgba(0,0,0,.2); padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
}
.hero-preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.hero-preview-body { padding: 0; overflow-x: auto; }

/* ── Sections ── */
.pub-section { padding: 80px 24px; }
.pub-section-alt { background: var(--bg); }
.pub-section-inner { max-width: 1160px; margin: 0 auto; }
.pub-section-title { font-size: clamp(26px,4vw,38px); font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 10px; }
.pub-section-sub { color: var(--muted); text-align: center; font-size: 16px; margin-bottom: 52px; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.pub-section-alt .feature-card { background: #fff; }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* Industries grid */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.industry-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.industry-icon { font-size: 28px; flex-shrink: 0; }
.industry-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.industry-card p  { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Pricing */
.billing-toggle { display: flex; gap: 0; justify-content: center; margin-bottom: 36px; background: var(--bg); border-radius: 10px; padding: 4px; width: fit-content; margin-left: auto; margin-right: auto; }
.billing-btn { padding: 8px 22px; border: none; background: transparent; cursor: pointer; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .18s; }
.billing-btn.active { background: var(--navy); color: #fff; }
.save-badge { background: #d1fae5; color: #065f46; padding: 1px 7px; border-radius: 10px; font-size: 11px; margin-left: 4px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px; position: relative; }
.pricing-card-popular { border-color: var(--teal); box-shadow: 0 4px 24px rgba(26,127,110,.15); }
.pricing-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 20px; white-space: nowrap; }
.pricing-plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 12px; }
.pricing-price { font-size: 40px; font-weight: 800; color: var(--navy); }
.pricing-period-unit { font-size: 17px; font-weight: 400; color: var(--muted); }
.pricing-period { font-size: 12px; color: var(--muted); margin-bottom: 24px; margin-top: 4px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { padding: 7px 0; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.pricing-features li.feat-no { color: var(--muted); }
.pricing-features li.feat-no::before { content: '×'; color: var(--border); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; margin-top: 36px; text-align: left; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.testimonial-card p { font-size: 14px; color: var(--slate); line-height: 1.65; font-style: italic; margin-bottom: 12px; }
.testimonial-author { font-size: 11px; color: var(--muted); font-weight: 600; }

/* CTA section */
.cta-section { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; padding: 80px 24px; text-align: center; }
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta-section h2 { font-size: clamp(24px,4vw,36px); font-weight: 800; margin-bottom: 14px; }
.cta-section p  { font-size: 17px; opacity: .85; margin-bottom: 32px; }

/* Footer */
.landing-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 24px 0; }
.landing-footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 48px; }
.landing-footer-brand p { font-size: 13px; line-height: 1.7; opacity: .7; margin-top: 8px; }
.landing-footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.landing-footer-links h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.landing-footer-links a { display: block; color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.landing-footer-links a:hover { color: #fff; }
.landing-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 20px 0; font-size: 12px; opacity: .5; max-width: 1160px; margin: 0 auto; }

/* ── Auth pages ── */
body.auth-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; box-shadow: 0 4px 24px rgba(0,0,0,.08); overflow: hidden; }
.auth-card-header { background: var(--navy); padding: 32px 32px 28px; text-align: center; }
.auth-logo-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.auth-logo-icon { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: #fff; }
.auth-logo-name { font-size: 20px; font-weight: 800; }
.auth-tagline { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 4px; }
.auth-card-body { padding: 28px 32px; }
.auth-heading { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.auth-card-footer { border-top: 1px solid var(--border); padding: 16px 32px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-card-footer a { color: var(--teal); font-weight: 600; text-decoration: none; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.form-control { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); background: #fff; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--navy); }
.required { color: var(--teal); }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Admin common */
.page-header { display:flex; align-items:center; justify-content:space-between; padding:24px 0; margin-bottom:4px; }
.page-header h1 { font-size:22px; font-weight:700; color:var(--navy); }
.page-header p  { font-size:13px; color:var(--muted); margin-top:2px; }
.card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); margin-bottom:20px; }
.card-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.card-header h3 { font-size:15px; font-weight:700; color:var(--navy); }
.card-body { padding:20px; }
.table-wrap { overflow-x:auto; }
table.data-table { width:100%; border-collapse:collapse; font-size:13.5px; }
table.data-table th { padding:10px 14px; text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); border-bottom:2px solid var(--border); background:#fafafa; }
table.data-table td { padding:11px 14px; border-bottom:1px solid var(--border); color:var(--text); vertical-align:middle; }
table.data-table tr:last-child td { border-bottom:none; }
table.data-table tr:hover td { background:#f9fafb; }
.badge { display:inline-block; padding:2px 9px; border-radius:20px; font-size:11px; font-weight:600; }
.badge-success  { background:#dcfce7; color:#166534; }
.badge-danger   { background:#fee2e2; color:#991b1b; }
.badge-warning  { background:#fef3c7; color:#92400e; }
.badge-info     { background:#dbeafe; color:#1e40af; }
.badge-secondary{ background:#f3f4f6; color:#374151; }
.text-muted  { color:var(--muted); }
.text-sm     { font-size:12px; }
.text-xs     { font-size:11px; }
.fw-600      { font-weight:600; }
.text-center { text-align:center; }
.mt-8        { margin-top:8px; }
.mb-20       { margin-bottom:20px; }
.mb-24       { margin-bottom:24px; }
.search-bar  { margin-bottom:16px; }

/* Pagination */
.pagination { display:flex; gap:4px; justify-content:center; padding:16px; }
.page-link { padding:6px 12px; border:1px solid var(--border); border-radius:6px; font-size:13px; text-decoration:none; color:var(--navy); }
.page-link.active { background:var(--navy); color:#fff; border-color:var(--navy); }

@media (max-width: 680px) {
  .landing-nav-links a:not(.btn) { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
  .landing-footer-inner { grid-template-columns: 1fr; }
  .landing-footer-links { grid-template-columns: 1fr 1fr; }
}
