@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --hn-bg: #fbf7f0;
  --hn-card: #ffffff;
  --hn-text: #332d29;
  --hn-muted: #776d66;
  --hn-border: #eadfd4;
  --hn-rose: #b96f7d;
  --hn-sage: #6f8f7b;
  --hn-sage-dark: #4f715c;
  --hn-radius: 22px;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--hn-bg);
  color: var(--hn-text);
  line-height: 1.5;
  padding: 28px 18px;
}

/* Hide native Listmonk logo from settings */
header img,
.logo img,
.brand img,
.navbar-brand img,
.public-logo,
.site-logo {
  display: none !important;
}

/* Hearts Notes intro */
.hn-brand-intro,
.hn-brand-footer {
  width: min(680px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hn-brand-intro {
  margin-bottom: 20px;
}

.hn-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 16px;
  text-decoration: none;
}

.hn-logo {
  display: block !important;
  width: 142px;
  max-width: 46vw;
  height: auto;
  margin: 0 auto;
}

.hn-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--hn-sage-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 13px;
}

.hn-brand-intro h1 {
  font-size: clamp(23px, 3.5vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 560px;
  margin: 0 auto 10px;
  color: var(--hn-text);
}

.hn-brand-intro p {
  font-size: clamp(15px, 1.9vw, 16px);
  color: var(--hn-muted);
  max-width: 560px;
  margin: 0 auto;
}

.hn-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.hn-trust-pill {
  border: 1px solid var(--hn-border);
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: var(--hn-muted);
  font-weight: 700;
}

/* Main Listmonk wrapper */
body > main,
body > .container,
body > .content,
#app {
  width: min(680px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Card */
form {
  background: var(--hn-card);
  border: 1px solid var(--hn-border);
  box-shadow: 0 18px 50px rgba(82, 62, 44, 0.08);
  border-radius: var(--hn-radius);
  padding: clamp(22px, 4vw, 32px);
  box-sizing: border-box;
}

h1,
h2,
h3 {
  color: var(--hn-text);
  letter-spacing: -0.03em;
  line-height: 1.18;
  font-weight: 800;
}

h1 {
  font-size: clamp(23px, 3.5vw, 31px);
}

h2 {
  font-size: clamp(21px, 3vw, 26px);
}

h3 {
  font-size: clamp(18px, 2.5vw, 21px);
}

p {
  color: var(--hn-muted);
}

label {
  display: block;
  font-weight: 700;
  color: var(--hn-text);
  margin-bottom: 8px;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  border: 1px solid var(--hn-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--hn-text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hn-sage);
  box-shadow: 0 0 0 4px rgba(111, 143, 123, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
  width: 19px;
  min-height: 19px;
  height: 19px;
  margin-right: 9px;
  accent-color: var(--hn-sage-dark);
}

button,
input[type="submit"],
.button,
a.button {
  min-height: 51px;
  border: 0;
  border-radius: 999px;
  background: var(--hn-sage-dark);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(79, 113, 92, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
a.button:hover {
  transform: translateY(-1px);
  background: #456451;
  box-shadow: 0 14px 28px rgba(79, 113, 92, 0.22);
}

button:focus-visible,
input[type="submit"]:focus-visible,
.button:focus-visible,
a.button:focus-visible {
  outline: 4px solid rgba(111, 143, 123, 0.28);
  outline-offset: 3px;
}

a {
  color: var(--hn-sage-dark);
  font-weight: 700;
}

.hn-brand-footer {
  margin-top: 22px;
  color: var(--hn-muted);
  font-size: 13px;
}

.hn-brand-footer a {
  color: var(--hn-sage-dark);
  text-decoration: none;
}

.hn-brand-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  body {
    padding: 22px 14px;
  }

  .hn-logo {
    width: 128px;
    max-width: 48vw;
  }

  .hn-brand-intro h1 {
    font-size: 24px;
  }

  form {
    padding: 22px 16px;
    border-radius: 20px;
  }

  button,
  input[type="submit"],
  .button,
  a.button {
    width: 100%;
  }
}