/* Red Seal Ready — site styles */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --red: #a8253b;          /* warm, deeper red — matches the seal */
  --red-dark: #7c1928;
  --red-soft: #fbecee;
  --ink: #1f1410;          /* slightly warmer black */
  --ink-2: #3a2f2a;
  --muted: #6b6258;
  --bg: #ffffff;
  --bg-alt: #f4ecd9;       /* parchment cream */
  --cream: #faf3e3;
  --border: #e6dcc4;
  --gold: #b07c2c;
  --shadow-sm: 0 1px 2px rgba(40, 25, 15, 0.06), 0 2px 6px rgba(40, 25, 15, 0.04);
  --shadow-md: 0 4px 14px rgba(40, 25, 15, 0.08);
  --shadow-lg: 0 18px 40px rgba(40, 25, 15, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1140px;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.015em;
}
h3, h4 {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.accent { color: var(--red); }

/* ============ Header / Nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--red); }

.brand-mark {
  width: 48px;
  height: 48px;
  background: url("assets/logo.png") center/contain no-repeat;
  flex-shrink: 0;
}
.site-footer .brand-mark {
  width: 56px;
  height: 56px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--red);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.2s ease;
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.28);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ============ Hero ============ */

.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(1200px 500px at 90% -10%, var(--red-soft), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.18rem;
  color: var(--ink-2);
  max-width: 56ch;
}
.hero-ctas { display: flex; gap: 14px; margin: 28px 0 36px; flex-wrap: wrap; }
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* Stacked book mockups */
.hero-visual {
  position: relative;
  height: 420px;
}

/* Ambient glow behind the book stack */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 42% 60%, rgba(168, 37, 59, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 65%, rgba(176, 124, 44, 0.14) 0%, transparent 60%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.hero-visual .book {
  position: absolute;
  width: 188px;
  height: 244px;          /* 8.5 × 11 portrait ratio */
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  border-left: 5px solid rgba(255,255,255,0.18);
  background: var(--ink);
  z-index: 1;
  will-change: transform;
}
.book-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Float keyframes — rotation baked in so transform stays consistent */
@keyframes book-float-1 {
  0%, 100% { transform: rotate(-8deg) translateY(0px);    box-shadow: 0 10px 28px rgba(20,10,5,0.26), 0 2px 6px rgba(20,10,5,0.14); }
  50%       { transform: rotate(-8deg) translateY(-12px); box-shadow: 0 22px 42px rgba(20,10,5,0.20), 0 4px 10px rgba(20,10,5,0.10); }
}
@keyframes book-float-2 {
  0%, 100% { transform: rotate(1deg) translateY(0px);    box-shadow: 0 12px 34px rgba(20,10,5,0.30), 0 3px 8px rgba(20,10,5,0.16); }
  50%       { transform: rotate(1deg) translateY(-16px); box-shadow: 0 26px 50px rgba(20,10,5,0.22), 0 5px 12px rgba(20,10,5,0.12); }
}
@keyframes book-float-3 {
  0%, 100% { transform: rotate(9deg) translateY(0px);    box-shadow: 0 10px 28px rgba(20,10,5,0.26), 0 2px 6px rgba(20,10,5,0.14); }
  50%       { transform: rotate(9deg) translateY(-10px); box-shadow: 0 20px 40px rgba(20,10,5,0.18), 0 4px 8px rgba(20,10,5,0.10); }
}

.book-1 {
  top: 55px; left: 10px;
  z-index: 1;
  animation: book-float-1 5.2s ease-in-out infinite;
}
.book-2 {
  top: 15px; left: 138px;
  z-index: 3;
  animation: book-float-2 5.2s ease-in-out infinite 0.9s;
}
.book-3 {
  top: 65px; left: 262px;
  z-index: 2;
  animation: book-float-3 5.2s ease-in-out infinite 1.8s;
}

/* ============ Sections ============ */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* ============ Features ============ */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft);
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--red);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Inline maple leaf (replaces 🇨🇦 emoji) */
.ml-leaf {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("assets/maple-leaf.svg") center/contain no-repeat;
  vertical-align: -2px;
  margin-left: 3px;
  color: var(--red);
}
.site-footer .ml-leaf {
  filter: brightness(1.2) saturate(1.1);
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============ Steps ============ */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============ Trade cards ============ */

.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.trade-grid-full { grid-template-columns: repeat(3, 1fr); }

.trade-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.trade-card:hover {
  text-decoration: none;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.trade-card h3 { margin-bottom: 6px; }
.trade-card p { color: var(--muted); margin-bottom: 14px; font-size: 0.92rem; }
.trade-card .price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
}
.trade-card.detail { display: flex; flex-direction: column; }
.trade-card .bullets {
  flex: 1;
  margin: 6px 0 18px;
}
.trade-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.trade-card.highlight {
  border-color: var(--red);
  background: linear-gradient(180deg, #fff, #fff7f8);
}

/* ============ Available Now section ============ */

.avail-section {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.avail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.avail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.avail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.avail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.avail-cover {
  width: 100%;
  aspect-ratio: 8.5 / 11;   /* full portrait — shows the entire cover */
  overflow: hidden;
  background: var(--ink);
  flex-shrink: 0;
}
.avail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.avail-card:hover .avail-cover img {
  transform: scale(1.03);
}

.avail-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.avail-body h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.avail-body > p {
  margin-bottom: 18px;
  flex: 1;
}

.avail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.avail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.avail-row-secondary {
  opacity: 0.85;
}
.avail-format {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.avail-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avail-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}

.coming-header {
  margin-bottom: 28px;
}

/* .card-cover-wrap kept for any legacy use */
.card-cover-wrap {
  margin: -2px -2px 16px -2px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 8.5 / 4;
  background: var(--bg-alt);
}
.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  margin-bottom: 10px;
}
.badge-outline {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  margin-bottom: 10px;
}
.coming-soon-label {
  color: var(--muted) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--red);
  font-weight: 800;
}
.bullets.large li { font-size: 1rem; padding-left: 26px; margin-bottom: 14px; }

/* ============ Testimonials ============ */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial blockquote {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: var(--ink);
}
.testimonial figcaption {
  color: var(--muted);
  font-size: 0.88rem;
}
.testimonial::before {
  content: "“";
  font-family: Georgia, serif;
  position: absolute;
  top: -10px; left: 18px;
  font-size: 4rem;
  color: var(--red);
  line-height: 1;
}

/* ============ CTA ============ */

.cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 72px 0;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,0.92); margin-bottom: 24px; }
.cta-inner { text-align: center; }
.cta .btn-primary {
  background: #fff;
  color: var(--red);
}
.cta .btn-primary:hover { background: #f8f8f8; color: var(--red-dark); }

/* ============ Page header ============ */

.page-header {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }

/* ============ Filter bar ============ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter-bar input[type="search"] {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.filter-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ Prose ============ */

.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.04rem; color: var(--ink-2); }

