/*
 * Taylor Scott Solar PV Toolset — Shared Design System
 * luscott.ca
 * © 2026 Taylor Scott. All rights reserved.
 * ─────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════════════ */
:root {
  /* Brand accent — derived from TS.SC compass mark */
  --accent:        #4A6E9A;
  --accent-hover:  #3A5A84;
  --accent-light:  #5E81AC;
  --accent-bg:     #EEF2F8;
  --accent-border: #C5D3E8;

  /* Neutral scale */
  --white:    #FFFFFF;
  --gray-50:  #F8F9FA;
  --gray-100: #F1F3F6;
  --gray-200: #E4E8EE;
  --gray-300: #D0D6DF;
  --gray-400: #B0BAC6;
  --gray-500: #8A95A3;
  --gray-600: #636D7A;
  --gray-700: #45515E;
  --gray-800: #2D3742;
  --gray-900: #1A222C;

  /* Semantic */
  --success:        #2A7A4A;
  --success-bg:     #EAF4EE;
  --success-border: #B5D9C3;
  --warning:        #8A5A0A;
  --warning-bg:     #FDF3E3;
  --warning-border: #F0D08A;
  --error:          #A02828;
  --error-bg:       #FDEDED;
  --error-border:   #F0B8B8;
  --info-bg:        var(--accent-bg);
  --info-border:    var(--accent-border);

  /* Typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --line-body: 1.65;
  --line-tight: 1.3;

  /* Spacing — 8px base scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;

  /* Shape */
  --radius:    6px;
  --radius-sm: 4px;
  --radius-lg: 10px;

  /* Borders */
  --border:       1px solid var(--gray-200);
  --border-focus: 1px solid var(--accent);

  /* Shadows — minimal */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);

  /* Layout */
  --max-width:      1120px;
  --content-width:  780px;
  --nav-height:     56px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: var(--line-body);
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ══════════════════════════════════════════════════════
   SITE NAVIGATION
══════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-4);
}

.site-nav__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav__brand:hover { text-decoration: none; }

.site-nav__brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-nav__brand-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.2px;
}
.site-nav__brand-sub {
  font-size: 10.5px;
  color: var(--gray-500);
  letter-spacing: 0.2px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

.site-nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.site-nav__links a:hover { color: var(--gray-900); background: var(--gray-100); }
.site-nav__links a.active { color: var(--accent); }

.site-nav__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent) !important;
  border: 1px solid var(--accent-border);
  padding: 5px 12px !important;
  border-radius: var(--radius) !important;
  transition: background 0.15s, color 0.15s !important;
}
.site-nav__cta:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  text-decoration: none;
}

/* Mobile nav toggle */
.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--gray-700);
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.site-nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ══════════════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  border-top: var(--border);
  background: var(--white);
  padding: var(--sp-4) var(--sp-4);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.site-footer__copy {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
}
.site-footer__links a {
  font-size: 12px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--accent); text-decoration: none; }
.site-footer__links li:not(:last-child)::after {
  content: '·';
  margin-left: var(--sp-2);
  color: var(--gray-300);
}

/* ══════════════════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════════════════ */
.page-wrap {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4);
}

.page-wrap--narrow {
  max-width: var(--content-width);
}

.page-header {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: var(--border);
}
.page-header__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}
.page-header h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: var(--line-tight);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.page-header__lead {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 680px;
  line-height: var(--line-body);
}

/* ══════════════════════════════════════════════════════
   HERO (landing / home)
══════════════════════════════════════════════════════ */
.hero {
  background: var(--white);
  border-bottom: var(--border);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}
.hero__inner {
  max-width: 680px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.hero h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-bottom: var(--sp-2);
}
.hero__sub {
  font-size: 16px;
  color: var(--gray-600);
  line-height: var(--line-body);
  margin-bottom: var(--sp-4);
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.card--flat { box-shadow: none; }
.card--hover { transition: border-color 0.15s, box-shadow 0.15s; }
.card--hover:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.card__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: var(--line-tight);
  margin-bottom: 6px;
}
.card__body {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: var(--line-body);
}
.card__footer {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tool card grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-3);
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-border);
}
.btn--outline:hover { background: var(--accent-bg); color: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn--ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn--sm { padding: 5px 12px; font-size: 12.5px; }
.btn--lg { padding: 11px 24px; font-size: 15px; }

/* ══════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════ */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-700);
}
.field-hint {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 3px;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-800);
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: var(--font);
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,110,154,0.12);
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input:disabled, select:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234A6E9A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* Input with unit suffix */
.input-wrap {
  position: relative;
}
.input-wrap .unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  color: var(--gray-400);
  pointer-events: none;
}
.input-wrap input { padding-right: 36px; }

/* ══════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
thead th {
  background: var(--gray-50);
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }
tfoot td {
  padding: 8px 12px;
  font-weight: 600;
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
  color: var(--gray-900);
}

/* Editable table cells */
td input[type="number"] {
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 6px;
  width: 100%;
  min-width: 70px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
td input[type="number"]:hover { border-color: var(--gray-300); background: var(--white); }
td input[type="number"]:focus {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74,110,154,0.12);
  outline: none;
}

