/* Super PowerShell marketing site. Tokens from Super-PowerShell-Branding-Kit */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Nunito+Sans:wght@400;600;700&display=swap");

:root {
  --sps-teal: #1D747C;
  --sps-teal-hover: #299099;
  --sps-teal-bright: #3BAFBA;
  --sps-teal-deep: #11464B;
  --sps-wash-teal: #DEEBED;
  --sps-glow: #DCEE1B;
  --sps-wash-glow: #F4F6DF;
  --sps-mist: #E4EDF1;
  --hh-paper: #F7F5F3;
  --hh-ink: #1C1825;
  --hh-white: #FDFDFC;
  --hh-dusk: #151122;
  --hh-cream: #F1EEE9;
  --mark-plate: #FFFFFF;
  --sps-max: 1080px;
  --sps-radius: 1.25rem 0.85rem 1.4rem 1rem;
  --sps-border: rgba(29, 116, 124, 0.18);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--hh-paper);
  color: var(--hh-ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--sps-teal); text-decoration-thickness: 1px; }
a:hover { color: var(--sps-teal-hover); }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--sps-teal-bright);
  outline-offset: 2px;
}

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

.wrap {
  width: min(var(--sps-max), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sps-teal);
  color: var(--hh-white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 1rem 0;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sps-teal-deep) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sps-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--hh-cream);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.sps-mark-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mark-plate);
  border-radius: 0.55rem;
  padding: 0.15rem;
  line-height: 0;
}
.sps-mark-plate img { width: 40px; height: 40px; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--hh-cream);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  color: var(--sps-teal-bright);
  border-color: var(--sps-teal-bright);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--sps-teal-bright);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  color: var(--hh-cream);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sps-teal);
  color: var(--hh-white);
}
.btn-primary:hover { background: var(--sps-teal-hover); color: var(--hh-white); }

.btn-glow {
  background: var(--sps-glow);
  color: var(--hh-ink);
}
.btn-glow:hover { filter: brightness(1.05); color: var(--hh-ink); }

.btn-outline {
  border-color: var(--sps-teal-bright);
  color: var(--hh-cream);
  background: transparent;
}
.btn-outline:hover { border-color: var(--hh-cream); color: var(--hh-cream); }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero-light { background: linear-gradient(180deg, var(--hh-paper) 0%, var(--sps-mist) 100%); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--sps-wash-teal);
  color: var(--hh-ink);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.badge .dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--sps-teal-bright);
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 42ch;
  margin: 0 0 1rem;
}

.tagline { font-weight: 700; color: var(--sps-teal); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.hero-art { display: flex; justify-content: center; }
.hero-art .sps-mark-plate { padding: 1rem; border-radius: 1rem; }
.hero-art img { width: min(300px, 100%); }

/* Sections */
section { padding: 2.5rem 0; }

.section-head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sps-teal);
  margin: 0 0 0.35rem;
}

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

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--hh-white);
  border: 1px solid var(--sps-border);
  border-radius: var(--sps-radius);
  padding: 1.25rem 1.35rem;
}

.card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.card p { margin: 0; font-size: 0.95rem; }

.icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--sps-wash-teal);
  color: var(--sps-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.callout {
  background: var(--sps-wash-glow);
  border: 1px solid var(--sps-border);
  border-radius: var(--sps-radius);
  padding: 1.35rem 1.5rem;
}
.callout p { margin: 0; }

.teaser-more { margin-top: 1.5rem; text-align: center; }

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--sps-mist);
  border-bottom: 1px solid var(--sps-border);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lede { margin: 0; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sps-border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list strong { color: var(--sps-teal-deep); }

/* Footer */
.site-footer {
  background: var(--sps-teal-deep);
  color: var(--hh-cream);
  padding: 2rem 0;
  margin-top: auto;
}
.site-footer a { color: var(--sps-teal-bright); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-nav a { text-decoration: none; }

.footer-meta {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.92;
}
.footer-meta-sep { margin: 0 0.35rem; }

/* Mobile */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 70%); margin: 0 auto; }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sps-teal-deep);
    border-bottom: 1px solid var(--sps-border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; }
  .main-nav .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

  .site-header .wrap { position: relative; flex-wrap: wrap; }
}
