/* Powerdocs static landing — matches powerdocs.so */

:root {
  --bg: #ffffff;
  --text: #0c0c0c;
  --text-secondary: #4c4c4c;
  --text-muted: #757575;
  --text-hero-mid: #666666;
  --text-hero-light: #888888;
  --border: rgba(0, 0, 0, 0.07);
  --surface: #f4f7f9;
  --surface-card: #f5f5f5;
  --btn-secondary-bg: #e8edf2;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: min(960px, 100vw - 40px);
  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  opacity: 0.88;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: var(--container);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  justify-self: start;
}

.logo-icon {
  height: 28px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
}

.btn-header-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.menu-toggle {
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-nav[hidden] {
  display: none;
}

.site-nav.is-open {
  display: block;
}

.site-nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0, 0, 0, 0.2);
  z-index: 90;
}

.site-nav-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: var(--bg);
  padding: 24px 20px 40px;
  overflow-y: auto;
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 8px;
}

.site-nav-links {
  margin-top: 48px;
}

.site-nav-links li {
  border-bottom: 1px solid var(--border);
}

.site-nav-links li:last-child {
  border-bottom: none;
}

.site-nav-links a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  padding-top: 48px;
  padding-bottom: 32px;
}

.hero-content {
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--text);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text-hero-mid);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--text-hero-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-actions .btn {
  min-width: 120px;
  padding: 12px 28px;
  font-size: 15px;
}

.hero-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-badge img {
  width: auto;
  max-width: 220px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.06));
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.hero-visual img {
  width: 100%;
}

/* Logos */
.logos {
  padding: 48px 0 64px;
  overflow: hidden;
}

.logos-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
  opacity: 0.55;
  filter: saturate(0.2);
}

.logos-track img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Section typography */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-hero-mid);
  margin: 0 0 48px;
}

.section-subtitle--sm {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  margin-bottom: 32px;
}

.section-subtitle a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Why */
.why {
  padding: 24px 0 80px;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 64px;
}

.pain-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.pain-item:last-child {
  border-bottom: 1px solid var(--border);
}

.pain-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid #ccc;
  margin-top: 4px;
}

.pain-icon--square {
  border-radius: 4px;
}

.pain-icon--circle {
  border-radius: 50%;
}

.pain-icon--triangle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  clip-path: polygon(50% 12%, 12% 88%, 88% 88%);
  box-shadow: 0 0 0 1.5px #ccc;
}

.pain-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.pain-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.stat-label {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* How / Features */
.how {
  padding: 24px 0 80px;
}

.how .container:first-child {
  margin-bottom: 8px;
}

.features-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px 24px;
  margin-bottom: 48px;
}

.features-scroll::-webkit-scrollbar {
  display: none;
}

.features-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-right: 20px;
}

.feature-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
}

.feature-visual {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Testimonial */
.testimonial blockquote {
  margin: 0;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial blockquote > p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial cite {
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
}

/* Pricing */
.pricing {
  padding: 24px 0 80px;
}

.pricing-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--bg);
}

.pricing-card--featured {
  border-color: var(--text);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}

.pricing-currency {
  font-size: 0.6em;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-period {
  margin: 4px 0 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-trial {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-group {
  font-weight: 600;
  font-size: 13px;
  margin: 16px 0 8px;
  text-transform: none;
}

.pricing-features ul {
  margin-bottom: 8px;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(-45deg);
}

.pricing-card .btn {
  margin-top: 24px;
}

.enterprise-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
}

.enterprise-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq {
  padding: 24px 0 80px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 20px 32px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 20px;
  padding-right: 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Newsletter */
.newsletter {
  padding: 24px 0 80px;
}

.newsletter-form {
  max-width: 480px;
}

.newsletter-form input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 15px;
  background: var(--bg);
}

.newsletter-form input:focus {
  outline: 2px solid var(--text);
  outline-offset: 0;
}

.newsletter-form .btn {
  padding: 14px 24px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.logo--footer {
  font-size: 18px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-heading {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
}

.footer-columns a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-columns a:hover {
  color: var(--text);
}

/* Desktop */
@media (min-width: 810px) {
  .menu-toggle {
    margin-left: auto;
  }

  .site-nav-panel {
    left: auto;
    right: 20px;
    top: calc(var(--header-h) + 8px);
    bottom: auto;
    width: 280px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    padding: 16px 0;
  }

  .site-nav-links {
    margin-top: 0;
  }

  .site-nav-links li {
    border: none;
  }

  .site-nav-links a {
    padding: 12px 24px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 500;
  }

  .menu-close {
    display: none;
  }

  .site-nav-backdrop {
    top: 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .feature-card {
    flex: 0 0 380px;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding-top: 64px;
  }

  .stats {
    gap: 32px;
  }
}