/* ══════════════════════════════════════════════════════
   ALERTS / NOTICES
══════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.alert--info    { background: var(--accent-bg);   border-color: var(--accent-border);   color: var(--accent-hover); }
.alert--success { background: var(--success-bg);  border-color: var(--success-border);  color: var(--success); }
.alert--warning { background: var(--warning-bg);  border-color: var(--warning-border);  color: var(--warning); }
.alert--error   { background: var(--error-bg);    border-color: var(--error-border);    color: var(--error); }

.disclaimer-block {
  background: var(--gray-50);
  border: var(--border);
  border-left: 3px solid var(--gray-300);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.6;
}
.disclaimer-block strong { color: var(--gray-800); }

/* ══════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--accent  { background: var(--accent-bg);   color: var(--accent); }
.badge--success { background: var(--success-bg);  color: var(--success); }
.badge--warning { background: var(--warning-bg);  color: var(--warning); }
.badge--error   { background: var(--error-bg);    color: var(--error); }
.badge--neutral { background: var(--gray-100);    color: var(--gray-600); }

/* ══════════════════════════════════════════════════════
   SECTION DIVIDERS & TYPOGRAPHY
══════════════════════════════════════════════════════ */
.section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: var(--sp-2);
}

h2 { font-size: 20px; font-weight: 600; color: var(--gray-900); letter-spacing: -0.3px; line-height: var(--line-tight); }
h3 { font-size: 16px; font-weight: 600; color: var(--gray-900); letter-spacing: -0.2px; line-height: var(--line-tight); }
h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); }

p { margin-bottom: var(--sp-2); }
p:last-child { margin-bottom: 0; }

.text-muted   { color: var(--gray-500); }
.text-accent  { color: var(--accent); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11.5px; }

.prose h2 { margin: var(--sp-4) 0 var(--sp-2); }
.prose h3 { margin: var(--sp-3) 0 var(--sp-1); }
.prose p  { margin-bottom: var(--sp-2); font-size: 14.5px; color: var(--gray-700); }
.prose ul, .prose ol { padding-left: var(--sp-3); margin-bottom: var(--sp-2); }
.prose li { font-size: 14.5px; color: var(--gray-700); margin-bottom: 4px; line-height: var(--line-body); }

/* ══════════════════════════════════════════════════════
   SECTION BANDS (landing page)
══════════════════════════════════════════════════════ */
.section {
  padding: var(--sp-6) var(--sp-4);
}
.section--white { background: var(--white); border-bottom: var(--border); }
.section--tinted { background: var(--gray-50); border-bottom: var(--border); }
.section__inner { max-width: var(--max-width); margin: 0 auto; }
.section__header { margin-bottom: var(--sp-4); }
.section__header h2 { margin-bottom: 6px; }
.section__header p { font-size: 14.5px; color: var(--gray-600); max-width: 560px; }

/* ══════════════════════════════════════════════════════
   TOOL PAGE LAYOUT (shared tool wrapper)
══════════════════════════════════════════════════════ */
.tool-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tool-header {
  background: var(--white);
  border-bottom: var(--border);
  padding: var(--sp-3) var(--sp-4);
}
.tool-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.tool-header h1 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.2px;
}
.tool-header__sub {
  font-size: 12px;
  color: var(--gray-500);
}
.tool-body {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
}

/* Tab navigation (used in Snow Loss tool) */
.tab-nav {
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  padding: 0 var(--sp-4);
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--gray-900); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Tool card */
.tool-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}
.tool-card__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: var(--border);
}

/* Form grid */
.form-row { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Result value display */
.result-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.result-unit {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  margin-left: 3px;
}
.result-label {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: var(--border);
  flex-shrink: 0;
}
.modal__header h2 { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.modal__close {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.modal__close:hover { color: var(--gray-900); background: var(--gray-100); }
.modal__body { overflow-y: auto; padding: var(--sp-3); flex: 1; }
.modal__footer {
  padding: var(--sp-2) var(--sp-3);
  border-top: var(--border);
  text-align: right;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════ */
.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-height: 52px; }

  .site-nav__links { display: none; }
  .site-nav__toggle { display: flex; }
  .site-nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: var(--border);
    padding: var(--sp-2) var(--sp-3);
    gap: 2px;
    box-shadow: var(--shadow-sm);
  }
  .site-nav__links.open a { padding: 10px 12px; }

  .hero h1       { font-size: 26px; }
  .hero__sub     { font-size: 15px; }
  .page-wrap     { padding: var(--sp-4) var(--sp-2); }
  .section       { padding: var(--sp-5) var(--sp-2); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .tool-grid     { grid-template-columns: 1fr; }
  .tool-body     { padding: var(--sp-2) var(--sp-2); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
}

@media (max-width: 480px) {
  .hero { padding: var(--sp-5) var(--sp-2); }
  .hero h1 { font-size: 22px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn--lg { width: 100%; justify-content: center; }
}
