/* ==========================================================================
   Harava Group — Coming Soon (editorial / institutional)
   Heritage navy + champagne gold. Hairline rules, generous space, no glass.
   Shared by every brand domain (crededi / finsights / insights / proed).
   ========================================================================== */

: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;
  --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.5rem, 0.6rem + 2.6vw, 4.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rule: rgba(242, 205, 124, 0.28);
}

*, *::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.65;
  -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) 60%, 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; }

/* ---------- Inset hairline frame (certificate / institutional) ---------- */
.frame {
  position: fixed;
  inset: clamp(10px, 1.6vw, 22px);
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 5;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.75;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Layout ---------- */
.wrap {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gut);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

/* ---------- Brand lockup ---------- */
.lockup {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.plate {
  flex: none;
  width: clamp(58px, 7vw, 76px);
  height: clamp(58px, 7vw, 76px);
  background: var(--paper);
  padding: 7px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(242, 205, 124, 0.4);
}
.plate img { width: 100%; height: 100%; object-fit: contain; }
.brand-meta { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Type ---------- */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.3rem + 4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin-bottom: 1.35rem;
}
h1 .accent { color: var(--gold-bright); }

.lead {
  color: var(--fg-invert-muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  max-width: 46ch;
}

.inst {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(185, 196, 220, 0.7);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.inst::before { content: ""; width: 22px; height: 1px; background: var(--rule); }

/* ---------- Signup (no card — ruled fields) ---------- */
.signup {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-invert-muted);
}
label .req { color: var(--gold-bright); }
label .opt { color: rgba(185, 196, 220, 0.55); }

input[type="text"],
input[type="email"],
select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(185, 196, 220, 0.35);
  border-radius: 0;
  padding: 0.55rem 0 0.65rem;
  color: var(--fg-invert);
  transition: border-color 180ms var(--ease);
}
input::placeholder { color: rgba(185, 196, 220, 0.4); }
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
select { appearance: none; }
select option { color: var(--ink); background: var(--paper); }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--fg-invert-muted);
  line-height: 1.5;
}
.consent input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--gold);
}
.consent a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; }

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

.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 1rem 1.4rem;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 180ms var(--ease), transform 180ms var(--ease-out);
}
.btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn .arw { transition: transform 180ms var(--ease-out); }
.btn:hover .arw { transform: translateX(4px); }

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(185, 196, 220, 0.7);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.form-note svg { flex: none; color: var(--gold-bright); }

.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: rgba(29, 115, 120, 0.16); border-left-color: #8fd0d3; color: #d7f5f6; }
.status.err { background: rgba(217, 164, 65, 0.12); border-left-color: var(--gold); color: #ffe9c2; }

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

/* ---------- Footer ---------- */
.foot {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 1.25rem var(--gut) clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(185, 196, 220, 0.7);
}
.foot .links { display: flex; gap: 1.2rem; 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(3rem, 7vw, 5rem) var(--gut);
}
.legal h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin: 2.2rem 0 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.legal p, .legal li { color: var(--fg-invert-muted); font-size: 0.97rem; }
.legal p { margin-bottom: 0.9rem; }
.legal ul { list-style: square; padding-left: 1.2rem; margin-bottom: 0.9rem; }
.legal a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal .updated { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(185,196,220,0.6); margin-bottom: 1.5rem; }
.legal .back { display: inline-block; margin-top: 2rem; width: max-content; padding-inline: 1.4rem; }

/* ---------- 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: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .signup { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .foot { justify-content: center; text-align: center; }
  .frame { inset: 8px; }
}