/* ============ Team ============ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 8px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 18px 0 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ============ Contact ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { margin-top: 0; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.form-status { margin-top: 12px; }
.form-status.success { color: #0a7d3a; }
.form-status.error { color: var(--red); }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.info-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.info-card p { margin: 0 0 6px; font-size: 0.95rem; color: var(--ink-2); }

/* ============ FAQ ============ */

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 700;
  margin-left: 12px;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }

/* ============ Footer ============ */

.site-footer {
  background: #131313;
  color: #cfcfcf;
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer .brand { color: #fff; }
.site-footer .brand em { color: #ff5871; }
.site-footer .muted { color: #9a9a9a; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}

/* ============ Industry stats + founder note ============ */

.industry-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 36px;
}
.industry-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}
.industry-stat strong {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 8px;
}
.industry-stat .stat-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.industry-stat .stat-source {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

.founder-note {
  max-width: 760px;
  margin: 12px auto 0;
  padding: 28px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  text-align: center;
}
.founder-note blockquote {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.founder-note figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .industry-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .industry-stats { grid-template-columns: 1fr; }
}

/* ============ Code Lookup section ============ */

.code-lookup-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

.drill-card,
.code-features-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}

.drill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.drill-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-2);
}
.drill-meta svg {
  width: 14px;
  height: 14px;
  stroke: var(--red);
}

.drill-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.drill-timer svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
}
.drill-timer.urgent {
  color: var(--red);
  animation: drill-pulse 1s ease-in-out infinite;
}
@keyframes drill-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

.drill-question {
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.drill-question em { font-style: italic; color: var(--ink-2); }

.drill-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.drill-option {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.06s ease;
}
.drill-option:not(:disabled):hover {
  border-color: var(--ink);
  background: var(--cream);
}
.drill-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.drill-card.drill-active .drill-option:disabled {
  opacity: 1;
  cursor: pointer;
}
.drill-option.correct {
  background: #ecf6ee;
  border-color: #2e7d3a;
  color: #1d5226;
  opacity: 1;
}
.drill-option.incorrect {
  background: #fdecef;
  border-color: var(--red);
  color: var(--red-dark);
  opacity: 1;
}

.drill-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.drill-feedback {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.55;
  border-left: 3px solid currentColor;
}
.drill-feedback strong { display: inline-block; }
.feedback-correct {
  background: #ecf6ee;
  color: #1d5226;
}
.feedback-incorrect {
  background: #fdecef;
  color: var(--red-dark);
}
.feedback-timeout {
  background: #fff7e3;
  color: #6b4a00;
}

.code-features-card h3 {
  margin-top: 0;
}

.code-trades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.code-trade {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.code-trade strong {
  color: var(--red);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  .code-lookup-grid { grid-template-columns: 1fr; }
}

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; margin-top: 12px; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .trade-grid, .trade-grid-full { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .team-grid, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .avail-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .avail-header { flex-direction: column; align-items: flex-start; }
  .avail-header p { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px;
    gap: 14px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { align-self: flex-start; }

  .section { padding: 56px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .trade-grid, .trade-grid-full { grid-template-columns: 1fr; }
  .avail-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .team-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }

  .hero-visual { height: 300px; }
  .hero-visual .book { width: 152px; height: 197px; }
  .book-1 { top: 45px; left: 0; }
  .book-2 { top: 12px; left: 110px; }
  .book-3 { top: 52px; left: 214px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-1, .book-2, .book-3 { animation: none; }
  .book-1 { transform: rotate(-8deg); box-shadow: 0 10px 28px rgba(20,10,5,0.26); }
  .book-2 { transform: rotate(1deg);  box-shadow: 0 12px 34px rgba(20,10,5,0.30); }
  .book-3 { transform: rotate(9deg);  box-shadow: 0 10px 28px rgba(20,10,5,0.26); }
}
