.pen-order-page {
  --qo-preview-navy: #061b35;
  --qo-preview-navy-soft: #0c2949;
  --qo-preview-blue: #1d5d91;
  --qo-preview-line: #c8d4df;
  --qo-preview-mist: #eef3f7;
  --qo-preview-paper: #fff;
  --qo-preview-ink: #07182f;
  --qo-preview-muted: #5c6d80;
}

.pen-order-page {
  margin: 0;
  min-width: 320px;
  color: var(--qo-preview-ink);
  background: #eaf0f5;
}

.pen-order-page *,
.pen-order-page *::before,
.pen-order-page *::after { box-sizing: border-box; }

.pen-order-page button,
.pen-order-page h1,
.pen-order-page h2,
.pen-order-page p,
.pen-order-page figure { margin-top: 0; }

.pen-order-page .site-header {
  position: relative;
  z-index: 10;
}

.qo-preview-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 83% 26%, rgba(93, 139, 178, .32), transparent 31%),
    linear-gradient(118deg, #061b35 0%, #0b2c4d 64%, #123e64 100%);
}

.qo-preview-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(216, 224, 232, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(216, 224, 232, .035), 0 0 0 92px rgba(216, 224, 232, .025);
}

.qo-preview-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: end;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 66px;
}

.qo-preview-eyebrow {
  margin-bottom: 13px;
  color: var(--qo-preview-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.qo-preview-hero .qo-preview-eyebrow { color: #a8c5df; }

.qo-preview-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.055em;
}

.qo-preview-hero__lead {
  max-width: 760px;
  margin-bottom: 0;
  color: #d4e0eb;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.qo-preview-hero__note {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(216, 224, 232, .28);
  background: rgba(4, 20, 39, .46);
  backdrop-filter: blur(10px);
}

.qo-preview-hero__note strong { font-size: 15px; }
.qo-preview-hero__note span { color: #afc1d1; font-size: 13px; line-height: 1.55; }

.qo-preview-workspace {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--qo-preview-line);
  background: var(--qo-preview-paper);
  box-shadow: 0 24px 60px rgba(6, 27, 53, .12);
}

.qo-preview-format-stage {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  min-height: 570px;
  border: 1px solid var(--qo-preview-line);
  background: #f5f8fa;
}

.qo-preview-format-stage__media {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 52px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(218, 228, 237, .54)), #e6edf3;
  border-right: 1px solid var(--qo-preview-line);
}

.qo-preview-format-stage__product {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(6, 27, 53, .15));
}

.qo-preview-format-stage__media figcaption {
  margin-top: 20px;
  color: #60758a;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.qo-preview-format-stage__content {
  min-width: 0;
  align-self: center;
  padding: clamp(28px, 5vw, 66px);
}

.qo-preview-format-stage__content h2 {
  margin-bottom: 20px;
  color: var(--qo-preview-ink);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.qo-preview-format-stage__content > p {
  margin-bottom: 0;
  color: var(--qo-preview-muted);
  line-height: 1.65;
}

.qo-preview-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.qo-preview-terms span {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--qo-preview-line);
  color: #53687d;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.35;
}

.qo-preview-terms b {
  color: var(--qo-preview-navy);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.qo-preview-meridian-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #25394f;
  pointer-events: none;
}

.qo-preview-country-flags { display: inline-flex; align-items: center; gap: 4px; }
.qo-preview-flag {
  position: relative;
  width: 16px;
  height: 11px;
  display: inline-block;
  overflow: hidden;
  border: 1px solid rgba(7, 24, 47, .16);
  box-shadow: 0 1px 2px rgba(7, 24, 47, .08);
}
.qo-preview-flag--switzerland { background: #d52b1e; }
.qo-preview-flag--switzerland::before,
.qo-preview-flag--switzerland::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.qo-preview-flag--switzerland::before { width: 9px; height: 3px; }
.qo-preview-flag--switzerland::after { width: 3px; height: 8px; }
.qo-preview-flag--germany { background: linear-gradient(to bottom, #161616 0 33.33%, #c8102e 33.33% 66.66%, #ffce00 66.66% 100%); }

.pen-order-hero .qo-preview-hero__inner {
  min-height: 330px;
}

.pen-order-workspace {
  margin-top: -26px;
  margin-bottom: 30px;
}

.candidate-tools {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 30px 0 14px;
}

.candidate-tools label {
  display: grid;
  gap: 8px;
  flex: 1;
  max-width: 540px;
  color: var(--qo-preview-ink);
  font-weight: 800;
}

.candidate-tools input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--qo-preview-line);
  border-radius: 0;
  background: #fff;
  font: inherit;
}

.candidate-tools > span {
  color: var(--qo-preview-muted);
  font-weight: 700;
}

.candidate-catalogue {
  border: 1px solid var(--qo-preview-line);
  background: #fff;
}

.pen-catalogue-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(150px, .8fr) 100px 86px 100px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--qo-preview-line);
}

