*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-white: #ffffff;
  --color-black: #2e2A2b;
  --color-greige: #aea08f;
  --color-greige-hover: #BFAF9C;
  --color-bg: #ffffff;
  --color-border: #aea08f;
  --color-muted: #2e2A2b;
  --color-input-bg: #f6f6f6;
  --color-error: #c0392b;
  --font: 'DM Sans', sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: #aea08f;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

/* ── PAGE WRAPPER ── */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  background: var(--color-white);
  box-shadow: 0 0 80px rgba(63, 63, 63, 0.5);
}

/* ── LEFT PANEL ── */
.panel-left {
  display: flex;
  flex-direction: column;
  padding: 48px 56px 40px;
  background: var(--color-white);
  position: relative;
  z-index: 1;
}

/* ── LOGO ── */
.logo {
  margin-bottom: auto;
  padding-bottom: 65px;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* ── CONTENT ── */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.headline {
  font-size: clamp(42px, 5vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: 20px;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #7a7a7a;
  max-width: 100%;
  margin-bottom: 25px;
}

/* ── FORM ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

/* Honeypot — visually hidden but not display:none (Netlify needs it in DOM) */
.hidden {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-submit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #aaa;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--color-greige);
}

input.error {
  border-color: var(--color-error);
}

.btn-submit {
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-greige);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.btn-submit:hover {
  background: var(--color-greige-hover);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--color-greige);
  outline-offset: 2px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── FORM ERROR ── */
.form-error {
  font-size: 13px;
  color: var(--color-error);
  min-height: 18px;
  margin-bottom: 4px;
  text-align: center;
}

.form-disclaimer {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 4px;
}

/* ── SOCIAL ── */
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  text-decoration: none;
}

.social-icon svg,
.social-icon img {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: filter 0.2s;
}

.social-icon:hover svg,
.social-icon:hover img {
  filter: brightness(1.1);
}

.social-handle {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
}

/* ── FOOTER ── */
.footer {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
}

/* ── RIGHT PANEL (image) ── */
.panel-right {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
}

.panel-right .logo {
  position: absolute;
  bottom: 40px;
  right: 48px;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ── SUCCESS STATE ── */
.success-msg {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: #f0ede8;
  border-left: 3px solid var(--color-greige);
  border-radius: 8px;
  margin-bottom: 10px;
}

.success-msg.visible {
  display: flex;
}

.success-msg strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
}

.success-msg span {
  font-size: 13px;
  color: #666;
}

/* ── TABLET (iPad portrait ~768px) ── */
@media (max-width: 900px) {
  body {
    align-items: flex-start;
    background: var(--color-white);
  }

  .page {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-height: 100vh;
    box-shadow: none;
  }

  .panel-left {
    display: contents;
  }

  .panel-left > .logo {
    order: 1;
    background: var(--color-white);
    padding: 24px 50px 24px;
    margin-bottom: 0;
  }

  .panel-right {
    order: 2;
    min-height: 400px;
  }

  .panel-left > .content {
    order: 3;
    background: var(--color-white);
    padding: 40px 48px 0;
  }

  .panel-left > .footer {
    order: 4;
    background: var(--color-white);
    padding: 0 48px 40px;
  }

  .logo img {
    height: 28px;
    width: auto;
    display: block;
  }


  .form-submit-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input[type="email"] {
    border-radius: 8px;
  }

  .btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
  }
}

/* ── MOBILE (iPhone ~390px) ── */
@media (max-width: 600px) {
  body {
    background: var(--color-white);
    text-align: center;
  }

  .page {
    display: flex;
    flex-direction: column;
  }

  .panel-left {
    display: contents;
  }

  .panel-left > .logo {
    order: 1;
    background: var(--color-white);
    padding: 24px 24px 24px;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .panel-right {
    order: 2;
    min-height: 380px;
  }

  .panel-left > .content {
    order: 3;
    background: var(--color-white);
    padding: 32px 24px 0;
  }

  .panel-left > .footer {
    order: 4;
    background: var(--color-white);
    padding: 0 24px 32px;
  }

  .logo img {
    height: 28px;
    width: auto;
    display: block;
  }


  .body-text {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .social {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
