/* ---------------------------------------
   Design tokens / CSS variables
---------------------------------------- */
:root {
  --color-bg: #bbb;
  --color-surface: #ffffff;
  --color-border: #999;
  --color-border-soft: #ffffff;
  --color-border-soft1: #f8f8f8; 
  --color-text: #131313;
  --color-text-strong: #111827;
  --color-text-muted: #6b7280;
  --color-link: #0000ff;
  --color-link-hover: #0000ff;
  --color-accent: #2563eb;
  --color-accent-soft: #e0edff;
  --color-banner: #000044;
  --color-cta: #374151;
  --color-table-header-bg: #ffffff;
  --color-table-header-text: #111827;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* ---------------------------------------
   Utility visibility
---------------------------------------- */

.onmobileonly { display: none; }
.ondesktoponly { display: inline; }

/* Purchase table bits */

.purchase-table-header {
  border-top: solid 1px var(--color-border-soft);
  background-color: #047857;
  color: #ffffff;
  padding: 10px 0;
  font-size: 1.2em;
}

.purchase-table-row {
  border-top: solid 1px var(--color-border-soft);
  padding: 10px 0;
  font-size: 1.1em;
}

.box2 {
  padding: 40px 25px 0 60px !important;
  background-color: var(--color-surface);
}

.price {
  margin-bottom: 20px;
  font-weight: 400;
}

.license_desc {
  font-size: 0.9em !important;
  line-height: 1.3em;
}

.buy-link {
  color: var(--color-link);
  font-weight: 700;
}

.prod-name {
  font-weight: 400;
}

.mark {
  color: var(--color-link);
  font-weight: 400;
}

/* FAQ */

.faq li {
  padding: 20px;
  list-style: none;
}

.faq li.q {
  background: #FFFFFF; /* fixed hex */
  font-weight: bold;
  font-size: 120%;
  border-bottom: 1px #ddd solid;
  cursor: pointer;
}

.faq li.a {
  background: #3BB0D6;
  display: none;
  color: #fff;
  font-size: 120%;
}

/* ---------------------------------------
   Reset / normalize
---------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp, small,
strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  -webkit-text-size-adjust: none;
}

/* Global section padding for consistent spacing */
section {
  padding: 0 2rem;   /* horizontal padding */
}

ol, ul {
  list-style: none;
  text-align: left;
}

blockquote, q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
}

video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: #000; /* optional, looks nicer before load */
}
/* Box model */

*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------------------------------------
   Layout: container + flex grid
---------------------------------------- */

.container {
  margin-left: auto;
  margin-right: auto;
  min-height: 1000px;
  width: 80em;
  max-width: 100%;
  padding: 0 1.5rem;
}

/* Legacy size modifiers – keep but simplify */
.container.\31 25\25 { max-width: 75em; }
.container.\37 5\25  { max-width: 45em; }
.container.\35 0\25  { max-width: 30em; }
.container.\32 5\25  { max-width: 15em; }

@media (max-width: 1280px) {
  .container { width: 60em; max-width: 100%; }
}

@media (max-width: 980px) {
  .container { width: 90%; max-width: 100%; }
}

@media (max-width: 840px) {
  .container { width: 90% !important; max-width: 100%; }
}

@media (max-width: 736px) {
  .container { width: 100% !important; max-width: 100%; padding: 0 1rem; }
}

@media (max-width: 480px) {
  .onmobileonly { display: inline; }
  .ondesktoponly { display: none; }
  .container { width: 100% !important; padding: 0 0.75rem; }
}

/* Flex-based grid instead of floats */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.row > * {
  padding: 0 1rem;
}

/* legacy width classes mapped to flex-basis */

.\31 2u, .\31 2u\24 { flex: 0 0 100%; max-width: 100%; }
.\31 1u, .\31 1u\24 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.\31 0u, .\31 0u\24 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.\39 u,  .\39 u\24  { flex: 0 0 75%;      max-width: 75%; }
.\38 u,  .\38 u\24  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.\37 u,  .\37 u\24  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.\36 u,  .\36 u\24  { flex: 0 0 50%;      max-width: 50%; }
.\35 u,  .\35 u\24  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.\34 u,  .\34 u\24  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.\33 u,  .\33 u\24  { flex: 0 0 25%;      max-width: 25%; }
.\32 u,  .\32 u\24  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.\31 u,  .\31 u\24  { flex: 0 0 8.3333%;  max-width: 8.3333%; }

/* "push" helpers – left margin as percentage */

.\-11u { margin-left: 91.6667%; }
.\-10u { margin-left: 83.3333%; }
.\-9u  { margin-left: 75%;      }
.\-8u  { margin-left: 66.6667%; }
.\-7u  { margin-left: 58.3333%; }
.\-6u  { margin-left: 50%;      }
.\-5u  { margin-left: 41.6667%; }
.\-4u  { margin-left: 33.3333%; }
.\-3u  { margin-left: 25%;      }
.\-2u  { margin-left: 16.6667%; }
.\-1u  { margin-left: 8.3333%;  }

/* Stack columns on small screens */

