body {
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #e8f1ff 0%, #ffffff 100%);
  margin: 0;
  padding: 24px 16px 16px; /* a bit less top/bottom padding */

  /* Solid base color for the whole page */
  background-color: #ffffff;

  /* Gradient only over the top portion */
  background-image: linear-gradient(180deg, #e8f1ff 0, #ffffff 600px);
  background-repeat: no-repeat;
}

/* Landing page */
#landing {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  background: white;
  padding: 32px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.landing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.landing-main {
  flex: 2;
  min-width: 260px;
}

.landing-side {
  flex: 1;
  min-width: 220px;
  background: #f5f7ff;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
}

.landing-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3a7afe;
  font-weight: bold;
  margin-bottom: 6px;
}

/* Brand bar for logo */
.brand-bar {
  max-width: 1000px;
  margin: 0 auto 12px auto;
  padding-left: 4px;
}

/* Top navigation bar */
.top-nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav-right a {
  font-size: 14px;
  color: #3a7afe;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.top-nav-right a:hover {
  background: #e8f1ff;
}

.brand-logo svg {
  display: block;
  height: 48px;
  width: auto;
}

.landing-title {
  font-size: 28px;
  font-weight: bold;
  margin: 4px 0 10px 0;
  line-height: 1.25;
}

.landing-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
  max-width: 520px;
}

.landing-cta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-cta button {
  background: #3a7afe;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.landing-cta button:hover {
  background: #2c63d6;
}

.landing-note {
  font-size: 12px;
  color: #666;
}

.landing-trust {
  font-size: 12px;
  color: #4b5563;
  margin-top: 6px;
}

.landing-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.landing-list li {
  margin-bottom: 6px;
}

.landing-side h3 {
  margin-top: 4px;
  font-size: 14px;
}

.landing-pill {
  display: inline-block;
  background: #e5f0ff;
  color: #22437d;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-bottom: 8px;
}

/* Landing callout box */
.landing-callout {
  margin-top: 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid #3a7afe;
  font-size: 13px;
  color: #374151;
}

.landing-callout strong {
  font-size: 13px;
  color: #1f2933;
}

/* Landing benefits row */
.landing-benefits {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.benefit-card {
  flex: 1;
  min-width: 200px;
  background: #f0f7ff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #c3deff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.benefit-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #1f3b7b;
}

.benefit-card p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* How it works */
.landing-how {
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.landing-how h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1f2933;
}

.how-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #4b5563;
}

.how-list li {
  margin-bottom: 4px;
}

/* Right-hand UI preview card */
.landing-ui-card {
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid #e5e8ef;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  font-size: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.landing-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f3f4ff;
  border-bottom: 1px solid #e5e8ef;
  font-size: 12px;
  color: #374151;
}

.landing-ui-badge {
  background: #3a7afe;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.landing-ui-body {
  padding: 10px;
  white-space: pre-wrap;
  color: #111827;
  min-height: 70px;
}

.landing-ui-footer {
  padding: 8px 10px;
  border-top: 1px solid #e5e8ef;
  font-size: 11px;
  color: #6b7280;
  background: #f9fafb;
}

/* Demo GIF card */
.demo-card {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e8ef;
  box-shadow: 0 3px 12px rgba(15,23,42,0.06);
  font-size: 12px;
}

.demo-label {
  font-size: 12px;
  font-weight: 600;
  color: #1f2933;
  margin-bottom: 6px;
}

.demo-video-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #000;
}

.demo-gif {
  display: block;
  width: 100%;
  height: auto;
}

.demo-caption {
  margin: 6px 0 0 0;
  font-size: 11px;
  color: #6b7280;
}

/* Make landing layout behave nicely on smaller screens */
@media (max-width: 768px) {
  .landing-grid {
    flex-direction: column;
  }

  .landing-side {
    order: -1; /* show the preview card above or below as you prefer */
  }
}

/* Landing benefits & how-it-works */
.benefits-three {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.benefit {
  flex: 1;
  min-width: 220px;
  background: #f9fbff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e5edff;
}

.benefit h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1f3b7b;
}

.benefit p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.how-it-works {
  margin-top: 32px;
  text-align: center;
}

.how-it-works h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2933;
}

.steps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}

.step {
  background: #ffffff;
  border: 1px solid #e5e8ef;
  padding: 16px;
  border-radius: 10px;
  width: 180px;
  box-sizing: border-box;
}

