/* Home page preview (hidden, noindex) — /home-preview/
   Loaded AFTER style.css, so everything here is an addition or an
   override scoped to the preview page only. style.css is untouched. */

.hp-page .eyebrow,
.hp-page .proof-label {
  font-size: 0.85rem;
}

.hp-page .section-heading {
  max-width: 46rem;
}

/* ---------- Screenshot browser frame ---------- */
.hp-shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 30px 70px rgba(27, 28, 34, 0.12);
  overflow: hidden;
}
.hp-shot-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.hp-shot-dots {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.hp-shot-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
}
.hp-shot-dots .dot-red { background: #f16b6b; }
.hp-shot-dots .dot-yellow { background: #f2c14e; }
.hp-shot-dots .dot-green { background: #4bc27a; }
.hp-shot-url {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-left: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-alt);
}

.hp-micro {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.85rem 0 0;
}

/* Hero variant: a soft brand halo behind the frame instead of the
   invented-number mock-up, plus a stack of product chips below it. */
.hp-hero-shot {
  position: relative;
}
.hp-hero-shot::before {
  content: "";
  position: absolute;
  inset: 6% -6% -8% 6%;
  background: linear-gradient(135deg, var(--brand-primary), #ff4f8b);
  opacity: 0.12;
  border-radius: 1.75rem;
  z-index: -1;
}
.hp-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.hp-hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.hp-hero-chips i {
  color: var(--brand-primary);
}

/* ---------- Proof-strip links (industry links under the hero) ---------- */
/* The strip sits on a tinted background, so the inherited link colour was
   too light. Pin it to the page's dark text colour (>= 4.5:1) and give it a
   visible underline on hover and focus-visible. */
.hp-page .proof-strip .proof-icons a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.15em;
}
.hp-page .proof-strip .proof-icons a:hover,
.hp-page .proof-strip .proof-icons a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- Screenshot tour ---------- */
.hp-tour-tabs {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem;
  background: var(--surface-alt);
  gap: 0.35rem;
}
.hp-tour-tabs .nav-link {
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
}
.hp-tour-tabs .nav-link:hover {
  color: var(--brand-primary);
}
.hp-tour-tabs .nav-link.active,
.hp-tour-tabs .nav-link.active:hover,
.hp-tour-tabs .nav-link.active:focus {
  background: var(--brand-primary);
  color: #ffffff !important;
}
.hp-tour-tabs .nav-link.active i,
.hp-tour-tabs .nav-link.active:hover i,
.hp-tour-tabs .nav-link.active:focus i {
  color: #ffffff !important;
}
.hp-tour-pane {
  padding-top: 1.75rem;
}
/* On narrow-but-not-tiny screens the tab row is too wide to fit as a single
   pill. It scrolls horizontally inside its own box instead of wrapping into
   a broken pill or pushing the page wider. */
@media (min-width: 360px) and (max-width: 414px) {
  .hp-page .hp-tour-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .hp-page .hp-tour-tabs::-webkit-scrollbar {
    height: 6px;
  }
  .hp-page .hp-tour-tabs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
  }
}
.hp-caption {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.hp-caption i {
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ---------- Modules ---------- */
.hp-module-feature {
  background: linear-gradient(135deg, #fff, var(--brand-soft));
  border-color: rgba(107, 15, 36, 0.22);
}
.hp-module-feature h3 {
  font-size: 1.3rem;
}
.hp-modules-more {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  padding: 1.75rem;
  border: 1px dashed rgba(107, 15, 36, 0.3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hp-modules-more:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}
.hp-modules-more i {
  font-size: 1.6rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.hp-modules-more strong {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
}
.hp-modules-more span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Content helpers ---------- */
.hp-split {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(27, 28, 34, 0.05);
}
.hp-split h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  margin-bottom: 0.9rem;
}
.hp-split .hp-split-lead {
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
.hp-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 600;
}
.hp-note i {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.hp-included {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2.5rem;
}
.hp-included li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.94rem;
  break-inside: avoid;
}
.hp-included i {
  color: var(--brand-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.hp-security .solve-row:last-child {
  border-bottom: none;
}

/* ---------- Mid-page CTA strip ---------- */
.hp-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 1.5rem;
  background: var(--bg-plum-glow);
  color: #fff;
  box-shadow: 0 20px 50px rgba(107, 15, 36, 0.18);
}
.hp-cta-strip h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 0.35rem;
}
.hp-cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
}
.hp-cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hp-cta-strip .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hp-cta-strip .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Sticky mobile action bar ---------- */
/* Its own class, not .mobile-contact-bar: this one is always visible on a
   phone, so it must not depend on a contact number being configured. It
   sits at z-index 990 — below the consent banner (1000) and the WhatsApp
   float button (1040) — and is hidden entirely while the consent banner is
   open. */
.hp-action-bar {
  display: none;
}
/* Hidden entirely while the consent banner is open (banner z-index 1000
   covers the bar, so the bar is hidden rather than stacked). */
body.consent-open .hp-action-bar {
  display: none;
}
@media (max-width: 767.98px) {
  /* Shared height token so the WhatsApp float button can sit just above
     the bar on small screens. Defined on the body (ancestor of both) so
     the float button — a sibling, not a descendant — inherits it. */
  .hp-page {
    --hp-action-bar-height: calc(0.6rem + 44px + 0.6rem + env(safe-area-inset-bottom));
  }
  .hp-page .hp-micro {
    text-align: center;
  }
  .hp-action-bar {
    display: flex;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(27, 28, 34, 0.08);
  }
  .hp-action-bar .btn {
    min-height: 44px;
  }
  /* Keep the WhatsApp float button clear of the sticky bar on small
     screens — it sits just above the bar instead of under it. */
  .whatsapp-float-btn {
    bottom: calc(var(--hp-action-bar-height) + 12px);
  }
}

/* ---------- Tap targets & small phones ---------- */
@media (max-width: 575.98px) {
  .hp-page .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hp-page .nav-link,
  .hp-page .footer-links a,
  .hp-page .hp-tour-tabs .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .hp-page .hero {
    padding: 2.5rem 0 2rem;
  }
  .hp-page .hp-split {
    padding: 1.75rem 1.35rem;
  }
  .hp-page .hp-included {
    columns: 1;
  }
  .hp-page .hp-cta-strip {
    padding: 1.5rem 1.35rem;
  }
  .hp-page .hp-cta-strip-actions {
    width: 100%;
  }
  .hp-page .hp-cta-strip-actions .btn {
    width: 100%;
  }
  .hp-page .module-card {
    padding: 1.4rem;
  }
  .hp-page .proof-icons {
    gap: 0.9rem 1.25rem;
  }
  .hp-page .proof-icons span,
  .hp-page .proof-icons a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hp-page *,
  .hp-page *::before,
  .hp-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Headings moved from h4 to h3 (heading order); keep the same look. */
.why-card h3.h5 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.capability-card h3.h5 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.step-item h3.h5 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}
.solve-row h3.h5 {
  font-size: 0.98rem;
  margin: 0 0 0.25rem;
}

/* ---------- Home CTA banner (task 473) ---------- */
/* Home page CTA Banner - new wide banner */
.cta-banner {
  background: var(--bg-plum-glow);
  border-radius: 28px;
  padding: 3rem 3.5rem;
  color: #fff;
  box-shadow: 0 20px 50px rgba(107, 15, 36, 0.18);
}

.cta-banner-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.3rem 0.75rem;
  background: #f7a8c8;
  color: #4b1d3f;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-heading {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.cta-highlight {
  color: #f7a8c8;
}

.cta-text {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cta-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 120px;
}

.cta-feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.cta-feature-label {
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.cta-feature-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
}

.cta-middle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.laptop-mockup {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.laptop-bezel {
  width: 100%;
  background: #1a1a1a;
  border-radius: 12px 12px 8px 8px;
  padding: 8px 8px 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.laptop-bezel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #fff;
}

.laptop-base {
  width: 110%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 0 0 12px 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.laptop-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  background: #b0b0b0;
  border-radius: 0 0 4px 4px;
}

.laptop-decor {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  opacity: 0.6;
  border-radius: 1px;
}

.decor-1 {
  top: 8px;
  right: 12px;
  transform: rotate(45deg);
}

.decor-2 {
  top: 8px;
  right: 16px;
  transform: rotate(-45deg);
}

.cta-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-height: 52px;
  color: #4b1d3f !important;
}

.cta-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff !important;
}

.cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.cta-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.cta-check-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.cta-check-item i {
  color: #f7a8c8;
}

/* Responsive */
@media (max-width: 1200px) {
  .cta-banner-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .cta-middle {
    order: -1;
  }
  
  .laptop-mockup {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 2rem 1.75rem;
    border-radius: 20px;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .cta-feature-divider {
    display: none;
  }
  
  .cta-feature-item {
    width: 100%;
  }
  
  .cta-checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .cta-banner {
    padding: 1.75rem 1.25rem;
  }
  
  .cta-btn-primary,
  .cta-btn-outline {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

/* ---------- Task 474 ---------- */
.hp-modules-section {
  background: var(--surface);
}

.hp-modules-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hp-modules-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 50rem;
}

.hp-modules-subtext {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36rem;
}

.hp-modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.hp-module-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 165px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}

.hp-module-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 28, 34, 0.08);
}

.hp-module-tile-featured {
  grid-column: span 2;
  background: var(--bg-plum-glow);
  color: #ffffff;
  border: none;
}

.hp-module-tile-wide {
  grid-column: span 2;
}

.hp-module-tile-dashed {
  border: 1px dashed var(--border);
  background: var(--surface-alt);
}

.hp-module-icon-tile {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.hp-module-tile-featured .hp-module-icon-tile {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hp-module-tile-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.hp-module-tile-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.hp-module-tile-featured .hp-module-tile-desc {
  color: rgba(255, 255, 255, 0.85);
}

.hp-module-tile-wide-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  height: 100%;
}

.hp-module-tile-link {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.hp-module-tile-dashed .hp-module-tile-desc {
  color: var(--ink-muted);
}

@media (max-width: 1199.98px) {
  .hp-modules-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hp-module-tile-featured {
    grid-column: span 2;
  }

  .hp-module-tile-wide {
    grid-column: span 4;
  }
}

@media (max-width: 991.98px) {
  .hp-modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-module-tile-wide {
    grid-column: span 3;
  }
}

@media (max-width: 767.98px) {
  .hp-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-module-tile-featured {
    grid-column: span 2;
  }

  .hp-module-tile-wide {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .hp-modules-grid {
    grid-template-columns: 1fr;
  }

  .hp-module-tile-featured,
  .hp-module-tile-wide {
    grid-column: span 1;
  }
}

/* Comparison */
.hp-comparison-section {
  background: var(--surface);
}

.hp-comparison-header {
  margin-bottom: 2.5rem;
}

.hp-comparison-left {
  max-width: 42rem;
}

.hp-comparison-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hp-comparison-subtext {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.hp-comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.hp-comparison-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  background: var(--surface);
}

.hp-comparison-table thead th {
  background: var(--surface-alt);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.hp-comparison-table tbody th {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.hp-comparison-table tbody td {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.hp-comparison-table tbody tr:last-child th,
.hp-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.hp-comparison-col-feature {
  width: 40%;
}

.hp-comparison-col-others {
  width: 20%;
}

.hp-comparison-col-erp2x {
  background: #6b0a28;
  color: #ffffff;
  border-left: none;
}

.hp-comparison-table thead .hp-comparison-col-erp2x {
  background: #6b0a28;
  color: #ffffff;
  border-bottom: none;
}

.hp-comparison-table tbody .hp-comparison-col-erp2x {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-comparison-table tbody tr:last-child .hp-comparison-col-erp2x {
  border-bottom: none;
}

.hp-comparison-check {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

.hp-comparison-x {
  color: var(--ink-muted);
}

.hp-comparison-partly {
  color: var(--ink-muted);
}

@media (max-width: 767.98px) {
  .hp-comparison-table-wrap {
    margin: 0 -0.75rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* First week */
.hp-firstweek-section {
  background: #fbeef3;
}

.hp-firstweek-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.hp-firstweek-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hp-firstweek-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8c7d0;
  transform: translateX(-50%);
}

.hp-firstweek-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 2.5rem;
}

.hp-firstweek-item:last-child {
  margin-bottom: 0;
}

.hp-firstweek-circle {
  position: absolute;
  left: 2rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #6b0a28;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transform: translateX(-50%);
}

.hp-firstweek-content {
  background: transparent;
}

.hp-firstweek-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.hp-firstweek-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .hp-firstweek-line {
    left: 50%;
    transform: translateX(-50%);
  }

  .hp-firstweek-item {
    padding-left: 0;
    width: 50%;
  }

  .hp-firstweek-item:nth-child(3n+1) {
    margin-left: auto;
    padding-left: 2.5rem;
  }

  .hp-firstweek-item:nth-child(3n+2) {
    margin-right: auto;
    padding-right: 2.5rem;
    text-align: right;
  }

  .hp-firstweek-item:nth-child(3n+3) {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
    /* Keep centered content below the absolutely positioned step number. */
    padding-top: 3.25rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hp-firstweek-item:nth-child(3n+1) .hp-firstweek-circle {
    left: 0;
    transform: translateX(-50%);
  }

  .hp-firstweek-item:nth-child(3n+2) .hp-firstweek-circle {
    left: 100%;
    transform: translateX(-50%);
  }

  .hp-firstweek-item:nth-child(3n+3) .hp-firstweek-circle {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ---------- Task 476 ---------- */

/* 1. Modules header */
.hp-page .hp-modules-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.hp-page .hp-modules-heading {
  max-width: 44rem;
  margin-bottom: 0;
}

.hp-page .hp-modules-subtext {
  max-width: 26rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .hp-page .hp-modules-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hp-page .hp-modules-subtext {
    margin-bottom: 0;
  }
}

/* 2. Modules grid */
@media (min-width: 992px) {
  .hp-page .hp-modules-grid {
    display: grid;
    grid-template-columns: repeat(28, 1fr);
    gap: 1.5rem;
  }

  .hp-page .hp-module-tile {
    grid-column: span 5;
    min-width: 0;
  }

  .hp-page .hp-module-tile-featured {
    grid-column: span 8;
  }

  .hp-page .hp-module-tile-dashed {
    grid-column: span 13;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hp-page .hp-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .hp-page .hp-module-tile,
  .hp-page .hp-module-tile-featured,
  .hp-page .hp-module-tile-dashed {
    grid-column: span 1;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .hp-page .hp-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hp-page .hp-module-tile {
    grid-column: span 1;
    min-width: 0;
    padding: 1.15rem 1rem;
    min-height: auto;
  }

  .hp-page .hp-module-tile-featured,
  .hp-page .hp-module-tile-dashed {
    grid-column: span 2;
  }

  .hp-page .hp-module-tile-title {
    font-size: 1.05rem;
  }

  .hp-page .hp-module-tile-desc {
    font-size: 0.85rem;
  }
}

/* 3. Module icons */
.hp-page .hp-module-icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.hp-page .hp-module-tile-featured .hp-module-icon-tile {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hp-page .hp-icon-pos {
  background: #fef3c7;
  color: #d97706;
}

.hp-page .hp-icon-stock {
  background: #ffedd5;
  color: #c2410c;
}

.hp-page .hp-icon-procurement {
  background: #fee2e2;
  color: #dc2626;
}

.hp-page .hp-icon-invoices {
  background: #e0f2fe;
  color: #0284c7;
}

.hp-page .hp-icon-crm {
  background: #f3f4f6;
  color: #374151;
}

.hp-page .hp-icon-hrm {
  background: #ede9fe;
  color: #6366f1;
}

.hp-page .hp-icon-accounting {
  background: #ccfbf1;
  color: #0d9488;
}

/* 4 & 5. Comparison section & table */
.hp-page .hp-comparison-section {
  background: #ffffff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hp-page .hp-comparison-table-wrap {
  border: none;
  border-radius: 0;
  max-height: none;
  overflow: visible;
  padding-top: 12px;
}

.hp-page .hp-comparison-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.hp-page .hp-comparison-table thead th {
  background: transparent;
  border-bottom: 1px solid #f0e6e8;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  vertical-align: bottom;
}

.hp-page .hp-comparison-table thead th.hp-comparison-col-feature {
  text-align: left;
  border-bottom: 1px solid #f0e6e8;
  width: 44%;
}

.hp-page .hp-comparison-table thead th.hp-comparison-col-others {
  width: 19%;
  text-align: center;
}

.hp-page .hp-comparison-table thead th.hp-comparison-col-erp2x {
  width: 18%;
  background: #6b0a28;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: none;
  text-align: center;
  position: relative;
  padding: 1rem 1rem 0.85rem;
}

.hp-page .hp-comparison-table thead th.hp-comparison-col-erp2x::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
  background: #6b0a28;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.hp-page .hp-comparison-table tbody th {
  padding: 1.1rem 1rem 1.1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid #f0e6e8;
  text-align: left;
}

.hp-page .hp-comparison-table tbody td {
  padding: 1.1rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f0e6e8;
  border-left: none;
  font-size: 0.95rem;
}

.hp-page .hp-comparison-table tbody td.hp-comparison-col-erp2x {
  background: #6b0a28;
  color: #ffffff;
  border-left: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hp-page .hp-comparison-table tbody tr:last-child th,
.hp-page .hp-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.hp-page .hp-comparison-table tbody tr:last-child td.hp-comparison-col-erp2x {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom: none;
}

.hp-page .hp-comparison-x {
  color: #9ca3af;
  font-size: 1.05rem;
  font-weight: 600;
}

.hp-page .hp-comparison-partly {
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 500;
}

.hp-page .hp-comparison-check {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .hp-page .hp-comparison-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.75rem;
    padding: 12px 0.75rem 0;
  }

  .hp-page .hp-comparison-table {
    min-width: 38rem;
  }
}

/* 6. First week timeline */
.hp-page .hp-firstweek-section {
  background: #fbeef3;
}

.hp-page .hp-firstweek-circle {
  background: #e0457b;
  color: #ffffff;
}

.hp-page .hp-firstweek-line {
  background: #e0457b;
}

@media (min-width: 768px) {
  .hp-page .hp-firstweek-heading {
    text-align: left;
    margin-bottom: 3.5rem;
  }

  .hp-page .hp-firstweek-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .hp-page .hp-firstweek-line {
    position: absolute;
    top: 17px;
    left: 18px;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    background: #e0457b;
    transform: none;
    z-index: 1;
  }

  .hp-page .hp-firstweek-item,
  .hp-page .hp-firstweek-item:nth-child(3n+1),
  .hp-page .hp-firstweek-item:nth-child(3n+2),
  .hp-page .hp-firstweek-item:nth-child(3n+3) {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-page .hp-firstweek-item .hp-firstweek-circle,
  .hp-page .hp-firstweek-item:nth-child(3n+1) .hp-firstweek-circle,
  .hp-page .hp-firstweek-item:nth-child(3n+2) .hp-firstweek-circle,
  .hp-page .hp-firstweek-item:nth-child(3n+3) .hp-firstweek-circle {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0457b;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
  }

  .hp-page .hp-firstweek-content {
    text-align: left;
    padding: 0;
  }

  .hp-page .hp-firstweek-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink);
  }

  .hp-page .hp-firstweek-desc {
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
  }
}

/* 7. CTA banner */
@media (min-width: 1200px) {
  .hp-page .cta-banner-content {
    display: grid;
    grid-template-columns: 1fr 38% auto;
    gap: 2.25rem;
    align-items: center;
  }

  .hp-page .cta-left {
    min-width: 0;
  }

  .hp-page .cta-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hp-page .laptop-mockup {
    max-width: 460px;
    width: 100%;
  }

  .hp-page .cta-features {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .hp-page .cta-feature-item {
    min-width: 0;
    flex: 1 1 0;
    gap: 0.45rem;
  }

  .hp-page .cta-feature-divider {
    display: block;
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
  }

  .hp-page .cta-feature-label {
    font-size: 0.72rem;
    line-height: 1.25;
  }
}

/* Laptop decorative strokes */
.hp-page .laptop-decor {
  position: absolute;
  background: #ffffff;
  opacity: 0.95;
  border-radius: 999px;
  pointer-events: none;
}

.hp-page .decor-1 {
  width: 22px;
  height: 3px;
  top: -14px;
  right: 18px;
  transform: rotate(-35deg);
}

.hp-page .decor-2 {
  width: 16px;
  height: 3px;
  top: -6px;
  right: -4px;
  transform: rotate(15deg);
}

/* Banner: keep the four features in a 2x2 grid; one row is too narrow inside the text column. */
@media (min-width: 992px) {
  .hp-page .cta-banner .cta-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
  .hp-page .cta-banner .cta-feature-divider { display: none; }
  .hp-page .cta-banner .cta-heading { font-size: clamp(2.2rem, 3.2vw, 3rem); }
}

/* ---------- Task 489 ---------- */

.hp-page .hp-icon-production {
  background: #e0e7ff;
  color: #4338ca;
}

@media (min-width: 992px) {
  .hp-page .hp-modules-grid {
    display: grid;
    grid-template-columns: repeat(28, 1fr);
    gap: 1.5rem;
  }

  .hp-page .hp-module-tile {
    grid-column: span 5;
    min-width: 0;
  }

  .hp-page .hp-module-tile-featured {
    grid-column: span 8;
  }

  .hp-page .hp-module-tile-dashed {
    grid-column: span 8;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hp-page .hp-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .hp-page .hp-module-tile,
  .hp-page .hp-module-tile-featured,
  .hp-page .hp-module-tile-dashed {
    grid-column: span 1;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .hp-page .hp-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hp-page .hp-module-tile {
    grid-column: span 1;
    min-width: 0;
  }

  .hp-page .hp-module-tile-featured,
  .hp-page .hp-module-tile-dashed {
    grid-column: span 2;
  }
}

