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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--bc-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bc-ink);
  background: var(--bc-cream);
}

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

a {
  color: var(--bc-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bc-teal-light);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bc-navy);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

.site-header {
  background: var(--bc-paper);
  border-bottom: 1px solid var(--bc-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--bc-max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--bc-navy);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--bc-teal), var(--bc-sage));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--bc-font-display);
}

.logo-text {
  font-family: var(--bc-font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-tag {
  display: block;
  font-family: var(--bc-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--bc-ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-main a {
  text-decoration: none;
  font-weight: 500;
  color: var(--bc-ink);
  font-size: 0.95rem;
}

.nav-main a[aria-current="page"] {
  color: var(--bc-teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--bc-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--bc-teal);
  color: white;
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--bc-teal);
  color: var(--bc-teal);
}

.btn-secondary:hover {
  background: rgba(45, 106, 106, 0.08);
  color: var(--bc-teal);
}

.btn-ghost {
  background: var(--bc-paper);
  border-color: var(--bc-border);
  color: var(--bc-ink);
}

.hero {
  background: linear-gradient(180deg, var(--bc-paper) 0%, var(--bc-cream) 100%);
  padding: 3rem 1.25rem 4rem;
}

.hero-inner {
  max-width: var(--bc-max-width);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-family: var(--bc-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--bc-navy);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--bc-ink-muted);
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-trust {
  font-size: 0.9rem;
  color: var(--bc-ink-muted);
}

.hero-card {
  background: var(--bc-paper);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--bc-shadow);
}

.hero-card h2 {
  font-family: var(--bc-font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--bc-navy);
}

.pack-preview {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pack-preview li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bc-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.pack-preview li:last-child {
  border-bottom: none;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(45, 106, 106, 0.12);
  color: var(--bc-teal);
}

.section {
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: var(--bc-paper);
}

.section-inner {
  max-width: var(--bc-max-width);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--bc-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--bc-navy);
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--bc-ink-muted);
  max-width: 42em;
  margin: 0 0 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bc-paper);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 1.5rem;
  height: 100%;
}

.section-alt .card {
  background: var(--bc-cream);
}

.card h3 {
  font-family: var(--bc-font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--bc-navy);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--bc-ink-muted);
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bc-paper);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  overflow: hidden;
}

table.compare th,
table.compare td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bc-border);
}

table.compare th {
  background: var(--bc-navy);
  color: white;
  font-weight: 600;
}

table.compare tr:last-child td {
  border-bottom: none;
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--bc-paper);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--bc-teal);
  box-shadow: var(--bc-shadow);
}

.price-card h3 {
  font-family: var(--bc-font-display);
  margin: 0 0 0.25rem;
  color: var(--bc-navy);
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bc-teal);
  margin: 0.5rem 0;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--bc-ink-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  flex: 1;
  font-size: 0.95rem;
}

.price-features li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bc-sage);
  font-weight: 700;
}

.form-panel {
  max-width: 32rem;
  background: var(--bc-paper);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 1.75rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  font: inherit;
  margin-bottom: 1rem;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--bc-focus);
  outline-offset: 1px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  border-bottom: 1px solid var(--bc-border);
  padding: 1.25rem 0;
}

.article-list a {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--bc-navy);
}

.article-list a:hover {
  color: var(--bc-teal);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--bc-ink-muted);
  margin-top: 0.35rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--bc-font-display);
  color: var(--bc-navy);
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--bc-ink);
}

.site-footer {
  background: var(--bc-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--bc-max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer h3 {
  font-family: var(--bc-font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: white;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.notice {
  background: rgba(45, 106, 106, 0.1);
  border-left: 4px solid var(--bc-teal);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--bc-radius-sm) var(--bc-radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.filter-bar {
  display: grid;
  gap: 1rem;
  background: var(--bc-paper);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 800px) {
  .filter-bar {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: end;
  }
}

.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  margin: 0;
}

.filter-checks input {
  width: auto;
  margin: 0;
}

.library-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.library-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bc-ink-muted);
  margin: 0 0 0.35rem;
}

.library-meta {
  margin: 0.75rem 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.chip {
  font-size: 0.75rem;
  background: rgba(26, 58, 74, 0.06);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  color: var(--bc-navy);
}

.preview-banner {
  background: var(--bc-navy);
  color: white;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.preview-banner a {
  color: white;
}