@media (max-width: 836px) {
  .row > * {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 836px) {
  .features-table td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
}

/* ---------------------------------------
   Basic typography
---------------------------------------- */

body {
  background-color: var(--color-bg);
}

body,
input,
select,
textarea {
  color: var(--color-text);
  font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.015em;
}

a {
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
  border-bottom: solid 1px transparent;
  color: var(--color-link);
  text-decoration: none;
   font-weight: 400; 
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  border-bottom-color: var(--color-link-hover);
  outline: none;
  font-weight: 400; 
}

strong, b {
  color: var(--color-text-strong);
  font-weight: 400;
}

em, i {
  font-style: italic;
}

p {
  margin: 0 0 1.25em 0;
}

/* Headings */

h1 {
  color: var(--color-text-strong);
  font-weight: 400;
  margin: 0 0 0.5em 0;
  font-size: 1.75em;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

h2, h3, h4, h5, h6 {
  color: var(--color-text-strong);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: #0000aa;
  text-decoration: none;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.75em;
}

h4 {
  font-size: 1.5em;
  color: #333;
}

h5, h6 {
  font-size: 1.1em;
}

h6 {
  line-height: 1.3;
  margin: 0 0 0.5em 0.75em;
}

sub {
  font-size: 0.8em;
  position: relative;
  top: 0.5em;
}

sup {
  font-size: 0.8em;
  position: relative;
  top: -0.5em;
}

hr {
  border: 0;
  border-bottom: solid 2px var(--color-border-soft);
  margin: 1em 0;
}

hr.major {
  margin: 3em 0;
}

blockquote {
  font-style: italic;
  font-weight: 500;
  font-size: 1em;
  color: var(--color-text-muted);
}

/* Code / pre */

pre {
  background: #f8f8f8;
  border-radius: var(--radius-md);
  border: solid 1px var(--color-border-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.75;
  margin: 0 0 2em 0;
  overflow-x: auto;
  padding: 1em 1.5em;
}

code {
  background: #f8f8f8;
  border-radius: var(--radius-md);
  border: solid 1px var(--color-border-soft);
  font-family: inherit;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}

/* Alignment helpers */

.align-left   { text-align: left; }
.align-center { text-align: center; }
.align-right  { text-align: right; }

/* Section / article headers */

section.special,
article.special {
  text-align: center;
}

header p {
  color: var(--color-text-muted);
  position: relative;
  margin: 0 0 1.5em 0;
  font-style: italic;
}

header h1 + p {
  font-size: 1.1em;
  margin-top: -0.85em;
  line-height: 1.5;
}

header h2 + p {
  font-size: 1.25em;
  margin-top: -1em;
  line-height: 1.5;
}

header h3 + p {
  font-size: 1.1em;
  margin-top: -0.85em;
  line-height: 1.5;
}

header h4 + p,
header h5 + p,
header h6 + p {
  font-size: 0.8em;
  margin-top: -0.5em;
  line-height: 1.5;
}

header.major {
  padding: 1em 0;
  text-align: center;
}

header.major h2 {
  margin: 0;
}

header.major p {
  display: inline-block;
  border-top: solid 2px var(--color-border-soft);
  color: var(--color-text-muted);
  margin: 1.5em 0 0 0;
  padding: 1.5em 0 0 0;
  font-style: normal;
}

/* ---------------------------------------
   Forms
---------------------------------------- */

form {
  margin: 0 0 2em 0;
}

label {
  color: #646464;
  display: block;
  font-size: 0.9em;
  font-weight: 400;
  margin: 0 0 1em 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  appearance: none;
  background: #eeeeee;
  border-radius: var(--radius-md);
  border: solid 1px var(--color-border-soft);
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 1em;
  text-decoration: none;
  width: 100%;
}

input[type="text"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.select-wrapper {
  position: relative;
  display: block;
}

.select-wrapper::before {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
  color: #9ca3af;
  content: '\f078';
  display: block;
  height: 3em;
  line-height: 3em;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 3em;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
  height: 3em;
}

textarea {
  padding: 0.75em 1em;
}

/* Checkboxes / radios – keep look

input[type="checkbox"],
input[type="radio"] {
  display: block;
  float: left;
  margin-right: -2em;
  opacity: 0;
  width: 1em;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  text-decoration: none;
  color: #777;
  cursor: pointer;
  display: inline-block;
  font-size: 1em;
  font-weight: 400;
  padding-left: 2.55em;
  padding-right: 0.75em;
  padding-bottom: 0.75em;  
  position: relative;
}

input[type="checkbox"] + label::before,
input[type="radio"] + label::before {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
  background: #f8f8f8;
  border-radius: var(--radius-md);
  border: solid 1px var(--color-border);
  content: '';
  display: inline-block;
  height: 1.8em;
  left: 0;
  line-height: 1.725em;
  position: absolute;
  text-align: center;
  top: 0;
  width: 1.8em;
}

input[type="radio"] + label::before {
  border-radius: 999px;
}

input[type="checkbox"]:checked + label::before,
input[type="radio"]:checked + label::before {
  background: #4b5563;
  border-color: #4b5563;
  color: #fff;
  content: '\f00c';
}

input[type="checkbox"]:focus + label::before,
input[type="radio"]:focus + label::before {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent-soft);
}
 */
 
/* Placeholders – calmer than neon green */

::placeholder,
.formerize-placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

/* ---------------------------------------
   Boxes
---------------------------------------- */
/* Box */

	.box {
		background: #fff;
		border-radius: 6px;

		margin: 0 0 2em 0;
		padding: 2em;
		opacity: 0.95;
	}

		.box > :last-child {
			margin-bottom: 0;
		}

		.box.alt {
			background: none !important;
			border-radius: 0 !important;
			box-shadow: none !important;
			margin: 0 0 2em 0;
			padding: 0 !important;
		}

		.box.features .features-row {
			border-top: solid 2px #fff;
			position: relative;

		}

			.box.features .features-row:after {
				clear: both;
				content: '';
				display: block;
			}

			.box.features .features-row section {
				float: left;
				padding: 3em;
				width: 33%;

			}

				.box.features .features-row section :last-child {
					margin-bottom: 0;
				}

				.box.features .features-row section:nth-child(2n) {
					padding-right: 2em;
				}
				.box.features .features-row section:nth-child(2n-1) {
					padding-right: 2em;
				}
					.box.features .features-row section:nth-child(2n):before {
						background: #e5e5e5;
						content: '';
						display: block;
						height: 100%;
						margin-left: -3em;
						position: absolute;
						top: 0;
						width: 2px;
					}

				.box.features .features-row section:nth-child(2n-1):before {
						background: #e5e5e5;
						content: '';
						display: block;
						height: 100%;
						margin-left: -3em;
						position: absolute;
						top: 0;
						width: 2px;
					}

			.box.features .features-row:first-child {
				border-top: 0;
			}

				.box.features .features-row:first-child section {
					padding-top: 0;
				}

			.box.features .features-row:last-child {
				padding-bottom: 0;
			}

				.box.features .features-row:last-child section {
					padding-bottom: 0;
				}

		.box.special {
			text-align: center;
		}
		
		.box.leftspecial {
			text-align: left;
		}
/* new 2 wide box special */

		.box.features2 .features-row {
			border-top: solid 2px #fff;
			position: relative;
		}

			.box.features2 .features-row:after {
				clear: both;
				content: '';
				display: block;
			}
			
			.box.features2 .features-row section {
				float: left;
				padding: 1em 2em 1em 2em;
				width: 50%;
			}

				.box.features2 .features-row section :last-child {
					margin-bottom: 0;
				}

				.box.features2 .features-row section:nth-child(2n) {
					padding-right: 2em;
				}
				.box.features2 .features-row section:nth-child(2n-1) {
					padding-right: 2em;
				}
					.box.features2 .features-row section:nth-child(2n):before {
						background: #e5e5e5;
						content: '';
						display: block;
						height: 100%;
						margin-left: -3em;
						position: absolute;
						top: 0;
						width: 2px;
					}

				.box.features2 .features-row section:nth-child(2n-1):before {
						background: #e5e5e5;
						content: '';
						display: block;
						height: 100%;
						margin-left: -3em;
						position: absolute;
						top: 0;
						width: 2px;
					}

			.box.features2 .features-row:first-child {
				border-top: 0;
			}

				.box.features2 .features-row:first-child section {
					padding-top: 0;
				}

			.box.features2 .features-row:last-child {
				padding-bottom: 0;
			}

				.box.features2 .features-row:last-child section {
					padding-bottom: 0;
				}
		
		
		.box .image.featured {
			border-radius: 0;
			display: block;
			margin: 3em 0 3em -3em;
			position: relative;

			text-align: center;
		}

			.box .image.featured img {
				border-radius: 0;
				display: block;
				width: 100%;
			}

			.box .image.featured:first-child {
				border-radius: 6px 6px 0 0;
				margin-bottom: 3em;
				margin-top: -3em;
			}

				.box .image.featured:first-child img {
					border-radius: 6px 6px 0 0;
				}

			.box .image.featured:last-child {
				border-radius: 0 0 6px 6px;
				margin-bottom: -3em;
				margin-top: 3em;
			}

				.box .image.featured:last-child img {
					border-radius: 0 0 6px 6px;
				}

/* ---------------------------------------
   Icons
---------------------------------------- */

.icon {
  text-decoration: none;
  border-bottom: none;
  position: relative;
}

.icon::before {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
}

.icon > .label {
  display: none;
}

.icon.major {
  background: #4b5563;
  border-radius: 999px;
  color: #fff;
  cursor: default;
  display: inline-block;
  height: 5.5em;
  width: 5.5em;
  line-height: 5.5em;
  margin: 0 0 2em 0;
  text-align: center;
}

.icon.major::before {
  font-size: 2.5em;
}

.icon.major.accent1 { background: #ef4444; }
.icon.major.accent2 { background: #a49be1; }
.icon.major.accent3 { background: #7fcdb8; }
.icon.major.accent4 { background: #90b0ba; }
.icon.major.accent5 { background: #e5cb95; }
.icon.major.accent6 { background: #65a30d; }
.icon.major.accent7 { background: #e5ab95; }
.icon.major.accent8 { background: #a5daf5; }

/* ---------------------------------------
   Images (single consolidated version)
---------------------------------------- */

.image {
  border-radius: 0.35em;
  border: 0;
  display: inline-block;
  position: relative;
}

.image::before {
  transition: opacity 0.2s ease-in-out;
  border-radius: inherit;
  content: '';
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.4;
  position: absolute;
  top: 0;
  width: 100%;
}

.image.thumb {
  text-align: center;
}

.image.thumb::after {
  transition: opacity 0.2s ease-in-out;
  border-radius: 0.35em;
  border: solid 0px rgba(255, 255, 255, 0.5);
  color: #fff;
  content: 'View';
  display: inline-block;
  font-size: 0.8em;
  font-weight: 400;
  left: 50%;
  line-height: 2.25em;
  margin: -1.25em 0 0 -3em;
  opacity: 0;
  padding: 0 1.5em;
  position: absolute;
  text-align: center;
  text-decoration: none;
  top: 50%;
  white-space: nowrap;
}

.image.thumb:hover::after,
.image.thumb:hover::before {
  opacity: 1;
}

.image img {
  border-radius: inherit;
  display: block;
}

.image.left {
  float: left;
  padding: 0 1.5em 1em 0;
  top: 0.25em;
}

.image.right {
  float: right;
  padding: 0 0 1em 1.5em;
  top: 0.25em;
}

.image.fit {
  display: block;
  margin: 0 0 2em 0;
  width: 100%;
}

.image.fit img {
  width: 100%;
}

.image.fitsmall {
  display: block;
  margin: 0 0 2em 0;
  width: 100%;
}

.image.fitsmall img {
  width: 66%;
}

/* ---------------------------------------
   Lists
---------------------------------------- */

ol {
  list-style: decimal;
  margin: 0 0 2em 0;
  padding-left: 1.25em;
}

ol li {
  padding-left: 0.25em;
}

ul {
  list-style: disc;
  margin: 0 0 1.2em 0;
  padding-left: 1em;
}

ul li {
  padding-left: 0.5em;
}

ul.alt {
  list-style: none;
  padding-left: 0;
}

ul.alt li {
  border-top: solid 1px var(--color-border-soft);
  padding: 0.5em 0;
}

ul.alt li:first-child {
  border-top: 0;
  padding-top: 0;
}

ul.icons {
  cursor: default;
  list-style: none;
  padding-left: 0;
}

ul.icons li {
  display: inline-block;
  padding: 0 1.25em 0 0;
}

ul.icons li:last-child {
  padding-right: 0;
}

ul.icons li .icon::before {
  font-size: 1.75em;
}

ul.actions {
  cursor: default;
  list-style: none;
  padding-left: 0;
  text-align: center;
}

ul.actions li {
  display: inline-block;
  padding: 0 1em 0 0;
  vertical-align: middle;
}

ul.actions li:last-child {
  padding-right: 0;
}

ul.actions.vertical li {
  display: block;
  padding: 1em 0 0 0;
}

ul.actions.vertical li:first-child {
  padding-top: 0;
}

/* ---------------------------------------
   Tables
---------------------------------------- */

table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 0 2em 0;
  width: 100%;
}

table tbody tr {
  border: solid 1px var(--color-border-soft);
  border-left: 0;
  border-right: 0;
}

table tbody tr:nth-child(2n + 1) {
  background-color: #f8f8f8;
}

table td {
  font-size: 1em;
  padding: 0.4em;
  vertical-align: top;
  text-align: left;
}

table th {
  color: var(--color-table-header-text);
  font-size: 1.1em;
  font-weight: 500;
  padding: 0.4em;
  text-align: left;
  background-color: var(--color-table-header-bg);
}

table thead {
  border-bottom: solid 2px var(--color-border-soft);
}

table tfoot {
  border-top: solid 2px var(--color-border-soft);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* nicer scrolling on iOS */
}
.table-wrapper table {
  min-width: 400px; /* adjust to typical table width */
}
/* ======================================
   Generic table text wrapping on small screens
   ====================================== */

/* Generic small-screen behaviour for all tables */
@media (max-width: 900px) {
  table {
    width: 100%;
    table-layout: fixed; /* forces columns to share width */
  }

  table th,
  table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* Optional: fine-tune the downloads table specifically */
@media (max-width: 900px) {
  .javelin-downloads-table table {
    table-layout: fixed;
  }

  .javelin-downloads-table th,
  .javelin-downloads-table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

.features-table {
  width: 100%;
  border-collapse: collapse;
}

.features-table th,
.features-table td {
  padding: 0.6rem 0.8rem;
  vertical-align: top;
}

/* Mobile stack */
@media (max-width: 1080px) {
  .features-table,
  .features-table thead,
  .features-table tbody,
  .features-table tr,
  .features-table th,
  .features-table td {
    display: block;
    width: 100%;
  }

  .features-table thead {
    display: none; /* hide header row on mobile */
  }

  .features-table tr {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 0.9rem;
    margin: 0 0 0.9rem 0;
    background: #fff;
  }

  /* Feature name */
  .features-table th[scope="row"] {
    font-weight: 700;
    padding: 0 0 0.35rem 0;
  }

  /* Description */
  .features-table td {
    padding: 0;
    line-height: 1.35;
  }
  .features-table td, .features-table th {
   word-break: break-word;
   overflow-wrap: anywhere;
   font-size: 0.98rem;
  }
}


/* ---------------------------------------
   Buttons
---------------------------------------- */

input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
  appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  background-color: var(--color-accent);
  border-radius: var(--radius-md);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  height: 2.5em;
  line-height: 2.5em;
  padding: 0 2em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;	
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:hover {
  background-color: var(--color-link-hover);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
.button:active {
  background-color: #1e3a8a;
}

.button.fit {
  display: block;
  width: 100%;
  margin: 0 0 1em 0;
}

.button.small {
  font-size: 0.8em;
  height: 2.7em;
  line-height: 2.7em;
}

.button.big {
  font-size: 1.25em;
  height: 2.7em;
  line-height: 2.7em;
}

.button.alt {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px var(--color-border-soft);
  color: #777;
}

.button.alt:hover {
  background-color: #f8f8f8;
}

.button.alt:active {
  background-color: #f0f0f0;
}

.button.special {
  background-color: #e89980;
  color: #ffffff !important;
}

.button.green {
  background-color: #16a34a;
  color: #ffffff !important;
}

.button.blue {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

.button.special:hover { background-color: #ecaa96; }
.button.green:hover   { background-color: #22c55e; }
.button.blue:hover    { background-color: var(--color-link-hover); }

.button.special:active { background-color: #e4886a; }
.button.green:active   { background-color: #15803d; }
.button.blue:active    { background-color: #1e3a8a; }

.button:disabled,
.button.disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
input[type="button"]:disabled {
  background-color: #777 !important;
  color: #f5f5f5 !important;
  cursor: default;
  opacity: 0.5;
}

/* ---------------------------------------
   Scroll-to-top button
---------------------------------------- */

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #ee0000;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: var(--radius-sm);
}

#myBtn:hover {
  background-color: #4b5563;
}

/* ---------------------------------------
   Header + nav
---------------------------------------- */

#page-wrapper {
  padding-top: 3em;
}

body.landing #page-wrapper {
  padding-top: 0;
}

@keyframes reveal-header {
  0%   { top: -5em; }
  100% { top: 0; }
}

#header {
  background: #333;
  color: #bbb;
  cursor: default;
  height: 5em;
  left: 0;
  line-height: 3.25em;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
}

#header h1 {
  color: inherit;
  height: inherit;
  left: 1.25em;
  line-height: inherit;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
}

#header h1 a {
  color: #fff;
  font-weight: 400;
  border: 0;
}

/* (nav structure as in your original – omitted here for brevity, but you’d keep same selectors, just without vendor prefixes) */

/* ---------------------------------------
   Banner
---------------------------------------- */

#banner {
  background-color: var(--color-banner);
  background-position: top left, center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  padding: 6em 0 15em 0;
  text-align: center;
}

#banner :last-child {
  margin-bottom: 0;
}

#banner h1,
#banner h2,
#banner h3,
#banner h4,
#banner h5,
#banner h6 {
  color: #ff0;
  background: rgba(76, 76, 76, 0.2);
}
#banner h1 {
  font-size: 1.75em;
  margin: 0.5em 0 0;
  padding: 0.5em;
}
#banner h2 {
  font-size: 2.5em;
  line-height: 2;
  margin: 0.5em 0 0;
  padding: 0.5em;
}

#banner p {
  font-size: 1.25em;
  margin-bottom: 0.5em;
}

#banner .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  color: #fff;
  min-width: 12em;
}

/* ---------------------------------------
   Main
---------------------------------------- */

#main {
  padding: 4em 3em 2em 3em;
}

#main > header {
  text-align: center;
  margin: 0 0 3em 0;
}

#main > header h2 {
  font-size: 2.75em;
  margin: 0;
}

#main > header p {
  border-top: solid 2px var(--color-border-soft);
  color: var(--color-text-muted);
  display: inline-block;
  font-style: normal;
  margin: 1em 0 0 0;
  padding: 1em 0 1.25em 0;
}

body.landing #main {
  margin-top: -16em;
}

/* ---------------------------------------
   Footer
---------------------------------------- */

#footer {
  background: #444;
  padding: 1em 0 1.5em 0;
  text-align: center;
}

