:root {
  --bg: #030811;
  --ivory: #f3eadb;
  --ivory-soft: rgba(243, 234, 219, 0.8);
  --muted: rgba(243, 234, 219, 0.62);
  --gold: #d8b76f;
  --gold-bright: #f0c96d;
  --line: rgba(216, 183, 111, 0.58);
  --container: 1440px;
  --left: clamp(1.5rem, 9.4vw, 8.5rem);
  --top: clamp(2rem, 5.1vw, 4.6rem);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 74% 50%, rgba(39, 67, 93, 0.2), transparent 30rem),
    radial-gradient(circle at 15% 47%, rgba(155, 116, 43, 0.05), transparent 22rem),
    linear-gradient(120deg, #02060d 0%, var(--bg) 47%, #010408 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 89px 89px;
  mask-image: radial-gradient(circle at 57% 50%, black, transparent 74%);
  opacity: 0.14;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.43) 100%);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: var(--top) var(--left) clamp(2.5rem, 6vw, 5rem);
}

.brand {
  display: block;
  width: clamp(6.35rem, 7.35vw, 7.9rem);
  line-height: 0;
  text-decoration: none;
  filter: drop-shadow(0 0 1.25rem rgba(216, 183, 111, 0.12));
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hero {
  min-height: calc(100svh - var(--top) - clamp(5rem, 8.2vw, 7.6rem));
  display: grid;
  grid-template-columns: minmax(28rem, 0.96fr) minmax(28rem, 1.04fr);
  align-items: center;
  column-gap: clamp(4rem, 9.2vw, 9.5rem);
  padding-top: clamp(2.6rem, 4.2vh, 3.8rem);
}

.hero-copy {
  width: min(100%, 41rem);
  transform: translateY(0.1rem);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Bodoni 72", Didot, "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.78rem, 3.18vw, 3.72rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.034em;
  color: var(--ivory);
  text-wrap: balance;
}

h1 .headline-line {
  display: block;
  white-space: nowrap;
}

h1 em {
  color: var(--gold-bright);
  font-style: normal;
  text-shadow: 0 0 1.7rem rgba(240, 201, 109, 0.18);
}

.intro,
.action-line {
  margin: 0;
  max-width: 33rem;
  color: var(--ivory-soft);
  font-size: clamp(0.92rem, 0.96vw, 1.02rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.intro { margin-top: clamp(1.5rem, 2.1vw, 1.95rem); }

.action-line {
  margin-top: 1rem;
  color: var(--muted);
}

.signup-form {
  width: min(100%, 36rem);
  margin-top: clamp(1.6rem, 2.2vw, 2.05rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(8.2rem, 9.2vw, 9.5rem);
  gap: 0.86rem;
  align-items: start;
}

.name-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.signup-form input[type="email"],
.signup-form input[type="text"],
.signup-form button {
  min-height: 3.32rem;
  border-radius: 0;
  font: inherit;
}

.signup-form input[type="email"],
.signup-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.42);
  color: var(--ivory);
  padding: 0 1.14rem;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.016),
    0 0 2rem rgba(216, 183, 111, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signup-form input[type="email"]::placeholder,
.signup-form input[type="text"]::placeholder { color: rgba(243, 234, 219, 0.46); }

.signup-form input[type="email"]:focus,
.signup-form input[type="text"]:focus {
  border-color: rgba(240, 201, 109, 0.92);
  background: rgba(5, 12, 22, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(240, 201, 109, 0.08),
    0 0 2.2rem rgba(216, 183, 111, 0.1);
}

.signup-form input[aria-invalid="true"] { border-color: #f0a36d; }

.signup-form button {
  border: 1px solid rgba(246, 211, 125, 0.88);
  background:
    linear-gradient(135deg, rgba(249, 215, 129, 0.96), rgba(203, 155, 63, 0.96)),
    var(--gold);
  color: #090a0d;
  padding: 0 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow:
    0 0.7rem 2.2rem rgba(142, 99, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.signup-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 0.9rem 2.6rem rgba(142, 99, 29, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.signup-form button:active:not(:disabled) { transform: translateY(0); }
.signup-form button:disabled { cursor: wait; opacity: 0.76; }
.signup-form.has-submitted button:disabled { cursor: default; opacity: 1; }

.consent,
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(243, 234, 219, 0.48);
}

.consent {
  margin-top: -0.1rem;
  max-width: 33rem;
}

.form-status {
  min-height: 1.2em;
  color: var(--gold-bright);
}

.form-status.is-error { color: #f0a36d; }
.form-status.is-success { color: rgba(240, 201, 109, 0.92); }

.hero-visual {
  width: clamp(31rem, 39.4vw, 42.25rem);
  max-width: 100%;
  margin: 0;
  justify-self: center;
  align-self: center;
  transform: translate(0.3rem, 0.15rem);
  filter: saturate(1.02) contrast(1.03) drop-shadow(0 0 3.2rem rgba(216, 183, 111, 0.105));
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.visually-hidden,
.submission-frame,
.infomaniak-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1160px) {
  :root { --left: clamp(1.3rem, 6vw, 4rem); }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    row-gap: 2rem;
    align-items: start;
    padding-top: clamp(3rem, 6vw, 4.5rem);
  }

  .hero-copy { max-width: 42rem; }

  h1 {
    font-size: clamp(2.65rem, 7.2vw, 4.3rem);
  }

  h1 .headline-line { white-space: normal; }

  .hero-visual {
    width: min(42rem, 92vw);
    justify-self: start;
    transform: translateX(-4%);
    opacity: 0.88;
  }
}

@media (max-width: 650px) {
  :root { --top: 2rem; --left: 1.22rem; }

  .page-shell { padding-bottom: 2.2rem; }

  .brand { width: 6.75rem; }

  .hero {
    padding-top: 3rem;
    row-gap: 2.3rem;
  }

  h1 {
    font-size: clamp(2.3rem, 11.6vw, 3.05rem);
    line-height: 1.06;
  }

  .intro,
  .action-line { font-size: 0.96rem; }

  .desktop-break { display: none; }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }

  .name-fields {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .signup-form input[type="email"],
  .signup-form input[type="text"],
  .signup-form button { min-height: 3.32rem; }

  .hero-visual {
    width: 104vw;
    max-width: none;
    margin-top: -0.35rem;
    transform: translateX(-13%);
    opacity: 0.76;
  }
}

/* =============================================================================
 * Native Infomaniak embed — selector aliases.
 *
 * The original Dhimaia build styled a form with .signup-form. The WordPress
 * port uses .newsletter-form (the convention Infomaniak uses in its own
 * embed markup). The rules below mirror the .signup-form rules above so the
 * visual identity carries over to the native form 1:1, without rewriting the
 * upstream stylesheet.
 * ========================================================================= */

.newsletter-form {
  display: grid;
  gap: clamp(0.65rem, 0.9vw, 0.9rem);
  margin-top: clamp(1.5rem, 2.1vw, 2rem);
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"],
.newsletter-form button {
  height: 3.25rem;
  border-radius: 999px;
  font: inherit;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  padding: 0 1.2rem;
  color: var(--ivory);
  background: rgba(243, 234, 219, 0.04);
  border: 1px solid var(--line);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.newsletter-form input[type="email"]::placeholder,
.newsletter-form input[type="text"]::placeholder {
  color: rgba(243, 234, 219, 0.46);
}

.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="text"]:focus {
  border-color: var(--gold);
  background: rgba(243, 234, 219, 0.07);
}

/* First-name / last-name pair side-by-side on wide screens. */
.newsletter-form .name-fields {
  display: grid;
  gap: clamp(0.5rem, 0.9vw, 0.9rem);
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) {
  .newsletter-form .name-fields { grid-template-columns: 1fr; }
}

.newsletter-form button {
  cursor: pointer;
  padding: 0 1.4rem;
  color: #1a1106;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, filter 0.18s ease;
}

.newsletter-form button:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.newsletter-form button:active:not(:disabled) { transform: translateY(0); }
.newsletter-form button:disabled { cursor: wait; opacity: 0.76; }
.newsletter-form.has-submitted button:disabled { cursor: default; opacity: 1; }

/* Visually hidden helper (used for the form's accessible <label> elements). */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Ensure the hidden submission iframe stays out of the layout. */
iframe.submission-frame {
  position: absolute;
  width: 0; height: 0; border: 0;
  visibility: hidden;
}

/* =============================================================================
 * Confirmation pages (check-inbox + welcome)
 *
 * Centered single-column layout. Reuses the brand mark, palette, and Inter
 * typography from the landing so visitors stay in the same visual world after
 * submitting the newsletter form.
 * ========================================================================= */

.confirmation {
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 4.6rem) var(--left);
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  text-align: center;
}

.confirmation-brand {
  display: inline-block;
  width: clamp(6.5rem, 9vw, 8.5rem);
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  align-self: start;
  justify-self: start;
}
.confirmation-brand img { width: 100%; height: auto; display: block; }

.confirmation-card {
  align-self: center;
  max-width: 40rem;
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  justify-items: center;
}

.confirmation-mark {
  color: var(--gold);
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(216, 183, 111, 0.08);
  border: 1px solid rgba(216, 183, 111, 0.18);
}

.confirmation-mark--success {
  color: var(--gold-bright);
  background: rgba(240, 201, 109, 0.10);
  border-color: rgba(240, 201, 109, 0.22);
}

.confirmation-headline {
  font-family: "Cormorant Garamond", "Bodoni 72", Didot, "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 400;
  color: var(--ivory);
  margin: 0;
  text-wrap: balance;
}
.confirmation-headline em {
  color: var(--gold-bright);
  font-style: normal;
  text-shadow: 0 0 1.7rem rgba(240, 201, 109, 0.18);
}
.confirmation-headline .headline-line { display: block; }

.confirmation-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--ivory-soft);
  margin: 0;
  max-width: 32rem;
}

.confirmation-note {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 32rem;
}

.confirmation-actions { margin-top: clamp(0.75rem, 1.5vw, 1.25rem); }

.confirmation-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(216, 183, 111, 0.4);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.confirmation-link:hover {
  color: var(--gold-bright);
  border-color: rgba(240, 201, 109, 0.7);
}

@media (max-width: 650px) {
  .confirmation-brand { width: 5.75rem; margin-bottom: 2.25rem; }
  .confirmation-headline { font-size: clamp(2rem, 9vw, 2.6rem); }
  .desktop-break { display: none; }
}
