/*
Theme Name: XM Works Parent
Theme URI: https://www.xmworks.com/
Description: Corporate site for XM Works, Inc. — the company behind GlobeTrader — and The Works, our live export-management offer.
Version: 1.2.10
Author: XM Works, Inc.
Author URI: https://www.xmworks.com/
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: xmworks-parent
*/

:root {
  --navy: #0B1F3A;
  --navy-mid: #163056;
  --navy-soft: #243854;
  --red: #CD2027;
  --paper: #f6f5f2;
  --white: #ffffff;
  --ink: #1a2230;
  --muted: #5b6573;
  --line: #d9d6d0;
  --line-soft: #ebe8e2;
  --wide: 70rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--wide), calc(100% - 4.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .brand img,
.brand img,
.wordmark {
  display: block;
  height: 4.25rem;
  width: auto;
  max-height: 4.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 1.65rem;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red);
}

.site-main {
  padding: 0 0 6rem;
}

.hero {
  padding: 6.25rem 0 5.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.25rem;
  align-items: center;
}

.hero-inner {
  max-width: 38rem;
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 42% 48%;
  border-radius: 1.35rem;
  box-shadow: 0 22px 48px rgba(11, 31, 58, 0.16);
}

.kicker {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.plan-name {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.15rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--navy-soft);
  max-width: 36rem;
}

.rule {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 0 0 1.75rem;
  background: var(--red);
  border: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.85rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  color: var(--red);
  border-color: var(--red);
}

.section {
  padding: 5.25rem 0 0;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.path {
  padding: 2.4rem 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

.path + .path {
  border-left: 1px solid var(--line);
}

.path .kicker {
  margin-bottom: 0.85rem;
}

.path h2 {
  margin-bottom: 0.85rem;
}

.path p {
  color: var(--navy-soft);
  flex: 1;
}

.path .cta-row {
  margin-top: 1.5rem;
}

.posture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.posture-list li {
  padding: 1.5rem 1.6rem 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy);
}

.posture-list li:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line-soft);
}

.posture-list strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.packaging-note {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.plan-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 3.25rem;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.7rem 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan:hover,
.plan:focus-within {
  border-color: var(--navy);
}

.plan:has(input:checked),
.plan.is-selected {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.plan .plan-name {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
}

.plan .price {
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plan .commission {
  margin: 0.2rem 0 0.85rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.plan .plan-blurb {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.check-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 1px;
  background: var(--red);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison caption {
  caption-side: top;
  text-align: left;
  padding: 1.15rem 1.25rem 1rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
}

.comparison th,
.comparison td {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.comparison thead th {
  border-top: 0;
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: 0.98rem;
}

.comparison tbody th {
  font-weight: 500;
  color: var(--navy);
  width: 40%;
}

.comparison .group-row th {
  background: var(--paper);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.mark {
  color: var(--navy);
  font-size: 0.85rem;
}

.mark-no {
  color: #b4b1aa;
}

.apply-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.15rem 2.1rem 2.2rem;
  max-width: 40rem;
  margin-top: 0.4rem;
}

.apply-form {
  display: grid;
  gap: 1.05rem;
}

.apply-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}

.apply-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: 1px solid var(--navy);
  outline-offset: 1px;
  background: var(--white);
}

.apply-form textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.notice {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}

.notice-ok {
  background: #f3f6f1;
  color: #24331c;
  border-color: #c9d4bf;
}

.notice-err {
  background: #fbf1f1;
  color: #5c1a1d;
  border-color: #e4c4c5;
}

.site-footer {
  background: var(--navy);
  color: #c5cdd8;
  padding: 2.75rem 0 2.5rem;
  font-size: 0.88rem;
}

.site-footer a {
  color: #e4e9ef;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer .wrap {
  display: grid;
  gap: 0.45rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-top: 0.55rem;
}

.quiet {
  margin: 0.85rem 0 0;
  color: #8b96a6;
  font-size: 0.78rem;
  max-width: 42rem;
}

.page-main {
  padding: 4.75rem 0 6rem;
}

.page-main .narrow,
.page-main .content {
  max-width: 40rem;
}

.page-main .content {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.1rem 2.2rem;
}

.page-main h1 {
  margin-bottom: 1rem;
}

.page-main .content h2 {
  margin: 2rem 0 0.85rem;
}

.page-main .content h2:first-child {
  margin-top: 0;
}

.page-main .content ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.page-main .content li + li {
  margin-top: 0.4rem;
}

.page-main .content a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page-lead {
  max-width: 40rem;
  margin-bottom: 2.25rem;
  color: var(--navy-soft);
}

@media (max-width: 900px) {
  .plan-picker,
  .paths,
  .posture-list {
    grid-template-columns: 1fr;
  }

  .path + .path {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .posture-list li:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 100%;
  }

  .wrap {
    width: min(var(--wide), calc(100% - 2rem));
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 1.1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 3.5rem 0 3.1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding-top: 3.5rem;
  }

  .apply-form .row {
    grid-template-columns: 1fr;
  }

  .path {
    min-height: 0;
  }
}


/* Force header mark and hide leftover GlobeTrade disclaimer on cached HTML. */
.site-header .brand img,
.brand img,
.wordmark {
  display: block !important;
  height: 4.25rem !important;
  width: auto !important;
  max-height: 4.25rem !important;
}
.site-footer .quiet,
p.quiet {
  display: none !important;
}
