/* ============================================================
   wicknote — shared marketing stylesheet
   Consumed by: index.html, features/, pricing/, about/, faq/
   Do NOT link from terms/, privacy/, refund/ (they have inline styles)
   ============================================================ */

/* ---- DESIGN TOKENS ---------------------------------------- */
:root {
  --bg:     #f0f1ed;
  --panel:  #fbfcfa;
  --line:   #e2e4dd;
  --ink:    #2f2e29;
  --dim:    #8b8c84;
  --accent: #4f7090;
}

/* ---- RESET + BASE ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

/* No horizontal overflow */
img, video, iframe { max-width: 100%; height: auto; }

/* ---- LAYOUT UTILITIES ------------------------------------- */

/* Content container */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section spacing */
.section { padding: 5rem 0; }
@media (max-width: 640px) { .section { padding: 3rem 0; } }

/* ---- BUTTONS ---------------------------------------------- */

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: opacity 0.15s ease;
  cursor: pointer;
  min-height: 44px;
}
.btn-primary:hover { opacity: 0.88; }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
  min-height: 44px;
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ---- PANEL / CARD ----------------------------------------- */
.panel {
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 2rem;
}

/* ---- FEATURE GRID ----------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---- WORDMARK --------------------------------------------- */
.wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- STICKY NAV ------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-brand:hover .wordmark {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-login {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-login:hover {
  color: var(--ink);
}

/* Hide checkbox; hamburger invisible on desktop */
.nav-toggle-input { display: none; }
.nav-toggle-label { display: none; }

/* ---- MOBILE NAV (<=640px) — checkbox hack ----------------- */
@media (max-width: 640px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    min-height: 44px;
    justify-content: center;
  }
  .nav-toggle-label span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .nav-links,
  .nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .nav-toggle-input:checked ~ .nav-links,
  .nav-toggle-input:checked ~ .nav-actions {
    display: flex;
  }

  /* Hamburger → X animation */
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-actions {
    padding-top: 0;
    border-bottom: none;
    padding-bottom: 1rem;
  }

  .nav-cta.btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ---- FOOTER ----------------------------------------------- */
.site-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-sep {
  color: var(--line);
  font-size: 0.8125rem;
}
.footer-copy {
  color: var(--dim);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* ---- MEDIA SLOTS ------------------------------------------ */
.media-slot-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.media-slot-8x5 {
  aspect-ratio: 8 / 5;
  width: 100%;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.media-slot-16x9 img,
.media-slot-8x5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reduced motion: pause GIFs */
@media (prefers-reduced-motion: reduce) {
  .media-slot-16x9 img[src$=".gif"],
  .media-slot-8x5 img[src$=".gif"] {
    animation: none;
  }
}

/* ---- BODY PROSE LINKS (scoped — does not override nav/footer) */
main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- SKIP LINK (a11y) ------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}
