:root {
  --royal:     #063d96;
  --royal-ink: #042a69;
  --sky:       #d6eef9;
  --ink:       #1a1e24;
  --mid:       #7c7d7a;
  --line:      #d8d3cd;
  --gold:      #c9a24b;
  --gold-soft: #e4c88a;
  --cream:     #F8F4EE;
  --serif-display: "Playfair Display", Georgia, serif;
  --serif-script:  "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; width: 100%; max-width: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Split layout ─────────────────────────────────────────────────────────── */
.page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left panel ───────────────────────────────────────────────────────────── */
.panel-left {
  flex: 0 0 52%;
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Right panel ──────────────────────────────────────────────────────────── */
.panel-right {
  flex: 0 0 48%;
  background: var(--sky);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.panel-right__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  padding: 60px 48px 32px;
}

/* ── Headline & description ───────────────────────────────────────────────── */
.page-headline {
  font-family: var(--serif-display);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 20px;
}

.page-desc {
  font-family: var(--serif-script);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 32px;
  opacity: .85;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.signup { width: 100%; }

.field {
  display: block;
  width: 100%;
  margin-bottom: 14px;
}

.field input {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  padding: 14px 16px;
  outline: none;
  border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
  display: block;
  width: 100%;
}
.field input::placeholder { color: var(--mid); font-weight: 400; font-family: var(--sans); opacity: 1; }
.field input:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(6,61,150,.1);
}
.field.err input { border-color: #b4382e; }
.field .err-msg { font-size: 11px; color: #b4382e; margin-top: 4px; display: none; }
.field.err .err-msg { display: block; }

/* ── Frequency ────────────────────────────────────────────────────────────── */
.freq-group { margin-bottom: 16px; }
.freq-label {
  font-size: 13px;
  color: var(--ink);
  opacity: .75;
  margin: 0 0 10px;
}
.freq-options { display: flex; gap: 24px; }
.freq-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  user-select: none;
}
.freq-opt input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(0,0,0,.25);
  border-radius: 50%;
  background: #fff;
  flex: 0 0 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s;
}
.freq-opt input[type="radio"]:checked { border-color: var(--royal); }
.freq-opt input[type="radio"]:checked::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--royal);
}

/* ── Consent ──────────────────────────────────────────────────────────────── */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.5;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  margin: 2px 0 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 2px;
  flex: 0 0 15px;
  transition: all .15s;
}
.consent input:checked { background: var(--royal); border-color: var(--royal); }
.consent input:checked::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Submit ───────────────────────────────────────────────────────────────── */
.submit {
  width: 100%;
  font-family: var(--serif-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(255,255,255,.75);
  color: var(--royal);
  border: 1px solid rgba(6,61,150,.3);
  padding: 16px 22px;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, border-color .2s, color .2s;
}
.submit:hover {
  background: var(--royal);
  color: #fff;
  border-color: var(--royal);
}
.submit:active { opacity: .9; }
.submit[disabled] { opacity: .6; cursor: default; }
.submit .spin {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(6,61,150,.3);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}
.submit.loading .spin { display: inline-block; }
.submit.loading .lbl { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form error banner ────────────────────────────────────────────────────── */
.form-error {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid #b4382e;
  color: #b4382e;
  font-size: 13px;
  border-radius: 3px;
}
.form-error.on { display: block; }

/* ── Success state ────────────────────────────────────────────────────────── */
.success { display: none; text-align: center; padding: 16px 8px; animation: fadeUp .5s ease both; }
.success.on { display: block; }
.signup.done .form-body { display: none; }
.success .seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: rgba(255,255,255,.8);
  display: grid;
  place-items: center;
  border: 1px solid rgba(6,61,150,.2);
}
.success .seal svg { color: var(--royal); }
.success h4 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--ink);
}
.success h4 em { font-family: var(--serif-script); font-style: italic; color: var(--royal); }
.success p { color: var(--ink); font-size: 14px; margin: 0 auto; max-width: 36ch; line-height: 1.6; opacity: .8; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Social links ─────────────────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--royal);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  transition: opacity .2s;
}
.social-links a svg { width: 14px; height: 14px; }
.social-links a:hover { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  padding: 18px 48px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  border-top: 1px solid rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}
.site-footer a { color: var(--mid); text-decoration: none; }
.site-footer a:hover { color: var(--royal); }
.site-footer .sep { opacity: .4; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .page { flex-direction: column; }

  .panel-left {
    flex: none;
    height: auto;
  }
  .hero-img { position: static; width: 100%; height: auto; object-fit: unset; }

  .panel-right { flex: none; min-height: unset; }
  .panel-right__inner { padding: 40px 28px 24px; justify-content: flex-start; max-width: 100%; }
  .site-footer { padding: 14px 28px; font-size: 10px; }
}

@media (max-width: 480px) {
  .panel-right__inner { padding: 32px 20px 20px; }
  .site-footer { padding: 14px 20px; }
  .freq-options { flex-direction: column; gap: 12px; }
}
