/* ==========================================================
   oem.css — JYL OEM/ODM widget (scoped to .jyl-oem)
   Linea-Light base shared with About/Contact.

   [Version History]
   v1.0.0 - 2026-08-05 - Initial.
   ========================================================== */

.jyl-oem {
    --ink: #141414; --ink-soft: #6b6b6b; --surface: #ffffff; --surface-2: #f6f6f6;
    --panel-dark: #000000; --line: rgba(0,0,0,.12);
    color: var(--ink); font-family: var(--jyl-font); line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased;
}
html.jyl-dark .jyl-oem {
    --ink: #f2f2f2; --ink-soft: #9a9a9a; --surface: #0c0c0e; --surface-2: #111214; --panel-dark: #000000; --line: rgba(255,255,255,.14);
}

.jyl-oem *, .jyl-oem *::before, .jyl-oem *::after { box-sizing: border-box; }
.jyl-oem h1, .jyl-oem h2, .jyl-oem h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.jyl-oem p { margin: 0; }
.jyl-oem a { color: inherit; }
.jyl-oem img { display: block; max-width: 100%; }
.jyl-oem .wrap { width: 100%; padding-inline: clamp(20px, 5vw, 72px); }
.jyl-oem .eyebrow { font-family: var(--jyl-font); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--jyl-blue); margin-bottom: 18px; display: block; }
.jyl-oem .o-h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 22ch; }