#footer .icons a {
  transition: opacity 0.2s ease-in-out;
  opacity: 0.35;
}

#footer .icons a:hover {
  opacity: 0.75;
}

#footer .copyright {
  color: #fff;
  font-size: 0.9em;
  line-height: 1;
  margin: 2em 0 0 0;
  padding: 0;
  text-align: center;
}

#footer .copyright a {
  color: inherit;
}

#footer .copyright li {
  border-left: solid 1px #ddd;
  display: inline-block;
  list-style: none;
  margin-left: 1em;
  padding-left: 1em;
}

#footer .copyright li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}

#footer a {
  border: none;
}

#footeraddress {
  font-size: 14px;
  color: #ccc;
}

/* ---------------------------------------
   CTA section
---------------------------------------- */

#cta {
  background: var(--color-cta);
  color: #fff;
  padding: 3.5em 0 4em 0;
  text-align: center;
}

#cta h1, #cta h2, #cta h3,
#cta h4, #cta h5, #cta h6 {
  color: inherit;
}

/* ---------------------------------------
   Section separator
---------------------------------------- */

.section-separator {
  background-attachment: scroll, fixed;
  background-color: #666;
  background-position: center top;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  color: #fff;
  padding: 1em;
  text-align: center;
}

.section-separator h2,
.section-separator h3 {
  color: #fff;
}

