/* ==========================================================================
   SmarterSwipe Merchant Support — shared stylesheet
   Brand system per BRAND GUIDELINE - SMARTER SWIPE
     Mariner  #2951D5   primary, trust and action
     Melrose  #A5BAFF   soft accent, calm supporting tone
     Shark    #26262C   text and grounding
     Gallery  #EEEEEE   negative space
     White    #FFFFFF
     Gradients: Skybound Glow (#A5BAFF -> #2951D5), Deep Voltage (#2951D5 -> #26262C)
     Type: Sora (headings), Inter (body)
     Elements: rounded buttons and cards, thin line icons, subtle layered shadows
   ========================================================================== */

:root {
  /* brand */
  --mariner:    #2951D5;
  --melrose:    #A5BAFF;
  --shark:      #26262C;
  --gallery:    #EEEEEE;
  --white:      #FFFFFF;

  /* derived working tones */
  --mariner-dk: #1E3EA8;
  --mariner-dkr:#16307F;
  --mariner-wash: #EEF2FE;
  --ink:        var(--shark);
  --ink-soft:   #5E5E68;
  --ink-faint:  #8E8E99;
  --line:       #E2E2E8;
  --line-soft:  #ECECF0;
  --wash:       var(--gallery);
  --paper:      var(--white);
  --live:       #1BA97A;

  /* signature gradients from the brand guide */
  --skybound: linear-gradient(135deg, #A5BAFF 0%, #2951D5 100%);
  --voltage:  linear-gradient(150deg, #2951D5 0%, #1B2A66 62%, #26262C 100%);

  --display: "Sora", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  --wrap: 1160px;
  --radius-lg: 22px;
  --radius:    16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(38, 38, 44, 0.05);
  --shadow-md: 0 2px 6px rgba(38, 38, 44, 0.05), 0 14px 34px rgba(38, 38, 44, 0.07);
  --shadow-lg: 0 4px 12px rgba(38,38,44,0.06), 0 30px 60px -18px rgba(30,44,102,0.24);
  --ring: 0 0 0 3px var(--mariner-wash);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--mariner); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--mariner-dk); }

:focus-visible {
  outline: 3px solid var(--mariner);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--melrose); color: var(--shark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--shark);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- type */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.018em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.17rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mariner);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--mariner);
  border-radius: 2px;
  display: inline-block;
}
.eyebrow-quiet { color: var(--ink-faint); }
.eyebrow-quiet::before { background: var(--ink-faint); }

.fineprint {
  font-size: 0.83rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* --------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

/* brand lockup (uses the official combomark image) */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--shark);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--shark); }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-sub {
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mariner);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.1;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav a:not(.nav-call)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0; height: 2px;
  background: var(--mariner);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.nav a:not(.nav-call):hover { color: var(--ink); }
.nav a:not(.nav-call):hover::after { right: 0; }
.nav a.here { color: var(--ink); }
.nav a.here::after { right: 0; }

.nav-call {
  font-size: 0.87rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  border-radius: var(--radius-pill);
  padding: 9px 18px !important;
  background: var(--mariner);
  box-shadow: 0 2px 10px rgba(41,81,213,0.28);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.nav-call::before { content: "\260E"; margin-right: 7px; font-size: 0.9em; }
.nav-call:hover { background: var(--mariner-dk); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(41,81,213,0.34); }

/* --------------------------------------------------------- status strip */

.statusbar {
  background: var(--shark);
  color: #C4C4CC;
  font-size: 0.79rem;
}
.statusbar-inner {
  display: flex;
  align-items: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.statusbar b { color: var(--white); font-weight: 600; }
.statusbar-inner > span:last-child { margin-left: auto; }

.pip {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(27,169,122,0.6);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(27, 169, 122, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(27, 169, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 169, 122, 0); }
}

/* --------------------------------------------------------- sections */

.band { padding: 86px 0; position: relative; }
.band-wash { background: var(--gallery); }
.band-tight { padding: 52px 0; }
.band-head { max-width: 680px; margin-bottom: 46px; }

/* --------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 72px 0 84px;
}
/* aurora glow backdrop, pure CSS, sits behind hero content */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 620px;
  background:
    radial-gradient(48% 55% at 78% 18%, rgba(165,186,255,0.55) 0%, rgba(165,186,255,0) 60%),
    radial-gradient(46% 60% at 12% 8%, rgba(41,81,213,0.16) 0%, rgba(41,81,213,0) 55%);
  z-index: -1;
  pointer-events: none;
}
/* faint dotted grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background-image: radial-gradient(rgba(38,38,44,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 486px;
  gap: 56px;
  align-items: start;
}
.hero-copy p.lede { max-width: 44ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* trust chips under hero cta */
.trustline {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.trustline span { display: inline-flex; align-items: center; gap: 7px; }
.trustline svg { flex: 0 0 auto; }

.hero-facts {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fact-k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.fact-v {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.014em;
  margin: 0;
  line-height: 1.38;
}

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 14px 27px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--mariner);
  color: #fff;
  box-shadow: 0 2px 12px rgba(41, 81, 213, 0.28);
}
.btn-primary:hover {
  background: var(--mariner-dk);
  color: #fff;
  box-shadow: 0 8px 22px rgba(41, 81, 213, 0.34);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--mariner-wash); border-color: var(--melrose); color: var(--mariner-dk); }

