/* =========================================================
   Buzin Business Services — Stripe / Linear
   Monochrome base, one blue accent, sentence case.
   ========================================================= */

:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.08);

  --accent: #1e3a8a;
  --accent-deep: #000080;
  --accent-soft: #f1f5f9;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2 {
  letter-spacing: -0.025em;
  color: #0f172a;
}

h3,
h4,
h5 {
  color: #0f172a;
  letter-spacing: -0.02em;
}

strong {
  color: #0f172a;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.4em;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 0;
  color: inherit;
}

.logo:hover {
  color: inherit;
  opacity: 0.82;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-external {
  padding: 0.4rem 0.75rem !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0.55rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary,
.btn-adobe,
.btn-wp {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-adobe:hover,
.btn-wp:hover {
  background: var(--accent-deep);
  color: #fff;
  filter: none;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--ink);
  border-color: var(--line-strong);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--accent);
}

.hero h1,
.section-header h2,
.product-meta h3,
.roadmap h2,
.custom-dev h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
  color: #0f172a;
}

.hero h1,
.section-header h2,
.roadmap h2,
.custom-dev h2,
.contact-copy h2 {
  letter-spacing: -0.025em;
}

.hero-lead,
.section-lead,
.product-utp {
  color: #475569;
}

.hero h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.25rem);
  max-width: 16ch;
  font-weight: 600;
}

.hero-lead {
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.trust-badges {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-badges li,
.roadmap-tags li {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
}

.section-lead {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
}

/* ---------- Products ---------- */

.product {
  display: grid;
  gap: 1.75rem;
  padding: 36px;
  margin-bottom: 32px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.product:last-child {
  margin-bottom: 0;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  background: #f1f5f9;
  color: #475569;
}

.product-meta h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin-bottom: 0.75rem;
}

.product-utp {
  margin: 0 0 1.1rem;
  font-size: 1rem;
}

.feature-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #475569;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.quality-banner {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.quality-label {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: #0f172a;
}

.quality-text {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-preview {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.preview-dots {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5px 5px, #cbd5e1 3.5px, transparent 4px),
    radial-gradient(circle at 21px 5px, #cbd5e1 3.5px, transparent 4px),
    radial-gradient(circle at 37px 5px, #cbd5e1 3.5px, transparent 4px);
  flex-shrink: 0;
}

.preview-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-caption {
  margin: 0;
  padding: 0.65rem 0.9rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Map */

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.map-toolbar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip,
.keyword-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #475569;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-chip:hover,
.keyword-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.is-active,
.keyword-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.store-map {
  height: 320px;
  width: 100%;
  background: #e2e8f0;
}

.store-map .leaflet-container {
  font-family: var(--font);
  background: #e2e8f0;
}

.custom-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

.marker-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(30, 58, 138, 0.18);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: #1e3a8a;
  color: #fff;
}

.leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #0f172a;
}

.store-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

/* ePN widget */

.epn-widget {
  padding: 0.9rem;
}

.epn-disclosure {
  font-size: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.85rem;
}

.epn-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.epn-article-frame {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.epn-article-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--accent);
}

.epn-article-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0f172a;
}

.epn-article-body {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #475569;
}

.epn-storefront {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.epn-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.epn-card:hover {
  border-color: rgba(30, 58, 138, 0.28);
  box-shadow: var(--shadow-sm);
}

.epn-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.epn-thumb .epn-art {
  display: block;
  width: 52px;
  height: 52px;
}

.epn-card-body h5 {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  letter-spacing: -0.011em;
  color: #0f172a;
}

.epn-card-body p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.epn-price {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

/* ---------- Quality ---------- */

.quality-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.quality-grid li {
  padding: 36px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.quality-code {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.quality-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.quality-grid p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

/* ---------- Roadmap ---------- */

.roadmap-inner {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.roadmap h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  max-width: 18ch;
}

.roadmap .section-lead {
  max-width: 58ch;
}

.roadmap-tags {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Custom Dev ---------- */

.custom-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 640px;
}

.custom-list li {
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  color: #475569;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(30, 58, 138, 0.25);
  padding-bottom: 0.15rem;
}

.author-link:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.contact-email {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form {
  position: relative;
  padding: 36px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 0.9rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form.is-sending .btn[type="submit"] {
  opacity: 0.72;
  cursor: wait;
}

.contact-form .btn[type="submit"]:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: #0f172a;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.16);
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: #b42318;
}

.form-note {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-note.is-success,
.form-note.is-error {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.form-note.is-success {
  color: #0f172a;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

.form-note.is-error {
  color: #b42318;
  background: #fdf2f2;
  border-color: #f0c7c7;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  padding: 48px 0 36px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #475569;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand .brand-logo {
  height: 40px;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 42ch;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #0f172a;
}

.footer-copy {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

/* ---------- Privacy page ---------- */

.page-privacy {
  padding: 96px 0;
}

.page-privacy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.025em;
  color: #0f172a;
}

.page-privacy .prose {
  max-width: 68ch;
  color: #475569;
}

.page-privacy .prose h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.15rem;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.page-privacy .prose p {
  margin: 0 0 0.85rem;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 720px) {
  .store-map {
    height: 380px;
  }

  .epn-storefront {
    grid-template-columns: 1fr 1fr;
  }

  .epn-storefront .epn-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .hero {
    padding: 96px 0;
  }

  .section {
    padding: 96px 0;
  }

  .product {
    grid-template-columns: 1fr 1.05fr;
    gap: 36px;
    padding: 36px;
    align-items: stretch;
  }

  .product-wp {
    grid-template-columns: 1.05fr 1fr;
  }

  .product-wp .product-meta {
    order: 1;
  }

  .product-wp .product-preview {
    order: 0;
  }

  .store-map {
    height: 420px;
  }
}

@media (min-width: 1100px) {
  .quality-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open .nav-external {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--line) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