.section-separator .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  color: #fff;
  min-width: 12em;
}

/* ---------------------------------------
   Misc utilities
---------------------------------------- */

.features-row.left { text-align: left; }

.nuget {
  background: #000;
  color: #fff;
  font: 400 15px Consolas, "Courier New", monospace;
  border: solid 4px gray;
  padding: 10px;
  width: 100%;
  border-radius: var(--radius-sm);
}

.addthis_sharing_toolbox a {
  border: none;
}

.addthis_sharing_toolbox a:hover {
  border: none;
}

#errFeedback   { display: none; color: #cc0000; }
#okFeedback    { display: none; color: #00cc00; }
#feedbackProgress { display: none; }

.download-help {
  position: absolute;
  font-size: 14px;
  color: #aaa;
}

/* Work items */

.work-item {
  margin: 0 0 2em 0;
}

.work-item .image {
  margin: 0 0 1.5em 0;
}

.work-item h3 {
  font-size: 1em;
  margin: 0 0 0.5em 0;
}

.work-item p {
  font-size: 0.8em;
  line-height: 1.5;
  margin: 0;
}

/* ---------------------------------------
   Spinner / poptrox (animations without prefixes)
---------------------------------------- */

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* (poptrox popup styles can be kept from your original, just replace
   -moz/-webkit/-ms animations with plain `animation: spin 1s linear infinite;`) */