.btn-block { width: 100%; }

/* --------------------------------------------------------- cards */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--skybound);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

.card-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mariner);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; color: var(--mariner-dk); }

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mariner);
  margin-bottom: 14px;
  display: block;
}

/* --------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--voltage);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(41,81,213,0.28);
}
.step-n {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mariner);
  margin: 0 0 6px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------- issue list */

.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.issues li {
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 0.99rem;
  transition: padding-left .18s ease;
}
.issues li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  width: 11px; height: 11px;
  border: 1.6px solid var(--mariner);
  border-radius: 50%;
  transition: background .18s ease, box-shadow .18s ease;
}
.issues li:hover { padding-left: 40px; }
.issues li:hover::before { background: var(--mariner); box-shadow: 0 0 0 4px var(--mariner-wash); }
.issues strong { font-weight: 600; color: var(--ink); }

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

.formcard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
.formcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(160deg, rgba(165,186,255,0.9), rgba(41,81,213,0.15) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.formcard h2 { font-size: 1.42rem; margin-bottom: 6px; }
.formcard > p.fineprint { margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.96rem;
  color: var(--ink);
  background: #FCFCFD;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mariner);
  box-shadow: var(--ring);
  background: #fff;
  outline: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional { font-weight: 400; color: var(--ink-faint); font-size: 0.78rem; }

/* consent blocks */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--gallery);
  margin-bottom: 14px;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin: 2px 0 0;
  accent-color: var(--mariner);
  cursor: pointer;
}
.consent label {
  font-size: 0.85rem;
  line-height: 1.58;
  color: var(--ink);
  cursor: pointer;
}
.consent a { font-weight: 600; }

/* --------------------------------------------------------- contact block */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.contact-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-item h3 {
  font-family: var(--body);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mariner);
  margin-bottom: 12px;
}
.contact-item p { font-size: 1.04rem; margin: 0; line-height: 1.5; }
.contact-item a { font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* --------------------------------------------------------- legal pages */

.legal { max-width: 780px; padding: 62px 0 88px; }
.legal h2 { font-size: 1.34rem; margin-top: 46px; }
.legal h3 { font-size: 1.04rem; margin-top: 26px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

.callout {
  border-left: 3px solid var(--mariner);
  background: var(--mariner-wash);
  padding: 20px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0;
}
.callout p { font-size: 0.95rem; }

.updated { font-size: 0.79rem; color: var(--ink-faint); letter-spacing: 0.03em; }

/* --------------------------------------------------------- cta band */

.cta {
  position: relative;
  background: var(--voltage);
  color: #fff;
  padding: 74px 0;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 120% at 88% 0%, rgba(165,186,255,0.35) 0%, transparent 60%);
  pointer-events: none;
}
/* subtle piggy watermark from the official symbol */
.cta::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -60px;
  width: 300px; height: 300px;
  background: url("assets/piggy-white.png") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}
.cta h2 { color: #fff; max-width: 20ch; position: relative; }
.cta p { color: var(--melrose); max-width: 52ch; position: relative; }
.cta .hero-actions { position: relative; }
.cta .btn-primary { background: var(--white); color: var(--mariner-dk); box-shadow: 0 8px 22px rgba(0,0,0,0.22); }
.cta .btn-primary:hover { background: var(--melrose); color: var(--mariner-dkr); }
.cta .btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: #fff; }

.cta-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* --------------------------------------------------------- footer (dark) */

.foot {
  background: var(--shark);
  color: #B8B8C2;
  padding: 66px 0 40px;
  font-size: 0.9rem;
}
.foot .wordmark { color: #fff; }
.foot .brand-sub { color: var(--melrose); border-left-color: rgba(255,255,255,0.18); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 42px;
}
.foot h4 {
  font-family: var(--body);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7C7C88;
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: #B8B8C2; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-about { color: #9A9AA6; font-size: 0.9rem; max-width: 34ch; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  color: #7C7C88;
  font-size: 0.8rem;
  display: flex;
  gap: 8px 26px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.foot-legal a { color: #9A9AA6; }
.foot-legal a:hover { color: #fff; }

/* --------------------------------------------------------- scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* --------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .steps, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .band { padding: 60px 0; }
  .hero { padding: 44px 0 52px; }
  .masthead-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px 18px; min-height: 0; }
  .nav { margin-left: 0; width: 100%; gap: 16px; }
  .nav-call { margin-left: auto; }
  .grid-2, .field-row, .hero-facts { grid-template-columns: 1fr; }
  .hero-facts { gap: 18px; }
  .formcard { padding: 26px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .brand-sub { display: none; }
  .statusbar-inner > span:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .pip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .contact-item:hover, .btn:hover, .nav-call:hover { transform: none; }
}
