/* Site relaunch 2026-11: product pages, the products overview, the SoftEdge banner and the home
   additions. Builds on service-home-base.css tokens (--paper, --ink, --muted, --line, --accent).
   Accent colours come from the SoftEdge palette: cyan #3FD6E8, soft #8BEAF4, deep #168979, space #04070B. */
:root {
    --edge-cyan:var(--accent-text);
    --edge-soft:var(--accent);
    --edge-deep:var(--accent-text);
    /* dark SoftEdge surfaces stay dark in both themes (they used --ink, which turns light in the dark theme) */
    --edge-space:var(--se-space);
    --edge-space-high:var(--se-space-high);
    --edge-text:var(--se-text);
    --edge-text-dim:var(--se-text-dim);
}

/* ---------- product cards ---------- */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:1rem; }
.product-grid--compact { grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); }
.product-card { display:flex; flex-direction:column; gap:1rem; padding:1.25rem; border:1px solid var(--line); border-radius:20px; background:var(--surface); color:inherit; text-decoration:none; transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.product-card:hover, .product-card:focus-visible { transform:translateY(-2px); }
/* The logo tile: a fixed-height box with padding; the image is scaled to fit, never clipped
   (the owner's rule: the final logos are used 1:1, uncropped). */
.product-card-visual { display:flex; align-items:center; justify-content:center; height:176px; padding:12px; box-sizing:border-box; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.product-card-visual img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.product-card.is-compact .product-card-visual { height:132px; padding:10px; }
.product-card-copy { display:grid; gap:.3rem; position:relative; padding-right:1.75rem; }
.product-card-copy strong { font-size:1.125rem; font-weight:650; letter-spacing:-.01em; }
.product-card-copy > span { color:var(--muted); line-height:1.45; }
.product-card-desc { font-size:.9rem; }
.product-card-copy b { position:absolute; right:0; top:.1rem; font-weight:600; color:var(--edge-deep); }
.product-card.is-compact .product-card-desc { display:none; }

/* The SoftSMS tile: a wordmark in the family of the final logos (mark area, name, "Powered by
   Softphia") until its own logo file exists. The mark area is a plain cyan speech bubble drawn in CSS,
   the same colour and weight as the other icons; it is not a logo of its own. */
.product-wordmark { display:grid; grid-template-rows:1fr auto auto; place-items:center; align-content:center; gap:.15rem; width:100%; height:100%; padding:8% 6% 9%; box-sizing:border-box; text-align:center; background:var(--surface); }
.product-wordmark::before { content:""; display:block; width:38%; aspect-ratio:1.25; border-radius:28% 28% 28% 6%; background:linear-gradient(145deg, var(--accent-tint), var(--accent) 55%, var(--accent)); box-shadow:0 10px 24px var(--shadow-color), inset 0 -6px 12px var(--shadow-color), inset 0 6px 10px var(--shadow-color); margin-bottom:6%; }
.product-wordmark > span { font-size:clamp(1.25rem, 5cqw, 2.1rem); font-weight:700; letter-spacing:-.03em; color:var(--ink); line-height:1; }
.product-wordmark > small { color:var(--muted); font-size:clamp(.55rem, 2.4cqw, .85rem); line-height:1.2; }
.product-card-visual { container-type:inline-size; }
.product-wordmark--card { padding:6% 6% 7%; }

/* ---------- product page ---------- */
.product-breadcrumb { padding-top:1rem; font-size:.95rem; }
/* A back link: an icon and a 44 px tap target (QA V-09), the arrow nudges back on hover. */
.back-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px 0 10px; margin-left:-10px; border-radius:999px; color:var(--muted); font-weight:500; text-decoration:none; transition:background-color .15s ease, color .15s ease; }
.back-link .icon { flex:none; transition:transform .15s ease; }
.back-link:hover { background:var(--surface-2, rgba(127,127,127,.08)); color:var(--ink); text-decoration:none; }
.back-link:hover .icon { transform:translateX(-2px); }
.back-link:focus-visible { outline:2px solid var(--accent-text); outline-offset:2px; }
.product-breadcrumb a:not(.back-link) { color:var(--muted); text-decoration:none; }
.product-hero { display:grid; gap:2rem; align-items:center; }
.product-hero-visual { display:grid; place-items:center; }
/* The hero tile wraps the logo: the rounding and shadow sit on the tile, the image stays whole. */
.product-logo-tile { display:flex; align-items:center; justify-content:center; width:260px; height:260px; padding:14px; box-sizing:border-box; border-radius:28px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--elev-md); container-type:inline-size; }
.product-logo { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
/* In the hero tile the wordmark keeps the proportions of the real logos: a large name, a readable line below. */
.product-logo-tile .product-wordmark { border-radius:20px; padding:10% 6% 11%; }
.product-logo-tile .product-wordmark::before { width:46%; margin-bottom:8%; }
.product-logo-tile .product-wordmark > span { font-size:clamp(1.5rem, 14cqw, 2.4rem); }
.product-logo-tile .product-wordmark > small { font-size:clamp(.65rem, 4.6cqw, .85rem); }
@media (min-width: 900px) {
    .product-hero { grid-template-columns:1.4fr 1fr; }
}
@media (max-width: 760px) {
    .product-logo-tile { width:168px; height:168px; padding:10px; border-radius:22px; }
    .product-hero { gap:1.25rem; }
    .product-hero-visual { order:-1; justify-items:start; }
}

.product-facts dl { display:grid; gap:.75rem; margin:0; padding:1rem 1.25rem; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.product-facts div { display:grid; gap:.15rem; }
.product-facts dt { font-size:.75rem; font-weight:650; letter-spacing:.08em; text-transform:uppercase; color:var(--edge-deep); }
.product-facts dd { margin:0; color:var(--ink); line-height:1.45; }
.product-facts dd a { color:var(--edge-deep); }
@media (min-width: 760px) { .product-facts dl { grid-template-columns:repeat(3, 1fr); gap:1.5rem; } }

.product-screen { margin-top:2rem; }
.product-screen .product-capture { margin:0 auto; max-width:960px; }

.product-groups { margin-top:3rem; }
.product-group-grid { display:grid; gap:1rem; margin-top:1.5rem; }
@media (min-width: 760px) { .product-group-grid { grid-template-columns:repeat(2, 1fr); } }
.product-group { padding:1.25rem 1.4rem; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.product-group h3 { margin:0 0 .75rem; font-size:1.05rem; font-weight:650; letter-spacing:-.01em; }
.product-group ul, .product-need ul, .product-not ul { margin:0; padding:0; list-style:none; display:grid; gap:.55rem; }
.product-group li, .product-need li, .product-not li { position:relative; padding-left:1.4rem; line-height:1.5; color:var(--ink); }
.product-group li::before { content:""; position:absolute; left:.1rem; top:.55rem; width:.55rem; height:.55rem; border-radius:50%; background:var(--edge-cyan); box-shadow:0 0 0 3px var(--shadow-color); }
.product-need li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--edge-deep); font-weight:700; }
.product-not li::before { content:"–"; position:absolute; left:.1rem; top:0; color:var(--muted); font-weight:700; }

.product-columns { display:grid; gap:1rem; margin-top:2rem; }
@media (min-width: 900px) { .product-columns { grid-template-columns:1fr 1fr; } }
.product-need, .product-not { padding:1.25rem 1.4rem; border-radius:20px; border:1px solid var(--line); }
.product-need { background:var(--bg); border-color:var(--line); }
.product-not { background:var(--surface); }
.product-need h2, .product-not h2 { margin:0 0 .75rem; font-size:1.1rem; font-weight:650; }

.product-stores { margin-top:2.5rem; }
.product-stores h2 { font-size:1.25rem; margin:0 0 1rem; }
.store-badges { display:flex; flex-wrap:wrap; gap:.75rem; align-items:stretch; }
.store-badge { display:inline-flex; flex-direction:column; justify-content:center; gap:.1rem; min-width:180px; padding:.7rem 1.1rem; border-radius:14px; background:var(--edge-space); color:var(--edge-text); text-decoration:none; font-weight:600; line-height:1.2; border:1px solid transparent; }
.store-badge:hover, .store-badge:focus-visible { background:var(--edge-space-high); border-color:var(--edge-cyan); outline:none; }
.store-badge.is-pending { background:var(--surface); color:var(--muted); border-color:var(--line); cursor:default; }
.store-badge-kicker { font-size:.72rem; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--edge-text-dim); }
.store-badge.is-pending .store-badge-kicker { color:var(--muted); }
.store-pending-note { margin:.9rem 0 0; color:var(--muted); font-size:.95rem; max-width:60ch; }

