:root {
  color-scheme: light;
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --muted: #5b6579;
  --line: #e6e0d4;
  --navy: #14213d;
  --navy-2: #1f3057;
  --accent: #c8811a;
  --accent-dark: #9a6210;
  --accent-soft: #fbeed8;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 12px 32px rgba(20, 33, 61, 0.08);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Inline prose links (inside a paragraph or list item, anywhere in the
   page's main content -- nav/footer links, buttons, and card headings
   are structurally outside both of those and keep their own look)
   always get the same visibly-a-link treatment: an underline, not just
   color. Previously added piecemeal wherever a link happened to appear
   in body text (.post-body, .license-note, .extras below) -- generalized
   here instead of adding a fourth one-off the next time it comes up. */
main p a:not(.button),
main li a:not(.button) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Header ---------------------------------------------------------- */

.site-header {
  background: var(--navy);
  color: #fff;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: #dbe2f2;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(200, 129, 26, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-block: 4.5rem 5.5rem;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.hero h1 {
  color: #fff;
}

.hero-copy {
  max-width: 34rem;
  color: #d3dbee;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-art {
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.page-hero .container {
  display: block;
  padding-block: 3.25rem 3.5rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  margin-bottom: 0.4em;
}

.page-hero .hero-copy {
  margin-bottom: 0;
}

/* Text helpers ---------------------------------------------------- */

.eyebrow,
.pill,
.post-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.hero .eyebrow {
  color: #f0b565;
}

.post-meta {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

.button-primary:hover {
  background: #dc9430;
  border-color: #dc9430;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink-soft);
}

.hero .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero .button-secondary:hover {
  border-color: #fff;
}

.button[aria-disabled="true"] {
  border-color: var(--line);
  background: #f0ece3;
  color: var(--muted);
  cursor: not-allowed;
}

/* Sections -------------------------------------------------------- */

.section {
  padding-block: 4.5rem;
}

.section-alt {
  background: #f1ece1;
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.card,
.post-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.card p,
.post-card p {
  color: var(--muted);
}

.card h3 a:hover,
.post-card h3 a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.pill {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.app-head h3 {
  margin: 0;
}

.app-icon {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 0.9rem;
}

.pill-paid {
  background: #e4e9f5;
  color: var(--navy-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.check-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg) translateY(-30%);
}

.callout {
  padding: 1.5rem 1.75rem;
  border: 1px solid #efd6a8;
  border-left: 5px solid var(--accent);
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--ink-soft);
}

.callout strong {
  color: var(--ink);
}

.callout summary {
  cursor: pointer;
}

.callout[open] summary {
  margin-bottom: 1em;
}

/* Contact form ---------------------------------------------------- */

.split-top {
  align-items: start;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-form {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c9c2b3;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(200, 129, 26, 0.35);
  outline-offset: 0;
}

.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 600;
}

.form-status.is-ok {
  color: #1d6b3a;
}

.form-status.is-error {
  color: #a3261d;
}

.code-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #f7f7f7;
  font-family: monospace;
}

.code-box p {
  margin: 0.25rem 0;
}

/* Download picker ------------------------------------------------ */

.picker {
  max-width: 46rem;
  margin-bottom: 3.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.platform-field {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.platform-field legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-height: 2.75rem;
}

.field .radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 1px solid #c9c2b3;
  border-radius: 0.6rem;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.field .radio-pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field .radio-pill:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Order Information box -- the result of a purchase/Test Drive, shown
   in place (no redirect) by order-result.js. Deliberately stands out
   from the rest of the page: bold accent border, larger heading. It's a
   receipt/pointer back to the main picker above (now pre-filled), not a
   second picker of its own. */
.order-info-box {
  max-width: 46rem;
  margin: 1.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.order-info-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.order-info-box p {
  margin: 0.4rem 0;
}

.radio-pill input {
  width: auto;
  margin: 0;
  accent-color: var(--accent-dark);
}

.picker-note {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.picker-note.is-error {
  color: #a3261d;
  font-weight: 600;
}

.picker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.picker button.button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.picker button.button:disabled {
  border-color: var(--line);
  background: #f0ece3;
  color: var(--muted);
  cursor: not-allowed;
}

#pick-alt {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.license-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.button .new-tab-icon {
  flex: none;
  margin-left: 0.45rem;
}

.button[aria-disabled="true"] .new-tab-icon {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

.extras {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

/* FAQ ------------------------------------------------------------- */

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.faq-item summary:hover {
  color: var(--accent-dark);
}

.faq-answer {
  padding: 0 0 1rem;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Download table -------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.platform-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  text-align: left;
}

.platform-table th,
.platform-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.platform-table thead th {
  background: #f6f2e9;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.platform-table tbody tr:last-child th,
.platform-table tbody tr:last-child td {
  border-bottom: 0;
}

.platform-table tbody th {
  font-weight: 700;
}

.platform-table tbody th span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.yes {
  color: var(--accent-dark);
  font-weight: 700;
}

.no {
  color: #a8a291;
}

/* Blog ------------------------------------------------------------ */

.post-body {
  max-width: 44rem;
}

.post-body h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.post-body p {
  margin: 1.25rem 0;
  font-size: 1.08rem;
}

.post-body a:not(.button) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: #b9c3dc;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive ------------------------------------------------------ */

@media (max-width: 860px) {
  .hero .container,
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero .container {
    padding-block: 3rem 3.5rem;
  }

  .hero-art {
    max-width: 26rem;
  }

  .section {
    padding-block: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* Videos ---------------------------------------------------------- */

.video-section {
  margin-top: 2.5rem;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  margin-top: 1rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.video-card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.15rem;
}

.video-card p {
  margin: 0.25rem 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.video-card .video-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--navy);
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f3ead8;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.video-transcript summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Training finder ------------------------------------------------- */

.finder {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.finder h2 {
  margin: 0 0 0.25rem;
}

.finder-fields {
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: end;
}

.finder-fields p {
  margin: 0;
}

.finder label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.finder select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  font: inherit;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

#your-videos {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

#your-videos ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

#your-videos li {
  margin: 0.4rem 0;
}

.your-use {
  color: var(--ink-soft);
}

.video-tag {
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.video-note {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.video-card .video-use {
  font-size: 0.95rem;
}

[hidden] {
  display: none !important;
}

/* Commercial: product-page player and watch page ------------------ */

.page-hero .container:has(.hero-video) {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .page-hero .container:has(.hero-video) {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero-video video,
.watch-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--navy);
}

.video-disclosure {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-hero .video-disclosure {
  color: #f3ead8;
}

.watch {
  max-width: 60rem;
}

#your-videos .your-use {
  display: block;
}

/* Blog page ------------------------------------------------------- */

.blog-latest h2 {
  margin: 0.25rem 0 0.75rem;
}

.blog-older-heading {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.4rem;
}

.blog-item .post-meta {
  display: inline-block;
  min-width: 10rem;
  margin: 0 0.75rem 0 0;
  font-family: var(--sans, inherit);
  font-size: 0.9rem;
  font-weight: 400;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 0.5rem 0 1rem;
}

.blog-filter[hidden],
.blog-item[hidden] {
  display: none;
}

.blog-filter label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.blog-count {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
}