.step-number {
  display: inline-block;
  background: #3a7afe;
  color: white;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 28px;
  border-radius: 50%;
  font-size: 14px;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* Pricing comparison */
.pricing-table {
  margin-top: 18px;
  font-size: 13px;
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid #e1e6f0;
  padding: 8px;
  text-align: center;
}

.pricing-table th {
  background: #f1f5ff;
}

/* Dashboard container */
.container {
  background: white;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.site-footer {
  max-width: 1000px;
  margin: 24px auto 0 auto;
  padding: 12px 0 8px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

h1 {
  margin-top: 0;
  font-size: 26px;
  text-align: center;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

#accountInfo {
  text-align: center;
  font-size: 12px;
  color: #333;
  margin-bottom: 6px;
  display: none;
}

#usage {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.small {
  font-size: 12px;
  color: #666;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: bold;
  font-size: 14px;
}

label span {
  display: block;
  margin-bottom: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

textarea {
  height: 200px;
  resize: vertical;
  font-family: monospace;
  border: 1px solid #bbb;
}

button {
  background: #3a7afe;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 18px;
}

button:hover {
  background: #2c63d6;
}

.row-buttons {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-buttons button {
  flex: 1 0 auto;
}

.status {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  min-height: 20px;
}

/* Access gate & auth */
#gate {
  margin-bottom: 16px;
  text-align: center;
}

#authBox {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: none;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-tab {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: none;
  background: #f0f0f0;
  font-size: 13px;
  cursor: pointer;
}

.auth-tab.active {
  background: #3a7afe;
  color: #fff;
}

.auth-row {
  margin-top: 8px;
}

.auth-row input {
  width: 100%;
}

#authStatus {
  margin-top: 8px;
  font-size: 12px;
  min-height: 18px;
}

/* Dashboard layout */
#app {
  display: none;
}

.dashboard {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.sidebar {
  width: 200px;
  padding-right: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-right: none; /* remove the gray vertical line */
  background: #f4f6ff; /* soft blue-tinted panel, no gradient */
  border-radius: 8px;
}

.sidebar-logo {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 4px;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;      /* let the sidebar color show through */
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #1f2933;               /* darker text for better contrast */
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.7); /* light hover, very readable */
}

.nav-item.active {
  background: #3a7afe;
  color: white;
}

.nav-item.disabled {
  opacity: 0.6;
  cursor: default;
}

.nav-help-text {
  margin-top: 16px;
  font-size: 12px;
  color: #4b5563;
}

.admin-toggle {
  margin-top: 12px;
  font-size: 11px;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}

.main {
  flex: 1;
  min-width: 0;
}

.section-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.saved-notices {
  margin-top: 16px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.saved-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.saved-notice-title {
  flex: 1;
  margin-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-notice-buttons button {
  font-size: 11px;
  padding: 4px 8px;
  margin-top: 0;
}

/* Account / Billing sections */
#accountSection, #billingSection {
  display: none;
  font-size: 14px;
}

.account-row {
  margin-top: 8px;
}

.account-label {
  font-weight: bold;
}

.logout-btn {
  background: #999;
  margin-top: 16px;
}

/* Upgrade banner (dynamic content) */
#upgradeBanner {
  text-align: center;
  margin-bottom: 16px;
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

/* HELP / FAQ modal */
#helpModal {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  justify-content:center;
  align-items:center;
}

#helpModalInner {
  background:white;
  width:90%;
  max-width:520px;
  padding:20px 25px;
  border-radius:10px;
  box-shadow:0 4px 20px rgba(0,0,0,0.3);
  max-height:80%;
  overflow-y:auto;
  font-size: 13px;
}

#helpModalInner h3 {
  margin-top: 0;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.98)
  );
  padding: 16px;
  box-sizing: border-box;
}

.paywall-inner {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #d1d9e6;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
}

.paywall-inner h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.paywall-inner ul {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.paywall-price {
  margin: 8px 0 0 0;
  font-size: 15px;
}

.paywall-subtext {
  margin: 2px 0 10px 0;
  font-size: 12px;
  color: #4b5563;
}

.paywall-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.paywall-btn:hover {
  background: #1d4ed8;
}

.paywall-trust {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
  text-align: left;
}