/* =========================================
   HEADER NAV: horizontal menus + dropdowns
   ========================================= */

#header nav {
  height: inherit;
  line-height: inherit;
  position: absolute;
  right: 0.75em;
  top: 0;
  display: flex;
  align-items: center;
}

/* top-level list = horizontal row */
#header nav > ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* top-level items */
#header nav > ul > li {
  position: relative;
  padding-left: 0;
}

/* ensure no bullets anywhere in header nav */
#header nav ul li {
  list-style: none;
}

/* top-level links */
#header nav > ul > li > a {
  display: inline-block;
  height: 2em;
  line-height: 1.95em;
  padding: 0 1em;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}

/* active / hover states */
#header nav > ul > li.active > a:not(.button),
#header nav > ul > li > a:not(.button):hover {
  background-color: rgba(153, 153, 153, 0.25);
}

/* keep header buttons nicely styled */
#header nav > ul > li .button {
  margin-left: 0.5em;
  position: relative;
}

/* ---------- Simple UL-based dropdowns (no JS required) ---------- */

#header nav > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11em;
  margin: 0.5em 0 0 0;
  padding: 0.5em 0;
  list-style: none;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 10001;
}

#header nav > ul > li > ul > li {
  padding: 0;
}

#header nav > ul > li > ul > li > a {
  display: block;
  padding: 0.35em 1em;
  color: #374151;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}

