:root {
  --bg1: #2f6bff;
  --bg2: #2730ff;
  --text: #0b1020;
  --muted: #5b6378;
  --card: #ffffff;
  --border: rgba(11,16,32,.12);
  --shadow: 0 18px 50px rgba(11,16,32,.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background:
    radial-gradient(1100px 500px at 15% 10%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.signin {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

/* Main */
main {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 120px 18px 40px;
}

.card {
  width: min(980px, 100%);
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.left, .right {
  padding: 44px;
}

.left {
  border-right: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(39,48,255,.1);
  color: #1b23ff;
  font-weight: 700;
  font-size: 13px;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

/* Email form */
.form {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
}

.input input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
}

.btn {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #2730ff, #2f6bff);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

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

/* Right side */
.preview {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.domain {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain a {
  color: #1b23ff;
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
footer {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
}

footer a {
  color: rgba(255,255,255,.95);
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 860px) {
  .card-inner {
    grid-template-columns: 1fr;
  }

  .left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* --- Brevo form: make it match Renovate --- */
.brevo-wrap {
  margin-top: 18px;
}

/* Remove Brevo default panels unless needed */
#success-message,
#error-message {
  display: none;
  max-width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 0;
  border: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
}

/* Brevo toggles display via JS by adding inline styles; keep them pretty */
#success-message.sib-form-message-panel,
#success-message[style*="display: block"] {
  background: rgba(19, 206, 102, 0.12);
}

#error-message.sib-form-message-panel,
#error-message[style*="display: block"] {
  background: rgba(255, 73, 73, 0.12);
}

/* Kill Brevo's boxed container look */
#sib-container {
  background: transparent !important;
  border: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Make Brevo inputs obey your styling */
#sib-form .input {
  flex: 1 1 260px;
}

#sib-form input[type="email"],
#sib-form input[type="text"] {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}




#sib-form .btn {
  display: inline-block;
}
