@font-face {
  font-family: 'Rubik';
  src: url('/static/landing/fonts/Rubik-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --main: #262728;
  --btn: #2599ee;
  --system-secondary: #e6f5ff;
  --text-muted: #767f94;
  --footer-bg: #fff9f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Rubik, Arial, sans-serif;
  background: #fff;
  color: var(--main);
}

/* ── Top navbar (matches Flutter RegistrationLayout) ── */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.landing-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* ── Hero (yellow banner + B illustration — matches Flutter HomeScreen) ── */
.hero-section {
  width: 100%;
  background: #ffd262;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-stack {
  position: relative;
  overflow: visible;
}

.hero-content {
  padding: 32px 20px 20px;
  text-align: start;
}

.hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--main);
}

.hero-subtitle {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--main);
}

.hero-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 220px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(40, 6, 138, 0.15);
}

.hero-cta:hover {
  opacity: 0.92;
}

.hero-b-spacer {
  height: clamp(128px, 88vw, 240px);
  max-height: 240px;
}

.hero-b-wrap {
  position: absolute;
  left: 20px;
  right: auto;
  bottom: 0;
  width: min(calc(100% - 40px), 280px);
  line-height: 0;
  pointer-events: none;
}

.hero-b-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left bottom;
}

/* ── Value section ── */
.value-section {
  background: #fff;
  padding: 40px 24px;
}

.value-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.value-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--main);
}

.value-title-desktop {
  display: none;
}

.value-title-mobile {
  display: inline;
}

.reg-card-subtitle--desktop {
  display: none;
}

.reg-card-subtitle--mobile {
  display: block;
}

.value-body {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #000;
}

/* ── Registration section ── */
.registration-section {
  background: #fff;
  padding: 40px 24px 64px;
}

.registration-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.registration-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--main);
  text-align: center;
}

.launch-banner {
  margin: 12px auto 0;
  max-width: 100%;
}

.launch-banner--desktop {
  display: none;
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
}

.launch-banner--desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.launch-banner--desktop span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--main);
  text-align: center;
}

.launch-banner--mobile {
  display: block;
  width: 100%;
  height: auto;
}

.registration-body {
  margin: 20px auto 0;
  max-width: 900px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.reg-cards {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-card {
  background: var(--system-secondary);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.reg-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reg-card-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 9px;
}

.reg-card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reg-card-title {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--main);
  text-align: center;
}

.reg-card-subtitle {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--main);
  text-align: center;
}

.reg-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(38, 6, 138, 0.15);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.reg-card-btn:hover {
  opacity: 0.9;
}

.reg-card-btn:focus-visible {
  outline: 2px solid var(--btn);
  outline-offset: 2px;
}

/* ── Footer (matches Flutter registration footer) ── */
.brix-footer {
  position: relative;
  background: var(--footer-bg);
  overflow: hidden;
  color: var(--main);
}

.footer-watermark {
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 160px;
  max-width: 40vw;
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-logo {
  display: block;
  height: 32px;
  width: auto;
}

.footer-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--main);
}

.footer-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.footer-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.footer-item {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
}

.footer-label {
  font-weight: 700;
}

.footer-link {
  color: var(--btn);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-item--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.footer-credit {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 12px;
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(38, 39, 40, 0.35);
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: rgba(38, 39, 40, 0.55);
}

.footer-version {
  position: absolute;
  bottom: 6px;
  inset-inline-end: 12px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(38, 39, 40, 0.4);
}

@media (min-width: 600px) {
  .value-body {
    font-size: 20px;
    line-height: 1.6;
  }

  .value-title-desktop {
    display: inline;
  }

  .value-title-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    min-height: 420px;
  }

  .hero-stack {
    min-height: 420px;
  }

  .hero-content {
    position: absolute;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    width: 520px;
    max-width: 52%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-b-spacer {
    display: none;
  }

  .hero-b-wrap {
    position: absolute;
    left: 0;
    right: auto;
    top: 60px;
    bottom: 0;
    width: 420px;
    max-width: 42%;
  }

  .hero-b-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
  }

  .value-section {
    padding: 72px 24px;
  }

  .value-title {
    font-size: 40px;
  }

  .reg-card-subtitle--desktop {
    display: block;
  }

  .reg-card-subtitle--mobile {
    display: none;
  }

  .value-body {
    font-size: 20px;
  }

  .registration-section {
    padding: 64px 24px;
  }

  .registration-title {
    font-size: 40px;
  }

  .launch-banner--desktop {
    display: block;
  }

  .launch-banner--mobile {
    display: none;
  }

  .reg-cards {
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    min-height: 320px;
  }

  .reg-card {
    flex: 1;
    min-width: 0;
  }

  .reg-card-top {
    flex: 1;
    justify-content: flex-start;
  }

  .reg-card-title {
    font-size: 20px;
    font-weight: 600;
  }

  .reg-card-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
  }

  .reg-card-btn {
    margin-top: 16px;
    flex-shrink: 0;
  }

  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-tagline {
    font-weight: 700;
  }

  .footer-item--stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
  }
}

@media (max-width: 399px) {
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-b-wrap {
    left: 16px;
    width: min(calc(100% - 32px), 280px);
  }

  .value-section,
  .registration-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
