/* ==========================================================================
   Ridgeline AI, activation page
   ========================================================================== */

.act-head {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  text-align: center;
}
.act-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 100% at 50% 0%, rgba(176,113,58,.15), transparent 68%);
  pointer-events: none;
}
.act-head .shell { position: relative; z-index: 1; }
.act-head .pill { margin-bottom: 1.5rem; }
.act-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  letter-spacing: -.035em;
}
.act-head .deck { margin-inline: auto; max-width: 44ch; }

/* Trial terms, stated once at the top so no path has to repeat them. */
.head-note {
  margin: .875rem auto 0;
  max-width: 46ch;
  font-size: .875rem;
  font-weight: 500;
  color: var(--copper-deep);
}

.act-body { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

/* --- Help offers, three placements, escalating weight ------------------- */

/* 1. Page head, quiet reassurance */
.head-help {
  margin: 1.25rem auto 0;
  max-width: 46ch;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
}
.head-help a { font-weight: 500; }

/* 2. Step 1, inline note */
.help-inline {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 1.75rem 0 0;
  padding: .9375rem 1.0625rem;
  background: var(--copper-soft);
  border: 1px solid var(--copper-line);
  border-radius: 10px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: none;
}
.help-inline svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
  color: var(--copper-deep);
}
.help-inline a { font-weight: 600; }

/* 3. Step 3, the loudest offer, most people need help exactly here */
.help-panel {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--night);
  border-radius: var(--r);
  border: 1px solid var(--copper-line);
}
@media (min-width: 720px) {
  .help-panel { grid-template-columns: 1fr auto; gap: 2rem; }
}
.help-panel h3 {
  color: var(--night-text);
  font-size: 1.125rem;
  margin-bottom: .5rem;
}
.help-panel p {
  color: var(--night-muted);
  font-size: .875rem;
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}
.help-panel .btn { white-space: nowrap; }
@media (max-width: 719px) {
  .help-panel .btn { width: 100%; }
}

/* --- Step block --------------------------------------------------------- */
.stepblock {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-lift);
  margin-bottom: 1.25rem;
  min-width: 0;
}

.stepblock-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.sn {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--copper);
  border: 1px solid var(--copper-line);
  background: radial-gradient(circle at 50% 30%, rgba(176,113,58,.16), rgba(176,113,58,.05));
}
.stepblock-head h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  margin-bottom: .3125rem;
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
}
.stepblock-head h2 em {
  font-family: var(--sans);
  font-style: normal;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(33,31,29,.05);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: .25rem .5625rem;
}

/* --- Fields ------------------------------------------------------------- */
.fields { display: grid; gap: 1.5rem; }

.field { min-width: 0; }
.field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .8125rem .9375rem;
  font-size: 1rem;
  color: var(--ink);
  min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  font-family: var(--sans);
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #A8A099; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(176,113,58,.16);
}
.hint {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .5rem;
  line-height: 1.5;
}

/* --- Submit zone -------------------------------------------------------- */
.submit-zone {
  background: var(--night);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1.25rem;
  min-width: 0;
}

