/* ==========================================================================
   Harava Group — Coming Soon
   Solid surfaces, heritage navy + champagne gold. Matches the master site's
   .btn / .eyebrow / .display language. No gradients, no glass.
   ========================================================================== */

:root {
  --navy: #0a2a63;
  --navy-900: #061a3d;
  --navy-800: #0d3477;
  --gold: #d9a441;
  --gold-bright: #f2cd7c;
  --gold-text: #7c5c12;
  --paper: #ffffff;
  --alabaster: #faf9f7;
  --ink: #14171c;
  --slate: #4b5158;
  --line: #e3e1dc;
  --line-strong: #cfccc5;
  --fg-invert: #ffffff;
  --fg-invert-muted: #b9c4dc;

  --font-display: "Noto Sans Math", "Harava", sans-serif;
  --font-body: "Google Sans", system-ui, sans-serif;
  --font-mono: "Roboto Mono", monospace;

  --gut: clamp(1.25rem, 0.5rem + 2.2vw, 4rem);
  --dur-fast: 180ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  color: var(--fg-invert);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-800) 100%);
}

img, svg { display: block; max-width: 100%; height: auto; }
input, button, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
.arw { display: inline-block; vertical-align: -0.12em; }

/* ---------- Layout ---------- */
.shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gut);
  display: flex;
  align-items: center;
}

/* ---------- Card (solid) ---------- */
.card {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 60px rgba(3, 12, 30, 0.35);
}

/* ---------- Brand lockup (centered logo only) ---------- */
.lockup {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.plate {
  flex: none;
  width: clamp(88px, 16vw, 128px);
  height: clamp(88px, 16vw, 128px);
  background: var(--paper);
  padding: 10px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.plate img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Eyebrow (master: no leading line) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin-bottom: 1.1rem;
}

/* ---------- Type ---------- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
h1 .accent { color: var(--gold-text); }

.lead {
  font-size: clamp(1.02rem, 1rem + 0.35vw, 1.13rem);
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

/* ---------- Form ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
label .req { color: var(--gold-text); }
label .opt { color: #9aa0a6; }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  background: var(--alabaster);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
input::placeholder { color: #a7adb3; }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 42, 99, 0.12);
}
select { appearance: none; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.5;
}
.consent input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--navy);
}
.consent a { color: var(--navy-700, #14439c); text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Button (master .btn-gold: solid, sweep-up fill) ---------- */
.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-bright);
  transform: translateY(101%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn .arw { transition: transform var(--dur-fast) var(--ease-out); flex: none; }
.btn:hover .arw { transform: translate(3px, -3px); }

.form-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--slate);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.form-note svg { flex: none; color: var(--gold-text); }

.status {
  margin-top: 1rem;
  font-size: 0.9rem;
  border-radius: 2px;
  padding: 0.8rem 0.95rem;
  display: none;
  border-left: 2px solid transparent;
}
.status.show { display: block; }
.status.ok  { background: #eef7f4; border-left-color: #1d7378; color: #14524f; }
.status.err { background: #fbf3e2; border-left-color: var(--gold); color: #6b4e0e; }

.field .err-msg { display: none; font-size: 0.76rem; color: var(--gold-text); }
.field.invalid .err-msg { display: block; }
.field.invalid input,
.field.invalid select { border-color: var(--gold); }

/* ---------- Footer ---------- */
.foot {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 0 var(--gut) clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(185, 196, 220, 0.7);
}
.foot .links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.foot a { color: rgba(242, 205, 124, 0.9); }
.foot a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Privacy page ---------- */
.legal {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut);
}
.legal .card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.legal h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.8rem 0 0.5rem;
}
.legal p, .legal li { color: var(--slate); font-size: 0.96rem; }
.legal p { margin-bottom: 0.8rem; }
.legal ul { list-style: square; padding-left: 1.2rem; margin-bottom: 0.8rem; }
.legal a { color: var(--navy-700, #14439c); text-decoration: underline; text-underline-offset: 2px; }
.legal .updated { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa0a6; margin-bottom: 1.2rem; }
.legal .back { width: max-content; margin-top: 1.5rem; padding-inline: 1.5rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: rise 700ms var(--ease-out) forwards; }
  .reveal.d1 { animation-delay: 70ms; }
  .reveal.d2 { animation-delay: 140ms; }
  .reveal.d3 { animation-delay: 210ms; }
  .reveal.d4 { animation-delay: 280ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .foot { justify-content: center; text-align: center; }
}