/* ── Variables ── */
:root {
  --color-bg: #f0f2f5;
  --color-surface: #ffffff;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-cta: #16a34a;
  --color-cta-hover: #15803d;
  --color-danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --max-width: 1100px;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-type: circle;
  margin: 12px 0 12px 24px;
}

ul li, ol li {
  line-height: 1.7;
  margin-bottom: 4px;
}

ul.nolist li, ol.nolist li {
  list-style-type: none;
}

:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Utility ── */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.clear { clear: both; }

.danger {
  color: var(--color-danger);
}

/* ── Links ── */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

a.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
  text-decoration: none;
  margin: 8px 8px 0 0;
}

a.btn:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

a.btn-cta {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

a.btn-cta:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #fff;
}

/* ── Typography ── */
p {
  margin: 0 0 16px 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 { font-size: 2.2em; font-weight: 800; margin-bottom: 12px; }
h2 { font-size: 2em; font-weight: 700; margin-bottom: 8px; }
h3 { font-size: 1.5em; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 1.25em; font-weight: 600; margin-bottom: 4px; }
h5 { font-size: 1.1em; font-weight: 600; margin-bottom: 4px; }

/* ── Grid / Layout ── */
.container {
  width: 100%;
  background: var(--color-bg);
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.header {
  position: relative;
  width: 100%;
  padding: 0;
}

.subpage .header {
  position: relative;
  width: 100%;
  padding: 0;
}

/* ── Top Nav ── */
.header .top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  margin: 0 -24px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.top-nav .logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.top-nav .logo:hover {
  text-decoration: none;
}

.header ul.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .nav li {
  list-style-type: none;
  margin: 0;
}

.header .nav li a {
  display: block;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.header .nav li a:hover {
  color: var(--color-text);
  background: var(--color-bg);
  text-decoration: none;
}

.header .nav li a.selected {
  color: var(--color-primary);
  font-weight: 600;
}

.header .nav li a.nav-cta {
  background: var(--color-cta);
  color: #fff;
  font-weight: 600;
}

.header .nav li a.nav-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--color-bg);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Page Title / Hero ── */
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 32px;
}

.page-title h2 {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.page-title ul.nav {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-title ul.nav li {
  list-style-type: none;
}

.page-title ul.nav li a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  transition: all var(--transition);
  text-decoration: none;
}

.page-title ul.nav li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.page-title ul.nav li a.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Content Area ── */
.sub-header {
  width: 100%;
}

.content-top, .content-btm {
  display: none;
}

.content {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  background: none;
}

/* ── About Features List ── */
#about-list {
  width: 100%;
  padding: 0;
  font-size: 15px;
}

#about-list .inner {
  width: 100%;
  margin: 0;
}

#about-list .feature.left,
#about-list .feature.right {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

#about-list .feature.left:first-child {
  padding-top: 0;
  border-top: none;
}

#about-list .feature.right {
  flex-direction: row-reverse;
}

#about-list .feature img {
  width: 380px;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0;
  float: none;
}

#about-list .feature.left img,
#about-list .feature.right img {
  padding: 0;
}

#about-list .feature .description {
  padding: 0;
  flex: 1;
  min-width: 0;
}

#about-list .feature .description h1.blue {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

#about-list .feature .description p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

#about-list .feature .description ul {
  margin: 12px 0 16px 20px;
}

#about-list .feature .description ul li {
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

a.video {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 0;
  transition: color var(--transition);
}

a.video:hover {
  color: var(--color-primary-hover);
}

/* ── Two Column Layout ── */
.colleft, .colright {
  width: 100%;
}

.colright {
  margin: 0;
}

.small {
  width: 100%;
}

/* ── Showcase (Home page) ── */
.showcase {
  padding: 60px 0;
}

.showcase h2 {
  font-size: 2.8em;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.showcase p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* ── Tables ── */
#table-a {
  width: 100%;
  margin: 0 0 20px 0;
  border-collapse: separate;
  border-spacing: 0;
}

#table-a thead th {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

#table-a tr.alt {
  background: var(--color-bg);
}

#table-a td {
  padding: 12px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

#table-a td.left {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}

/* ── Testimonials ── */
.testimonial p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ── Footer ── */
.footer {
  width: 100%;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.footer .copy {
  width: 100%;
  float: none;
  text-align: center;
}

.footer p {
  color: var(--color-text-light);
  font-size: 13px;
  margin: 0;
}

/* ── Steps (Signup page) ── */
ul.steps {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

ul.steps li {
  list-style: none;
  padding: 8px 0;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

ul.steps h5 {
  margin-top: 16px;
  color: var(--color-text);
}

/* ── Inline color helpers ── */
.blue {
  color: var(--color-primary) !important;
}

.brown {
  color: #92400e !important;
}

.bold {
  font-weight: 600;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Tablet and up: two-column signup */
@media screen and (min-width: 769px) {
  .colleft, .colright {
    float: left;
    width: 48%;
  }

  .colright {
    margin-left: 4%;
  }

  .colleft.small {
    width: 38%;
  }

  .colright {
    width: 58%;
  }
}

/* Mobile nav */
@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header ul.nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
    z-index: 99;
  }

  .header ul.nav.nav-open {
    display: flex;
  }

  .header .nav li a {
    padding: 12px 16px;
    font-size: 15px;
    text-align: right;
  }

  .header .nav li a.nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .wrapper {
    padding: 0 16px;
  }

  .header .top-nav {
    margin: 0 -16px;
    padding: 0 16px;
  }

  /* Page title stacks */
  .page-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 0 24px;
  }

  .page-title h2 {
    font-size: 2em;
  }

  /* About features stack vertically */
  #about-list .feature.left,
  #about-list .feature.right {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  #about-list .feature img {
    width: 100%;
  }

  /* Signup columns stack */
  .colleft, .colright {
    float: none;
    width: 100%;
  }

  .colright {
    margin: 24px 0 0 0;
  }
}

/* ── Home Page: Hero ── */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 60px 0 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h2 {
  font-size: 2.8em;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-video {
  flex-shrink: 0;
  width: 500px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Home Page: Content Layout ── */
.home-content {
  display: flex;
  gap: 40px;
  padding: 40px 0;
}

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

.home-sidebar {
  width: 340px;
  flex-shrink: 0;
}

.section-heading {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.section-heading .see-all {
  font-size: 14px;
  font-weight: 500;
  margin-left: 12px;
}

/* ── Home Page: Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: none;
  border-radius: 0;
}

.feature-card h4 {
  font-size: 1em;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.feature-card a {
  font-weight: 600;
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  box-shadow: none;
}

.testimonial-header strong {
  color: var(--color-text);
}

.testimonial-header div {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.testimonial p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ══════════════════════════════════════
   RESPONSIVE: SMALL
   ══════════════════════════════════════ */

@media screen and (max-width: 480px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.5em; }

  .page-title h2 {
    font-size: 1.6em;
  }

  #about-list .feature .description h1.blue {
    font-size: 1.3em;
  }
}

/* ── Home page responsive ── */
@media screen and (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 32px;
    padding: 40px 0 32px;
  }

  .hero-video {
    width: 100%;
  }

  .hero-text h2 {
    font-size: 2.2em;
  }

  .home-content {
    flex-direction: column;
    gap: 32px;
  }

  .home-sidebar {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-text h2 {
    font-size: 1.8em;
  }
}