#header nav > ul > li > ul > li > a:hover {
  background: #e5e7eb;
  color: #111827;
}

/* show dropdown on hover or keyboard focus */
#header nav > ul > li:hover > ul,
#header nav > ul > li:focus-within > ul {
  display: block;
}

/* ---------- Keep .dropotron working & looking good ---------- */

.dropotron {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  list-style: none;
  margin: 0.5em 0 0 0;
  padding: 0.5em 0;
  width: 11em;
  z-index: 10001;
}

.dropotron li {
  padding: 0;
}

.dropotron li a,
.dropotron li span {
  border: 0;
  border-top: solid 1px #f2f2f2;
  color: #374151;
  display: block;
  padding: 0.35em 1em;
  text-decoration: none;
  white-space: nowrap;
}

.dropotron li:first-child > a,
.dropotron li:first-child > span {
  border-top: 0;
}

.dropotron li.active > a,
.dropotron li.active > span,
.dropotron li:hover > a,
.dropotron li:hover > span {
  background: #e89980;
  color: #ffffff;
}

/* =========================================
   FOOTER MENU: horizontal links
   ========================================= */

#footer .copyright {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2em 0 0 0;
  padding: 0;
  text-align: center;
}

#footer .copyright li {
  border-left: 1px solid #dddddd;
  padding-left: 0.75rem;
  margin-left: 0; /* flex gap handles spacing */
}

#footer .copyright li:first-child {
  border-left: 0;
  padding-left: 0;
}

#footer .copyright a {
  text-decoration: none;
  border: 0;
}

/* (optional) protect nav/footer lists from generic UL styles */
#header nav ul,
#footer .copyright {
  list-style: none;
}
/* ======================================================
   1) Desktop: hide mobile nav completely
   ====================================================== */

@media screen and (min-width: 841px) {
  #navPanel,
  #navButton {
    display: none !important;
  }
}
@media (max-width: 980px) {

  #banner {
    /* a bit shorter hero */
    padding: 5em 0 10em 0;
  }

  #banner h1 {
    font-size: 1.5em;
  }

  #banner h2 {
    font-size: 2.1em;
    line-height: 1.6;
  }

  #banner p {
    font-size: 1.1em;
  }

  /* reduce overlap so first section doesn't ride so high */
  body.landing #main {
    margin-top: -12em;
  }
}
@media (max-width: 736px) {

  #banner {
    /* significantly shorter hero on phones */
    padding: 3.5em 0 5em 0;
  }

  #banner h1 {
    font-size: 1.35em;
    margin-top: 0.25em;
  }

  #banner h2 {
    font-size: 1.7em;
    line-height: 1.3;
    padding: 0.4em;
  }

  #banner p {
    font-size: 1em;
  }

  /* much less overlap so the first box sits just over the lower edge */
  body.landing #main {
    margin-top: -6em;
  }
}

@media (max-width: 480px) {

  #banner {
    padding: 3em 0 4em 0;
  }

  #banner h1 {
    font-size: 1.25em;
  }

  #banner h2 {
    font-size: 1.5em;
  }

  body.landing #main {
    margin-top: -4em;
  }
}

/* ======================================================
   2) Mobile (≤ 840px): restore off-canvas / accordion nav
   ====================================================== */

