/* Byonus marketing site — palette aligned with Customer App AppTheme */
:root {
  --primary: #0b2545;
  --secondary: #134074;
  --accent: #00a86b;
  --alert: #d90429;
  --bg: #f8f9fa;
  --ink: #1e2229;
  --muted: #5c6570;
  --border: #e2e5e9;
  --surface: #ffffff;
  --primary-soft: #e8eef5;
  --accent-soft: #e6f7f0;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 14px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(248, 249, 250, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
}

.nav-cta:hover {
  background: var(--secondary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(19, 64, 116, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(0, 168, 107, 0.18), transparent 50%),
    linear-gradient(155deg, #071828 0%, var(--primary) 42%, var(--secondary) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: rise 0.8s ease both;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-brand-name {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 28ch;
  line-height: 1.25;
  animation: rise 0.8s ease 0.12s both;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  animation: rise 0.8s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Sections ——— */
section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  max-width: 22ch;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.purpose {
  background: var(--surface);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }
}

.purpose-visual {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, var(--primary-soft), #fff 55%, var(--accent-soft));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.purpose-visual img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.12);
  background: #fff;
}

.purpose-visual .plus {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
}

.purpose-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.purpose-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 500;
}

.purpose-points li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ——— App panels ——— */
.app-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

.app-panel + .app-panel {
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .app-panel {
    grid-template-columns: 1fr;
  }
}

.app-intro img.icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem;
}

.app-intro h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.app-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 560px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-list li:hover {
  border-color: #c5d0de;
  transform: translateY(-2px);
}

.feature-list li img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.feature-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.feature-list span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.apps-band {
  background: var(--surface);
}

/* ——— Steps ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--primary);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ——— Privacy page ——— */
.page-hero {
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, var(--primary-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal {
  padding: 2.5rem 0 4rem;
}

.legal article {
  max-width: 720px;
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.legal p {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal .toc {
  margin: 1.25rem 0 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal .toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
}

.legal .toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .legal .toc ol {
    columns: 1;
  }
}

.legal .toc a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.legal .note {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
