/* ──────────────────────────────────────────────────────────────────
   CrispSign — Education page (gates before the builder)
   Independent stylesheet so the builder's CSS stays untouched.
   Palette: Cream #FAF7F2, Cream-2 #F4F0E8, Navy #0A1226,
            Orange #E8521B, Ink Muted #5C6273, Border #E5DFD3
   ────────────────────────────────────────────────────────────────── */

.learn-body {
  margin: 0;
  background: #FAF7F2;
  color: #0A1226;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.learn-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px 0;
}

/* ── Hero ─────────────────────────────────────────── */
.learn-hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid #E5DFD3;
}
.learn-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8521B;
  margin: 0 0 14px;
}
.learn-h1 {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #0A1226;
}
.learn-h1 span {
  color: #5C6273;
}
.learn-lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  color: #2A3142;
  margin: 0 0 32px;
}
.learn-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.learn-toc a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #E5DFD3;
  border-radius: 999px;
  background: #fff;
  color: #0A1226;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.learn-toc a:hover {
  border-color: #E8521B;
  color: #E8521B;
  background: #fff;
}

/* ── Section frame ────────────────────────────────── */
.learn-section {
  padding: 72px 0;
  border-bottom: 1px solid #E5DFD3;
}
.learn-section-head {
  margin-bottom: 40px;
  max-width: 760px;
}
.learn-section-num {
  display: inline-block;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E8521B;
  margin-bottom: 10px;
}
.learn-h2 {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #0A1226;
}
.learn-section-lede {
  font-size: 16px;
  color: #2A3142;
  margin: 0;
}

/* ── Tip callouts ─────────────────────────────────── */
.learn-tip {
  margin-top: 36px;
  padding: 18px 22px;
  border-left: 3px solid #E8521B;
  background: #fff;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #2A3142;
  box-shadow: 0 1px 0 rgba(10,18,38,0.04);
}
.learn-tip strong { color: #0A1226; }

/* ── Section 1 · Letter styles grid ───────────────── */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.style-card {
  background: #fff;
  border: 1px solid #E5DFD3;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.style-card:hover {
  border-color: #E8521B;
  transform: translateY(-2px);
}
.style-thumb {
  border-radius: 8px;
  overflow: hidden;
  background: #0F141F;
  aspect-ratio: 200 / 110;
}
.style-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}
.style-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}
.style-tag {
  font-size: 14px;
  color: #5C6273;
  margin: 0;
  font-weight: 500;
}
.style-points {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #2A3142;
  line-height: 1.55;
}
.style-points li { margin-bottom: 4px; }
.style-price {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #E5DFD3;
  font-size: 13px;
  color: #5C6273;
}
.style-price strong { color: #0A1226; font-weight: 700; }

/* ── Section 2 · Mounting explanation ─────────────── */
.mount-explain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.mount-explain {
  background: #fff;
  border: 1px solid #E5DFD3;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mount-illustration {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5DFD3;
}
.mount-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}
.mount-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mount-tag {
  font-size: 14px;
  color: #5C6273;
  margin: 0;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}
.badge.included {
  background: #EAF3EE;
  color: #1F6B3A;
}
.badge.upcharge {
  background: #FCE9DF;
  color: #E8521B;
}
.mount-specs {
  margin: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}
.mount-specs dt {
  color: #5C6273;
  font-weight: 600;
}
.mount-specs dd {
  margin: 0;
  color: #0A1226;
}

/* ── Section 3 · Sizing table + callouts ──────────── */
.size-table-wrap {
  overflow-x: auto;
  border: 1px solid #E5DFD3;
  border-radius: 10px;
  background: #fff;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.size-table thead th {
  text-align: left;
  padding: 14px 18px;
  background: #F4F0E8;
  border-bottom: 1px solid #E5DFD3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5C6273;
}
.size-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1ECE0;
  vertical-align: top;
}
.size-table tbody tr:last-child td { border-bottom: none; }
.size-table tbody tr.row-highlight {
  background: rgba(232,82,27,0.04);
}
.size-table tbody tr.row-highlight td:first-child {
  position: relative;
}
.size-table tbody tr.row-highlight td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #E8521B;
}
.size-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.size-callout {
  background: #fff;
  border: 1px solid #E5DFD3;
  border-radius: 10px;
  padding: 18px;
}
.size-callout h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  margin: 0 0 6px;
}
.size-callout p {
  margin: 0;
  font-size: 13px;
  color: #2A3142;
  line-height: 1.55;
}

/* ── Section 4 · Materials grid + install ─────────── */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.material-card {
  background: #fff;
  border: 1px solid #E5DFD3;
  border-radius: 10px;
  padding: 18px;
}
.material-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  margin: 0 0 6px;
  color: #0A1226;
}
.material-card p {
  margin: 0;
  font-size: 13px;
  color: #2A3142;
  line-height: 1.55;
}
.install-details {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px dashed #E5DFD3;
  border-radius: 10px;
  background: #fff;
}
.install-details h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  margin: 0 0 10px;
}
.install-details ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #2A3142;
  line-height: 1.7;
}

/* ── CTA ──────────────────────────────────────────── */
.learn-cta {
  padding: 80px 32px;
  margin: 56px 0 32px;
  background: #0A1226;
  color: #FAF7F2;
  border-radius: 16px;
  text-align: center;
}
.learn-cta h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.learn-cta p {
  margin: 0 0 28px;
  font-size: 16px;
  color: #C9C5BC;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.learn-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #E8521B;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
  box-shadow: 0 6px 20px rgba(232,82,27,0.32);
}
.learn-cta-btn:hover {
  background: #FF6328;
  transform: translateY(-1px);
}
.learn-cta-fine {
  margin-top: 18px;
  font-size: 12px;
  color: #8E91A0;
}

/* ── Footer ───────────────────────────────────────── */
.learn-foot {
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: #5C6273;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 720px) {
  .learn-page { padding: 24px 18px 0; }
  .learn-hero { padding: 36px 0 44px; }
  .learn-section { padding: 56px 0; }
  .learn-cta { padding: 56px 22px; margin: 40px 0 24px; }
  .mount-specs { grid-template-columns: 1fr; }
  .mount-specs dt { margin-top: 4px; }
}