.product-faq { margin-top:2.5rem; }

.product-more { margin-top:3rem; }
.product-more h2 { font-size:1.25rem; margin:0 0 1rem; }

/* ---------- products overview ---------- */
.product-grid-section { margin-top:1rem; }
.product-countries { display:grid; gap:2rem; margin-top:3rem; }
@media (min-width: 900px) { .product-countries { grid-template-columns:1fr 1fr; } }

/* ---------- SoftEdge banner (dark, from the SoftEdge palette) ---------- */
.softedge-banner { margin-top:3rem; }
.softedge-banner-inner { position:relative; display:grid; gap:1.5rem; padding:2rem 1.5rem; border-radius:28px; background:radial-gradient(1200px 500px at 85% 30%, rgba(var(--se-cyan-rgb), 0.22), transparent 60%), linear-gradient(160deg, var(--edge-space-high), var(--edge-space)); color:var(--edge-text); overflow:hidden; }
.softedge-banner-inner .eyebrow { color:var(--edge-soft); }
.softedge-banner-inner h2 { margin:.25rem 0 .75rem; color:var(--on-dark); font-size:clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing:-.02em; }
.softedge-banner-inner p { color:var(--edge-text-dim); max-width:58ch; line-height:1.55; }
.softedge-banner-visual { position:relative; display:grid; place-items:center; }
.softedge-banner-visual img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.softedge-ring { position:absolute; width:260px; height:260px; border-radius:50%; border:2px solid rgba(var(--se-cyan-rgb), 0.55); box-shadow:0 0 60px var(--shadow-color), inset 0 0 40px var(--shadow-color); animation:softedge-breathe 6s ease-in-out infinite; }
@keyframes softedge-breathe { 0%, 100% { transform:scale(.96); opacity:.7; } 50% { transform:scale(1.04); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .softedge-ring { animation:none; } }
@media (min-width: 900px) { .softedge-banner-inner { grid-template-columns:1.5fr 1fr; align-items:center; padding:3rem 3rem; } }

/* ---------- home additions ---------- */
.home-products { margin-top:3rem; }
.home-products .platform-section-heading { margin-bottom:1.5rem; }
.home-hero-apps { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.25rem; }
.home-hero-apps a { display:inline-flex; align-items:center; gap:.45rem; padding:.35rem .7rem .35rem .4rem; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink); text-decoration:none; font-size:.9rem; font-weight:550; }
.home-hero-apps a img { width:26px; height:26px; border-radius:6px; object-fit:contain; background:var(--surface); }
.home-hero-apps a:hover { border-color:var(--line-strong); background:var(--row-hover); }
.home-free-strip { display:grid; gap:.75rem; margin-top:2rem; }
@media (min-width: 760px) { .home-free-strip { grid-template-columns:repeat(3, 1fr); } }
.home-free-strip article { padding:1rem 1.2rem; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.home-free-strip strong { display:block; margin-bottom:.25rem; }
.home-free-strip p { margin:0; color:var(--muted); line-height:1.45; font-size:.95rem; }

/* ---------- home sector grid: the "all industries" card matches the photo cards ---------- */
.platform-sector-grid > a.is-all .sector-all-art { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-content:center; justify-content:center; gap:.6rem; width:calc(100% + 44px); margin:-22px -22px 6px; padding:28px 32px; box-sizing:border-box; height:260px; overflow:hidden; background:radial-gradient(520px 300px at 50% 110%, rgba(var(--se-cyan-rgb), 0.28), transparent 65%), linear-gradient(160deg, var(--edge-space-high), var(--edge-space)); }
.platform-sector-grid > a.is-all .sector-all-art span { padding:.45rem .85rem; border:1px solid rgba(var(--se-cyan-rgb), 0.40); border-radius:999px; color:var(--edge-text); font-size:.9rem; line-height:1.2; background:rgba(255,255,255,.07); backdrop-filter:blur(4px); }
@media (max-width: 700px) { .platform-sector-grid > a.is-all .sector-all-art { height:235px; } }

/* ---------- app showcase: the product row links to the product pages ---------- */
.platform-app-links { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; margin-top:28px; }
@media (min-width: 900px) { .platform-app-links { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.platform-app-links a { display:flex; align-items:center; gap:.6rem; padding:.6rem .75rem; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); text-decoration:none; font-weight:600; }

.platform-app-links img { width:40px; height:40px; object-fit:contain; border-radius:8px; flex:none; }
.platform-app-links small { display:block; font-weight:450; color:var(--muted); font-size:.8rem; line-height:1.3; }

/* ---------- downloads page store badges ---------- */
.downloads-stores { margin:1rem 0 0; }

/* ---------- the real SoftEdge ring (nebula.js, the app's shader on WebGL) ---------- */
.softedge-ring { display: none; }
.softedge-banner-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.nebula-stage { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; transform: translate(-50%, -50%); pointer-events: none; }
.nebula-stage canvas, .nebula-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; }
.nebula-stage img { object-fit: cover; -webkit-mask: radial-gradient(circle, #000 52%, transparent 70%); mask: radial-gradient(circle, #000 52%, transparent 70%); }
.nebula-stage canvas { opacity: 0; transition: opacity .6s ease; }
.nebula-stage canvas.is-live { opacity: 1; }
.nebula-stage:has(canvas.is-live) img { opacity: 0; }
/* The SoftEdge mark floats in the ring without a tile: sized to the ring's clear centre (0.44 of the stage), with a soft glow in the nebula's cyan. */
.softedge-mark { position: relative; z-index: 1; display: block; width: 168px; height: 168px; }
.softedge-banner-visual .softedge-mark img { width: 100%; height: 100%; max-width: none; max-height: none; filter: drop-shadow(0 0 10px rgba(var(--se-cyan-rgb), .30)) drop-shadow(0 0 26px rgba(var(--se-cyan-rgb), .14)); }
@media (max-width: 760px) { .nebula-stage { width: 290px; height: 290px; } .softedge-banner-visual { min-height: 250px; } .softedge-mark { width: 128px; height: 128px; } }

/* engine sections without a capture show a business photo */
.engine-photo { margin: 0; }
.engine-photo .business-photo { display: block; width: 100%; height: 340px; object-fit: cover; border-radius: 18px; }

/* ---------- 'More products' grid: 3 x 2 on desktop, 2 on tablet, 1 on phones; equal heights; clamped taglines; room before the CTA ---------- */
.product-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem; align-items: stretch; }
@media (max-width: 900px) { .product-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .product-grid--compact { grid-template-columns: 1fr !important; } }
.product-card.is-compact { flex-direction: row; align-items: center; gap: .9rem; padding: .9rem 1rem; min-height: 112px; }
.product-card.is-compact .product-card-visual { flex: none; width: 84px; height: 84px; padding: 6px; border-radius: 14px; }
.product-card.is-compact .product-card-copy { flex: 1; min-width: 0; padding-right: 1.6rem; }
.product-card.is-compact .product-card-copy > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.product-card.is-compact .product-card-copy strong { font-size: 1.02rem; }
.product-more { margin-top: 3rem; margin-bottom: 3.5rem; }
.product-page > section + section { margin-top: 2.75rem; }
/* every visual reserves its box: no layout shift while images and fonts arrive */
.product-card-visual, .product-logo-tile, .icon-tile, .softedge-mark, .nebula-stage, .platform-people-strip img, .engine-photo .business-photo { contain: layout; }
.product-capture img { aspect-ratio: attr(width) / attr(height); }

/* ---------- product gallery: the genuine screens of a product on a soft stage (both themes) ---------- */
.product-page .product-screen { margin-top: 2.5rem; }
.product-gallery { display: grid; gap: clamp(16px, 2.4vw, 28px); align-items: center; padding: clamp(16px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(900px 420px at 50% 0%, rgba(var(--se-cyan-rgb), .13), transparent 70%), var(--surface-2); }
:root[data-theme="dark"] .product-gallery { background: radial-gradient(900px 420px at 50% 0%, rgba(var(--se-cyan-rgb), .14), transparent 70%), var(--se-space-high); }
.product-gallery .product-capture, .product-screen .product-gallery .product-capture { margin: 0; max-width: none; }
.product-gallery .device-capture a[data-lightbox] { padding: 0; background: transparent; }
.product-gallery__caption { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.product-gallery--screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-gallery--screens .is-lead { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 1080px; }
.product-gallery--screens.product-gallery--n2 .is-lead + .product-gallery__item { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 760px; }
.product-gallery--phones { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }
.product-gallery--phones.product-gallery--n1 { grid-template-columns: minmax(0, 320px); }
.product-gallery--phones.product-gallery--n2 { grid-template-columns: repeat(2, minmax(0, 300px)); }
.product-gallery--phones .product-capture-portrait, .product-gallery--mixed .product-capture-portrait { max-width: 300px; margin-inline: auto; }
.product-gallery--mixed { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
@media (max-width: 760px) {
    .product-gallery { border-radius: 20px; }
    .product-gallery--screens { grid-template-columns: 1fr; }
    .product-gallery--mixed { grid-template-columns: 1fr; }
    .product-gallery--mixed .is-phone { max-width: 240px; justify-self: center; width: 100%; }
    .product-gallery--phones { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: min(64%, 240px); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
    .product-gallery--phones .product-gallery__item { scroll-snap-align: center; }
    .product-gallery--phones .product-gallery__caption { grid-column: auto; position: sticky; left: 0; display: none; }
}

/* ---------- home hero: the back office (or the till) with the owner's phone in front ---------- */
.hero-stack { position: relative; }
.hero-stack.has-phone { padding-right: 12%; padding-bottom: 4%; }
.hero-stack .device-capture a[data-lightbox] { padding: 0; background: transparent; }
.hero-stack .product-capture { margin: 0 !important; }
.hero-stack__phone { position: absolute; right: 0; bottom: 0; width: 25%; z-index: 2; filter: drop-shadow(0 22px 36px rgba(4, 7, 11, .32)); }
.hero-stack__phone .device-phone .device-body { padding: 6px; border-radius: 26px; }
.hero-stack__phone .device-phone .device-screen { border-radius: 20px; }
.hero-stack__caption { margin: 12px 0 16px; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .hero-stack.has-phone { padding-right: 14%; } .hero-stack__phone { width: 30%; } .hero-stack__phone .device-phone .device-body { padding: 4px; border-radius: 16px; } .hero-stack__phone .device-phone .device-screen { border-radius: 12px; } }

/* ---------- product grids without orphans: home 4 x 2 (seven products + "all products"); overview 4 + 3 centred ---------- */
.home-products .home-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
@media (max-width: 1100px) { .home-products .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-products .home-product-grid { grid-template-columns: 1fr; } }
.product-card.is-all .product-card-visual { background: var(--metal-sheen) !important; color: var(--accent-text); }
.product-card.is-all .product-card-copy strong { color: var(--ink); }
.products-page .product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.products-page .product-grid > .product-card { flex: 0 1 calc((100% - 3rem) / 4); min-width: 0; box-sizing: border-box; }
@media (max-width: 1100px) { .products-page .product-grid > .product-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 560px) { .products-page .product-grid > .product-card { flex-basis: 100%; } }
.product-gallery--screens.product-gallery--n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .product-gallery--screens.product-gallery--n4 { grid-template-columns: 1fr; } }
/* SoftSMS: three real scenes instead of an app screen */
.product-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-photos .business-photo { height: 300px; border-radius: 22px; }
@media (max-width: 760px) { .product-photos { grid-template-columns: 1fr 1fr; } .product-photos .business-photo { height: 200px; border-radius: 16px; } .product-photos .business-photo:first-child { grid-column: 1 / -1; } }
/* an odd last group spans the row instead of leaving a hole */
@media (min-width: 760px) { .product-group-grid > .product-group:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- home workflow: five steps as connected cards with Tabler icons (no bare text under hairlines) ---------- */
.platform-workflow { padding: 64px 0 !important; background: radial-gradient(900px 360px at 85% 0%, rgba(var(--se-cyan-rgb), .10), transparent 65%), var(--surface-2) !important; }
:root[data-theme="dark"] .platform-workflow { background: radial-gradient(900px 360px at 85% 0%, rgba(var(--se-cyan-rgb), .12), transparent 65%), var(--se-space-high) !important; }
.platform-workflow ol { gap: 14px !important; counter-reset: none; }
.platform-workflow li { position: relative; display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 10px; padding: 18px !important; border: 1px solid var(--line) !important; border-radius: 18px; background: var(--surface); }
.platform-workflow li .icon-tile { grid-row: 1 / span 2; }
.platform-workflow li .platform-workflow__n { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent-text); }
.platform-workflow li strong { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
@media (min-width: 961px) { .platform-workflow li:not(:last-child)::after { content: ''; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); z-index: 1; } }
@media (max-width: 960px) { .platform-workflow ol { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .platform-workflow ol { grid-template-columns: 1fr !important; } .platform-workflow li { padding: 14px !important; } }

/* ======================================================================
   QA round 1 (layout): home hero, cards, strips, the phone length
   ====================================================================== */
/* R1-08: a short headline (<= ~60 characters, the detail is in the lead) and the start button in the
   first view at 1280x800, 1440x900 and 375x812 in every language. */
.platform-home .platform-home-copy h1 { font-size: clamp(36px, 3.5vw, 54px); line-height: 1.08; margin: 16px 0 20px; max-width: 18ch; }
.platform-home .platform-home-copy .platform-lead { font-size: 18px; line-height: 1.6; margin: 0; }
.platform-home .platform-home-copy .hero-actions { margin-top: 26px; }
@media (max-width: 700px) {
    .platform-home .platform-intro { padding-block: 28px 40px; }
    .platform-home .platform-home-copy h1 { font-size: clamp(30px, 8.6vw, 36px); max-width: none; margin: 12px 0 16px; }
    .platform-home .platform-home-copy .platform-lead { font-size: 16.5px; line-height: 1.55; }
    .platform-home .platform-home-copy .hero-actions { margin-top: 20px; gap: 10px; }
}
/* R1-31: the product chips show the whole logo at a readable size (44 px), never cropped. */
.home-hero-apps { gap: .6rem; margin-top: 1.6rem; }
.home-hero-apps a { gap: .55rem; min-height: 54px; padding: 4px 16px 4px 4px; border-radius: 16px; font-size: .95rem; }
.home-hero-apps a img { width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: contain; background: var(--surface); }
/* R1-30: Tabler arrows instead of text glyphs. */
.platform-people-strip span { display: inline-flex; align-items: center; gap: 4px; }
.platform-people-strip span .icon { flex: none; width: 14px; height: 14px; }
.platform-proof a .icon { flex: none; color: var(--accent-text); }
/* R1-09: whole sentences in the product cards (no "…"), equal heights per row; four per row only
   where the copy has room. */
.product-card.is-compact .product-card-copy > span { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.home-products .home-product-grid > .product-card { height: 100%; box-sizing: border-box; }
@media (max-width: 1239px) { .home-products .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-products .home-product-grid { grid-template-columns: 1fr; } }
/* R1-21: the five workflow steps on a tablet: 3 + 2, the last two share their row. */
@media (min-width: 561px) and (max-width: 600px) { .platform-workflow ol > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 601px) and (max-width: 960px) {
    .platform-workflow ol { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .platform-workflow ol > li { grid-column: span 2; }
    .platform-workflow ol > li:last-child:nth-child(3n+1) { grid-column: span 6; }
    .platform-workflow ol > li:nth-last-child(2):nth-child(3n+1), .platform-workflow ol > li:last-child:nth-child(3n+2) { grid-column: span 3; }
}
/* R1-39: the home page on a phone. The feature sections keep heading and screen, the text and list
   fold behind "Details" (app.js; without the script everything is open); the business types sit two by
   two. */
.platform-engine-toggle { margin-top: 4px; }
.platform-engine-toggle[hidden] { display: none; }
.platform-engine-toggle .icon { transition: transform .2s ease; }
.platform-engine-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.platform-engine.is-folded .platform-engine-more, .platform-engine.is-folded .platform-engine-list { display: none; }
@media (max-width: 600px) {
    .platform-home .platform-engine { padding-block: 36px; gap: 18px; }
    .platform-home .platform-engine h2 { margin: 12px 0 14px; }
    .platform-home .platform-engine .engine-photo .business-photo { height: 220px; }
    .platform-home .platform-sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .platform-home .platform-sector-grid > a { padding: 12px; gap: 6px 8px; }
    .platform-home .platform-sector-grid .business-photo { width: calc(100% + 24px); margin: -12px -12px 4px; height: 128px; }
    .platform-home .platform-sector-grid > a.has-photo { grid-template-columns: minmax(0, 1fr) auto; }
    .platform-home .platform-sector-grid .platform-number { display: none; }
    .platform-home .platform-sector-grid h3 { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
    .platform-home .platform-sector-grid > a.is-all .sector-all-art { height: 128px; width: calc(100% + 24px); margin: -12px -12px 4px; padding: 10px; gap: .35rem; }
    .platform-home .platform-sector-grid > a.is-all .sector-all-art span { font-size: .72rem; padding: .3rem .55rem; }
    .platform-home .platform-sector-grid > a.is-all .sector-all-art span:nth-child(n+5) { display: none; }
    .platform-home .platform-sectors { padding-block: 40px; }
    .platform-home .home-products .product-card.is-compact { min-height: 0; padding: .75rem .9rem; }
    .platform-home .home-products .product-card.is-compact .product-card-visual { width: 72px; height: 72px; }
    /* the five workflow steps two by two (the fifth spans the row) */
    .platform-home .platform-workflow ol { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .platform-home .platform-workflow ol > li { grid-column: auto; }
    .platform-home .platform-workflow ol > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .platform-home .platform-workflow li { padding: 12px !important; column-gap: 10px; row-gap: 6px; }
    .platform-home .platform-workflow li strong { font-size: 14.5px; }
    .platform-home .platform-workflow { padding: 40px 0 !important; }
}
/* R1-29: SoftEdge's hero shows the app in the real ring (nebula.js; a still frame without WebGL). */
.product-hero-visual--edge { justify-items: center; }
.edge-hero-stage { position: relative; display: grid; place-items: center; width: min(100%, 460px); aspect-ratio: 1; border-radius: 32px; overflow: hidden; background: radial-gradient(closest-side, rgba(var(--se-cyan-rgb), .16), transparent 72%), linear-gradient(160deg, var(--edge-space-high), var(--edge-space)); box-shadow: var(--elev-lg); }
.edge-hero-stage .nebula-stage { width: 118%; height: 118%; }
.edge-hero-phone { position: relative; z-index: 1; width: 50%; max-width: 230px; filter: drop-shadow(0 24px 40px rgba(4, 7, 11, .5)); }
.edge-hero-phone .product-capture { margin: 0 !important; }
.edge-hero-phone .device-capture a[data-lightbox] { padding: 0; background: transparent; }
@media (max-width: 760px) { .product-hero-visual--edge { order: 0; justify-items: center; } .edge-hero-stage { width: min(100%, 340px); border-radius: 24px; } }
