@import url('https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&display=swap');

:root {
  --navy: #0b1f2e;
  --navy-2: #10293c;
  --brand: #1c6ea4;
  --brand-dark: #14507a;
  --accent: #4da3d4;
  --text: #22313f;
  --muted: #5b6b7a;
  --line: #e3eaf1;
  --bg-soft: #f6f9fc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11,31,46,.06), 0 8px 24px rgba(11,31,46,.08);
  --utility-bar-height: 36px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
html { font-size: 14px; }
body {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.4;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  /* Sticky footer: push the footer to the viewport bottom on short pages. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: 0; color: var(--navy); }
h1 { font-size: clamp(1.6rem, 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.8vw, 1.9rem); margin-top: 2.6rem; }
h3 { font-size: 1.3rem; }

main { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem 4rem; font-size: 1rem; }
main input, main textarea, main button { font: inherit; }

/* Header */
.utility-bar { position: sticky; top: 0; z-index: 60; height: var(--utility-bar-height); background: #10293c; color: #dbe7f0; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.utility-inner { max-width: 1400px; margin: auto; height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.utility-inner a { color: #dbe7f0; font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1rem; font-weight: 400; line-height: 26px; text-decoration: none; }
.utility-inner > a[href="/downloads"] { font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif; font-size: 1rem; font-weight: 700; }
.utility-inner a:hover, .utility-inner button:hover { color: #fff; }
.utility-inner [hidden] { display: none; }
.utility-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: transparent; border: 0; padding: 3px; cursor: pointer; }
.utility-icon img { width: 19px; height: 19px; filter: invert(1); }
.site-header {
  position: sticky; top: var(--utility-bar-height); z-index: 50;
  background: rgba(11,31,46,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.site-header .brand img { height: clamp(40px, 2.4vw, 62px); width: auto; }
.site-header .header-right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-header a {
  color: #dbe7f0; text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: color .15s ease;
}
.site-header a:hover { color: #fff; }
.site-header nav a::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .2s ease;
}
.site-header nav a:hover::after { transform: scaleX(1); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); overflow: hidden;
  margin: 1.5rem 0 0; box-shadow: var(--shadow);
}
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero-copy { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; margin: 0 0 0.75rem; text-transform: uppercase; }
.hero h2 { color: #fff; margin-top: 0; }
.hero p { color: #d7e4ee; max-width: 52ch; font-size: 1.05rem; }
.hero-points li { font-size: 1.02rem; }
.hero-points { margin: 1.1rem 0 1.4rem; padding: 0; list-style: none; max-width: 52ch; }
.hero-points li { position: relative; padding-left: 1.3rem; margin-bottom: 0.55rem; color: #d7e4ee; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #7fc1ef; }
.hero .btn + .btn { margin-left: 0.75rem; margin-top: 0.5rem; align-self: flex-start; }
.hero a:not(.btn) { color: #d7e4ee; text-decoration: underline; }
.hero a:not(.btn):hover, .hero a:not(.btn):focus-visible { color: #fff; }
.hero .btn {
  align-self: flex-start; background: #fff; color: var(--brand-dark) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Buttons: DevExpress-style pill CTAs with condensed face */
.btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  padding: 0.7rem 1.8rem; border-radius: 50px; text-decoration: none;
  font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,80,122,.25); }

/* Feature cards */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; margin-top: 1.5rem;
}
.feature-grid figure {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-grid figure:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,31,46,.14); }
.feature-grid img { display: block; width: 100%; aspect-ratio: 606/333; object-fit: cover; }
.product-shots img { aspect-ratio: auto; width: 100%; height: auto; object-fit: contain; }
.product-shots .image-expand { display: block; outline-offset: -4px; }
/* Full uncropped screenshots: soft card, no browser chrome */
.product-shots .image-expand {
  display: block; outline-offset: -4px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(11,31,46,.15), 0 6px 18px rgba(11,31,46,.12);
}
.product-shots .image-expand img { border-radius: 0; }
.product-shots figure:nth-child(2) .image-expand { background: #202b39; }
.product-shots figure:nth-child(2) .image-expand img { max-width: 406px; margin-inline: auto; }
.product-shots .image-expand::after {
  content: "View full image"; display: block; padding: 0.35rem 0.7rem;
  border-top: 1px solid var(--line); background: var(--bg-soft);
  color: var(--brand-dark); font-size: 0.875rem; font-weight: 600;
  line-height: 1.3; text-align: right;
}
.product-shots .image-expand:focus-visible { outline: 3px solid var(--accent); }
.feature-grid figcaption { padding: 1.1rem 1.2rem 1.3rem; }
.feature-grid h3 { margin: 0 0 0.45rem; color: var(--brand-dark); }
.feature-grid p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Intro band */
main > h2 { margin-top: 3rem; }
main > p { color: var(--muted); }

blockquote {
  background: var(--bg-soft); border-left: 4px solid var(--brand);
  margin: 1.5rem 0; padding: 1rem 1.3rem; border-radius: 0 8px 8px 0; color: var(--text);
}

/* Tables (products/downloads) */
table { border-collapse: collapse; width: 100%; margin: 1rem 0 2rem; font-size: 1rem; }
th { text-align: left; color: var(--navy); background: var(--bg-soft); }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
tr:hover td { background: #fafcfe; }

/* Contact form */
form#contact-form { display: grid; gap: 0.7rem; max-width: 480px; }
form#contact-form label { font-weight: 600; font-size: 1rem; color: var(--navy); }
form#contact-form input, form#contact-form textarea {
  padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%;
  background: var(--field-bg, #fff); color: var(--text);
}
html[data-theme="dark"] form#contact-form input, html[data-theme="dark"] form#contact-form textarea { --field-bg: #1a2b3c; }
form#contact-form input:focus, form#contact-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
form#contact-form button {
  justify-self: start; border: 0; cursor: pointer; font: inherit;
  background: var(--brand); color: #fff; padding: 0.7rem 1.8rem; border-radius: 50px; font-weight: 700;
}
form#contact-form button:hover { background: var(--brand-dark); }

/* Footer */
.site-footer {
  background: var(--navy); color: #b9cdd9; padding: 2.2rem clamp(1rem, 4vw, 2.5rem);
  font-size: 1rem; display: grid; gap: 0.4rem; text-align: center;
}
.site-footer div:first-child { color: #fff; font-weight: 600; }

/* Responsive */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { height: clamp(148px, 42vw, 190px); min-height: 0; max-height: 190px; object-position: center 38%; }
}

/* Benefit tiles (no image) */
.benefit-grid { margin-top: 1rem; }
.feature-grid .tile { padding: 1.2rem 1.3rem; }
.feature-grid .tile h3 { margin: 0 0 0.4rem; }
.feature-grid .tile p { margin: 0; }
.section-intro { font-size: 1rem; max-width: 46rem; }
.site-footer > div { max-width: 1400px; margin: 0 auto; }
.site-footer { display: block; }

/* Header/footer aligned to content width */
.header-inner { max-width: 1400px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-header .brand img { height: clamp(40px, 2.4vw, 62px); }

/* Review fixes: footer padding + mobile header alignment */
.site-footer > div { padding: 0 1.25rem; }
@media (max-width: 760px) {
  .header-inner { justify-content: center; }
  .header-inner nav { justify-content: center; }
}

/* Sales copy elements */
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; font-weight: 700; color: var(--accent); margin: 0 0 0.6rem; }
.btn-secondary { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.5); }
.btn-secondary:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.cta-band { background: linear-gradient(135deg, var(--navy), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 2.2rem clamp(1.2rem, 3vw, 2.5rem); margin-top: 3rem; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d7e4ee; max-width: 640px; margin: 0.5rem auto 1.2rem; }

.hero .btn-secondary { color: #fff !important; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.55); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.22); }

/* Two-product alternating feature rows (DevExpress-style: full-width band, image alternates sides) */
.product-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem; align-items: center;
  margin: 1.5rem 0; padding: 2rem 0;
}
.product-row-flip { direction: rtl; }
.product-row-flip > * { direction: ltr; }
.product-row-copy h3 { margin: 0 0 0.3rem; color: var(--brand-dark); font-size: 1.25rem; }
.product-row-copy .product-tag { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.product-row-copy ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.product-row-copy li { margin-bottom: 0.55rem; font-size: 1rem; }
.product-row-copy .btn { align-self: flex-start; }
.product-row-visual { position: relative; padding-bottom: 2.4rem; }
.product-row-visual .back { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 6px rgba(11,31,46,.18), 0 10px 28px rgba(11,31,46,.14); }
.product-row-visual .back img { width: 100%; height: auto; display: block; }
.product-row-visual .front { position: absolute; right: -0.8rem; bottom: 0; width: 46%; border-radius: 6px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(11,31,46,.2), 0 10px 28px rgba(11,31,46,.16); }
.product-row-visual .front img { width: 100%; height: auto; display: block; }
html[data-theme="dark"] .product-row-visual .front { border-color: #1a2b3c; }
@media (max-width: 900px) {
  .product-row, .product-row-flip { grid-template-columns: 1fr; direction: ltr; padding: 1rem 0; }
  .product-row-visual { order: -1; }
}
/* Two-product split panels (used on Products page) */
.product-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; margin: 1.5rem 0 2.5rem; }
.product-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; }
.product-panel h3 { margin: 0 0 0.3rem; color: var(--brand-dark); font-size: 1.25rem; }
.product-panel .product-tag { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.product-panel ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.product-panel li { margin-bottom: 0.55rem; font-size: 1rem; }
.product-panel .btn { margin-top: auto; align-self: flex-start; }

/* Products page */
.page-hero { margin: 2rem 0 1.5rem; max-width: 820px; }
.page-hero h1 { margin: 0 0 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1rem; margin: 0; }
.pull-quote { font-size: 1.05rem; padding: 1.2rem 1.4rem; }
.faq h3 { margin-top: 1.4rem; }
.faq p { max-width: 760px; }

/* Product panel scannability */
.product-panel ul { padding-left: 0; list-style: none; }
.product-panel li { padding-left: 1.5rem; position: relative; }
.product-panel li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.faq p { margin-left: 0; }

/* Downloads page */
.trial-list { display: grid; gap: 1.5rem; margin: 1.5rem 0 2.5rem; }
.trial-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 2rem; align-items: center; padding: 1.6rem clamp(1.2rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.trial-details h2 { margin: 0 0 0.45rem; font-size: 1.5rem; }
.trial-details p { margin: 0 0 0.65rem; max-width: 700px; }
.trial-platform { color: var(--muted); font-size: 1rem; }
.trial-action { justify-self: end; width: 100%; }
.trial-action .download-row { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
.trial-action .btn { text-align: center; }
.licence-note { color: var(--muted); font-size: 1rem; margin: 0.4rem 0 0; }
@media (max-width: 760px) {
  .trial-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .trial-action { justify-self: stretch; }
}

/* Downloads polish */
.product-panel .product-tag { margin-bottom: 0.8rem; }
.product-panel p { margin: 0 0 0.8rem; }
.product-panel .product-tag { margin-bottom: 0.4rem; }
.licence-note { color: var(--muted); font-size: 1rem; }
.cta-band { padding: 1.6rem clamp(1.2rem, 3vw, 2.5rem); }
.cta-band h2 { margin-top: 0; }

/* Site dark mode shares the portal's theme preference. */
html[data-theme="dark"] { --navy: #eaf2f8; --navy-2: #101d2a; --brand: #76bdeb; --brand-dark: #a5d5f4; --text: #e4edf5; --muted: #b3c5d4; --line: #34485a; --bg-soft: #192b3c; --shadow: 0 8px 24px rgba(0,0,0,.2); }
html[data-theme="dark"] body { background: #101c2a; }
html[data-theme="dark"] .trial-item, html[data-theme="dark"] .product-panel, html[data-theme="dark"] .support-card, html[data-theme="dark"] .feature-grid figure { background: #1a2b3c; }
html[data-theme="dark"] .site-header { background: rgba(11,31,46,.96); }
html[data-theme="dark"] .site-header a, html[data-theme="dark"] .utility-bar a { color: #dbe7f0; }
html[data-theme="dark"] .cta-band, html[data-theme="dark"] .hero { background: linear-gradient(135deg, #152b40, #215476); }
html[data-theme="dark"] .hero .btn { background: #fff; color: #14324a !important; }
html[data-theme="dark"] .site-footer { background: #0b1f2e; }
html[data-theme="dark"] th, html[data-theme="dark"] tr:hover td { background: #1a2b3c; }
html[data-theme="dark"] .btn { color: #101c2a !important; }
html[data-theme="dark"] form#contact-form button { color: #101c2a; }
html[data-theme="dark"] .btn-secondary { color: #fff !important; }

/* Support page */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; margin: 1.5rem 0 2rem; }
.support-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 1.5rem 1.6rem 1.7rem; }
.support-card h3 { margin: 0 0 0.5rem; color: var(--brand-dark); }
.support-card .btn { margin-top: 0.8rem; }
.support-list { max-width: 780px; padding-left: 1.4rem; }
.support-list li { margin-bottom: 0.7rem; }
.hp-field { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.nowrap { white-space: nowrap; }
@media (max-width: 420px) { .nowrap { white-space: normal; } }
