/* HyperApply marketing site
   Light, modern tech-style layout inspired by contemporary developer tools sites.
*/

:root {
  --bg-body: #f9fafb;
  --bg-muted: #f3f4f6;
  --surface: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-strong: #3730a3;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(249, 250, 251, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.brand-logo.small {
  width: 26px;
  height: 26px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  font-size: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.btn.primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.btn.secondary {
  background: #fff;
  border-color: #d1d5db;
  color: var(--text-main);
}

.btn.secondary:hover {
  background: #f9fafb;
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding-inline: 0.75rem;
}

.btn.ghost:hover {
  background: rgba(79, 70, 229, 0.06);
  text-decoration: none;
}

.btn.full-width {
  width: 100%;
}

/* Hero */

.hero {
  padding-block: 3.75rem 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.4rem 1.1rem;
}

.hero-points {
  margin: 0;
  padding-left: 1rem;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-points li + li {
  margin-top: 0.3rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-customers {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}

.hero-customers-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.hero-customers-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 22rem;
}

.hero-testimonials {
  margin-top: 1.4rem;
  position: relative;
  min-height: 250px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.testimonial-header img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-story {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.35rem;
}

.testimonial-metric {
  font-size: 0.78rem;
  color: var(--accent-strong);
  font-weight: 500;
  margin: 0.15rem 0 0;
}

.hero-testimonials-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #fff;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.avatar-pill img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.avatar-name {
  font-weight: 500;
}

.avatar-role {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.avatar-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Sections */

.section {
  padding-block: 3.25rem;
}

.section-muted,
.section.muted {
  background-color: var(--bg-muted);
}

.section h2 {
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.section-lead {
  margin-top: 0.25rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.4rem;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.03);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0.2rem 0 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.how-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.how-screenshot {
  background-color: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.how-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.how-screenshot figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  background-color: #f9fafb;
}

.how-steps {
  display: grid;
  gap: 1rem;
}

.how-step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.how-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.how-step--with-media {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.how-step-body {
  flex: 1;
}

.how-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.how-step-media {
  margin-top: 0;
  max-width: 260px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.how-step-media img {
  width: 100%;
  height: auto;
  display: block;
}

.step {
  position: relative;
  padding-top: 1.6rem;
}

.step-number {
  position: absolute;
  top: 0.85rem;
  right: 1.1rem;
  font-size: 0.85rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Pricing */

.pricing-grid {
  align-items: stretch;
}

.pricing-card .price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.2rem 0 0.6rem;
}

.list {
  margin: 0.8rem 0 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.list li + li {
  margin-top: 0.25rem;
}

.fine-print {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Legal page */

.section.legal {
  padding-top: 3.5rem;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 1.9rem;
  margin-bottom: 0.35rem;
}

.legal-content p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #f9fafb;
  padding-block: 1.9rem 1.4rem;
  margin-top: 1.5rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.footer-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.footer-columns {
  display: flex;
  gap: 2.5rem;
}

.footer-column h4 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
}

.footer-column a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-column a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .hero-testimonials {
    min-height: auto;
  }

  .testimonial-card {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 0.7rem;
  }

  .hero-customers {
    max-width: 100%;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .how-step-media {
    max-width: 100%;
  }

  .how-step--with-media {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding-block: 0.5rem;
  }

  .hero {
    padding-block: 2.7rem 2.5rem;
  }

  .section {
    padding-block: 2.4rem;
  }

  .container {
    width: min(100% - 2rem, 720px);
  }
}
