:root {
  --ink: #102326;
  --ink-soft: #35565a;
  --paper: #fbfaf6;
  --paper-strong: #fffdf8;
  --line: #d8ded8;
  --navy: #0b2f33;
  --teal: #197b77;
  --mint: #d7eee4;
  --brand-orange: #fb810c;
  --brand-orange-dark: #d96f00;
  --coral: var(--brand-orange);
  --gold: #f0b85a;
  --sage: #6f8f72;
  --shadow: 0 18px 45px rgb(16 35 38 / 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 250 246 / 0.94);
  border-bottom: 1px solid rgb(216 222 216 / 0.78);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0;
}

.brand img {
  display: block;
  width: clamp(118px, 14vw, 172px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.nav-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--navy);
  border-radius: 14px;
  padding: 0;
  font: inherit;
  font-weight: 700;
  box-shadow: none;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle:hover {
  background: var(--mint);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before,
.nav-toggle[aria-expanded="true"]::after {
  display: block;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

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

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.45rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
}

.button {
  padding: 0.82rem 1.05rem;
  color: white;
  background: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: 0 10px 22px rgb(11 47 51 / 0.16);
}

.button:hover {
  background: #16474c;
}

.button.secondary {
  color: var(--navy);
  background: var(--paper-strong);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--teal);
}

.button.warm {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.button.warm:hover {
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
}

.button.customer {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.button.customer:hover {
  background: #126763;
  border-color: #126763;
}

.button:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button.is-loading,
button.is-loading {
  pointer-events: none;
}

.button-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgb(255 255 255 / 0.46);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: perkpass-spin 0.72s linear infinite;
}

.button.secondary .button-spinner,
button.secondary .button-spinner,
.small-button .button-spinner,
.text-link .button-spinner {
  border-color: rgb(11 47 51 / 0.22);
  border-top-color: currentColor;
}

.app-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  width: min(420px, calc(100vw - 2rem));
  padding: 0.92rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 900;
  line-height: 1.35;
}

.app-toast.is-success {
  color: #063c36;
  background: #d8f3e9;
  border: 1px solid #91d9c2;
}

.app-toast.is-error {
  color: #842616;
  background: #ffe5dc;
  border: 1px solid #e59a84;
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 2100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(720px, calc(100vw - 2rem));
  padding: 1rem;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.cookie-notice p {
  margin: 0;
}

.cookie-notice p + p {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.cookie-notice .text-link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@keyframes perkpass-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-spinner {
    animation: none;
  }
}

.nav-links a.button {
  color: white;
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.nav-links a.button:hover,
.nav-links a.button[aria-current="page"] {
  color: white;
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
}

.nav-links a.button.customer {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.nav-links a.button.customer:hover,
.nav-links a.button.customer[aria-current="page"] {
  color: white;
  background: #126763;
  border-color: #126763;
}

.text-link {
  color: var(--teal);
  min-height: auto;
}

.hero {
  min-height: calc(92svh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(251 250 246 / 0.98) 0%, rgb(251 250 246 / 0.91) 36%, rgb(251 250 246 / 0.48) 62%, rgb(16 35 38 / 0.16) 100%),
    url("merchant-counter-hero-v2.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.5rem;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
  padding: 4rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.hero-logo-heading {
  line-height: 0;
}

.hero-logo {
  display: block;
  width: clamp(14rem, 42vw, 31rem);
  height: auto;
  max-width: 100%;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
  font-size: 1.18rem;
}

.lede {
  margin: 1.2rem 0 0;
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--ink-soft);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.proof-strip {
  background: var(--navy);
  color: white;
}

.proof-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgb(255 255 255 / 0.2);
}

.proof-grid div {
  min-height: 120px;
  padding: 1.35rem;
  background: var(--navy);
}

.proof-grid strong {
  display: block;
  color: var(--mint);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.proof-grid span {
  color: rgb(255 255 255 / 0.78);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.alt {
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 1px 0 rgb(16 35 38 / 0.04);
}

.card.accent {
  border-top: 4px solid var(--teal);
}

.card.warm-accent {
  border-top: 4px solid var(--coral);
}

.card.gold-accent {
  border-top: 4px solid var(--gold);
}

.card p,
.feature-row p,
.timeline p,
.pricing-note p {
  color: var(--ink-soft);
}

.card p:last-child,
.feature-row p:last-child {
  margin-bottom: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--mint);
  font-weight: 900;
}

.workflow {
  counter-reset: workflow;
}

.workflow li {
  list-style: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.workflow li::before {
  counter-increment: workflow;
  content: counter(workflow);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.workflow h3 {
  margin-top: 0.2rem;
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgb(215 238 228 / 0.82), rgb(255 253 248 / 0.92) 45%, rgb(240 184 90 / 0.24)),
    var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  max-width: 960px;
}

.price-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.55fr);
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.price-card h2,
.price-card h3 {
  color: white;
}

.price {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  margin: 1.2rem 0;
}

.price strong {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
}

.price span {
  color: rgb(255 255 255 / 0.72);
  font-weight: 800;
}

.signup-flow {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.signup-progress {
  position: sticky;
  top: 96px;
  padding: 1rem;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signup-progress ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.signup-progress li {
  list-style: none;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 900;
}

.signup-progress li.is-current {
  color: var(--navy);
  background: var(--mint);
}

.signup-progress li.is-done {
  color: var(--teal);
}

.signup-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signup-step {
  position: relative;
  display: grid;
  gap: 1rem;
}

.signup-step.is-step-loading {
  min-height: 260px;
  align-content: center;
}

.signup-step.is-step-loading > :not(.signup-step-loading) {
  visibility: hidden;
}

.signup-step-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.signup-step-loading .button-spinner {
  width: 2rem;
  height: 2rem;
  color: var(--brand-orange);
  border-color: rgb(11 47 51 / 0.18);
  border-top-color: var(--brand-orange);
}

.signup-step h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.signup-step p {
  margin: 0;
  color: var(--ink-soft);
}

.signup-form {
  display: grid;
  gap: 1rem;
}

.signup-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 900;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid #c8d5d0;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.signup-form textarea {
  min-height: 96px;
  resize: vertical;
}

.signup-form input:focus,
.signup-form textarea:focus {
  outline: 3px solid rgb(240 184 90 / 0.45);
  border-color: var(--teal);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.billing-summary {
  display: flex;
  align-items: end;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}

.billing-summary strong {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.9;
}

.billing-summary span {
  padding-bottom: 0.2rem;
  color: rgb(255 255 255 / 0.74);
  font-weight: 900;
}

.plan-check {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem !important;
}

.plan-check input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.2rem;
}

.check-list {
  padding: 0;
  margin: 1rem 0 0;
}

.check-list li {
  list-style: none;
  position: relative;
  padding-left: 1.7rem;
  margin: 0.6rem 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--teal);
}

.callout {
  padding: 1.25rem;
  border: 1px solid rgb(25 123 119 / 0.35);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: rgb(215 238 228 / 0.48);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  padding: 1.25rem;
  border-left: 4px solid var(--sage);
  background: var(--paper-strong);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.legal-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--navy);
  background: var(--paper-strong);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.legal-tab[aria-selected="true"] {
  border-color: var(--teal);
  background: var(--mint);
}

.legal-panel {
  display: grid;
  gap: 1rem;
}

.legal-panel h2,
.legal-panel h3,
.legal-panel p {
  margin: 0;
}

.legal-panel h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.legal-panel h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.legal-panel .card {
  display: grid;
  gap: 0.75rem;
}

.legal-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.footer {
  padding: 3rem 0;
  background: var(--navy);
  color: white;
}

.footer-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.footer p {
  color: rgb(255 255 255 / 0.75);
  max-width: 620px;
}

.footer .copyright {
  margin: 0;
  font-weight: 700;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  justify-content: flex-end;
}

.footer a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--paper-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem;
    border-radius: var(--radius);
  }

  .nav-links .button {
    margin-top: 0.4rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgb(251 250 246 / 0.98) 0%, rgb(251 250 246 / 0.9) 52%, rgb(251 250 246 / 0.2) 78%, rgb(16 35 38 / 0.08) 100%),
      url("merchant-counter-hero-v2.png") center bottom / 100% auto no-repeat;
  }

  .hero-copy {
    padding: 3.5rem 0 10rem;
  }

  .proof-grid,
  .section-header,
  .grid.two,
  .grid.three,
  .price-panel,
  .signup-flow,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .signup-progress {
    position: static;
  }

  .signup-progress ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signup-progress li {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 0.5rem;
    font-size: 0.82rem;
    text-align: center;
  }

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

  .cookie-notice {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-notice-actions {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section-inner,
  .nav,
  .proof-grid,
  .footer-grid {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions,
  .section-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .signup-progress ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .cookie-notice-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
