/* ==========================================================================
   Coborel Robotics — content pages generated by scripts/build.mjs
   (solutions, industries, Dobot models, guides, FAQ, ROI, contact).
   ORELSIS Design System tokens only; shared chrome lives in style.css.
   ========================================================================== */

/* ---------------------------------------------------------------- hero */
.page-hero .container-page { gap: 16px; }
.page-hero__grid { display: grid !important; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; } }
.page-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.page-hero__title { max-width: 20ch; text-wrap: balance; }
.page-hero__lead { max-width: 40rem; }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 479px) { .page-hero__ctas .btn { width: 100%; } }

/* ---------------------------------------------------------------- live 3D card */
.p3d { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--glass-border-strong); border-radius: var(--radius-large); background: var(--bg-elevated); }
.p3d__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--glass-border); }
.p3d__live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.p3d__canvas { position: relative; height: 360px; }
@media (min-width: 768px) { .p3d__canvas { height: 440px; } }
.p3d__canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.p3d__canvas canvas.dragging { cursor: grabbing; }
.no-webgl .p3d__canvas { background: radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--color-primary) 22%, transparent), transparent 60%); }
.no-webgl .p3d__canvas::after { content: attr(data-msg); position: absolute; top: 50%; left: 0; right: 0; text-align: center; font-size: var(--text-caption); color: var(--text-tertiary); }

/* ---------------------------------------------------------------- cards */
.feat-card { display: flex; flex-direction: column; gap: 8px; }
.feat-card__no { font-size: var(--text-caption); color: var(--primary-text); }
.link-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.link-card .t-eyebrow { color: var(--primary-text); }
.link-card .arrow-link { margin-top: auto; padding-top: 8px; }
.link-card:hover .arrow-link svg { transform: translateX(2px); }
.link-card__stats { display: flex; gap: 20px; margin-top: 4px; }
.link-card__stats dt { font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--text-tertiary); }
.link-card__stats dd { font-size: var(--text-body-medium); line-height: var(--text-body-medium--line-height); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tags-row { margin-top: -8px; }

/* ---------------------------------------------------------------- two-column lists */
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split__col .grid-2 { display: grid; gap: 12px; }
.grid-2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.olist { display: grid; gap: 0; }
.olist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--glass-border); }
.olist li:last-child { border-bottom: 1px solid var(--glass-border); }
.olist__no { font-family: var(--font-mono); font-size: var(--text-caption); line-height: var(--text-body-medium--line-height); color: var(--primary-text); }
.olist p { font-size: var(--text-body-medium); line-height: var(--text-body-medium--line-height); color: var(--text-secondary); }

.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: var(--text-body-medium); line-height: var(--text-body-medium--line-height); color: var(--text-secondary); }
.checks svg { margin-top: 4px; color: var(--primary-text); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius-large); background: var(--glass-tint); }
.spec { width: 100%; border-collapse: collapse; font-size: var(--text-body-small); line-height: var(--text-body-small--line-height); }
.spec th, .spec td { padding: 10px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--glass-border); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 40%; font-weight: 500; color: var(--text-tertiary); }
.spec td { color: var(--text); font-variant-numeric: tabular-nums; }
.spec--grid thead th { border-top: 0; border-bottom: 1px solid var(--glass-border); font-size: var(--text-caption); line-height: var(--text-caption--line-height); font-weight: 500; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-tertiary); background: var(--glass-tint-hover); }
.spec--grid tbody tr:first-child th, .spec--grid tbody tr:first-child td { border-top: 0; }
.spec--grid th { width: auto; color: var(--text); font-weight: 600; }
.spec--grid td { color: var(--text-secondary); min-width: 9rem; }
.prose .table-wrap { margin-top: 20px; }

/* ---------------------------------------------------------------- FAQ (native details) */
.faq { display: grid; max-width: 48rem; border-top: 1px solid var(--glass-border); }
.faq__item { border-bottom: 1px solid var(--glass-border); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-small); }
.faq__q { font-size: var(--text-body-large); line-height: var(--text-body-large--line-height); font-weight: 600; color: var(--text); }
.faq__icon { flex: none; color: var(--text-tertiary); transition: transform 250ms var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item summary:hover .faq__q { color: var(--primary-text); }
.faq__a { padding: 0 0 18px; max-width: 42rem; }
.faq__item[open] .faq__a { animation: o-pop 250ms var(--ease-out); }

/* ---------------------------------------------------------------- guide article */
.article { display: grid; gap: 40px; padding-block: 48px var(--section-y); }
@media (min-width: 1024px) { .article { grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; } }
.article__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 1024px) { .article__aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.article__aside .foot__links { margin-bottom: 12px; }
.article__note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.prose--wide { max-width: 48rem; }

/* ---------------------------------------------------------------- CTA band */
.cta-band__in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 479px) { .cta-band__btns .btn { width: 100%; } }

/* ---------------------------------------------------------------- contact page */
.area { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.area .tags { margin-top: 4px; }
.link { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; }
.contact__list > div { grid-template-columns: 32px 80px 1fr; }
.contact__list dd { min-width: 0; overflow-wrap: anywhere; }

/* footer NAP */
.nap { display: grid; gap: 6px; font-style: normal; }
.nap a { display: inline-flex; align-items: flex-start; gap: 8px; font-size: var(--text-body-small); line-height: var(--text-body-small--line-height); color: var(--text-secondary); transition: color 150ms; }
.nap a:hover { color: var(--text); }
.nap svg { flex: none; margin-top: 3px; color: var(--text-tertiary); }

/* ---------------------------------------------------------------- ROI */
.roi { display: grid; gap: 12px; }
@media (min-width: 1024px) { .roi { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.roi__form .field .t-caption { margin-top: -2px; }
.roi__out { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 1024px) { .roi__out { position: sticky; top: calc(var(--nav-h) + 24px); } }
.roi__kpis { margin-top: 0; max-width: none; grid-template-columns: 1fr; }
@media (min-width: 768px) { .roi__kpis { grid-template-columns: 1fr; } }
@media (min-width: 1280px) { .roi__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roi__kpis .kpi dd { font-size: var(--text-title-24); line-height: var(--text-title-24--line-height); }

/* ---------------------------------------------------------------- mobile contact bar */
.ctabar { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px var(--page-x) max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--chrome-border); }
.ctabar .btn { padding: 0 8px; }
@media (max-width: 767px) { .has-ctabar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .ctabar { display: none; } }
.nav-open .ctabar { display: none; }

/* ---------------------------------------------------------------- home footer with the resources column */
@media (min-width: 768px) { .foot__cols:has(> div:nth-child(4)) { grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 24px; } }
