/*
 * The styles of the landing page of instant-pay.tech.
 *
 * The page is served as static files, so it carries its own palette instead of
 * the theme of a brand: the landing page belongs to the platform and must look
 * the same in every deployment.
 */

:root {
  color-scheme: light;

  --canvas: #f7f7fb;
  --surface: #ffffff;
  --surface-muted: #f1f1f7;
  --line: #e3e3ec;
  --content: #16161d;
  --content-muted: #4a4a57;
  --content-subtle: #6b6b7a;
  --brand: #4338ca;
  --brand-strong: #372fb0;
  --brand-soft: #eef0ff;
  --on-brand: #ffffff;
  --focus: #4338ca;
  --shadow: 0 1px 2px rgba(16, 16, 32, 0.06), 0 8px 24px rgba(16, 16, 32, 0.06);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --canvas: #0e0e14;
  --surface: #16161f;
  --surface-muted: #1c1c27;
  --line: #2a2a38;
  --content: #f2f2f7;
  --content-muted: #b6b6c4;
  --content-subtle: #8e8ea0;
  --brand: #8b8cf7;
  --brand-strong: #a5a6fb;
  --brand-soft: #1e1e33;
  --on-brand: #10101a;
  --focus: #a5a6fb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--content);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/*
 * Both languages stand in the markup, so a visitor without JavaScript and a
 * crawler see the whole content. Without a script the English tree stands; the
 * language of the document selects the tree that is shown.
 */
.lang[data-lang='en'] {
  display: inline;
}

.lang[data-lang='de'] {
  display: none;
}

:root[data-lang='en'] .lang[data-lang='en'] {
  display: inline;
}

:root[data-lang='en'] .lang[data-lang='de'] {
  display: none;
}

:root[data-lang='de'] .lang[data-lang='de'] {
  display: inline;
}

:root[data-lang='de'] .lang[data-lang='en'] {
  display: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 1.75rem;
  width: auto;
}

.brand-name {
  color: var(--content);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-accent {
  color: var(--brand);
}

.site-nav {
  display: none;
  margin-left: auto;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--content-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--content);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.site-nav + .header-actions {
  margin-left: 0;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--content-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.ghost-button:hover {
  color: var(--content);
  border-color: var(--brand);
}

.icon-button .icon-dark {
  display: none;
}

:root[data-theme='dark'] .icon-button .icon-light {
  display: none;
}

:root[data-theme='dark'] .icon-button .icon-dark {
  display: block;
}

/* Buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button-secondary {
  background: var(--surface);
  color: var(--content);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--content);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.button-large {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, var(--brand-soft), transparent 70%),
    var(--canvas);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 20ch;
}

.lead {
  max-width: 58ch;
  color: var(--content-muted);
  font-size: 1.0625rem;
}

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--content-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-row svg {
  color: var(--brand);
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-lead {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--content-muted);
}

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

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.375rem;
}

.card p {
  margin-bottom: 0.75rem;
  color: var(--content-muted);
  font-size: 0.9375rem;
}

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
}

/* Steps ------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  color: var(--content-muted);
  font-size: 0.875rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

/* Panels and facts -------------------------------------------------------- */

.panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 1rem;
}

.facts {
  margin: 0;
}

.fact {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: none;
}

.fact dt {
  color: var(--content-subtle);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: var(--content);
}

.fact dd p.note {
  margin: 0.5rem 0 0;
  color: var(--content-subtle);
  font-size: 0.8125rem;
}

.fact ul {
  margin: 0;
  padding-left: 1.125rem;
  color: var(--content-muted);
}

.panel-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.last-updated {
  margin: 1.5rem 0 0;
  color: var(--content-subtle);
  font-size: 0.875rem;
}

/* Call to action ---------------------------------------------------------- */

.cta-section {
  padding: 3.5rem 0;
  background:
    radial-gradient(50rem 24rem at 50% 120%, var(--brand-soft), transparent 70%),
    var(--canvas);
  text-align: center;
}

.cta-section p {
  margin-bottom: 1.5rem;
  color: var(--content-muted);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  color: var(--content-subtle);
  font-size: 0.8125rem;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: var(--content-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--content);
  text-decoration: underline;
}

/* Wide screens ------------------------------------------------------------ */

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }

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

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .fact {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 1.5rem;
  }

  .panel {
    padding: 2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .hero {
    padding: 5rem 0 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
