/* SparkShare.io marketing site — static CSS, no box-shadow anywhere. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-deep: #0e1b2e;
  --ink: #16202e;
  --ink-soft: #46566b;
  --line: #dce3ec;
  --line-strong: #c3cede;
  --brand: #1f6feb;
  --brand-deep: #1552b8;
  --brand-ink: #0b3a86;
  --accent: #0fb5a4;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: inline-block;
}

.brand-mark::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 10px;
  border-radius: 3px;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: var(--brand-ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

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

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

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

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: #e8f0ff;
  border: 1px solid #cfe0ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 20ch;
}

.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.product-card .tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid #b9ece5;
  background: #e9fbf8;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.5rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.product-card .product-domain {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}

.product-card p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.product-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.97rem;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.product-card .card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Placeholders have been filled with verified facts; render as normal text. */
.ph {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  white-space: normal;
}

/* ---------- Trust / value row ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.value-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}

.value-item h4 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.value-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: var(--bg);
  max-width: 640px;
}

.contact-row {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row .label {
  min-width: 130px;
  font-weight: 600;
  color: var(--ink);
}

.contact-row .value {
  color: var(--ink-soft);
}

/* ---------- Legal / policy pages ---------- */
.legal {
  padding: 56px 0 84px;
}

.legal .container {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: #2b3646;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 600;
}

.callout {
  border: 1px solid #cfe0ff;
  background: #f2f7ff;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.96rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #c4d1e4;
  padding: 56px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  color: #93a6c2;
  font-size: 0.95rem;
  margin: 14px 0 0;
  max-width: 40ch;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #c4d1e4;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #24344b;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: #7f93b0;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0 24px;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    padding: 60px 0 52px;
  }

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