:root {
  --egg-blue: #1269f0;
  --egg-blue-dark: #0646b8;
  --egg-sky: #7ee7ff;
  --egg-sky-soft: #dff7ff;
  --egg-yellow: #ffd34d;
  --egg-ink: #102841;
  --egg-muted: #4c6478;
  --egg-card: rgba(255, 255, 255, 0.92);
  --egg-border: rgba(255, 255, 255, 0.72);
  --egg-shadow: 0 24px 70px rgba(18, 105, 240, 0.20);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Nunito", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--egg-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95) 0 18%, transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(255, 211, 77, 0.45) 0 14%, transparent 34%),
    linear-gradient(135deg, #e9fbff 0%, #a8efff 36%, #45bdf0 68%, #1269f0 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.38;
  z-index: 0;
}

body::before {
  top: -92px;
  left: -82px;
  background: rgba(255, 255, 255, 0.65);
}

body::after {
  right: -92px;
  bottom: -112px;
  background: rgba(255, 211, 77, 0.42);
}

a { color: inherit; }

.subscribe-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  position: relative;
  z-index: 1;
}

.subscribe-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.back-link,
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #0c3965;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(18, 105, 240, 0.12);
}

.subscribe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.hero-card,
.form-card {
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 247, 255, 0.92));
  border: 1px solid var(--egg-border);
  box-shadow: var(--egg-shadow);
  overflow: hidden;
}

.hero-card {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  align-content: center;
  min-height: 560px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 77, 0.96);
  color: #5c3a00;
  font-weight: 1000;
  box-shadow: 0 10px 24px rgba(255, 163, 26, 0.18);
}

.hero-card h1 {
  margin: 20px 0 14px;
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  color: #092f59;
}

.hero-card p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.24rem);
  line-height: 1.65;
  color: var(--egg-muted);
  font-weight: 750;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.promise-item {
  min-height: 116px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.promise-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.promise-item span {
  color: #527083;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 700;
}

.form-card {
  padding: clamp(18px, 3vw, 30px);
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: #0a3866;
}

.form-card > p {
  margin: 0 0 18px;
  color: #527083;
  line-height: 1.55;
  font-weight: 750;
}

.language-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.language-tab {
  appearance: none;
  border: 0;
  min-height: 52px;
  border-radius: 17px;
  background: transparent;
  color: #426780;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.language-tab:hover { transform: translateY(-1px); }

.language-tab.active {
  color: #063b73;
  background: linear-gradient(180deg, #fff3ad 0%, #ffd34d 100%);
  box-shadow: 0 10px 24px rgba(255, 163, 26, 0.22);
}

.subscribe-form-panel { display: none; }
.subscribe-form-panel.active { display: block; }

.form-note {
  margin: 18px 4px 0;
  color: #62788a;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 700;
}

/* MailerLite skin overrides scoped to this page. */
.mailerlite-shell .ml-form-embedContainer {
  display: block !important;
  margin: 0 !important;
  width: 100% !important;
}

.mailerlite-shell .ml-form-align-center {
  text-align: left !important;
}

.mailerlite-shell .ml-form-embedWrapper.embedForm,
.mailerlite-shell .ml-form-embedWrapper.embedDefault,
.mailerlite-shell .ml-form-embedWrapper.embedPopup {
  width: 100% !important;
  max-width: none !important;
}

.mailerlite-shell .ml-form-embedWrapper {
  width: 100% !important;
  max-width: none !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  overflow: hidden !important;
}

.mailerlite-shell .ml-form-embedBody,
.mailerlite-shell .ml-form-successBody {
  padding: 24px !important;
}

.mailerlite-shell .ml-form-embedContent h4,
.mailerlite-shell .ml-form-successContent h4 {
  color: #0a3866 !important;
  font-family: "Nunito", "Inter", system-ui, sans-serif !important;
  font-size: 1.55rem !important;
  font-weight: 1000 !important;
  letter-spacing: -0.03em !important;
}

.mailerlite-shell .ml-form-embedContent p,
.mailerlite-shell .ml-form-successContent p,
.mailerlite-shell .ml-form-embedPermissionsContent p {
  color: #526d7c !important;
  font-family: "Nunito", "Inter", system-ui, sans-serif !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}

.mailerlite-shell .ml-form-fieldRow input {
  border: 2px solid rgba(18, 105, 240, 0.16) !important;
  border-radius: 18px !important;
  min-height: 52px !important;
  padding: 13px 15px !important;
  font-family: "Nunito", "Inter", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

.mailerlite-shell .ml-form-embedSubmit button.primary {
  min-height: 54px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #1678ff 0%, #0b56d8 100%) !important;
  border: 0 !important;
  font-family: "Nunito", "Inter", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 1000 !important;
  box-shadow: 0 14px 28px rgba(18, 105, 240, 0.24) !important;
}

.mailerlite-shell .ml-form-embedSubmit button.primary:hover {
  background: linear-gradient(180deg, #0d6df5 0%, #0649be 100%) !important;
}

@media (max-width: 900px) {
  .subscribe-hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .subscribe-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 16px;
  }

  .subscribe-nav {
    align-items: stretch;
  }

  .back-link,
  .home-link {
    justify-content: center;
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .hero-card,
  .form-card {
    border-radius: 26px;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .language-picker {
    grid-template-columns: 1fr;
  }

  .mailerlite-shell .ml-form-embedBody,
  .mailerlite-shell .ml-form-successBody {
    padding: 18px !important;
  }
}


/* Simple subscribe patch v1.0.1 */
.subscribe-shell {
  width: min(680px, calc(100% - 28px));
  padding: 24px 0 36px;
}

.subscribe-nav {
  margin-bottom: 16px;
}

.subscribe-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-card,
.form-card {
  border-radius: 28px;
}

.hero-card {
  min-height: auto;
  padding: clamp(22px, 5vw, 34px);
}

.badge {
  padding: 7px 11px;
  font-size: 0.92rem;
}

.hero-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 8vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-card p {
  font-size: 1.02rem;
  line-height: 1.45;
}

.promise-grid {
  display: none;
}

.form-card {
  padding: clamp(18px, 5vw, 28px);
}

.form-card h2 {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  margin-bottom: 4px;
}

.form-card > p {
  margin-bottom: 14px;
  line-height: 1.35;
}

.language-picker {
  margin-bottom: 14px;
}

.form-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 620px) {
  .subscribe-shell {
    width: min(100% - 20px, 680px);
    padding-top: 14px;
  }

  .subscribe-nav {
    gap: 8px;
  }

  .back-link,
  .home-link {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .hero-card,
  .form-card {
    border-radius: 22px;
  }

  .hero-card {
    padding: 20px;
  }
}


/* Subscribe polish v1.2.10 — keep banner, reduce visual weight */
.hero-card {
  padding: clamp(18px, 4vw, 26px);
}

.badge {
  font-size: 0.84rem;
  font-weight: 800;
  padding: 6px 10px;
}

.hero-card h1 {
  margin: 12px 0 6px;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-card p {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 650;
}

.form-card h2 {
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 800;
}

.form-card > p {
  font-size: 0.95rem;
  font-weight: 650;
}

.language-tab {
  font-weight: 800;
}

@media (max-width: 620px) {
  .hero-card h1 {
    font-size: 1.55rem;
  }
}
