/* PartsHarbor — professional marketing site */

:root {
  --navy: #0c1222;
  --charcoal: #1a2332;
  --charcoal-light: #243044;
  --text: #334155;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --max-width: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.05);
  --shadow-md: 0 4px 16px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 18, 34, 0.1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Header ── */

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg) !important;
  background: var(--navy);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--charcoal);
  color: var(--bg) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle summary::after {
  content: "Menu ▾";
}

.nav-toggle[open] summary::after {
  content: "Close ▴";
}

.nav-toggle .site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  min-width: 200px;
}

.nav-toggle .site-nav a {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
}

.nav-toggle .site-nav a:hover {
  background: var(--bg-subtle);
}

@media (max-width: 768px) {
  .header-inner > .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ── Hero ── */

.hero {
  background: var(--navy);
  color: var(--bg);
  padding: 5rem 1.5rem 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(37, 99, 235, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(37, 99, 235, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.125rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  max-width: 26ch;
}

.hero-phrase {
  white-space: nowrap;
}

.hero .tagline {
  font-size: clamp(1.0625rem, 2.5vw, 1.3125rem);
  color: #94a3b8;
  margin: 0 0 1.25rem;
  font-weight: 400;
  max-width: 36rem;
  line-height: 1.5;
}

.hero .lead {
  font-size: 1rem;
  color: #64748b;
  max-width: 40rem;
  margin: 0 0 2.25rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.launch-note {
  font-size: 0.8125rem;
  color: #64748b;
}

.launch-note a {
  color: #94a3b8;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--bg);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg-subtle);
}

.btn-disabled {
  background: var(--bg-muted);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Layout ── */

main {
  padding: 0 1.5rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 0.625rem;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 42rem;
}

.section-alt {
  background: var(--bg-subtle);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.section p,
.section li {
  color: var(--text);
}

.section ul {
  padding-left: 1.25rem;
}

.section li {
  margin-bottom: 0.375rem;
}

/* ── Feature cards ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ── Audience tags ── */

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  color: var(--text);
}

/* ── Kit list ── */

.kit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.kit-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
}

.kit-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Preview gallery ── */

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.preview-card:hover {
  box-shadow: var(--shadow-md);
}

.preview-card img {
  width: 100%;
  object-fit: contain;
  object-position: top;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.preview-card figcaption {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-card.featured::before {
  content: "Primary product";
  position: absolute;
  top: -0.6875rem;
  left: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--bg);
  padding: 0 0.5rem;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.25rem 0;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  flex: 1;
}

.price-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
}

.price-card li:last-child {
  border-bottom: none;
}

.price-card .btn,
.price-card .btn-disabled {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* ── Steps ── */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

/* ── Disclaimer ── */

.disclaimer {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--text);
}

.disclaimer strong {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--navy);
  font-size: 0.875rem;
}

blockquote.disclaimer {
  font-style: normal;
  margin: 1.5rem 0;
}

/* ── Demo section ── */

.demo-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.demo-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-showcase-content {
  padding: 2rem 2rem 2rem 0;
}

.demo-showcase-content h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.demo-showcase-content p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .demo-showcase {
    grid-template-columns: 1fr;
  }

  .demo-showcase-content {
    padding: 0 1.5rem 1.5rem;
  }
}

/* ── Legal pages ── */

.page-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.page-hero .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  color: var(--navy);
}

.legal-page p,
.legal-page li {
  color: var(--text);
  font-size: 0.9375rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Demo walkthrough ── */

.demo-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.demo-intro p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0;
}

.walkthrough {
  max-width: 820px;
  margin: 0 auto;
}

.walkthrough-step {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.walkthrough-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.walkthrough-step h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.walkthrough-step p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.walkthrough-step img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.walkthrough-files {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.walkthrough-files ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.walkthrough-files li {
  font-size: 0.9375rem;
  color: var(--text);
}

.video-block {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0.5rem;
}

.video-block video {
  width: 100%;
  display: block;
}

.video-block .demo-caption {
  padding: 1.25rem 1.5rem;
  color: #94a3b8;
  font-size: 0.9375rem;
}

.video-block .demo-caption h3 {
  color: var(--bg);
  margin: 0 0 0.375rem;
  font-size: 1rem;
}

.video-block .demo-caption p {
  margin: 0;
  color: #64748b;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ── Footer ── */

.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 3rem 1.5rem;
  margin-top: 0;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.footer-brand .logo {
  color: var(--bg);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.6;
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--bg);
}

.footer-disclaimer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 1.25rem 4rem;
  }

  .hero h1 {
    font-size: clamp(1.625rem, 4.5vw, 2.75rem);
    max-width: none;
  }

  .section {
    padding: 3rem 0;
  }

  .price-card {
    padding: 1.5rem;
  }

  .footer-top {
    flex-direction: column;
  }
}
