/* novara.tech. Every color, size, shadow and radius is a variable from tokens.css, which is generated from
   design/tokens.json, the source the app (learn.novara.tech) uses too. Don't put raw colors here: add a token. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: 760px; }

/* Header: the app's header, white with the mark and the name */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-2); color: var(--gray-900); font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: var(--gray-900); }
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a { color: var(--gray-600); font-weight: 500; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--primary); }
.site-nav a.btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gray-300); border-radius: var(--border-radius);
  padding: var(--space-2) var(--space-3); font: inherit; color: var(--gray-700); cursor: pointer; }

/* Buttons: the app's Button component */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--border-radius-lg); font-weight: 600;
  font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: var(--transition-colors); font-family: inherit; }
.btn-small { padding: var(--space-2) var(--space-4); font-size: 0.875rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--gray-900); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-light { background: var(--white); color: var(--primary-dark); }
.btn-light:hover { background: var(--gray-100); color: var(--primary-dark); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Hero: the app's blue */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: var(--space-12) 0; }
.hero-inner { padding-top: var(--space-12); padding-bottom: var(--space-12); max-width: 860px; margin-left: auto; margin-right: auto; }
.hero-short .hero-inner { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: var(--space-3) 0 var(--space-4); }
.lead { font-size: 1.1875rem; opacity: 0.92; max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; font-weight: 700; color: var(--primary); margin-bottom: var(--space-2); }
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.pills li { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--border-radius-full);
  padding: var(--space-1) var(--space-4); font-size: 0.875rem; font-weight: 600; }

/* Sections */
.section { padding: var(--space-12) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin-bottom: var(--space-4); }
.section p + p { margin-top: var(--space-4); }
.section-lead { color: var(--gray-600); font-size: 1.0625rem; max-width: 720px; margin-bottom: var(--space-8); }
.emphasis { font-weight: 600; color: var(--gray-800); }
.checklist { list-style: none; margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.checklist li { padding-left: var(--space-8); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1em; height: 1.1em;
  border-radius: var(--border-radius-full); background: var(--primary); opacity: 0.18; }

/* Cards: the app's Card component */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.align-start { align-items: start; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm); padding: var(--space-6); text-align: left; }
.section-alt .card { background: var(--gray-50); }
.card h3 { font-size: 1.125rem; font-weight: 700; margin: var(--space-1) 0 var(--space-2); color: var(--gray-900); }
.card p { color: var(--gray-600); }
.card-kicker { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.step { display: inline-block; font-weight: 800; color: var(--primary); font-size: 0.875rem; }
.card-link { display: block; color: inherit; transition: var(--transition-transform); }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.card-link strong { display: block; margin-top: var(--space-4); color: var(--primary); }
.card-select { font: inherit; cursor: pointer; transition: var(--transition-colors); }
.card-select[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.award { margin-top: var(--space-4); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }

/* Tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.tab-list button { font: inherit; font-weight: 600; font-size: 0.9375rem; padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-full); border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Forms: the app's inputs */
.form { display: grid; gap: var(--space-4); }
.form label { display: grid; gap: var(--space-1); font-weight: 600; font-size: 0.875rem; color: var(--gray-700); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--gray-900);
  padding: var(--space-3); border: 1px solid var(--gray-300); border-radius: var(--border-radius-lg); background: var(--white); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; border-color: var(--primary); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.error { color: var(--error); }

/* Footer: the app's dark footer */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: var(--space-12) 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); }
.site-footer h3 { color: var(--white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.site-footer a { display: block; color: var(--gray-300); margin-bottom: var(--space-2); font-size: 0.9375rem; }
.site-footer a:hover { color: var(--white); }
.brand-light, .brand-light:hover { color: var(--white); }
.footer-small { font-size: 0.8125rem; margin-top: var(--space-2); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: var(--space-4); padding: var(--space-6); background: var(--white); border-bottom: 1px solid var(--gray-200); }
  .site-nav.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-10) 0; }
}
