:root {
  --hp-primary: #2a2a50;
  --hp-primary-dark: #1f1f3d;
  --hp-accent: #e41e27;
  --hp-accent-dark: #c41820;
  --hp-teal: #214a6e;
  --hp-gold: #fec201;
  --hp-dark: #2a2a50;
  --hp-muted: #5f5f5f;
  --hp-light: #f7f7fb;
  --hp-border: #e5e5ef;
  --hp-white: #ffffff;
  --hp-shadow: 0 10px 30px rgba(42, 42, 80, 0.08);
  --hp-radius: 16px;
  --hp-font: Roboto, sans-serif;
}

.hp-page {
  font-family: var(--hp-font);
  color: var(--hp-dark);
  background: var(--hp-light);
  overflow-x: hidden;
}

.hp-page * {
  box-sizing: border-box;
}

.hp-container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hp-section {
  padding: 4.5rem 0;
  position: relative;
}

.hp-section--alt {
  background: #fff;
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hp-border);
  color: var(--hp-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hp-eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hp-gold);
}

.hp-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--hp-dark);
  margin: 0 0 0.75rem;
}

.hp-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hp-dark);
  margin: 0 0 0.5rem;
}

.hp-lead {
  color: var(--hp-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 46rem;
}

.hp-center {
  text-align: center;
}

.hp-center .hp-lead {
  margin-left: auto;
  margin-right: auto;
}

.hp-accent-line {
  width: 3rem;
  height: 0.25rem;
  background: var(--hp-accent);
  border-radius: 999px;
  margin: 0.85rem 0 1.25rem;
}

.hp-center .hp-accent-line {
  margin-left: auto;
  margin-right: auto;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}

.hp-btn--primary {
  background: var(--hp-primary);
  color: #fff !important;
}

.hp-btn--primary:hover {
  background: var(--hp-primary-dark);
  color: #fff !important;
}

.hp-btn--accent {
  background: var(--hp-accent);
  color: #fff !important;
}

.hp-btn--accent:hover {
  background: var(--hp-accent-dark);
  color: #fff !important;
}

.hp-btn--ghost {
  background: #fff;
  border-color: var(--hp-border);
  color: var(--hp-dark) !important;
}

.hp-btn--ghost:hover {
  border-color: var(--hp-primary);
  color: var(--hp-primary) !important;
}

.hp-btn--whatsapp {
  background: #25d366;
  color: #fff !important;
}

.hp-btn--whatsapp:hover {
  background: #1ebe57;
  color: #fff !important;
}

.hp-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hp-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.96)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(226, 232, 240, 0.55) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(226, 232, 240, 0.55) 32px);
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.hp-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--hp-dark);
}

.hp-hero h1 span {
  color: var(--hp-accent);
}

.hp-hero-copy {
  color: var(--hp-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hp-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: grid;
  gap: 0.7rem;
}

.hp-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--hp-dark);
}

.hp-trust-list i {
  color: var(--hp-gold);
  margin-top: 0.15rem;
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hp-stat {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  box-shadow: var(--hp-shadow);
}

.hp-stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--hp-primary);
  margin-bottom: 0.2rem;
}

.hp-stat span {
  font-size: 0.78rem;
  color: var(--hp-muted);
  line-height: 1.3;
}

/* Calculator */
.hp-calc {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--hp-border);
  overflow: hidden;
}

.hp-calc__badge {
  background: linear-gradient(90deg, #ffe9a8, #fec201);
  color: #2a2a50;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem;
}

.hp-calc__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.hp-calc__body h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.hp-field {
  margin-bottom: 1rem;
}

.hp-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--hp-dark);
}