/* Tones */
.jyl-oem .tone--light { background: var(--surface); color: var(--ink); }
.jyl-oem .tone--dark { background: var(--panel-dark); color: #fff; --ink: #fff; --ink-soft: rgba(255,255,255,.66); --line: rgba(255,255,255,.16); --surface-2: rgba(255,255,255,.05); }
.jyl-oem .tone--dark .eyebrow { color: var(--jyl-blue-light); }

/* Buttons */
.jyl-oem .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 4px; font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: background .2s ease, color .2s ease; }
.jyl-oem .btn--primary { background: var(--jyl-blue); color: #fff; }
.jyl-oem .btn--primary:hover { background: var(--jyl-blue-light); }

/* Hero */
.jyl-oem .o-hero { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 175px) 0 clamp(60px, 8vw, 95px); background-size: cover; background-position: center; }
.jyl-oem .o-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.jyl-oem .o-hero .wrap { position: relative; z-index: 1; }
.jyl-oem .o-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 15ch; }
.jyl-oem .o-hero h1 em { font-style: normal; color: var(--jyl-blue); }
.jyl-oem .o-hero p.lede { margin-top: 24px; max-width: 54ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); }
.jyl-oem .o-hero-cta { margin-top: 34px; }
.jyl-ohero-lighttext--yes .jyl-oem .o-hero h1 { color: #fff; }
.jyl-ohero-lighttext--yes .jyl-oem .o-hero h1 em { color: var(--jyl-blue-light); }
.jyl-ohero-lighttext--yes .jyl-oem .o-hero p.lede { color: rgba(255,255,255,.82); }
.jyl-ohero-lighttext--yes .jyl-oem .o-hero .eyebrow { color: var(--jyl-blue-light); }

/* OEM vs ODM parallel cards */
.jyl-oem .o-paths { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-oem .o-paths .o-h2 { margin-bottom: 44px; }
.jyl-oem .o-paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.jyl-oem .o-path { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.jyl-oem .o-path-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.jyl-oem .o-path-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; color: var(--jyl-blue-light); letter-spacing: -.02em; }
.jyl-oem .o-path-tag { font-size: 1rem; color: var(--ink-soft); }
.jyl-oem .o-path-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.jyl-oem .o-path-k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.jyl-oem .o-path-v { font-size: .98rem; color: var(--ink); }
.jyl-oem .o-path-v p { margin: 0; }

/* Dimensions grid */
.jyl-oem .o-dims { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-oem .o-dims .o-h2 { margin-bottom: 44px; }
.jyl-oem .o-dims-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.jyl-oem .o-dim { background: var(--surface); padding: 30px 28px; }
.jyl-oem .o-dim-icon { color: var(--jyl-blue); display: block; margin-bottom: 16px; }
.jyl-oem .o-dim h3 { font-size: 1.05rem; }
.jyl-oem .o-dim p { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }

/* Process steps */
.jyl-oem .o-process { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-oem .o-process .o-h2 { margin-bottom: 44px; }
.jyl-oem .o-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.jyl-oem .o-step { background: var(--panel-dark); padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: background .3s ease; }
.jyl-oem .tone--dark .o-step { background: #000; }
.jyl-oem .o-step-n { font-size: 1.4rem; font-weight: 600; color: var(--ink-soft); letter-spacing: -.02em; transition: color .3s ease; }
.jyl-oem .o-step.is-active .o-step-n { color: var(--jyl-blue-light); }
.jyl-oem .o-step.is-active::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--jyl-blue); }
.jyl-oem .o-step-title { font-size: 1.05rem; font-weight: 500; }
.jyl-oem .o-step-dur { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jyl-blue-light); }
.jyl-oem .o-step-text { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }

/* Numbers (flat) */
.jyl-oem .o-numbers { padding: clamp(60px, 8vw, 110px) 0; }
.jyl-oem .numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.jyl-oem .num-card { padding: 8px 28px 8px 28px; border-left: 1px solid var(--line); }
.jyl-oem .num-card:first-child { border-left: 0; padding-left: 0; }
.jyl-oem .num-card .n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; color: var(--jyl-blue); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.jyl-oem .num-card .l { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.jyl-oem .o-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.jyl-oem .o-proof figure { margin: 0; aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.jyl-oem .o-proof img { width: 100%; height: 100%; object-fit: cover; }

/* Quality */
.jyl-oem .o-quality { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-oem .o-quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.jyl-oem .o-quality-text { color: var(--ink-soft); font-size: 1.05rem; }
.jyl-oem .o-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jyl-oem .o-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .8rem; color: var(--ink); }

/* RFQ form */
.jyl-oem .o-formsection { padding: clamp(70px, 9vw, 120px) 0; scroll-margin-top: 90px; }
.jyl-oem .o-form-intro { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }
.jyl-oem .o-form { margin-top: 36px; max-width: 900px; }
.jyl-oem .o-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.jyl-oem .o-field { display: flex; flex-direction: column; }
.jyl-oem .o-field--full { grid-column: 1 / -1; margin-top: 22px; }
.jyl-oem .o-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.jyl-oem .o-input { width: 100%; box-sizing: border-box; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--jyl-font); font-size: 1.02rem; line-height: 1.4; transition: border-color .2s ease; -webkit-appearance: none; appearance: none; }
.jyl-oem select.o-input { padding-block: 11px; }
.jyl-oem .o-input:focus { outline: none; border-bottom-color: var(--jyl-blue); }
.jyl-oem .o-textarea { resize: vertical; min-height: 120px; }
.jyl-oem .o-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; }
.jyl-oem .o-check { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.jyl-oem .o-check input { width: 16px; height: 16px; accent-color: var(--jyl-blue); }
.jyl-oem .o-file { font-size: .92rem; color: var(--ink-soft); padding: 12px 0; }
.jyl-oem .o-file-hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--ink-soft); }
.jyl-oem .o-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jyl-oem .o-submit { margin-top: 30px; padding: 15px 44px; border: 0; border-radius: 4px; cursor: pointer; background: var(--jyl-blue); color: #fff; font-family: var(--jyl-font); font-size: .95rem; font-weight: 500; transition: background .2s ease, opacity .2s ease; }
.jyl-oem .o-submit:hover { background: var(--jyl-blue-light); }
.jyl-oem .o-submit[disabled] { opacity: .6; cursor: default; }
.jyl-oem .o-form-msg { margin-top: 16px; font-size: .9rem; min-height: 1.2em; }
.jyl-oem .o-form-msg.is-success { color: #1a7f37; }
.jyl-oem .o-form-msg.is-error { color: #d3392b; }
html.jyl-dark .jyl-oem .o-form-msg.is-success { color: #4ade80; }
html.jyl-dark .jyl-oem .o-form-msg.is-error { color: #f87171; }

/* FAQ (shared look) */
.jyl-oem .o-faq { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-oem .o-faq .o-h2 { margin-bottom: 40px; }
.jyl-oem .faq-list { max-width: 820px; }
.jyl-oem .faq-item { border-bottom: 1px solid var(--line); }
.jyl-oem .faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--jyl-font); font-size: 1.08rem; font-weight: 500; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px; list-style: none; }
.jyl-oem .faq-q::-webkit-details-marker { display: none; }
.jyl-oem .faq-q .plus { color: var(--jyl-blue-light); flex-shrink: 0; transition: transform .25s ease; }
.jyl-oem .faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.jyl-oem .faq-a { padding: 0 0 24px; color: var(--ink-soft); font-size: .98rem; max-width: 66ch; }

/* CTA band */
.jyl-oem .o-cta { background: linear-gradient(120deg, var(--jyl-blue-dark) 0%, var(--jyl-blue) 100%); color: #fff; text-align: center; padding: clamp(56px, 8vw, 110px) 24px; }
.jyl-oem .o-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 22ch; margin: 0 auto; }
.jyl-oem .o-cta p { color: rgba(255,255,255,.82); margin: 14px auto 0; max-width: 44ch; }
.jyl-oem .o-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.jyl-oem .btn--onblue { background: #fff; color: var(--jyl-blue); border-radius: 999px; padding: 14px 40px; }
.jyl-oem .btn--onblue:hover { background: rgba(255,255,255,.88); color: var(--jyl-blue); }
.jyl-oem .btn--onblue-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 14px 40px; }
.jyl-oem .btn--onblue-ghost:hover { background: rgba(255,255,255,.12); }

/* Full-bleed */
.jyl-fullbleed--yes .jyl-oem { width: 100vw; max-width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* Responsive */
@media (max-width: 900px) {
    .jyl-oem .o-paths-grid, .jyl-oem .o-quality-grid, .jyl-oem .o-proof { grid-template-columns: 1fr; }
    .jyl-oem .o-dims-grid, .jyl-oem .o-steps { grid-template-columns: 1fr; }
    .jyl-oem .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .jyl-oem .num-card:nth-child(3) { border-left: 0; padding-left: 0; }
    .jyl-oem .o-form-grid { grid-template-columns: 1fr; }
    .jyl-oem .o-path-row { grid-template-columns: 1fr; gap: 6px; }
}
