* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Revolut-style two-mode canvas: true black storytelling, white catalogue */
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --card: #16181a;
  --card-light: #1c1e21;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-soft: #8d969e;
  --green: #4ade80;
  --red: #e23b4a;
  --amber: #ec7e00;

  /* white catalogue band (legal pages, feature bands) */
  --canvas-light: #ffffff;
  --ink: #191c1f;
  --ink-muted: #505a63;
  --hairline-light: #e2e2e7;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

button:disabled,
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted-soft);
  margin-bottom: 8px;
}

.subtext {
  color: var(--muted);
  font-size: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

button {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--canvas-light);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), opacity 0.15s var(--ease-out);
}

button:hover {
  opacity: 0.88;
}

button.secondary {
  background: var(--card-light);
  color: var(--text);
  border: 1px solid var(--border);
}

button.secondary:hover {
  background: var(--card);
  opacity: 1;
}

button.loading {
  opacity: 0.7;
  cursor: wait;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 3000;
}

.successToast {
  background: #10291b;
  color: #8ff0b2;
  border: 1px solid #1f7a46;
}

.errorToast {
  background: #2a1212;
  color: #ff9a9a;
  border: 1px solid #8f2b2b;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.18s var(--ease-out);
}

.modalCard {
  width: min(480px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: slideUp 0.22s var(--ease-out);
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modalHeader h2 {
  margin: 0;
  font-size: 18px;
}

.modalHeader button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  background: var(--card-light);
  color: var(--text);
  border-radius: 50%;
}

/* ── Fee / info cards ────────────────────────────────────────────────────── */

.adminCard {
  background: var(--canvas-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.adminCard h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.infoCardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.infoCard {
  display: block;
  background: var(--canvas-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.infoCard:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.infoCard h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.infoCard p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.feeList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feeItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f4f4f4;
  border-radius: var(--radius-sm);
}

.feeItemName {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.feeItemMeta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feePill {
  font-size: 12px;
  font-weight: 600;
  background: rgba(25, 28, 31, 0.08);
  color: var(--ink);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
}

.feePillFree {
  background: rgba(66, 134, 25, 0.12);
  color: #428619;
}

.feeInfoBtn {
  width: 20px;
  height: 20px;
  min-height: 0;
  min-width: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(25, 28, 31, 0.1);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  padding: 0;
}

.feeInfoBtn:hover {
  background: rgba(25, 28, 31, 0.18);
  opacity: 1;
}

/* ── Legal / catalogue pages (white band) ───────────────────────────────── */

body.lightPage {
  background: var(--canvas-light);
  color: var(--ink);
  min-height: 100vh;
}

.legalHeroBand {
  background: var(--bg);
  color: var(--text);
}

.legalPage {
  padding: 50px clamp(24px, 5vw, 64px);
}

.legalPage a {
  color: var(--ink);
  text-decoration-color: rgba(25, 28, 31, 0.35);
}

.legalPage a:hover {
  text-decoration-color: currentColor;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 0 clamp(24px, 5vw, 64px) 24px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--text);
}

.legalHero {
  padding: 24px clamp(24px, 5vw, 64px) 56px;
}

.legalHero .eyebrow {
  color: var(--muted-soft);
}

.legalHero h1 {
  color: var(--text);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.legalMeta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.legalBody h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--ink);
}

.legalBody p,
.legalBody li {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legalBody ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legalBody a {
  color: var(--ink);
  text-decoration-color: rgba(25, 28, 31, 0.35);
}

.cookieTable {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.cookieTable th,
.cookieTable td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-light);
  color: var(--ink-muted);
}

.cookieTable th {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Landing page ────────────────────────────────────────────────────────── */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .stackCard {
    position: sticky;
    top: 0;
  }
}

.landingHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 64px);
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navToggle {
  display: none;
  width: 40px;
  min-height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.navToggle svg {
  width: 22px;
  height: 22px;
}

.navToggle .iconClose {
  display: none;
}

.navToggle.open .iconMenu {
  display: none;
}

.navToggle.open .iconClose {
  display: block;
}

.landingLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.landingLogo img {
  height: 26px;
  width: auto;
  display: block;
}

.landingHeader .btn {
  background: var(--canvas-light);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.landingNav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landingNav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.landingNav a:hover,
.landingNav a.active {
  color: var(--text);
}

@media (max-width: 780px) {
  .navToggle {
    display: flex;
  }

  .landingNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px clamp(24px, 5vw, 64px) 16px;
    z-index: 100;
  }

  .landingNav.open {
    display: flex;
  }

  .landingNav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .landingNav a:last-child {
    border-bottom: none;
  }
}

.landingHero {
  padding: clamp(40px, 10vh, 120px) clamp(24px, 5vw, 64px) 88px;
  max-width: 1200px;
}

.landingHero h1 {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.0;
  max-width: 14ch;
}

.landingHero h1 span {
  color: var(--text);
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

.landingHero p {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 42ch;
}

.landingCta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
}

.landingCta a {
  background: var(--canvas-light);
  color: var(--ink);
  border-radius: var(--radius-full);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s var(--ease-out);
}

.landingCta a:hover {
  opacity: 0.88;
}

.landingFeatures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 64px);
  background: var(--canvas-light);
  color: var(--ink);
  padding: 50px clamp(24px, 5vw, 64px);
}

.landingFeaturesHead h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.landingFeaturesHead p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 32ch;
}

