/* SME product pages (invoice.php, contract.php via inc/product_page.php).
   Shared pieces (tokens, buttons, hero, cards) live in css/site.css. Prefix "op-". */

.op-mt { margin-top: 16px !important; }

/* ---------- Hero ---------- */
.op-hero { padding-bottom: 140px; }
.op-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.op-hero h1 { font-size: 46px !important; }
.op-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.op-btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff !important; background: rgba(255, 255, 255, .06); }
.op-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff !important; }

.op-hero-visual { position: relative; }
.op-hero-photo {
    position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 28px; background: #0b2a57; background-clip: padding-box;
    border: 6px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.op-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* slide7.png: the laptop + phone sit in the lower-right of a wide blurred photo - zoom onto them. */
.op-hero-photo.is-devices img { position: absolute; width: 220%; max-width: none; height: auto; left: -96.5%; top: -82.8%; }
/* slide8.png: hand signing a contract on the right - keep the pen and paper in frame. */
.op-hero-photo.is-signing img { object-position: 75% 70%; }

.op-hero-badge {
    position: absolute; left: -28px; bottom: 28px; display: flex; align-items: center; gap: 12px; max-width: 290px;
    padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -20px rgba(3, 31, 74, .6);
}
.op-hero-badge .oh-icon-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.op-hero-badge small { display: block; font-size: 11px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--oh-muted); }
.op-hero-badge strong { display: block; font-size: 15px; line-height: 1.35; color: var(--oh-navy); }

/* ---------- Key facts (overlaps the hero) ---------- */
.op-facts-wrap { position: relative; z-index: 2; margin-top: -84px; }
.op-facts {
    display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--oh-line); border-radius: 24px;
    box-shadow: 0 30px 60px -36px rgba(5, 54, 121, .55);
}
.op-fact { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.op-fact + .op-fact { border-left: 1px solid var(--oh-line); }
.op-fact-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--oh-soft); color: var(--oh-blue); font-size: 16px; }
.op-fact small { display: block; font-size: 12px !important; font-weight: 600; color: var(--oh-muted); margin-bottom: 4px; }
.op-fact strong { display: block; font-size: 15px; line-height: 1.4; color: var(--oh-navy); }

/* ---------- What is it ---------- */
.op-what-section { padding-top: 88px; }
.op-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.op-what-visual { position: relative; display: flex; justify-content: center; }
.op-what-visual::before {
    content: ''; position: absolute; width: 86%; aspect-ratio: 1; bottom: 0; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4aa8e8 0%, var(--oh-navy) 75%);
}
.op-what-visual img { position: relative; width: 100%; max-width: 440px; display: block; }
.op-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-checks li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--oh-soft); }
.op-checks i { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--oh-grad-navy); color: #fff; font-size: 11px; }
.op-checks span { font-size: 14px !important; font-weight: 600; color: var(--oh-navy) !important; line-height: 1.4 !important; }

/* ---------- How it works ---------- */
.op-how { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.op-how-intro { position: sticky; top: 110px; }
.op-how-visual { position: relative; margin: 28px 0; display: flex; justify-content: center; }
.op-how-visual::before { content: ''; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 174, 255, .22) 0%, rgba(0, 174, 255, 0) 70%); }
.op-how-visual img { position: relative; width: 100%; max-width: 420px; display: block; }

/* Vertical timeline: icon node on a gradient rail, content card to the right */
.op-flow { position: relative; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: none; }
.op-flow-item:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 56px; bottom: -18px; width: 2px; background: linear-gradient(180deg, var(--oh-sky), var(--oh-navy)); opacity: .35; }
.op-flow-item { position: relative; display: flex; gap: 22px; align-items: flex-start; margin: 0; }
.op-flow-node {
    position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid #d6e6fb; color: var(--oh-blue); font-size: 20px; transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.op-flow-card {
    flex: 1; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--oh-line);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.op-flow-step { display: inline-block; font-size: 11px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oh-sky) !important; margin-bottom: 6px; }