.hp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hp-chip {
  border: 1px solid var(--hp-border);
  background: #fff;
  color: var(--hp-dark);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.hp-chip.is-active {
  background: var(--hp-primary);
  border-color: var(--hp-primary);
  color: #fff;
}

.hp-field select,
.hp-field input {
  width: 100%;
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
}

.hp-pages {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 0.5rem;
  align-items: center;
}

.hp-pages button {
  height: 44px;
  width: 44px;
  border-radius: 10px;
  border: 1px solid var(--hp-border);
  background: #fff;
  color: #2a2a50 !important;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.hp-pages button i {
  color: #2a2a50 !important;
  font-size: 0.95rem;
  pointer-events: none;
}

.hp-pages button:hover {
  border-color: #2a2a50;
  background: #f7f7fb;
}

.hp-pages input {
  color: #2a2a50;
  text-align: center;
  font-weight: 700;
}

.hp-calc__price {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0.5rem 0 1rem;
}

.hp-calc__price .muted {
  color: var(--hp-muted);
  font-size: 0.85rem;
}

.hp-calc__price strong {
  display: block;
  font-size: 1.75rem;
  color: var(--hp-primary);
  margin-top: 0.15rem;
}

.hp-calc .hp-btn {
  width: 100%;
}

.hp-calc__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--hp-muted);
  font-size: 0.78rem;
}

.hp-calc__footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* University marquee */
.hp-uni-wrap {
  overflow: hidden;
  margin-top: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hp-uni-track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  animation: hp-marquee 45s linear infinite;
}

.hp-uni-wrap:hover .hp-uni-track {
  animation-play-state: paused;
}

@keyframes hp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hp-uni-item {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  min-width: 0;
  box-shadow: none;
}

.hp-uni-item img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  display: block;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(42, 42, 80, 0.06);
}

.hp-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--hp-muted);
  text-align: center;
}

/* Cards / grids */
.hp-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hp-card {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 1.25rem;
  box-shadow: var(--hp-shadow);
  height: 100%;
}

.hp-card a {
  color: var(--hp-primary);
  font-weight: 700;
  text-decoration: none;
}

.hp-card a:hover {
  text-decoration: underline;
}

.hp-card p {
  color: var(--hp-muted);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.hp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.hp-icon--blue { background: #e8e8f3; color: #2a2a50; }
.hp-icon--amber { background: #fff3cc; color: #b88600; }
.hp-icon--teal { background: #e4eef6; color: #214a6e; }
.hp-icon--violet { background: #f0e8f4; color: #6b3a6d; }
.hp-icon--rose { background: #fde8e9; color: #e41e27; }
.hp-icon--green { background: #e8f5ee; color: #1f6b45; }

.hp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.hp-label-chip,
.hp-label-chip a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hp-border);
  color: var(--hp-dark) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
}

.hp-label-chip a:hover,
a.hp-label-chip:hover {
  border-color: var(--hp-primary);
  color: var(--hp-primary) !important;
}

.hp-steps {
  counter-reset: step;
}

.hp-step {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  text-align: left;
  height: 100%;
}

.hp-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--hp-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.hp-step h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hp-step p {
  margin: 0;
  color: var(--hp-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Writers */
.hp-writers-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.hp-writer {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 1.25rem;
  box-shadow: var(--hp-shadow);
}

.hp-writer__top {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a50, #e41e27);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.hp-writer__meta {
  font-size: 0.85rem;
  color: var(--hp-muted);
  line-height: 1.45;
}

.hp-writer__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.hp-writer__stats div {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
}

.hp-writer__stats strong {
  display: block;
  color: var(--hp-dark);
}

/* Sample + Turnitin */
.hp-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hp-sample-box {
  background: #2a2a50;
  color: #e2e8f0;
  border-radius: var(--hp-radius);
  padding: 1.35rem;
}

.hp-sample-box h3,
.hp-sample-box .hp-sample-meta {
  color: #fff;
}

.hp-sample-meta {
  font-size: 0.85rem;
  color: #94a3b8 !important;
  margin-bottom: 0.85rem;
}

.hp-sample-box p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hp-sample-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.hp-check-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 1.25rem;
}

.hp-check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  color: var(--hp-dark);
  font-weight: 600;
}

.hp-check-list i {
  color: var(--hp-teal);
  margin-top: 0.15rem;
}

/* Pricing */
.hp-price-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.hp-price-includes span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hp-price-includes i {
  color: var(--hp-gold);
}

.hp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hp-price-card {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: var(--hp-shadow);
  display: flex;
  flex-direction: column;
}

.hp-price-card.is-featured {
  border-color: var(--hp-primary);
  box-shadow: 0 16px 40px rgba(42, 42, 80, 0.18);
  transform: translateY(-4px);
}

.hp-price-card .pkg {
  display: inline-flex;
  background: #e8e8f3;
  color: var(--hp-primary);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.hp-price-card .hp-pkg-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hp-dark);
  margin: 0 0 0.35rem;
}

.hp-price-card .amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--hp-dark);
  margin: 0.35rem 0 1rem;
}

.hp-price-card .amount small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-price-card dl {
  margin: 0 0 1.25rem;
  flex: 1;
}

.hp-price-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hp-muted);
  font-weight: 700;
  margin-top: 0.75rem;
}

