/* ============================================================
   Proposal Builder — landing page
   Mirrors the Jupiera marketing surface: dark bg, glassmorphism,
   subtle animated colour orbs. Self-contained, no build step.
   ============================================================ */

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

a { color: inherit; text-decoration: none; }

input { font: inherit; }

/* ───── Tokens (marketing surface) ───── */
.marketing-surface {
  --bg:                oklch(0.08 0.01 260);
  --fg:                oklch(0.98 0 0);
  --muted:             oklch(0.68 0.02 260);

  --glass:             rgb(255 255 255 / 0.09);
  --glass-strong:      rgb(255 255 255 / 0.14);
  --glass-border:      rgb(255 255 255 / 0.20);
  --glass-border-2:    rgb(255 255 255 / 0.32);
  --glass-highlight:   rgb(255 255 255 / 0.18);

  --primary:           oklch(0.70 0.15 235);
  --primary-soft:      oklch(0.70 0.15 235 / 0.15);

  --display-xl:        4.5rem;
  --display-lg:        3.5rem;
  --display-md:        2.5rem;
  --body-lg:           1.125rem;
  --display-leading:   1.05;

  --max-w:             80rem;

  color-scheme:        dark;
  background:          var(--bg);
  color:               var(--fg);
  font-family:         -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text",
                       Roboto, Helvetica, Arial, sans-serif;
  line-height:         1.5;
  min-height:          100vh;
  position:            relative;
  overflow-x:          hidden;
}

/* ───── Animated orb background ───── */
.orb-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  will-change: transform, background;
}
.orb-cyan {
  width: 40vw; height: 40vw; left: -10vw; top: -10vw;
  background: radial-gradient(closest-side, oklch(0.70 0.15 195 / 0.45), transparent);
  animation: orb-drift 30s ease-in-out infinite, orb-cyan-cycle 24s ease-in-out infinite;
}
.orb-purple {
  width: 35vw; height: 35vw; right: -10vw; top: 20vh;
  background: radial-gradient(closest-side, oklch(0.55 0.22 300 / 0.40), transparent);
  animation: orb-drift 30s ease-in-out -10s infinite, orb-purple-cycle 28s ease-in-out -8s infinite;
}
.orb-warm {
  width: 30vw; height: 30vw; left: 20vw; bottom: -10vw;
  background: radial-gradient(closest-side, oklch(0.68 0.18 45 / 0.35), transparent);
  animation: orb-drift 30s ease-in-out -20s infinite, orb-warm-cycle 26s ease-in-out -16s infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20%      { transform: translate(10vw, -6vh) scale(1.12); }
  40%      { transform: translate(-8vw, 4vh) scale(0.88); }
  60%      { transform: translate(6vw, 8vh) scale(1.06); }
  80%      { transform: translate(-5vw, -4vh) scale(0.94); }
}
@keyframes orb-cyan-cycle {
  0%, 100% { background: radial-gradient(closest-side, oklch(0.70 0.15 195 / 0.45), transparent); }
  33%      { background: radial-gradient(closest-side, oklch(0.65 0.18 215 / 0.50), transparent); }
  66%      { background: radial-gradient(closest-side, oklch(0.72 0.13 175 / 0.42), transparent); }
}
@keyframes orb-purple-cycle {
  0%, 100% { background: radial-gradient(closest-side, oklch(0.55 0.22 300 / 0.40), transparent); }
  33%      { background: radial-gradient(closest-side, oklch(0.50 0.25 320 / 0.45), transparent); }
  66%      { background: radial-gradient(closest-side, oklch(0.58 0.20 280 / 0.38), transparent); }
}
@keyframes orb-warm-cycle {
  0%, 100% { background: radial-gradient(closest-side, oklch(0.68 0.18 45 / 0.35), transparent); }
  33%      { background: radial-gradient(closest-side, oklch(0.65 0.20 25 / 0.40), transparent); }
  66%      { background: radial-gradient(closest-side, oklch(0.72 0.15 65 / 0.32), transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* ───── Brand mark ───── */
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-mark__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}
.brand-mark__logo--sm { width: 1.5rem; height: 1.5rem; }
.brand-mark {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.125rem;
  color: var(--fg);
}
.brand-mark--sm { font-size: 0.95rem; }

/* ───── Nav ───── */
.site-nav { position: relative; z-index: 20; }
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
}
.site-nav__links {
  display: none;
  gap: 2rem;
  align-items: center;
}
.site-nav__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 200ms;
}
.site-nav__links a:hover { color: var(--fg); }