.op-flow-card h3 { font-size: 18px !important; font-weight: 700; line-height: 1.35 !important; margin-bottom: 8px !important; }
.op-flow-card p { margin: 0; font-size: 15px !important; line-height: 1.7 !important; color: var(--oh-text) !important; }
.op-flow-item:hover .op-flow-node,
.op-flow-item:last-child .op-flow-node { background: var(--oh-grad-navy); border-color: transparent; color: #fff; box-shadow: 0 12px 24px -12px rgba(5, 54, 121, .9); }
.op-flow-item:hover .op-flow-card { border-color: #bcd3f0; box-shadow: var(--oh-shadow); transform: translateX(4px); }

/* ---------- Benefits ---------- */
.op-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.op-benefit { flex: 0 1 calc((100% - 48px) / 3); padding: 30px; }
.op-benefit .oh-icon-tile { margin-bottom: 20px; }
.op-benefit h3 { font-size: 18px !important; font-weight: 700; margin-bottom: 10px !important; }
.op-benefit p { margin: 0; font-size: 14.5px !important; line-height: 1.7 !important; color: var(--oh-muted) !important; }

/* ---------- Documents + terms ---------- */
.op-req-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: stretch; }
.op-docs, .op-terms { border-radius: 24px; padding: 34px; }
.op-docs { background: #fff; border: 1px solid var(--oh-line); }
.op-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.op-card-head .oh-icon-tile { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.op-card-head h3 { font-size: 21px !important; font-weight: 700; }
.op-doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.op-doc-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.op-doc-list i { color: var(--oh-blue); font-size: 17px; margin-top: 3px; width: 18px; text-align: center; flex-shrink: 0; }
.op-doc-list span { font-size: 15px !important; line-height: 1.6 !important; color: var(--oh-text) !important; }
.op-doc-upload { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: var(--oh-soft); border: 1px dashed #bcd3f0; }
.op-doc-upload > p { margin: 0 0 14px; font-size: 14px !important; font-weight: 600; color: var(--oh-navy) !important; line-height: 1.5 !important; }
.op-doc-upload > p i { color: var(--oh-blue); margin-right: 6px; }
.op-doc-list.is-sub i { font-size: 14px; }
.op-doc-list.is-sub span { font-size: 14px !important; }

.op-terms {
    display: flex; flex-direction: column; color: #fff;
    background: radial-gradient(circle at 90% 10%, rgba(0, 174, 255, .3) 0%, rgba(0, 174, 255, 0) 50%), linear-gradient(135deg, var(--oh-navy-deep), var(--oh-navy) 60%, var(--oh-blue));
}
.op-terms .op-card-head h3 { color: #fff !important; }
.op-terms .oh-icon-tile { background: rgba(255, 255, 255, .14); box-shadow: none; }
.op-term-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.op-term-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.op-term-list li:last-child { border-bottom: 0; }
.op-term-list small { display: block; font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9fd8ff; margin-bottom: 4px; }
.op-term-list strong { display: block; font-size: 16px; line-height: 1.5; color: #fff; font-weight: 600; }
.op-terms .oh-btn { align-self: flex-start; }

/* ---------- Apply online ---------- */
.op-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.op-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.op-timeline::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(180deg, var(--oh-sky), var(--oh-navy)); opacity: .35; }
.op-timeline li { position: relative; display: flex; gap: 18px; align-items: flex-start; margin: 0; padding: 8px 0; }
.op-tl-num {
    position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid #bcd3f0; color: var(--oh-navy); font-size: 13px !important; font-weight: 700;
}
.op-timeline li:last-child .op-tl-num { background: var(--oh-grad-navy); border-color: transparent; color: #fff; }
.op-tl-text { padding-top: 6px; font-size: 15px !important; line-height: 1.6 !important; color: var(--oh-text) !important; }
.op-tl-text b { color: var(--oh-navy); }

.op-apply-side { position: sticky; top: 110px; }
.op-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 22px; cursor: pointer; background: #000; box-shadow: 0 30px 60px -30px rgba(5, 54, 121, .6); }
.op-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.op-video:hover img { transform: scale(1.04); }
.op-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.op-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95); color: var(--oh-navy); font-size: 24px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); transition: transform .2s;
}
.op-play i { margin-left: 4px; }
.op-video:hover .op-play { transform: translate(-50%, -50%) scale(1.08); }
.op-video:focus-visible { outline: 3px solid var(--oh-sky); outline-offset: 3px; }
.op-video-caption { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.op-video-caption strong { font-size: 16px; color: var(--oh-navy); }
.op-video-caption span { font-size: 14px !important; color: var(--oh-muted) !important; }

/* ---------- CTA + cross-sell + partners ---------- */
.op-cta-section { padding: 24px 0 96px; }
.op-cta {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px; border-radius: 32px;
    background: radial-gradient(circle at 85% 15%, rgba(0, 174, 255, .3) 0%, rgba(0, 174, 255, 0) 45%), linear-gradient(135deg, var(--oh-navy-deep) 0%, var(--oh-navy) 55%, var(--oh-blue) 100%);
}
.op-cta-body { padding: 56px 0 56px 56px; align-self: center; }
.op-cta h2 { color: #fff !important; font-size: 32px !important; line-height: 1.3 !important; font-weight: 700; }
.op-cta p { color: rgba(255, 255, 255, .82) !important; font-size: 16px !important; line-height: 1.7 !important; margin: 14px 0 0; }
.op-cta-photo img { width: 100%; display: block; }

.op-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.op-other {
    display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--oh-line);
    text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.op-other:hover { border-color: #bcd3f0; box-shadow: var(--oh-shadow); transform: translateY(-2px); }
.op-other-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.op-other-body small { font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--oh-muted); }
.op-other-body strong { font-size: 18px; color: var(--oh-navy); }
.op-other-body > span { font-size: 14px !important; line-height: 1.6 !important; color: var(--oh-text) !important; }
.op-other-arrow { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--oh-soft); color: var(--oh-navy); transition: transform .2s; }
.op-other:hover .op-other-arrow { transform: translateX(4px); }

.op-partners { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 26px; border-radius: 24px; background: #f8fafc; border: 1px solid var(--oh-line); }
.op-partners small { font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oh-navy); text-align: center; }
.op-partner-logos { display: flex; align-items: center; justify-content: space-around; gap: 24px; flex-wrap: wrap; }
.op-partner-logos img { height: 40px; width: auto; max-width: 130px; object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .op-facts { grid-template-columns: repeat(2, 1fr); }
    .op-fact:nth-child(3) { border-left: 0; }
    .op-fact:nth-child(n+3) { border-top: 1px solid var(--oh-line); }
}
@media (max-width: 991px) {
    .op-hero { padding-bottom: 120px; }
    .op-hero h1 { font-size: 36px !important; }
    .op-hero-grid, .op-split, .op-req-grid, .op-apply-grid, .op-bottom-grid { grid-template-columns: 1fr; gap: 40px; }
    .op-hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .op-hero-badge { left: 16px; bottom: -22px; }
    .op-what-visual { order: 2; }
    .op-benefit { flex-basis: calc((100% - 24px) / 2); }
    .op-apply-side { position: static; }
    .op-how { grid-template-columns: 1fr; gap: 40px; }
    .op-how-intro { position: static; text-align: center; }
    .op-how-visual img { max-width: 340px; }
    .op-cta { grid-template-columns: 1fr; }
    .op-cta-body { padding: 44px 32px 0; text-align: center; }
    .op-cta .op-hero-actions { justify-content: center; }
    .op-cta-photo { max-width: 560px; margin: 0 auto; }
    .op-bottom-grid { gap: 24px; }
}
@media (max-width: 767px) {
    .op-hero h1 { font-size: 29px !important; }
    .op-hero-actions .oh-btn { width: 100%; }
    .op-hero-badge { display: none; } /* same info is the first card in the key-facts strip right below */
    .op-facts { grid-template-columns: 1fr; }
    .op-fact + .op-fact { border-left: 0; border-top: 1px solid var(--oh-line); }
    .op-fact { padding: 18px 20px; }
    .op-checks { grid-template-columns: 1fr; }
    .op-benefit { flex-basis: 100%; padding: 24px; }
    .op-docs, .op-terms { padding: 24px 20px; }
    .op-terms .oh-btn { align-self: stretch; }
    .op-cta h2 { font-size: 24px !important; }
    .op-cta-body { padding: 36px 20px 0; }
    .op-other { padding: 20px; }
    .op-how-intro .oh-btn { width: 100%; }
    .op-flow-item { gap: 14px; }
    .op-flow-node { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
    .op-flow-item:not(:last-child)::before { left: 21px; top: 44px; }
    .op-flow-card { padding: 18px; }
    .op-flow-card h3 { font-size: 16px !important; }
    .op-flow-card p { font-size: 14px !important; }
    .op-flow-item:hover .op-flow-card { transform: none; }
}
