:root {
  --by: #ffdc00;
  --by-dark: #ffc800;
  --ink: #171717;
  --muted: #66686d;
  --line: #dedede;
  --danger: #b82e2e;
  --success: #187343;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f5f4ef;
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, a { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #0b6fe8; outline-offset: 3px; }

.bln-page {
  min-height: 100vh;
  padding: clamp(16px, 4vw, 52px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 13% 89%, rgba(255, 220, 0, .22), transparent 27%),
    radial-gradient(circle at 91% 11%, rgba(255, 220, 0, .26), transparent 25%),
    #f5f4ef;
}
.bln-root {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.bln-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 590px;
  border: 1px solid #fff0ac;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(42, 35, 0, .13);
}

/* Shared brand */
.bln-brand {
  margin-bottom: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -.055em;
}
.bln-brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 50%;
  background: repeating-linear-gradient(-31deg, #151515 0 8px, #ffdc00 8px 17px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.bln-chip {
  width: fit-content;
  margin-bottom: 21px;
  border: 1px solid #efd26b;
  border-radius: 999px;
  padding: 9px 14px 8px;
  color: #554811;
  background: #fff4bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.bln-root h1 {
  margin: 0 0 21px;
  font-size: clamp(40px, 4.7vw, 62px);
  font-weight: 900;
  letter-spacing: -.058em;
  line-height: 1.01;
}
.bln-lead {
  margin: 0 0 30px;
  color: #292929;
  font-size: clamp(17px, 1.75vw, 22px);
  line-height: 1.45;
}

/* Entry screen: real form + cropped desktop/mobile art */
.bln-entry {
  display: grid;
  grid-template-columns: 53% 47%;
  grid-template-areas: "content art";
}
.bln-content--entry {
  grid-area: content;
  z-index: 2;
  padding: 54px clamp(42px, 5.1vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bln-art--entry {
  grid-area: art;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #ffe37b;
}
.bln-art--entry picture,
.bln-art--entry img { display: block; }
.bln-art--entry img {
  position: absolute;
  top: 0;
  right: 0;
  width: 226%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.bln-entry .bln-lead { max-width: 480px; }
.bln-entry .bln-brand { margin-bottom: clamp(48px, 6vw, 82px); }

.bln-form { width: 100%; max-width: 520px; }
.bln-inputs { margin-bottom: 17px; }
.bln-input-group { display: grid; gap: 10px; }
.bln-input-group > span,
.bln-label {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.bln-input-group input {
  width: 100%;
  min-height: 62px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0 19px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 20, 20, .035);
  font-size: 17px;
  outline: 0;
  transition: border .15s, box-shadow .15s;
}
.bln-input-group input:focus {
  border-color: #e2b900;
  box-shadow: 0 0 0 4px rgba(255, 220, 0, .2);
}
.bln-input-group input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(184, 46, 46, .1);
}
.bln-input-group input::placeholder { color: #aaa; }

.bln-cta {
  width: 100%;
  max-width: 520px;
  min-height: 66px;
  border: 0;
  border-radius: 18px;
  padding: 9px 10px 9px 27px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #111;
  background: linear-gradient(180deg, #ffdf16, #ffd000);
  box-shadow: 0 13px 24px rgba(229, 177, 0, .27);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.bln-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 28px rgba(229, 177, 0, .35);
}
.bln-arrow {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #171717;
  font-size: 25px;
  font-weight: 500;
}
.bln-submit { margin-bottom: 12px; }
.bln-helper {
  color: #707070;
  font-size: 12px;
  line-height: 1.45;
}
.bln-feedback {
  min-height: 20px;
  margin: 8px 0 0;
  display: none;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}
.bln-feedback.is-error { color: var(--danger); }
.bln-feedback.is-visible { display: block; }

/* Success screen: only the illustration area of the supplied banner is used. */
.bln-ready {
  min-height: 670px;
  padding: clamp(42px, 5.4vw, 70px);
  background:
    linear-gradient(90deg, #fff 0 55%, rgba(255,255,255,.76) 66%, rgba(255,255,255,.15) 100%),
    #fff8d9;
}
.bln-art--success {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 52%;
  height: 59%;
  overflow: hidden;
  pointer-events: none;
}
.bln-art--success::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0, transparent 22%);
}
.bln-art--success img {
  position: absolute;
  top: 0;
  right: 0;
  width: 218%;
  max-width: none;
  height: auto;
}
.bln-content--ready {
  position: relative;
  z-index: 2;
}
.bln-ready .bln-brand { margin-bottom: 48px; }
.bln-ready h1,
.bln-ready .bln-lead,
.bln-ready .bln-actions { max-width: 560px; }
.bln-actions {
  margin: 0 0 38px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.bln-note {
  max-width: 240px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.bln-divider {
  height: 1px;
  margin: 0 0 25px;
  background: linear-gradient(90deg, #dfcc73, transparent);
}
.bln-label { margin-bottom: 13px; font-size: 17px; }
.bln-field {
  border: 1.5px solid #dedede;
  border-radius: 19px;
  padding: 11px;
  display: flex;
  align-items: stretch;
  gap: 11px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 5px 20px rgba(20, 20, 20, .045);
}
.bln-url {
  min-width: 0;
  min-height: 76px;
  flex: 1;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  color: #333;
  background: #fafafa;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.52;
  text-decoration: none;
}
.bln-copy {
  min-width: 136px;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #1b1b1b;
  background: linear-gradient(180deg, #ffeb52, #ffd200);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.bln-copy:hover { background: #ffe763; }
.bln-copy.is-copied { color: var(--success); background: #e8f8ef; }
.bln-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bln-footer form { margin: 0; }
.bln-logout,
.bln-secondary {
  border: 0;
  border-bottom: 1px solid #202020;
  padding: 7px 0;
  color: #202020;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

/* Temporary mail failure */
.bln-waiting {
  min-height: 590px;
  padding: clamp(38px, 6vw, 76px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 88% 8%, #ffe75c, transparent 34%), #fff;
}
.bln-content--waiting { max-width: 750px; }
.bln-waiting .bln-brand { margin-bottom: 42px; }
.bln-loader {
  width: 64px;
  height: 64px;
  margin-bottom: 25px;
  border: 8px solid #eee9ca;
  border-top-color: var(--by);
  border-right-color: var(--ink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
  .bln-entry { grid-template-columns: 58% 42%; }
  .bln-content--entry { padding: 42px 36px; }
  .bln-brand { margin-bottom: 45px; }
  .bln-root h1 { font-size: clamp(38px, 5.8vw, 52px); }
  .bln-art--entry img { width: 278%; }
  .bln-ready { padding: 42px; }
  .bln-art--success { opacity: .78; }
}

@media (max-width: 680px) {
  .bln-page { padding: 12px; align-items: start; }
  .bln-banner { min-height: calc(100vh - 24px); border-radius: 24px; }
  .bln-entry {
    display: flex;
    flex-direction: column;
  }
  .bln-art--entry {
    height: 238px;
    flex: 0 0 238px;
    order: 0;
  }
  .bln-art--entry picture { position: absolute; inset: 0; }
  .bln-art--entry img {
    top: -69px;
    right: 0;
    width: 100%;
    height: auto;
    object-fit: initial;
  }
  .bln-content--entry {
    order: 1;
    padding: 23px 22px 31px;
    display: block;
  }
  .bln-brand { margin-bottom: 42px; font-size: 27px; }
  .bln-brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .bln-entry .bln-brand { margin-bottom: 43px; }
  .bln-chip { margin-bottom: 17px; font-size: 10px; }
  .bln-root h1 { margin-bottom: 22px; font-size: 35px; line-height: 1.04; }
  .bln-lead { font-size: 16px; }
  .bln-entry .bln-lead { display: none; }
  .bln-input-group input { min-height: 61px; font-size: 16px; }
  .bln-cta { min-height: 63px; border-radius: 17px; padding-left: 22px; font-size: 19px; }
  .bln-arrow { width: 47px; height: 47px; flex-basis: 47px; }

  .bln-ready {
    min-height: calc(100vh - 24px);
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .bln-art--success {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 230px;
    flex: 0 0 230px;
    order: 0;
    opacity: 1;
    background: #fff0a8;
  }
  .bln-art--success::after { display: none; }
  .bln-art--success img {
    top: 0;
    right: -3%;
    width: 214%;
  }
  .bln-content--ready { order: 1; padding: 25px 22px 30px; }
  .bln-ready .bln-brand { margin-bottom: 36px; }
  .bln-ready h1,
  .bln-ready .bln-lead,
  .bln-ready .bln-actions { max-width: none; }
  .bln-actions { margin-bottom: 31px; }
  .bln-note { max-width: none; }
  .bln-field { padding: 7px; flex-direction: column; }
  .bln-url { min-height: 104px; font-size: 12px; }
  .bln-copy { min-height: 48px; flex-direction: row; }
  .bln-footer { align-items: flex-start; }
  .bln-waiting { padding: 31px 22px; }
}

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