* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--hostly-font);
  font-size: var(--hostly-size-md);
  font-weight: var(--hostly-weight);
  line-height: var(--hostly-leading);
  background: var(--hostly-background);
  color: var(--hostly-primary);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--hostly-primary);
  color: var(--hostly-on-primary);
  padding: 0.4rem 0.7rem;
  border-radius: var(--hostly-radius-sm);
}
.skip-link:focus { top: 0.75rem; }

.site-header {
  border-bottom: 1px solid var(--hostly-border);
  background: var(--hostly-background);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-bar {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--hostly-logo-gap);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.site-logo__img {
  display: block;
  height: 2rem;
  width: auto;
}
.site-word {
  font-size: var(--hostly-size-xl);
  letter-spacing: var(--hostly-tracking-brand);
  font-weight: var(--hostly-weight-semibold);
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}
.site-cta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-cta {
  text-decoration: none;
  font-family: var(--hostly-font);
  font-size: var(--hostly-size-sm);
  border-radius: var(--hostly-radius-sm);
  padding: 0.4rem 0.8rem;
  background: var(--hostly-secondary);
  color: var(--hostly-on-secondary);
}
.site-cta--ghost {
  background: transparent;
  color: var(--hostly-primary);
  border: 1px solid var(--hostly-border);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
}
.hero-actions .hostly-button { text-decoration: none; display: inline-block; }
.site-nav__link {
  color: var(--hostly-muted);
  text-decoration: none;
}
.site-nav__link[aria-current="page"],
.site-drawer__link[aria-current="page"],
.site-footer__link[aria-current="page"] {
  color: var(--hostly-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-burger {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: 1px solid var(--hostly-border);
  border-radius: var(--hostly-radius-sm);
  background: var(--hostly-surface);
  cursor: pointer;
}
.site-burger span {
  display: block;
  height: 1.5px;
  margin: 5px 0;
  background: var(--hostly-primary);
}
.site-drawer {
  border-top: 1px solid var(--hostly-border);
  background: var(--hostly-surface);
  padding: 0.75rem 1.25rem 1.25rem;
}
.site-drawer[hidden] { display: none !important; }
.site-drawer__nav { display: grid; gap: 0.65rem; max-width: 980px; margin: 0 auto; }
.site-drawer__link { color: var(--hostly-primary); text-decoration: none; font-size: var(--hostly-size-lg); }
.site-drawer__link--muted { color: var(--hostly-muted); font-size: var(--hostly-size-md); }
.site-drawer__legal-label {
  margin: 0.8rem 0 0;
  font-size: var(--hostly-size-xs);
  letter-spacing: var(--hostly-tracking-wide);
  text-transform: uppercase;
  color: var(--hostly-muted);
}

body.nav-open { overflow: hidden; }

@media (max-width: 800px) {
  .site-nav, .site-cta-row { display: none; }
  .site-burger { display: block; }
}

main { max-width: 980px; margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }
main:has(.plans) { max-width: 1100px; }

.hero { padding: 3.2rem 0 1.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--hostly-tracking-wide);
  font-size: var(--hostly-size-xs);
  color: var(--hostly-muted);
}
h1 {
  font-size: var(--hostly-size-hero);
  line-height: var(--hostly-leading-tight);
  font-weight: var(--hostly-weight-semibold);
  letter-spacing: var(--hostly-tracking-tight);
}
.lead {
  font-size: var(--hostly-size-xl);
  max-width: 36rem;
  color: var(--hostly-muted);
}

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
article { border-top: 1px solid var(--hostly-border); padding-top: 1rem; }
h2 { font-size: var(--hostly-size-lg); margin: 0 0 0.4rem; font-weight: var(--hostly-weight-semibold); }
article p, .prose p, .prose li { color: var(--hostly-muted); }
.prose { max-width: 40rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.15rem; }
.draft {
  display: inline-block;
  font-size: var(--hostly-size-xs);
  letter-spacing: var(--hostly-tracking-wide);
  text-transform: uppercase;
  color: var(--hostly-primary);
  margin: 0 0 0.6rem;
}

.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.75rem 0 2rem;
}
.plan-card {
  margin: 0;
  padding: 1.15rem 1rem 1.3rem;
  border: 1px solid var(--hostly-border);
  border-radius: var(--hostly-radius-md);
  background: var(--hostly-surface);
  border-top: 1px solid var(--hostly-border);
}
.plan-card--featured {
  border-color: var(--hostly-secondary);
  box-shadow: 0 0 0 2px var(--hostly-secondary);
}
.plan-who {
  margin: 0 0 0.35rem;
  font-size: var(--hostly-size-xs);
  letter-spacing: var(--hostly-tracking-wide);
  text-transform: uppercase;
  color: var(--hostly-muted);
}
.plan-card h2 { margin: 0 0 0.35rem; }
.plan-price {
  margin: 0 0 0.5rem;
  font-size: var(--hostly-size-xl);
  font-weight: var(--hostly-weight-semibold);
  color: var(--hostly-primary);
}
.plan-price span {
  font-size: var(--hostly-size-sm);
  font-weight: var(--hostly-weight);
  color: var(--hostly-muted);
}
.plan-card p { margin: 0 0 0.45rem; }
.plan-diff {
  color: var(--hostly-primary);
  font-weight: var(--hostly-weight-semibold);
}
.plan-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--hostly-muted);
}
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
}

.site-footer {
  border-top: 1px solid var(--hostly-border);
  background: var(--hostly-surface);
  padding: 2rem 1.25rem 6rem;
  font-size: var(--hostly-size-sm);
  color: var(--hostly-muted);
}
.site-footer__grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer .site-word { color: var(--hostly-primary); margin: 0; }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}
.site-footer__mark {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}
.site-footer__tag { margin: 0; }
.site-footer__label {
  margin: 0 0 0.45rem;
  color: var(--hostly-primary);
  letter-spacing: var(--hostly-tracking-wide);
  text-transform: uppercase;
  font-size: var(--hostly-size-xs);
}
.site-footer__link {
  display: block;
  color: var(--hostly-muted);
  text-decoration: none;
  margin: 0.25rem 0;
}
.site-footer__copy {
  max-width: 980px;
  margin: 2rem auto 0;
}

.site-cookies {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 12;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: var(--hostly-primary);
  color: var(--hostly-on-primary);
  padding: 0.9rem 1rem;
  border-radius: var(--hostly-radius-md);
}
.site-cookies p { margin: 0; flex: 1 1 16rem; }
.site-cookies a { color: var(--hostly-on-primary); }
