/* SP Manufacturing — inner pages.
   Loaded after modern.css. Restyles the class names the inner pages were written with
   (page-head, section, cards, spec, form...) in the dark / blue design. */

:root { --steel: var(--text-2); --radius: 12px; }

:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn-primary { background: var(--accent); --b: var(--accent); box-shadow: 0 10px 30px -10px rgba(37,99,235,.7); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-dark, .btn-ghost { background: rgba(255,255,255,.05); }
button.btn { font-family: inherit; cursor: pointer; }

/* ---------- page header ---------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(72px + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 80% at 85% 20%, rgba(37,99,235,.22), transparent 70%),
    radial-gradient(40% 60% at 10% 120%, rgba(95,212,255,.10), transparent 70%), var(--bg);
}
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 90% at 80% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(60% 90% at 80% 30%, #000 10%, transparent 70%);
}
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 18ch; }
.page-head p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 42rem; margin: 0; }
.page-head .wrap > * { opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) forwards; }
.page-head .wrap > *:nth-child(2) { animation-delay: .08s; }
.page-head .wrap > *:nth-child(3) { animation-delay: .16s; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-dark { background: radial-gradient(70% 60% at 50% 0%, rgba(37,99,235,.08), transparent 70%), var(--bg); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--text); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- cards ---------- */
.section .cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.section .cards > *, .section .cards > *:nth-child(n) { grid-column: auto; }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a::after { content: " \2192"; color: var(--accent-2); display: inline-block; transition: transform .25s var(--ease); }
.card:hover h3 a::after { transform: translateX(4px); }
.card p { font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
.section .card .num { margin-bottom: 1rem; }

/* ---------- split + media ---------- */
.split.narrow-left { grid-template-columns: 5fr 7fr; }
@media (max-width: 900px) { .split.narrow-left { grid-template-columns: 1fr; } }
.split img { border-radius: var(--r); width: 100%; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.split img.img-native { width: auto; max-width: 100%; margin: 0 auto; }
.report-shot { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.report-shot img { border: 0; box-shadow: none; border-radius: 0; }

.ticks.two-col { display: block; columns: 2; column-gap: 2.5rem; }
.ticks.two-col li { break-inside: avoid; margin-bottom: .75rem; }
@media (max-width: 620px) { .ticks.two-col { columns: 1; } }

/* ---------- spec tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: .4rem 1.4rem .6rem; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec caption { text-align: left; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); padding: 1rem 0 .6rem; }
.spec th, .spec td { text-align: left; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; font-weight: 600; color: #fff; }
.spec td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.spec tbody tr { transition: background .2s; }
.table-scroll .spec tbody tr:hover { background: rgba(77,141,255,.06); }

/* ---------- fact strip ---------- */
.strip { background: var(--bg-2); border-block: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.strip li { display: flex; align-items: center; gap: .6rem; }
.strip li::before { content: "+"; color: var(--accent-2); font-weight: 700; }

/* ---------- video ---------- */
.video-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.video-item { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, opacity .9s var(--ease); }
.video-item:hover { transform: translateY(-6px); border-color: var(--line-2); }
.video-item video, .video-wide video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.video-item figcaption { padding: 1.2rem 1.3rem 1.4rem; font-size: .92rem; }
.video-item figcaption strong { display: block; color: #fff; margin-bottom: .3rem; font-size: 1rem; }
.video-wide video { border-radius: var(--r); border: 1px solid var(--line-2); }

/* ---------- steps (inner pages have no --i; keep the timeline) ---------- */
.section .steps { margin-top: .5rem; }
.step h3 { font-size: 1.05rem; }

/* ---------- callout ---------- */
.section .callout { display: block; border-left: 3px solid var(--accent); border-radius: var(--r); }

/* ---------- CTA band ---------- */
.cta { padding: clamp(60px, 9vw, 110px) 0; background: none; }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(2.2rem, 6vw, 4.5rem);
  border: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem;
  max-width: calc(var(--wrap) - 2 * clamp(16px, 4vw, 40px));
  background: radial-gradient(80% 120% at 100% 0%, rgba(37,99,235,.45), transparent 60%), var(--bg-3);
}
.cta-inner::before { content: ""; position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, rgba(77,141,255,.55) 80%, transparent 90%); animation: spin 8s linear infinite; }
.cta-inner::after { content: ""; position: absolute; inset: 1px; border-radius: 27px; z-index: -1; background: radial-gradient(80% 120% at 100% 0%, rgba(37,99,235,.3), transparent 60%), var(--bg-2); }
.cta-inner > div:first-child { flex: 1 1 26rem; }
.cta-inner p { font-size: 1.08rem; max-width: 36rem; }
.cta-inner p:last-child { margin-bottom: 0; }
.cta .btn { background: var(--accent); --b: var(--accent); box-shadow: 0 10px 30px -10px rgba(37,99,235,.7); }
.cta .btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
@media (max-width: 760px) { .cta-inner { margin: 0 clamp(16px, 4vw, 40px); } }

/* ---------- form ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .45rem; }
.field .hint { font-weight: 400; color: var(--text-3); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .97rem; color: #fff; width: 100%;
  padding: .8rem .95rem; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255,255,255,.04); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); background: rgba(77,141,255,.06); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.field select option { background: var(--bg-2); color: #fff; }
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
form { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }

@media (prefers-reduced-motion: reduce) { .page-head .wrap > * { opacity: 1 !important; transform: none !important; } }