.terms {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: .9375rem;
  color: var(--night-text);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding: .25rem 0;
}
.terms input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--copper);
  cursor: pointer;
}
.terms a { color: #E2A971; }
.terms a:hover { color: #FFF; }

.form-error {
  background: rgba(180, 70, 55, .14);
  border: 1px solid rgba(214, 106, 90, .5);
  color: #F0B4A8;
  font-size: .875rem;
  line-height: 1.5;
  padding: .8125rem .9375rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
  max-width: none;
}

.submit-note {
  margin-top: 1.125rem !important;
  text-align: center;
  color: var(--night-muted) !important;
  max-width: 46ch;
  margin-inline: auto;
}

/* --- Step 3, dormant until activated ------------------------------------ */
.stepblock-3 { opacity: .58; transition: opacity .4s var(--ease); }
.stepblock-3.is-ready { opacity: 1; }
.stepblock-3.is-ready .sn-live {
  background: var(--copper);
  border-color: var(--copper);
  color: #FFF;
}

.code-wrap { position: relative; margin-bottom: 2rem; }
.code {
  background: var(--night);
  color: #D9CFC4;
  border: 1px solid var(--night-line);
  border-radius: 10px;
  padding: 1.125rem 1.25rem;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  margin: 0 0 .75rem;
  max-width: none;
  min-height: 5.5rem;
}
.stepblock-3.is-ready .code { color: #EDE8E1; border-color: var(--copper-line); }
.copy-btn { width: 100%; }
@media (min-width: 560px) { .copy-btn { width: auto; } }

/* --- Install guides ----------------------------------------------------- */
.install-h {
  font-size: 1.125rem;
  margin-bottom: .375rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.guides { display: grid; gap: .625rem; margin-top: 1.25rem; }

.guide {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #FFF;
  overflow: hidden;
}
.guide summary {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
  padding: .9375rem 1.125rem;
  cursor: pointer;
  font-size: .9375rem;
  min-height: 48px;
  list-style: none;
  transition: background-color .2s var(--ease);
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after {
  content: '';
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
  flex: none;
}
.guide[open] summary::after { transform: rotate(-135deg); }
.guide summary:hover { background: rgba(176,113,58,.05); }
.guide summary strong { font-weight: 600; color: var(--ink); }
.guide summary span { font-size: .8125rem; color: var(--muted); }

.guide ol {
  margin: 0;
  padding: 0 1.125rem 1.125rem 2.5rem;
  display: grid;
  gap: .5625rem;
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.help {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}
.help strong { color: var(--ink); }

/* ==========================================================================
   Three path structure
   Weight descends deliberately: lead, second, third. The visual difference
   carries the recommendation, so the copy never has to nag.
   ========================================================================== */

.path {
  position: relative;
  border-radius: var(--r);
  margin-bottom: 1.25rem;
  min-width: 0;
}

.path-mark {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.path-rank {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.path-title { margin-bottom: .625rem; }
.path-body {
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 1.75rem;
}

/* --- Path 1, the lead ---------------------------------------------------- */
.path-lead {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(176,113,58,.09), transparent 58%),
    rgba(255,255,255,.9);
  border: 1px solid var(--copper-line);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}
/* Copper spine. Marks the recommended path without shouting. */
.path-lead::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--r) 0 0 var(--r);
  background: linear-gradient(180deg, var(--copper), rgba(176,113,58,.15));
}
.path-lead .path-rank { color: var(--copper-deep); }
.path-lead .path-title { font-size: clamp(1.75rem, 4.4vw, 2.5rem); }
.path-lead .path-body { font-size: 1.0625rem; }

/* --- Path 2, secondary --------------------------------------------------- */
.path-second {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line-soft);
  padding: clamp(1.375rem, 3.4vw, 2.125rem);
}
.path-second .path-title { font-size: clamp(1.375rem, 3vw, 1.75rem); }

/* --- Path 3, third ------------------------------------------------------- */
.path-third {
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: clamp(1.375rem, 3.4vw, 2.125rem);
}
.path-third .path-title { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.path-third .path-body { margin-bottom: 1.25rem; }

/* Self serve outline, the three steps described before committing */
.ss-outline {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: .8125rem;
  max-width: 60ch;
}
.ss-outline li {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.ss-outline li span {
  flex: none;
  width: 1.375rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--copper);
}

/* Panel. [hidden] keeps it out of layout entirely when closed, so the reveal
   costs nothing and cannot shift the page above it. */
.ss-panel[hidden] { display: none; }
.ss-panel { margin-top: 1.75rem; }
.ss-panel .stepblock:first-child { margin-top: 0; }

/* --- Request forms, paths 1 and 2 ---------------------------------------- */
.req-form { margin: 0; }

.fields-2 { gap: 1.125rem; }
@media (min-width: 620px) {
  .fields-2 { grid-template-columns: 1fr 1fr; gap: 1.125rem 1.25rem; }
}

.req-error {
  background: rgba(180, 70, 55, .10);
  border: 1px solid rgba(164, 55, 58, .42);
  color: #8C3A32;
  font-size: .875rem;
  line-height: 1.5;
  padding: .8125rem .9375rem;
  border-radius: 8px;
  margin: 1.25rem 0 0;
  max-width: none;
}

.req-form .btn { margin-top: 1.5rem; }

.req-alt {
  margin: .875rem 0 0;
  font-size: .875rem;
  color: var(--muted);
  text-align: center;
}
.req-alt a { font-weight: 500; }

.req-done {
  padding: .5rem 0;
}
.req-done h3 {
  font-size: 1.1875rem;
  margin-bottom: .5rem;
  color: var(--ink);
}
.req-done p {
  margin: 0;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.6;
  max-width: 52ch;
}

/* --- Closing block ------------------------------------------------------- */
.after {
  margin-top: 2.5rem;
  background: var(--night);
  border-radius: var(--r);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  min-width: 0;
}
.after-title {
  color: var(--night-text);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-bottom: .875rem;
}
.after-body {
  color: var(--night-muted);
  font-size: .9375rem;
  line-height: 1.7;
  margin: 0;
  max-width: 62ch;
}

/* --- Narrow screens ------------------------------------------------------ */
@media (max-width: 420px) {
  .path-lead::before { width: 2px; }
  .path-mark { gap: .5rem; }
  .req-alt { font-size: .8125rem; }
}