.hp-price-card dd {
  margin: 0.25rem 0 0;
  color: var(--hp-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hp-price-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--hp-muted);
}

/* Reviews */
.hp-rating-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  margin-top: 1rem;
  box-shadow: var(--hp-shadow);
}

.hp-rating-line .stars,
.hp-card .stars {
  color: var(--hp-accent);
  letter-spacing: 0.08em;
  display: inline-flex;
  gap: 0.12rem;
  align-items: center;
}

.hp-rating-line .stars i,
.hp-card .stars i {
  font-size: 0.95rem;
}

.hp-reviews {
  margin-top: 1.5rem;
  text-align: left;
}

.hp-reviews .hp-card h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.hp-reviews-hidden {
  display: none !important;
}

/* FAQ */
.hp-faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hp-faq details {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.hp-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.hp-faq summary::-webkit-details-marker {
  display: none;
}

.hp-faq details[open] summary {
  color: var(--hp-primary);
  margin-bottom: 0.55rem;
}

.hp-faq p {
  margin: 0;
  color: var(--hp-muted);
  line-height: 1.65;
}

/* CTA band */
.hp-cta {
  background: linear-gradient(135deg, #1f1f3d, #2a2a50 55%, #214a6e);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--hp-shadow);
}

.hp-cta h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.hp-cta p {
  margin: 0;
  color: #d7d7e8;
}

/* Tablet */
@media (max-width: 991px) {
  .hp-hero-grid,
  .hp-split,
  .hp-price-grid {
    grid-template-columns: 1fr;
  }

  .hp-grid--4,
  .hp-steps.hp-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Marketing sections stay centered; hero copy stays left */
  .hp-section .hp-center,
  .hp-section.hp-section--alt .hp-center {
    text-align: center;
  }

  .hp-hero,
  .hp-hero h1,
  .hp-hero-copy,
  .hp-trust-list {
    text-align: left;
  }

  .hp-hero .hp-btn-row {
    justify-content: flex-start;
  }

  .hp-cta {
    flex-direction: column;
    text-align: center;
  }

  .hp-cta .hp-btn-row {
    justify-content: center;
  }

  .hp-price-card.is-featured {
    transform: none;
  }

  .hp-uni-item {
    min-width: 140px;
    min-height: 70px;
  }

  .hp-uni-item img {
    height: 48px;
  }

  .hp-card,
  .hp-writer,
  .hp-price-card,
  .hp-sample,
  .hp-faq details {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .hp-stats,
  .hp-grid--4,
  .hp-grid--3,
  .hp-grid--2 {
    grid-template-columns: 1fr;
  }

  .hp-section {
    padding: 3rem 0;
  }

  .hp-container {
    width: min(1160px, calc(100% - 1.25rem));
  }

  .hp-hero {
    padding: 2rem 0 1.5rem;
  }

  .hp-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .hp-section h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .hp-lead {
    font-size: 0.98rem;
  }

  .hp-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-btn-row .hp-btn {
    width: 100%;
    justify-content: center;
  }

  .hp-hero .hp-btn-row {
    align-items: stretch;
  }

  .hp-uni-item {
    min-width: 130px;
    padding: 0.5rem 0.7rem;
  }

  .hp-uni-item img {
    height: 44px;
    max-width: 160px;
  }
}