.pen-catalogue-row:last-child { border-bottom: 0; }
.pen-catalogue-row strong { color: var(--qo-preview-ink); }
.pen-catalogue-row small { display: block; margin-top: 3px; color: var(--qo-preview-muted); }
.pen-catalogue-row label { margin: 0; }
.pen-catalogue-row input {
  width: 74px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--qo-preview-line);
  font: inherit;
}

.pen-catalogue-row button,
.candidate-draft form button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--qo-preview-navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.pen-catalogue-row button:disabled,
.candidate-draft form button:disabled { opacity: .45; cursor: not-allowed; }

.candidate-draft {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
  gap: 40px;
  margin-bottom: 30px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--qo-preview-line);
  background: #fff;
  box-shadow: 0 22px 54px rgba(6, 27, 53, .1);
}

.candidate-draft h2 {
  margin: 6px 0 12px;
  color: var(--qo-preview-ink);
  font-size: clamp(32px, 4vw, 52px);
}

.candidate-draft p { color: var(--qo-preview-muted); line-height: 1.55; }
.pen-order-line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--qo-preview-line); }
.pen-order-line small { display: block; margin-top: 4px; color: var(--qo-preview-muted); }
.pen-order-line button { border: 0; background: transparent; color: #8b2f2f; font-weight: 800; cursor: pointer; }
.candidate-total { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px; background: var(--qo-preview-mist); color: var(--qo-preview-ink); }
.candidate-draft form { display: grid; gap: 14px; margin-top: 18px; }
.candidate-draft label { display: grid; gap: 6px; color: var(--qo-preview-ink); font-weight: 800; }
.candidate-draft input { min-height: 46px; padding: 8px 10px; border: 1px solid var(--qo-preview-line); font: inherit; }
.candidate-result { min-height: 24px; font-weight: 800; }
.pen-order-disclosure { margin: 14px 0 0; font-size: 13px; }
.pen-order-boundary { margin: 0; padding: 22px; color: var(--qo-preview-muted); }
.pen-order-back { display: inline-flex; margin-top: 20px; color: var(--qo-preview-navy); font-weight: 800; }

.qo-preview-meridian-identity-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--qo-preview-line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 27, 53, .08);
}

.qo-preview-meridian-identity-strip .qo-preview-meridian-mark {
  position: static;
  display: inline-flex;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.qo-preview-meridian-identity-strip .qo-preview-meridian-mark > img { flex: 0 0 auto; width: 25px; height: 25px; }
.qo-preview-meridian-identity-strip .qo-preview-meridian-mark strong { display: block; font-size: 8.5px; line-height: 1.25; }
.qo-preview-meridian-locations { flex: 0 0 auto; gap: 10px; }
.qo-preview-meridian-location { display: inline-flex; align-items: center; gap: 5px; color: #52687d; font-size: 9px; font-weight: 750; white-space: nowrap; }

.pen-order-research-notice {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 48px;
  padding: 20px 24px;
  color: #fff;
  background: var(--qo-preview-navy);
}

.pen-order-research-notice strong { flex: 0 0 210px; text-transform: uppercase; letter-spacing: .12em; }
.pen-order-research-notice span { color: #c6d4e0; }

@media (max-width: 760px) {
  .qo-preview-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .qo-preview-format-stage { grid-template-columns: 1fr; min-height: 0; }
  .qo-preview-format-stage__media { min-height: 300px; padding: 22px; border-right: 0; border-bottom: 1px solid var(--qo-preview-line); }
  .qo-preview-format-stage__media img { max-height: 300px; }
  .qo-preview-format-stage__content { padding: 28px 20px; }
  .qo-preview-terms { grid-template-columns: 1fr; }
  .qo-preview-terms span { min-height: 58px; }
  .pen-order-hero .qo-preview-hero__inner { min-height: 0; }
  .pen-order-workspace { margin-top: -16px; }
  .candidate-tools { align-items: stretch; flex-direction: column; }
  .pen-catalogue-row { grid-template-columns: 1fr 90px; gap: 8px 14px; }
  .pen-catalogue-row > :nth-child(2),
  .pen-catalogue-row > :nth-child(3) { grid-column: 1; }
  .pen-catalogue-row > label,
  .pen-catalogue-row > button { grid-column: 2; }
  .candidate-draft { grid-template-columns: 1fr; }
  .qo-preview-meridian-identity-strip { align-items: flex-start; flex-direction: column; gap: 10px; }
  .qo-preview-meridian-locations { width: 100%; justify-content: flex-start; }
  .pen-order-research-notice { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pen-order-research-notice strong { flex-basis: auto; }
}
