:root {
  --ink: #181B1D;
  --ink-soft: #4A5257;
  --sky: #5CB6D7;
  --sky-deep: #1B6F8F;
  --mist: #EEF5F8;
  --line: #D8E3E8;
  --paper: #FFFFFF;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Lexend", "Segoe UI", Arial, sans-serif; font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.top .logo img { width: 168px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--sky-deep); }

/* buttons */
.btn { display: inline-block; font-family: "Lexend", "Segoe UI", Arial, sans-serif; font-weight: 500; font-size: 16px; text-decoration: none; padding: 13px 22px; border-radius: 6px; border: 2px solid var(--ink); }
.btn-solid { background: var(--ink); color: #FFFFFF; }
.btn-solid:hover { background: #2D3236; border-color: #2D3236; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--mist); }
.top .btn { padding: 9px 16px; font-size: 15px; }
.top nav a.btn-solid, .top nav a.btn-solid:hover { color: #FFFFFF; }

/* hero: the name change */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.change { font-family: "Lexend", "Segoe UI", Arial, sans-serif; margin-bottom: 28px; }
.change .old { display: inline-block; position: relative; font-size: clamp(34px, 5vw, 56px); font-weight: 500; color: #9AA5AB; line-height: 1; }
.change .old::after { content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 4px; background: var(--sky); transform-origin: left center; animation: strike 0.7s 0.4s ease-out both; }
.change .to { display: block; font-size: 17px; color: var(--ink-soft); margin: 14px 0 12px; font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; }
.change .new { width: min(460px, 100%); animation: arrive 0.6s 1s ease-out both; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.hero .lead { color: var(--ink-soft); font-size: 19px; max-width: 34em; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero figure { margin: 0; }
.hero figure img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* existing merchants */
.merchants { background: var(--mist); padding: 80px 0; }
.merchants .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.merchants h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 16px; }
.merchants .intro p { color: var(--ink-soft); }
.same { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.same li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 24px; border-top: 1px solid var(--line); }
.same li:first-child { border-top: 0; }
.same .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); position: relative; margin-top: 2px; }
.same .tick::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.same b { display: block; font-family: "Lexend", "Segoe UI", Arial, sans-serif; font-weight: 500; }
.same span { color: var(--ink-soft); font-size: 16px; }
.same li.changes .tick { background: var(--ink); }
.signin { margin-top: 24px; font-size: 16px; }

/* what PointePay is */
.about { padding: 88px 0 40px; }
.about .head { max-width: 640px; margin-bottom: 40px; }
.about h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.about .head p { color: var(--ink-soft); }
.trades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.trades li { margin: 0; }
.trades img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.trades h3 { font-size: 18px; margin: 12px 0 2px; }
.trades p { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }

/* hardware */
.hardware { padding: 56px 0 88px; }
.hardware .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 24px; align-items: stretch; }
.hardware figure { margin: 0; background: var(--mist); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.hardware .shot { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.hardware figure img { mix-blend-mode: multiply; max-height: 280px; width: auto; }
.hardware figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }
.hardware figcaption b { color: var(--ink); font-family: "Lexend", "Segoe UI", Arial, sans-serif; font-weight: 500; display: block; font-size: 16px; }

/* markets + contact */
.contact { background: var(--ink); color: #FFFFFF; padding: 80px 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.contact p { color: #C9D3D8; }
.contact a { color: var(--sky); }
.markets { list-style: none; margin: 0; padding: 0; }
.markets li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid #343B40; }
.markets li:last-child { border-bottom: 1px solid #343B40; }
.markets .name { font-family: "Lexend", "Segoe UI", Arial, sans-serif; font-weight: 500; font-size: 19px; }
.markets .links { display: flex; gap: 16px; font-size: 16px; flex-wrap: wrap; justify-content: flex-end; }
.mail { margin-top: 28px; font-size: 19px; }
.book { margin-top: 14px; font-size: 16px; }
.formbox { background: #FFFFFF; border-radius: 12px; padding: 20px; color: var(--ink); }
.where { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.where button { font: 500 14px "Lexend", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; cursor: pointer; }
.where button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.frame { min-height: 640px; }
.frame iframe { width: 100%; height: 720px; border: 0; display: block; }

/* footer */
.foot { padding: 36px 0 48px; font-size: 15px; color: var(--ink-soft); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); }

/* legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal .meta { color: var(--ink-soft); margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: #2F3539; }
.legal p + p { margin-top: 12px; }

@media (max-width: 960px) {
  .hero .wrap, .merchants .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .trades { grid-template-columns: repeat(2, 1fr); }
  .hardware .wrap { grid-template-columns: 1fr 1fr; }
  .hardware figure:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .top nav a:not(.btn) { display: none; }
  .top .logo img { width: 140px; }
  .hero { padding: 44px 0 56px; }
  .trades { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hardware .wrap { grid-template-columns: 1fr; }
  .markets li { flex-direction: column; align-items: flex-start; }
  .markets .links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .change .old::after, .change .new { animation: none; }
}
