/* ===== ViseVersa landing page ===== */

:root {
  --gold: #c8862c;          /* matches the logo */
  --gold-soft: #d9a04a;
  --ink: #0a0d10;           /* near-black backdrop */
  --ink-2: #11161b;
  --paper: #ebe6dd;         /* warm off-white text */
  --paper-dim: rgba(235,230,221,.72);
  --paper-faint: rgba(235,230,221,.45);
  --line: rgba(235,230,221,.16);
  --line-strong: rgba(235,230,221,.32);
  --danger: #e57373;
  --ok: #8fcf9a;
  --radius: 10px;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Body has no opaque background so the fixed photo behind shows through.
   Fallback color lives on html only and is dark in case the photo fails. */
html {
  background:
    radial-gradient(ellipse at 50% 40%, #2a3540 0%, #131a21 50%, #07090c 90%) center/cover no-repeat,
    #060a0e;
}
body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Background: the moody water photo, fixed behind everything ---- */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;                                  /* sits at the back of normal flow */
  background: url("assets/hero.jpg") center 55% / cover no-repeat;
}
/* On narrow phones, switch to scroll attachment for iOS quirks */
@media (max-width: 640px) {
  .hero-bg { background-attachment: scroll; }
}

/* Very light vignette — just enough to keep text readable. No heavy darkening. */
.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;                                  /* over the photo, under the page */
  background:
    radial-gradient(ellipse at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,.10) 60%, rgba(0,0,0,.30) 100%);
  pointer-events: none;
}

/* Make sure the actual page content sits above the photo + overlay */
.page { position: relative; z-index: 2; }

/* ---- Page layout ---- */
.page {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px 48px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.logo {
  width: clamp(168px, 26.4vw, 240px);
  height: auto;
  /* Subtle glow so the gold sits on the dark photo */
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.65)) drop-shadow(0 0 1px rgba(200,134,44,.25));
}

/* ---- Hero (full-bleed photo area) ---- */
.hero {
  text-align: center;
  min-height: 100vh;       /* photo dominates the first fold */
  min-height: 100svh;       /* mobile safe viewport */
  padding: 56px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.scroll-hint {
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* Form section — visually separated from the hero photo */
.form-section {
  padding-top: 8px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}
.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.45);
}
.lede {
  font-size: 17px;
  color: var(--paper);
  max-width: 560px;
  margin: 0 auto 14px;
  text-shadow: 0 1px 12px rgba(0,0,0,.65);
}

/* ---- Form ---- */
.form {
  margin-top: 0;
  text-align: left;
  background: rgba(8, 11, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .row.two { grid-template-columns: 1fr; }
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field > span,
.field legend {
  display: block;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.muted { color: var(--paper-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 11px 13px;
  font: inherit;
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.06);
}
.field textarea { resize: vertical; min-height: 56px; }

fieldset.group {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}

/* Chip-style multi-select */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--paper-dim);
  background: rgba(255,255,255,.03);
  transition: all .15s ease;
}
.chip:hover span { color: var(--paper); border-color: var(--paper-faint); }
.chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #161108;
  font-weight: 600;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Submit button */
.btn {
  display: inline-block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 18px;
  background: var(--gold);
  color: #14100a;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 22px rgba(200,134,44,.25);
}
.btn:hover { background: var(--gold-soft); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-msg {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--paper-dim);
}
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }

/* Footer */
.foot {
  text-align: center;
  color: var(--paper-faint);
  font-size: 13px;
  margin-top: auto;
}
.foot p { margin: 0; }
