:root {
  --bg: #f6f7fb;
  --white: #ffffff;
  --text: #18212f;
  --muted: #5f6b7b;
  --line: #dde3ee;
  --primary: #2363eb;
  --primary-dark: #174bb7;
  --accent: #f4f9ff;
  --success: #0c9f78;
  --shadow: 0 18px 45px rgba(18, 34, 60, 0.08);
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}

td {
  padding: 0.3rem;
}

/* Keep UI elements that benefit from sans-serif more legible by using a system stack where appropriate */
.button, .site-nav a, .badge, .eyebrow {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 42px;
  height: auto;
  display: block;
}

/* Hero illustration: keep native aspect ratio, responsive, and rounded corners */
.hero-illustration {
  border-radius: 14px;
  display: block; /* ensure block-level so margins behave predictably */
  width: auto;    /* allow intrinsic width but stay responsive via max-width */
  height: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 0.2rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  cursor: pointer;
}

main {
  padding: 2rem 0 4rem;
}

.hero {
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0 4rem;
}

.hero-grid,
.highlights,
.three-up,
.feature-list,
.author-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--accent);
  border: 1px solid #d9ecff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

/* Reduce main heading sizes by ~25% for improved balance */
h1 {
  /* was: clamp(2.5rem, 5vw, 4.1rem) */
  font-size: clamp(1.875rem, 3.75vw, 3.075rem);
}

h2 {
  /* was: clamp(2rem, 3vw, 2.75rem) */
  font-size: clamp(1.5rem, 2.25vw, 2.0625rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-copy p {
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  font-size: 1.2em;
}

.button,
.button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: #2B579A;
  color: var(--white);
  box-shadow: 0 12px 24px rgba(35, 99, 235, 0.2);
}

.button .icon-windows {
  width: 1em;
  height: 1em;
  margin-right: 0.5rem;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Small note below download button */
.download-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-note img {
  width: 1em; /* match font-size */
  height: 1em;
  display: inline-block;
}

/* Demo video link under the download button */
.demo-video {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.demo-video:hover {
  color: var(--primary);
  text-decoration: underline;
}

.demo-video .icon-video {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--white);
}

.hero-panel,
.card,
.info-box,
.list-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
}

.hero-panel .mini-tag {
  display: inline-block;
  color: var(--primary-dark);
  background: #edf4ff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  background: var(--accent);
  border-radius: 16px;
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.section {
  padding-top: 2rem;
}

.section-head {
  margin-bottom: 2rem;
}

/* Helper to limit heading width when desired without constraining subsequent paragraphs */
.section-head .constrained {
  max-width: 720px;
}

.three-up,
.highlights,
.feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.info-box,
.list-box {
  padding: 1.5rem;
}

.card h3,
.info-box h3,
.list-box h3 {
  margin-bottom: 0.75rem;
}

.card p,
.info-box p,
.list-box p,
.review-card p {
  margin-bottom: 0;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list li {
  margin-bottom: 0.8rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.88rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  border-left: 3px solid var(--primary);
  margin-bottom: 1.25rem;
  padding: 0 0 0 1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-meta img {
  width: 32px;
  height: auto; /* variable height allowed; images are 32px wide */
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
}

.pricing-grid,
.update-list,
.article-grid,
.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Article page layout */
.article-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.article-nav {
  position: sticky;
  top: 94px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.article-nav h4 {
  margin: 0 0 0.5rem;
}

.article-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-nav li {
  margin-bottom: 0.6rem;
}

.article-nav a {
  color: var(--text);
}

.article-body h1 {
  margin-top: 0;
}

.article-body h2 {
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-nav {
    position: relative;
    top: auto;
  }
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* Ensure buy buttons sit at the bottom of the pricing card */
.pricing-card .button-row {
  margin-top: auto;
}

.pricing-card.featured {
  border-color: rgba(35, 99, 235, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 0.4rem 0 1rem;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.update-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.update-item h3 {
  margin-bottom: 0.35rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.article-card .article-thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 0.85rem;
  object-fit: cover;
}

/* Feature image on article detail */
.article-body .article-feature {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Support / preticket styles */
.support-list {
  display: grid;
  gap: 0.5rem;
}

.toggle-problem {
  display: block;
  /* ensure the button uses site default font */
  font-family: inherit;
  font-size: 1.125rem; /* slightly larger */
  font-weight: 700;
  padding: 0.9rem 1rem;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}

/* main support image */
.support-main {
  display: inline-block;
  max-width: 160px;
  width: auto;
  height: auto;
}

.solution {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 8px;
}

.solution[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .toggle-problem { font-size: 1rem; }
  .support-main { max-width: 120px; }
}
.article-card .badge {
  display: inline-flex;
  padding: 0.34rem 0.75rem; /* slightly increased to match larger font */
  border-radius: 999px;
  background: #ecf4ff;
  color: var(--primary-dark);
  font-size: 0.9375rem; /* ~25% larger than 0.75rem */
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Article meta row: badge + published date */
.article-card .meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.article-card .article-date {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transform: translateY(-0.15rem); /* nudge date slightly up so it aligns better with the larger badge */
  display: inline-block;
}
.author-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Integrate author photo and text: tighter layout */
.author-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center; /* vertically center photo and text */
}

.author-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Guarantee logo sizing — keeps intrinsic aspect but caps width */
.guarantee-logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Author avatar: larger intrinsic size (200x200) */
.author-avatar {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Author top block mirrors guarantee header: keeps photo + summary aligned */
.author-top img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-footer {
  background: #121a29;
  color: rgba(255, 255, 255, 0.83);
  padding: 2.5rem 0 1rem;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.87);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  margin-top: 2rem;
  padding-top: 1rem;
}

pre {
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 1rem;
    left: 1rem;
    display: none;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-grid,
  .three-up,
  .highlights,
  .reviews-grid,
  .pricing-grid,
  .update-list,
  .article-grid,
  .author-grid,
  .footer-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button.secondary {
    width: 100%;
  }
}