@media screen and (max-width: 960px) {

  /* Hide the fixed header nav on small screens */
  #header {
    display: none !important;
  }

  /* Make sure we don't accidentally show the desktop UL at bottom */
  #header nav,
  #header nav > ul {
    display: none !important;
  }

  /* Show the hamburger button */
  #navButton {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    z-index: 10001;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-transition: -moz-transform 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease;
    -ms-transition: -ms-transform 0.5s ease;
    transition: transform 0.5s ease;
  }

  #navButton .toggle {
    text-decoration: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    border: 0;
    outline: 0;
  }

  #navButton .toggle:before {
    font-family: FontAwesome;
    background: rgba(192, 192, 192, 0.75);
    border-radius: 6px;
    color: #fff;
    content: '\f0c9'; /* hamburger icon */
    display: block;
    font-size: 16px;
    height: 2.25em;
    left: 0.5em;
    line-height: 2.25em;
    position: absolute;
    text-align: center;
    top: 0.5em;
    width: 3.5em;
  }

  /* Off-canvas panel itself */
  #navPanel {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 275px;
    overflow-y: auto;
    background: #2b2b2b;
    color: #bbb;
    z-index: 10002;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-transform: translateX(-275px);
    -webkit-transform: translateX(-275px);
    -ms-transform: translateX(-275px);
    transform: translateX(-275px);
    -moz-transition: -moz-transform 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease;
    -ms-transition: -ms-transform 0.5s ease;
    transition: transform 0.5s ease;
  }

  /* Links inside the panel (the “accordion” list) */
  #navPanel .link {
    border-top: solid 1px rgba(255, 255, 255, 0.05);
    color: #bbb;
    display: block;
    height: 44px;
    line-height: 44px;
    padding: 0 1em;
    text-decoration: none;
  }

  #navPanel .link:first-child {
    border-top: 0;
  }

  #navPanel .link.depth-0 {
    color: #fff;
  }

  /* Indents for sub-items (accordion style) */
  #navPanel .link .indent-1 { display: inline-block; width: 1em; }
  #navPanel .link .indent-2 { display: inline-block; width: 2em; }
  #navPanel .link .indent-3 { display: inline-block; width: 3em; }
  #navPanel .link .indent-4 { display: inline-block; width: 4em; }
  #navPanel .link .indent-5 { display: inline-block; width: 5em; }

  /* Just in case the cloned UL makes it inside the panel */
  #navPanel ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

/* --- Mobile nav panel: robust scrolling on iOS/Android --- */
@media screen and (max-width: 960px) {

  html, body {
    height: 100%;
  }

  /* Lock background scroll when menu is open */
  body.navPanel-visible {
    overflow: hidden;
    touch-action: none;
  }

  #navPanel {
    top: 0;
    bottom: 0;                 /* important: define both ends */
    height: auto;              /* let top/bottom control height */
    max-height: 100vh;         /* fallback */
    max-height: 100svh;        /* small viewport height (iOS friendly) */
    max-height: 100dvh;        /* dynamic viewport height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;

    /* prevents last items being hidden under iOS bars / safe areas */
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media screen and (max-width: 960px) {

  /* Keep header visible so the <h1> logo remains */
  #header {
    display: block !important;
    height: 44px;
    line-height: 44px;
    background: #333;
    z-index: 10001;
  }

  /* Hide the desktop horizontal nav only */
  #header nav,
  #header nav > ul {
    display: none !important;
  }

  /* Position the logo nicely in the mobile header */
  #header h1 {
    position: absolute;
    top: 0;
    left: 4.75em;   /* leaves room for hamburger */
    height: 44px;
    line-height: 44px;
    margin: 0;
    font-size: 1.1em; /* tweak to taste */
    white-space: nowrap;
  }

  #header h1 a {
    display: inline-block;
    line-height: 44px;
  }

  /* Make navButton only cover the hamburger area (not the whole header) */
  #navButton {
    width: 4.5em;        /* was 100% */
    height: 44px;
    z-index: 10002;      /* above header so it's tappable */
  }

  #navButton .toggle {
    width: 100%;
    height: 100%;
  }

  /* Prevent content sitting under the fixed mobile header */
  #page-wrapper {
    padding-top: 44px;
  }
}
/* Make the logo/header match the mobile accordion bar height */
@media screen and (max-width: 960px) {

  /* Mobile header bar height */
  #header {
    height: 52px !important;
    line-height: 52px !important;
  }

  /* Override the desktop h1 sizing (which uses 5em via "height: inherit") */
    #header h1 {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;

    height: 52px !important;
    line-height: 52px !important;

    /* prevents overlap with hamburger (left) and any right icons */
    max-width: calc(100% - 3.5em);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 3em !important;  /* adjust if needed */
    margin: 0 !important;
  }

  #header h1 a {
    display: inline-flex;
    align-items: center;
    height: 52pxpx !important;
    line-height: 52pxpx !important;
  }

  /* If your logo is an image inside the <h1>, constrain it */
  #header h1 img {
    max-height: 50px;   /* tweak */
    width: auto;
    display: block;
    flex-shrink: 0;	
  }
  #header h1 svg { max-width: 100%; }
  
  #header h5 {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;

    height: 52px !important;
    line-height: 52px !important;

    /* prevents overlap with hamburger (left) and any right icons */
    max-width: calc(100% - 3.5em);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 3em !important;  /* adjust if needed */
    margin: 0 !important;
  }

  #header h5 a {
    display: inline-flex;
    align-items: center;
    height: 52pxpx !important;
    line-height: 52pxpx !important;
  }

  /* If your logo is an image inside the <h1>, constrain it */
  #header h5 img {
    max-height: 50px;   /* tweak */
    width: auto;
    display: block;
    flex-shrink: 0;	
  }
  #header h5 svg { max-width: 100%; }

  /* Keep page content clear of the fixed mobile header */
  #page-wrapper {
    padding-top: 52px !important;
  }
}


  /* Shift page and button when panel is visible (JS adds body.navPanel-visible) */
  body.navPanel-visible #page-wrapper,
  body.navPanel-visible #navButton {
    -moz-transform: translateX(275px);
    -webkit-transform: translateX(275px);
    -ms-transform: translateX(275px);
    transform: translateX(275px);
  }

  body.navPanel-visible #navPanel {
    -moz-transform: translateX(0);
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }
}

/* search icon details */
.search-icon-btn{
  background:#333;
  border:0;
  padding:8px;
  border-radius:10px;   /* optional */
  cursor:pointer;
  line-height:0;
  color:#fff;          /* makes the SVG stroke white via currentColor */
}

.search-icon-btn svg{
  display:block;
}

