/* ============================================================
   3Degrees — Climate Strategy Brief LP
   Layout / page-chrome styles (Pardot LAYOUT tab)
   Form-field styling lives in the FORM tab (form-tab.html).
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-default);
  background: var(--c-dark-sand);
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--c-dark-sand);
  color: var(--c-navy);
  padding: 0 24px;
}
.topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 26px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar .logo { height: 38px; display: block; }

/* ---------------- Document stage ---------------- */
.stage {
  background: var(--c-dark-sand);
  padding: 30px 24px 0;
  position: relative;
}

/* Document viewer — the iframe rendering of the brief */
.doc-viewer {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.doc-window {
  position: relative;
  width: 100%;
  aspect-ratio: 920 / 1180;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 30px 80px rgba(8,57,75,0.18),
    0 12px 30px rgba(8,57,75,0.08);
  border-radius: 2px;
  background: #fff;
}
/* The inlined brief cover, scaled to fit the document window */
.doc-frame {
  position: absolute;
  inset: 0;
  width: 816px;            /* 8.5in @ 96dpi — native cover width */
  border: 0;
  display: block;
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}

/* ---- Inlined brief cover preview (scoped so it can't clash with the LP) ---- */
.brief-preview { --page-w: 8.5in; --page-h: 11in; --margin-x: 0.7in; --margin-y: 0.7in; }
.brief-preview .page {
  width: var(--page-w); height: var(--page-h);
  background: #fff; position: relative; overflow: hidden;
}
.brief-preview .page--navy { background: var(--c-navy); color: #fff; }
.brief-preview .frame {
  position: absolute; inset: var(--margin-y) var(--margin-x);
  display: flex; flex-direction: column;
}
.brief-preview .top-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.18); flex: 0 0 auto;
}
.brief-preview .top-bar .logo { height: 29px; display: block; }
.brief-preview .top-bar .doc-title {
  font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.brief-preview .body { flex: 1 1 auto; display: flex; flex-direction: column; padding-top: 36px; min-height: 0; }
.brief-preview .bot-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.18);
  flex: 0 0 auto; font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 600;
}
.brief-preview .cover { flex: 1 1 auto; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 24px; }
.brief-preview .cover-mark {
  align-self: start; display: inline-flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.7); font-family: var(--font-sans); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
}
.brief-preview .cover-mark .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c-goldenrod); box-shadow: 0 0 0 4px rgba(252,180,20,0.15); }
.brief-preview .cover-head { align-self: start; max-width: 6.6in; }
.brief-preview .cover-eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-light-teal); margin: 0 0 28px; }
.brief-preview .cover h1 { font-family: var(--font-display); font-weight: 500; font-size: 68px; line-height: 1.04; letter-spacing: -0.015em; color: #fff; margin: 0 0 28px; }
.brief-preview .cover h1 .accent { color: var(--c-goldenrod); font-weight: 500; }
.brief-preview .cover .sub { font-family: var(--font-sans); font-weight: 400; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 5.6in; margin: 0; }
.brief-preview .cover-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 22px 0; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18); border-bottom: 1px solid rgba(255,255,255,0.18); text-align: center;
}
.brief-preview .cover-meta .item { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.brief-preview .cover-meta .label { font-family: var(--font-sans); font-weight: 700; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.brief-preview .cover-meta .value { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: #fff; line-height: 1.2; letter-spacing: -0.005em; }
.brief-preview .cover-tex {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 88% 8%, rgba(252,180,20,0.10), transparent 60%),
    radial-gradient(60% 50% at 5% 95%, rgba(13,122,131,0.22), transparent 65%);
}
.brief-preview .cover-brandmark {
  position: absolute; top: 0; right: 0; width: 2.8in; height: 2.8in;
  transform: scaleY(-1); transform-origin: center; opacity: 0.72; pointer-events: none; user-select: none;
}

/* Fade over the bottom of the visible doc — masks page 2 into the gate */
.doc-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg,
    rgba(238,237,231,0) 0%,
    rgba(238,237,231,0.55) 38%,
    rgba(238,237,231,0.92) 72%,
    var(--c-dark-sand) 100%);
  pointer-events: none;
}

/* "Locked" badge */
.lock-badge {
  position: absolute;
  right: 18px;
  top: 62%;
  transform: translateY(-50%);
  background: var(--c-navy);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(8,57,75,0.18);
}
.lock-badge svg { color: var(--c-goldenrod); }

/* ---------------- Gate panel ---------------- */
.gate-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  margin-top: -120px;
  z-index: 5;
}
.gate {
  background: #fff;
  padding: 40px 48px 44px;
  box-shadow: var(--shadow-brand);
  position: relative;
}
.gate::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c-goldenrod);
}
.gate-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-dark-teal);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gate-eyebrow .lockdot {
  width: 6px; height: 6px; background: var(--c-goldenrod); border-radius: 999px;
}
.gate-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.008em;
  color: var(--c-navy);
  margin: 0 0 22px;
  max-width: 620px;
  text-wrap: balance;
}

/* ---------------- Footer ---------------- */
.foot {
  background: var(--c-navy);
  color: rgba(255,255,255,0.6);
  padding: 28px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.foot-copy { color: rgba(255,255,255,0.85); }
.foot-logo { justify-self: center; display: block; line-height: 0; }
.foot-logo img { height: 30px; display: block; width: auto; }
.foot-social { justify-self: end; display: inline-flex; align-items: center; gap: 26px; }
.foot-social a { color: #fff; display: inline-flex; margin: 0; }
.foot-social a:hover { opacity: 0.75; }
.foot-social svg { display: block; }

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  .stage { padding: 32px 16px 0; }
  /* Don't pull the gate up over the preview on small screens — stack it cleanly below */
  .gate-wrap { margin-top: 14px; padding: 0 16px; }
  .gate { padding: 28px 22px 30px; }
  .gate-headline { font-size: 22px; }
  /* Keep the lock badge inside the faded bottom of the preview, clear of the gate */
  .lock-badge { right: 10px; top: auto; bottom: 12px; padding: 7px 11px; font-size: 9.5px; }
  .topbar-inner { padding: 18px 0 4px; }
}
@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .foot-social { justify-self: center; }
}