.landingFeaturesNote {
  grid-column: 1 / -1;
  margin-top: 8px;
  max-width: 60ch;
  font-size: 13px;
  color: var(--ink-muted);
}

.landingFeatures a {
  color: var(--ink);
  text-decoration-color: rgba(25, 28, 31, 0.35);
}

.landingFeatures a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 900px) {
  .landingFeatures {
    grid-template-columns: 1fr;
  }
}

.faqList {
  max-width: 720px;
  border-top: 1px solid var(--hairline-light);
}

.faqItem {
  border-bottom: 1px solid var(--hairline-light);
}

.faqItem summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faqItem summary::-webkit-details-marker {
  display: none;
}

.faqItem summary .faqIcon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faqItem summary .faqIcon::before,
.faqItem summary .faqIcon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faqItem summary .faqIcon::before {
  width: 12px;
  height: 2px;
}

.faqItem summary .faqIcon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.15s var(--ease-out);
}

.faqItem[open] summary .faqIcon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faqItem p {
  padding-bottom: 20px;
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.landingFeatureList {
  display: grid;
  gap: 1px;
  background: var(--hairline-light);
  border-top: 1px solid var(--hairline-light);
  max-width: 720px;
}

.landingFeatureRow {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  background: var(--canvas-light);
}

.landingFeatureNum {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  flex-shrink: 0;
  padding-top: 2px;
}

.landingFeatureRow h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}

.landingFeatureRow p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 48ch;
}

.bigStatement {
  background: var(--bg);
  color: var(--text);
  text-align: center;
  padding: clamp(64px, 12vh, 140px) clamp(24px, 5vw, 64px);
}

.bigStatement p {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.bigStatement span {
  color: var(--text);
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

.landingFooter {
  margin-top: auto;
  background: var(--bg);
  padding: 32px clamp(24px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.landingFooter a {
  color: var(--muted);
  text-decoration: none;
}

.landingFooter a:hover {
  color: var(--text);
}

.landingFooterLinks {
  display: flex;
  gap: 20px;
}

@media (max-width: 680px) {
  .landingHeader {
    padding: 20px;
  }

  .landingHero {
    padding: 24px 24px 56px;
  }

  .landingFeatures {
    padding: 56px 24px;
  }

  .applyFieldRow {
    grid-template-columns: 1fr;
  }
}

/* ── Merchant application form (white band) ─────────────────────────────── */

.merchantGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .merchantGrid {
    grid-template-columns: 1fr;
  }
}

.loginForm input,
.loginForm select,
.loginForm textarea {
  width: 100%;
  background: #f4f4f4;
  border: 1px solid var(--hairline-light);
  height: 52px;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  margin-bottom: 14px;
  transition: border-color 0.15s var(--ease-out);
}

.loginForm select {
  appearance: none;
  cursor: pointer;
}

.loginForm textarea {
  height: auto;
  min-height: 80px;
  padding: 14px 16px;
  resize: vertical;
}

.loginForm input:focus,
.loginForm select:focus,
.loginForm textarea:focus {
  border-color: var(--ink);
}

.applyFieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.applyFieldRow input {
  margin-bottom: 0;
}

.applyDivider {
  height: 1px;
  background: var(--hairline-light);
  margin: 6px 0 14px;
}

.applySuccess {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.successIcon {
  width: 56px;
  height: 56px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--green);
}

.linkButton {
  background: transparent !important;
  color: var(--ink) !important;
  text-decoration: underline;
  border: none;
  min-height: auto;
  padding: 10px 0;
  margin-top: 10px;
}

.linkButton:hover {
  background: transparent !important;
  opacity: 0.8;
}

button.dark {
  background: var(--bg);
  color: var(--text);
}

button.dark:hover {
  opacity: 0.88;
}

/* ── Maintenance banner ──────────────────────────────────────────────────── */

.maintenanceBanner {
  background: var(--amber);
  color: #1a1300;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
}