.search-icon-btn:hover{
  opacity:.9;          /* optional */
}

.search-icon-btn:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
}

.search-icon-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  line-height: 0;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.search-modal__panel {
  position: relative;
  max-width: 300px;
  width: calc(100% - 24px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-modal__title {
  margin: 0;
  font-size: 1.1rem;
}

.search-modal__close {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.search-modal__form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.search-modal__label {
  position: absolute;
  left: -9999px;
}

/* Modal input: pale grey */
.search-modal__form input[type="search"]{
  background:#f2f2f2;
  border:1px solid #ccc;
  border-radius:10px;
  height:42px;
  padding:0 12px;
  outline:none;
}

.search-modal__form input[type="search"]:focus{
  border-color:#333;
}

/* Modal submit button: icon-only, same look as toolbar */
.search-modal__submit{
  height:42px;
  width:42px;
  border-radius:10px;
  border:1px solid #333;
  background:#333;
  color:#fff;          /* makes SVG white via currentColor */
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.search-modal__submit:hover{ opacity:.9; }
.search-modal__submit:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
}

/* ==============================
  /* Floating CTA that automatically uses the site's <a> link color */
  .cta-float{
    position: fixed;
    right: 18px;
    bottom: 80px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 16px;
    border-radius: 999px;

    text-decoration: none;
    font-weight: 700;
    font-family: inherit;

    background: #eee;
    border: 1px solid currentColor; /* uses the link color */
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }

  .cta-float:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
  }

  .cta-float:focus-visible{
    outline: 3px solid rgba(0,0,0,.25);
    outline-offset: 3px;
  }

  /* On small screens */
  @media (max-width: 480px){
    .cta-float{
      right: 12px;
      bottom: 80px;
      border-radius: 12px;
    }
  }
  
 /* Modal */
.modal { display:none; }
.modal.is-open { display:block; }

.modal__overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:10000;
}

.modal__panel{
  position:fixed;
  z-index:10001;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(720px, calc(100vw - 24px));
  background:#fff;
  border-radius:14px;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  padding:18px 18px 14px;
  max-height:calc(100vh - 24px);
  overflow:auto;
  color:inherit;
}

.modal__close{
  position:absolute; right:10px; top:8px;
  border:0; background:transparent;
  font-size:28px; line-height:1;
  cursor:pointer;
}

.demo-form .grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.demo-form label{ display:block; font-weight:600; }
.demo-form input, .demo-form select, .demo-form textarea{
  width:100%;
  margin-top:6px;
  padding:10px 10px;
  border:1px solid rgba(0,0,0,.25);
  border-radius:10px;
  font:inherit;
}

.demo-form textarea{ resize:vertical; }

.demo-form .span-2{ grid-column: 1 / -1; }

.actions{ margin-top:12px; display:flex; justify-content:flex-end; }

.btn-primary{
  padding:10px 14px;
  border-radius:999px;
  border:2px solid currentColor;
  background:#fff;
  color:inherit;
  font-weight:800;
  cursor:pointer;
}
.btn-primary:hover{ opacity:.92; }

.fineprint{ margin-top:10px; font-size:.92em; opacity:.8; }

.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.ds-grid{ margin-top:12px; }
.ds-row-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-bottom:0;
}

.ds-span-2{ display:block; margin-bottom:6px; }

.ds-grid label{ font-weight:600; }
.ds-grid input, .ds-grid select, .ds-grid textarea{
  width:100%;
  margin-top:6px;
  padding:10px;
  border:1px solid rgba(0,0,0,.25);
  border-radius:10px;
  font:inherit;
}
.ds-grid textarea{ resize:vertical; }

@media (max-width:640px){
  .ds-row-2{ grid-template-columns: 1fr; }
}


/* Mobile */
@media (max-width: 640px){
  .demo-form .grid{ grid-template-columns:1fr; }
  .demo-form .span-2{ grid-column:auto; }
}
 /* Mobile modal sizing + spacing */
@media (max-width: 640px){

  /* Give the panel more usable height and prevent it feeling "huge" */
  .ds-modal__panel{
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    padding: 12px;
    border-radius: 12px;
  }

  /* Smaller heading */
  #dsDemoTitle{
    font-size: 1.1rem;
    margin: 0 0 8px 0;
  }

  /* Reduce input padding a bit */
  .ds-grid input,
  .ds-grid select,
  .ds-grid textarea{
    padding: 9px 10px;
  }

  .ds-row-2{
  grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  /* Make textarea not dominate the screen */
  .ds-grid textarea{
    min-height: 80px;
    max-height: 100px;   /* user can still resize vertically */
  }

  /* Keep SEND visible and easy to tap */
  .actions{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .btn-primary{
    width: 100%;
    padding: 12px 14px;
  }
}

  
/* ======================================================
   Make multi-column feature sections stack at <= 840px
   (same breakpoint as the accordion / hamburger nav)
   ====================================================== */
@media screen and (max-width: 960px) {

  /* Remove combined row borders/padding for features */
  .box.features .features-row,
  .box.features2 .features-row {
    border-top: 0;
    padding: 0;
  }

  /* Stack each section full-width, one under another */
  .box.features .features-row section,
  .box.features2 .features-row section {
    border: 0;
    border-top: solid 1px #e5e5e5 !important;
    float: none;
    width: 100%;
    margin: 2em 0 0 0 !important;
    padding: 2em 0 0 0 !important;
  }

  /* First feature item in the first row: no top border/margin */
  .box.features .features-row:first-child section:first-child,
  .box.features2 .features-row:first-child section:first-child {
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

