/* Shared layout for the v2 content pages: products, AI training, services, distributors,
   contact. Builds on css/software.css and follows the light/dark theme. */

.pg-hero { position: relative; padding: 84px 0 72px; background: radial-gradient(820px 460px at 82% 18%, rgba(47, 123, 255, .24), transparent 65%), var(--sw-bg); }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.pg-hero h1 { margin-top: 20px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; }
.pg-hero .sw-sub { max-width: 40em; font-size: 18px; }
.pg-hero .sw-cta { margin-top: 32px; }
.pg-hero-center { text-align: center; }
.pg-hero-center .sw-sub { margin-inline: auto; }
.pg-hero-center .sw-cta { justify-content: center; }
.pg-price { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 18px; padding: 8px 16px; border: 1px solid var(--sw-line); border-radius: 30px; font: 700 22px var(--f-head); }
.pg-price span { font: 400 14px var(--f-foot); color: var(--sw-text); }
.pg-docs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.pg-docs .sw-link { font-size: 14.5px; }
.pg-points { margin-top: 22px; padding: 0; list-style: none; }
.pg-points li { padding: 8px 0; border-top: 1px solid var(--sw-line); font-size: 16.5px; color: var(--sw-text); }
.pg-points li b { color: inherit; font-family: var(--f-head); }
.pg-points li:first-child { border-top: 0; }

/* product shot with a "targeting" frame */
.pg-shot { position: relative; display: grid; place-items: center; min-height: 380px; padding: 28px; border-radius: 18px; background: radial-gradient(closest-side, rgba(111, 191, 228, .2), transparent 78%); }
.pg-shot img { max-width: 100%; max-height: 440px; width: auto; height: auto; object-fit: contain; }
.pg-shot::before, .pg-shot::after { content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--sw-cyan); opacity: .7; }
.pg-shot::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.pg-shot::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* numbered feature cards */
.pg-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 48px; }
.pg-feature { position: relative; padding: 26px 24px 26px; border: 1px solid var(--sw-line); border-radius: 14px; background: linear-gradient(160deg, rgba(47, 123, 255, .1), rgba(5, 10, 28, .5) 55%); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pg-feature:hover { transform: translateY(-5px); border-color: rgba(111, 191, 228, .6); }
.pg-feature i { display: block; font: 700 13px var(--f-head); font-style: normal; letter-spacing: .18em; color: var(--sw-cyan); }
.pg-feature h3 { margin-top: 14px; font-size: 18.5px; line-height: 1.25; }
.pg-feature p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--sw-text); }

/* alternating picture / text rows */
.pg-rows { margin-top: 24px; }
.pg-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 80px; }
.pg-row:nth-child(even) .pg-row-media { order: 2; }
.pg-row-media img, .pg-row-media iframe { display: block; width: 100%; height: auto; border: 1px solid var(--sw-line); border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 8, 40, .5); }
.pg-row h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.pg-row p { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--sw-text); }
.pg-video { position: relative; margin-top: 48px; aspect-ratio: 16 / 9; border: 1px solid var(--sw-line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 8, 40, .5); }
.pg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* specifications */
.pg-specs { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-top: 48px; }
.pg-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 15px; }
.pg-table caption { padding-bottom: 12px; text-align: left; font: 700 18px var(--f-head); }
.pg-table th, .pg-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--sw-line); }
.pg-table th { width: 38%; font: 700 14px var(--f-head); color: var(--sw-cyan); }
.pg-table tr:last-child th, .pg-table tr:last-child td { border-bottom: 1px solid var(--sw-line); }
.pg-drawing { padding: 20px; border: 1px solid var(--sw-line); border-radius: 14px; background: #fff; }
.pg-drawing img { display: block; width: 100%; height: auto; }
.pg-drawing figcaption { margin-top: 10px; font-size: 13px; text-align: center; color: #5a6b80; }

/* services: round pictures */
.pg-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.pg-trio article { padding: 32px 24px 28px; border: 1px solid var(--sw-line); border-radius: 14px; text-align: center; background: linear-gradient(180deg, rgba(47, 123, 255, .1), rgba(5, 10, 28, .5) 60%); }
.pg-trio .ap-ring { width: 132px; height: 132px; }
.pg-trio h3 { margin-top: 20px; font-size: 19px; line-height: 1.25; }
.pg-trio p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--sw-text); }
.pg-group { margin-top: 96px; }
.pg-group:first-child { margin-top: 0; }
.pg-group > p { margin-top: 16px; max-width: 46em; font-size: 17px; line-height: 1.65; color: var(--sw-text); }
.pg-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 18px; font-size: 17px; }

/* distributors */
.pg-map { margin-top: 8px; border: 1px solid var(--sw-line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 8, 40, .35); }
.pg-map img { display: block; width: 100%; height: auto; }
.pg-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 44px; }
.pg-state { padding: 24px 24px 22px; border: 1px solid var(--sw-line); border-radius: 14px; background: linear-gradient(160deg, rgba(47, 123, 255, .1), rgba(5, 10, 28, .5) 55%); }
.pg-state h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.pg-state h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sw-cyan); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sw-cyan) 20%, transparent); }
.pg-state div { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sw-line); font-size: 15px; line-height: 1.6; }
.pg-state strong { display: block; font-family: var(--f-head); }
.pg-state a { color: var(--sw-cyan); }

/* contact */
.pg-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; margin-top: 8px; }
.pg-info { padding: 30px; border: 1px solid var(--sw-line); border-radius: 14px; background: linear-gradient(160deg, rgba(47, 123, 255, .1), rgba(5, 10, 28, .5) 55%); }
.pg-info h2 { font-size: 22px; }
.pg-info dl { margin: 18px 0 0; }
.pg-info dt { margin-top: 16px; font: 700 12px var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--sw-cyan); }
.pg-info dd { margin: 6px 0 0; font-size: 16.5px; line-height: 1.55; }
.pg-info a { color: inherit; }
.pg-badges { display: flex; gap: 20px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sw-line); }
.pg-badges figure { margin: 0; text-align: center; font-size: 13px; color: var(--sw-text); }
.pg-badges img { display: block; height: 62px; width: auto; margin: 0 auto 8px; border-radius: 4px; }
.pg-form { padding: 30px; border: 1px solid var(--sw-line); border-radius: 14px; background: rgba(5, 10, 28, .6); }
.pg-form h2 { font-size: 22px; }
.pg-form label { display: block; margin-top: 18px; font-size: 14.5px; }
.pg-form input, .pg-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #8293a1; border-radius: 6px; background: #fff; color: #0e1821; font: 16px var(--f-foot); }
.pg-form textarea { resize: vertical; }
.pg-form input:focus-visible, .pg-form textarea:focus-visible { outline: 2px solid var(--sw-cyan); outline-offset: 2px; }
.pg-form .sw-btn { margin-top: 22px; cursor: pointer; }
.pg-form-msg { min-height: 22px; margin-top: 12px; font-size: 15px; }
.pg-form-msg.error { color: var(--sw-fail); }
.pg-form-msg.ok { color: var(--sw-pass); }

@media (max-width: 980px) {
  .pg-hero { padding: 56px 0; }
  .pg-hero-grid, .pg-row, .pg-specs, .pg-contact { grid-template-columns: 1fr; gap: 32px; }
  .pg-row { margin-top: 56px; }
  .pg-row:nth-child(even) .pg-row-media { order: 0; }
  .pg-trio { grid-template-columns: 1fr; }
  .pg-shot { min-height: 0; }
}
