:root { --gutter: 16px; }
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; } }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.btn-navy {
  display: inline-flex; align-items: center; justify-content: center;
  background: #082a5f; color: #fff; font-weight: 600; border-radius: 5px;
  height: 46px; padding: 0 20px; font-size: 15.6px; transition: background .15s;
}
.btn-navy:hover { background: #0d3a80; }

.h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; color: #082a5f; font-size: 27.6px; line-height: 1.2; }
@media (min-width: 1024px) { .h2 { font-size: 25.3px; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.3px; font-weight: 600; color: #1456e0; }
.link-arrow::after {
  content: ""; width: 13.8px; height: 13.8px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .15s;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* Hero photo: diagonal left edge on desktop */
@media (min-width: 1024px) {
  .hero-photo { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
}

/* Feature strip */
.strip-item { display: flex; align-items: center; gap: 12px; padding-inline: 4px; }
@media (min-width: 1024px) {
  .strip-item { padding-inline: 20px; border-left: 1px solid #e2e8f0; }
  .strip-item:first-child { border-left: 0; padding-left: 0; }
}
.strip-ico { width: 29.9px; height: 29.9px; flex-shrink: 0; }

/* Cards */
.card-visual { position: relative; width: 218.5px; height: 135.7px; border-radius: 10px; padding: 14px 16px; box-shadow: 0 14px 24px -8px rgba(8, 42, 95, .45); }
.card-virtual { background: linear-gradient(135deg, #1d6bff 0%, #0b46d8 55%, #1a3fc0 100%); overflow: hidden; }
.card-virtual::before { content: ""; position: absolute; inset: auto -20% -40% 10%; height: 80%; background: rgba(255,255,255,.12); transform: skewY(-18deg); }
.card-physical { background: linear-gradient(145deg, #12306b, #0a1d4a); }
@media (max-width: 480px) {
  .card-visual { width: 172.5px; height: 110.4px; padding: 10px 12px; }
  .card-physical > span:nth-child(2) { top: 44px !important; }
}

/* Check icon */
.check { width: 20.7px; height: 20.7px; border-radius: 9999px; background: #3b82f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.500 4.500L19 7.500'/%3E%3C/svg%3E") center/70% no-repeat; flex-shrink: 0; }

/* Row link list */
.row-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-size: 13.8px; border-bottom: 1px solid #e2e8f0; transition: color .15s; }
.row-link.border-t { border-top: 1px solid #e2e8f0; }
.row-link::after { content: "›"; font-size: 18.4px; color: #0b1f3f; line-height: 1; }
.row-link:hover { color: #1456e0; }

/* Supplied card artwork, framed to show only the card itself. */
.card-visual {
  overflow: hidden;
  background-image: url('../img/card-visa.png');
  background-size: 138.42% 154.66%;
  background-position: 50% 47.58%;
  background-repeat: no-repeat;
}
.card-visual[data-network="mc"] {
  background-image: url('../img/card-mastercard.png');
}
.card-visual[data-network] {
  height: auto !important;
  aspect-ratio: 1138 / 644;
}
.card-visual > * { visibility: hidden; }
.card-visual::before { display: none; }

/* Steps */
.step { width: 25.3px; height: 25.3px; border-radius: 9999px; background: #1456e0; color: #fff; font-size: 13.8px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }

/* FAQ */
.faq { border-bottom: 1px solid #e2e8f0; }
.faq:first-child { border-top: 1px solid #e2e8f0; }
@media (max-width: 767px) { #faq > div:nth-child(2) .faq:first-child { border-top: 0; } }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px; font-size: 13.3px; color: #0b1f3f; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 13.8px; height: 13.8px; flex-shrink: 0; transition: transform .2s; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq[open] summary::after { transform: rotate(180deg); }
.faq p { padding: 0 12px 14px; font-size: 13.3px; line-height: 1.55; color: #4b5b73; }

/* Footer */
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 12.4px; color: #4b5b73; }
.foot-col h4 { font-size: 12.4px; font-weight: 700; color: #0b1f3f; margin-bottom: 2px; }
.foot-col a:hover { color: #1456e0; }

/* Slightly larger text on small screens for readability */
@media (max-width: 1023px) {
  .strip-item p:first-child { font-size: 14.7px; }
  .strip-item p + p { font-size: 13.3px; }
  .faq summary, .faq p, .row-link { font-size: 14.7px; }
}

/* ---------- Inner pages ---------- */
.feat-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; background: #fff; transition: box-shadow .2s, transform .2s; }
.feat-card:hover { box-shadow: 0 10px 24px -12px rgba(8,42,95,.3); transform: translateY(-2px); }
.feat-ico { width: 44px; height: 44px; border-radius: 10px; background: #eef4fd; display: grid; place-items: center; margin-bottom: 14px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #4b5b73; padding: 12px 16px; background: #f4f7fc; }
.tbl td { padding: 14px 16px; border-top: 1px solid #e2e8f0; }
.tbl td:first-child { font-weight: 500; }

.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.specs dt { color: #4b5b73; }
.specs dd { font-weight: 600; text-align: right; }

.faq-list .faq summary { font-size: 14px; padding: 16px 12px; }
.faq-list .faq p { font-size: 13.5px; }

.form-input { width: 100%; height: 44px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 12px; font-size: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.form-input { height: auto; }
.form-input:focus { outline: none; border-color: #1456e0; box-shadow: 0 0 0 3px rgba(20,86,224,.15); }
.form-input.invalid { border-color: #dc2626; }
.lbl { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.form-msg.ok { color: #047857; }
.form-msg.err { color: #dc2626; }

/* API */
.code-wrap { position: relative; margin: 12px 0; }
.code { background: #0b1b3a; color: #dbe7ff; border-radius: 10px; padding: 18px 20px; font-size: 12.5px; line-height: 1.65; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 600; color: #cfe0ff; background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 5px; }
.copy-btn:hover { background: rgba(255,255,255,.22); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eef4fd; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.code code { background: none; padding: 0; }
.verb { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.verb.get { background: #dbeafe; color: #1d4ed8; }
.verb.post { background: #d1fae5; color: #047857; }
.verb.patch { background: #fef3c7; color: #b45309; }
.tabs-bar { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; }
.tab { padding: 8px 14px; font-size: 13px; font-weight: 600; color: #4b5b73; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: #1456e0; border-color: #1456e0; }
.api-nav { display: block; padding: 6px 10px; border-left: 2px solid #e2e8f0; color: #4b5b73; }
.api-nav:hover, .api-nav.is-active { color: #1456e0; border-color: #1456e0; }
.scroll-mt-24 { scroll-margin-top: 90px; }


/* Network switch (Visa / Mastercard) */
.net-switch { display: inline-flex; align-items: center; padding: 4px 4px 4px 12px; border: 1px solid #e2e8f0; border-radius: 9999px; background: #fff; }
.net-switch button { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 9999px; color: #4b5b73; }
.net-switch button.is-active { background: #082a5f; color: #fff; }
