/* Shared site header and footer (<define-header>, <define-footer>) for every public page:
   the homepage, the pricing page and the free story audit tool. Self-contained: it uses the brand
   values directly rather than page tokens, because the audit tool's Tailwind tokens share some names. */
define-header, define-footer { display: block; font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
define-header { background: #18181B; color: #FAFAF9; }
define-header :focus-visible { outline: 2px solid #22B8CF; outline-offset: 2px; border-radius: 6px; }
define-footer :focus-visible { outline: 2px solid #0E7490; outline-offset: 2px; border-radius: 6px; }

.sh-nav { display: flex; align-items: center; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 32px); }
.sh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.sh-brand:hover { color: #FFFFFF; }
.sh-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #0E7490; flex: none; }
.sh-tile svg { display: block; }
.sh-wordmark { font-size: 22px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.sh-dot { color: #22B8CF; }
.sh-beta { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #22B8CF; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sh-grow { flex: 1; }
.sh-links { display: flex; gap: 4px; margin-left: 12px; font-size: 14px; }
.sh-links a { padding: 10px 12px; text-decoration: none; color: #D4D4D8; border-radius: 8px; }
.sh-links a:hover, .sh-links a[aria-current="page"] { color: #FFFFFF; }
.sh-login { padding: 10px 12px; font-size: 14px; font-weight: 500; color: #D4D4D8; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.sh-login:hover { color: #FFFFFF; }
.sh-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px;
  background: #FAFAF9; color: #18181B; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.sh-cta:hover { background: #E4E4E7; color: #18181B; }

.sf-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 1120px; margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 32px) 48px; font-size: 13px; color: #666666;
}
.sf-footer a { color: #666666; text-decoration: underline; text-underline-offset: 2px; }
.sf-footer a:hover, .sf-footer a[aria-current="page"] { color: #17150F; }
.sf-wordmark { font-size: 16px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #17150F; }
.sf-dot { color: #0E7490; }
.sf-grow { flex: 1; }

@media (max-width: 1023px) { .sh-links { display: none; } }
@media (max-width: 520px) {
  .sh-nav { padding: 10px 12px 10px 16px; min-height: 64px; gap: 10px; }
  .sh-tile { width: 32px; height: 32px; border-radius: 9px; }
  .sh-wordmark { font-size: 21px; }
  .sh-cta { height: 44px; padding: 0 14px; }
  .sh-beta { display: none; }
  .sh-login { padding: 10px 6px; }
  .sf-footer { padding: 32px 16px 40px; gap: 10px 18px; }
  .sf-grow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sh-cta { transition: none; } }

/* Ink closing banner (.sb-*) for pages outside the homepage's own CSS, e.g. the story audit tool. */
.sb-band { background: #18181B; color: #FAFAF9; text-align: center; font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; }
.sb-inner { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 32px); display: flex; flex-direction: column; align-items: center; }
.sb-band h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; }
.sb-dot { color: #22B8CF; }
.sb-sub { margin: 0 auto 28px; max-width: 460px; font-size: 16px; line-height: 1.55; color: #A1A1AA; }
.sb-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px;
  background: #FAFAF9; color: #18181B; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s ease;
}
.sb-btn:hover { background: #E4E4E7; color: #18181B; }
.sb-alt { margin: 14px 0 0; font-size: 14px; color: #A1A1AA; }
.sb-alt a { color: #FAFAF9; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sb-alt a:hover { color: #A1A1AA; }
.sb-band :focus-visible { outline: 2px solid #22B8CF; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 520px) {
  .sb-inner { padding: 48px 20px; }
  .sb-band h2 { font-size: 34px; margin-bottom: 10px; }
  .sb-sub { font-size: 15px; margin-bottom: 22px; }
  .sb-btn { width: 100%; max-width: 360px; height: 52px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sb-btn { transition: none; } }