.site-nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  background: var(--glass);
  color: var(--fg);
}
.site-nav__mobile {
  border-top: 1px solid var(--glass-border);
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* The HTML `hidden` attribute defaults to display:none, but our explicit
   display:flex above wins. Restore the intended hide behavior. */
.site-nav__mobile[hidden] { display: none; }
.site-nav__mobile a {
  color: var(--fg);
  font-size: 1rem;
}
@media (min-width: 768px) {
  .site-nav__links { display: flex; }
  .site-nav__menu-btn { display: none; }
  /* Always hide the mobile drawer on desktop — even if it was left open
     from a viewport resize, the desktop nav already shows the same links. */
  .site-nav__mobile { display: none; }
}

/* ───── Layout helpers ───── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 10;
}
.section--hero { padding-top: 4rem; padding-bottom: 6rem; }
@media (min-width: 640px) { .section--hero { padding-top: 6rem; } }
.section--cta  { padding-top: 6rem; padding-bottom: 6rem; }

/* ───── Hero ───── */
.hero {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, var(--display-xl));
  font-weight: 600;
  line-height: var(--display-leading);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero__sub {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: rgb(255 255 255 / 0.80);
}

/* ───── Email form ───── */
.email-form {
  margin: 2rem auto 0;
  max-width: 28rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(20px);
}
.email-form input[type="email"] {
  flex: 1;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: 0;
  color: var(--fg);
  outline: none;
  font-size: 0.95rem;
}
.email-form input::placeholder { color: rgb(255 255 255 / 0.45); }
.email-form button {
  padding: 0.625rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 150ms;
}
.email-form button:hover { opacity: 0.85; }
.email-form__hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--muted);
  min-height: 1.2em;
}
@media (max-width: 480px) {
  .email-form { flex-direction: column; }
}

/* ───── Section heading ───── */
.section-heading {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.section-heading--left { text-align: left; margin-left: 0; }
.section-heading__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
}
.section-heading__title {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 4vw, var(--display-md));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ───── Prose block (centered paragraph stack) ───── */
.prose-block {
  max-width: 48rem;
  margin: 3rem auto 0;
  text-align: center;
}
.prose-block__lede {
  font-size: 1.25rem;
  color: var(--fg);
}
.prose-block__body {
  margin-top: 1rem;
  font-size: var(--body-lg);
  color: var(--muted);
  line-height: 1.6;
}

/* ───── Grid ───── */
.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: 1fr 1fr 1fr; } }

.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ───── Icon card ───── */
.icon-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  transition: border-color 200ms, background 200ms;
}
.icon-card h3 em { font-style: italic; font-weight: 600; }
.icon-card:hover {
  border-color: var(--glass-border-2);
  background: var(--glass-strong);
}
.icon-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
}
.icon-card__icon svg { width: 1.25rem; height: 1.25rem; }
.icon-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.icon-card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ───── Step card ───── */
.step-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  position: relative;
}
.step-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.08);
  letter-spacing: -0.05em;
  line-height: 1;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ───── Two-column split ───── */
.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col__copy p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--body-lg);
  line-height: 1.6;
}
.two-col__copy .section-heading { margin-bottom: 1rem; }
.two-col__tag {
  margin-top: 1.5rem !important;
  font-weight: 600;
  color: rgb(255 255 255 / 0.85) !important;
  font-size: 0.95rem !important;
}

/* ───── Glass card (the split-section aside list) ───── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.glass-card__row h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.glass-card__row p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ───── Audience card (small icon + label) ───── */
.audience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  backdrop-filter: blur(20px);
}
.audience-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}
.audience-card__icon svg { width: 1.25rem; height: 1.25rem; }
.audience-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
}

/* ───── FAQ ───── */
.faq {
  margin-top: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq__item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 200ms;
}
.faq__item:hover { border-color: var(--glass-border-2); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--fg);
  list-style: none;
  font-size: 0.95rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  font-weight: 300;
  transition: transform 200ms;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ───── CTA band ───── */
.band {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border-2);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
}
.band__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.band__sub {
  font-size: var(--body-lg);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.email-form--band {
  background: rgb(0 0 0 / 0.25);
}

/* ───── Misc ───── */
.text-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 150ms, border-color 150ms;
}
.text-link:hover { color: var(--fg); border-bottom-color: var(--glass-border-2); }

/* ───── Button ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  border-radius: 6px;
  transition: opacity 150ms;
}
.btn:hover { opacity: 0.85; }
.btn--xl {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ───── Footer ───── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
  margin-top: 6rem;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
