/* ==========================================================================
   Direct Data 1 — partner landing pages (/r/{code}, /join/{code})
   Builds on styles.css tokens and components. Nothing here changes the
   corporate pages.
   ========================================================================== */

/* Header: logo + one action */
.lp-header .header-inner { justify-content: space-between; }
.lp-header .btn { min-height: 40px; }

/* Hero */
.lp-hero { padding: calc(var(--header-h) + clamp(64px, 8vw, 104px)) 0 clamp(64px, 8vw, 104px); background: var(--navy-800); color: rgba(240, 243, 239, .82); }
.lp-hero__grid { align-items: end; }
.lp-hero__main { grid-column: 1 / span 8; }
.lp-hero h1 { font-size: var(--fs-hero); color: var(--white); letter-spacing: -0.02em; line-height: 1.02; max-width: 13em; text-wrap: balance; }
.lp-hero h1 em { font-style: italic; color: var(--teal-bright); }
.lp-hero__copy { margin-top: 28px; max-width: 40em; font-size: var(--fs-md); line-height: 1.55; }
.lp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.lp-hero__aside { grid-column: 9 / span 4; }

/* "Introduced by" card */
.lp-intro { padding: 22px 24px; border: 1px solid var(--navy-line-strong); border-radius: var(--radius); background: rgba(240, 243, 239, .03); }
.lp-intro__kicker { font-size: var(--fs-xs); font-weight: 600; color: var(--slate-300); }
.lp-intro__name { margin-top: 8px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--white); line-height: 1.25; letter-spacing: -0.015em; }
.lp-intro__org { margin-top: 2px; font-size: var(--fs-sm); color: rgba(240, 243, 239, .72); }
.lp-intro__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--navy-line); font-size: var(--fs-xs); line-height: 1.55; color: var(--slate-300); }

/* Two-column feature list */
.lp-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line-strong); }
.lp-point { padding: 28px clamp(16px, 2vw, 32px) 0 0; }
.lp-point + .lp-point { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.lp-point h3 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.015em; }
.lp-point p { margin-top: 10px; font-size: var(--fs-sm); }

/* Form section */
.lp-form-sec { padding: var(--section-y) 0; background: var(--navy-800); }
.lp-form-sec__grid { align-items: start; }
.lp-form-sec__text { grid-column: 1 / span 5; color: rgba(240, 243, 239, .82); }
.lp-form-sec__text h2 { color: var(--white); font-size: var(--fs-h1); letter-spacing: -0.016em; line-height: 1.06; }
.lp-form-sec__text > p { margin-top: 20px; font-size: var(--fs-md); line-height: 1.55; }
.lp-next { margin-top: 36px; border-top: 1px solid var(--navy-line-strong); }
.lp-next li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: var(--fs-sm); }
.lp-next b { font-family: var(--font-display); color: var(--teal-bright); font-weight: 600; }
.lp-next strong { display: block; color: var(--white); font-weight: 600; }
.lp-next span { display: block; color: rgba(240, 243, 239, .72); }
.lp-form-wrap { grid-column: 7 / span 6; }

.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 3vw, 40px); color: var(--slate-700); }
.lp-card h3 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.015em; }
.lp-card > p.fineprint { margin-top: 6px; }
.lp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 24px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-field--wide { grid-column: 1 / -1; }
.lp-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.lp-field label small { font-weight: 400; color: var(--slate-500); }
.lp-field input, .lp-field textarea, .lp-field select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: var(--fs-sm); color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.lp-field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.lp-field input:focus, .lp-field textarea:focus { outline: 2px solid var(--teal-deep); outline-offset: 0; border-color: var(--teal-deep); }
.lp-field [aria-invalid="true"] { border-color: var(--status-bad); }
.lp-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--fs-xs); line-height: 1.55; color: var(--slate-700); cursor: pointer; }
.lp-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal-deep); }
.lp-check a { color: var(--teal-deep); font-weight: 600; }
.lp-checks { display: grid; gap: 12px; margin-top: 20px; }
.lp-submit { width: 100%; margin-top: 24px; }
.lp-submit[disabled] { opacity: .6; cursor: progress; }
.lp-error { margin-top: 16px; padding: 12px 14px; font-size: var(--fs-sm); color: var(--status-bad); background: var(--status-bad-bg); border: 1px solid var(--status-bad-line); border-radius: var(--radius); }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-done { text-align: left; }
.lp-done__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.lp-done__mark svg { width: 20px; height: 20px; stroke: var(--navy-950); fill: none; stroke-width: 2.2; }
.lp-done p { margin-top: 10px; font-size: var(--fs-sm); }

/* Responsive */
@media (max-width: 920px) {
  .lp-hero__main, .lp-hero__aside, .lp-form-sec__text, .lp-form-wrap { grid-column: 1 / -1; }
  .lp-hero__aside { max-width: 480px; }
  .lp-form-sec__text { max-width: 600px; }
  .lp-points { grid-template-columns: 1fr; border-top: 0; }
  .lp-point, .lp-point + .lp-point { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 560px) {
  .lp-fields { grid-template-columns: 1fr; }
  .lp-hero__actions .btn { flex: 1 1 100%; }
  .lp-header .btn { display: none; }
}

/* DD1 polish layer (landing pages) — same restrained light as the main hero */
.lp-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 5%, rgba(var(--dd1-accent-rgb), 0.1), transparent 68%),
    radial-gradient(40% 55% at 0% 100%, rgba(var(--dd1-accent-rgb), 0.04), transparent 70%),
    linear-gradient(180deg, var(--dd1-forest) 0%, var(--dd1-forest-band) 60%, var(--dd1-forest) 100%);
}
.lp-hero .container { position: relative; }
.lp-intro {
  background: radial-gradient(90% 80% at 100% 0%, rgba(var(--dd1-accent-rgb), 0.07), transparent 70%), rgba(13, 41, 34, 0.55);
  box-shadow: inset 0 1px 0 var(--edge-light), 0 24px 60px -36px rgba(0, 0, 0, 0.8);
}
.lp-form-sec { background: radial-gradient(45% 60% at 80% 40%, rgba(var(--dd1-accent-rgb), 0.06), transparent 70%), var(--dd1-forest); box-shadow: inset 0 1px 0 var(--edge-light); }
.lp-card { background: var(--surface-grad); box-shadow: inset 0 1px 0 var(--edge-light), 0 30px 70px -40px rgba(0, 0, 0, 0.85); }
.lp-field input:focus, .lp-field textarea:focus, .lp-field select:focus { box-shadow: 0 0 0 4px var(--glow-soft); }
.lp-next b { text-shadow: 0 0 14px var(--glow-mid); }
.lp-done__mark { box-shadow: 0 0 22px -2px var(--glow-strong); }

/* Calendly discovery-call step (after a saved company submission) */
.lp-form-sec__grid:has(.lp-card--schedule) { grid-template-columns: minmax(0, 1fr); }
.lp-form-sec__grid:has(.lp-card--schedule) > .lp-form-sec__text { display: none; }
.lp-form-wrap:has(.lp-card--schedule) { grid-column: 1 / -1; width: 100%; max-width: 1050px; min-width: 0; margin-inline: auto; }
.lp-card--schedule { padding: 24px; }
.lp-calendly { margin-top: 20px; width: 100%; min-width: 0; height: 1000px; border-radius: 12px; overflow: hidden; }
.lp-calendly iframe { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) {
  .lp-card--schedule { padding: 16px 8px; }
  .lp-schedule > :not(.lp-calendly) { margin-inline: 8px; }
  .lp-calendly { height: 1100px; }
}
