/* Sub-pages (sell, buy, how it works, refer, FAQ, resources, program guides) in the Powder system.
   Patterns follow the template's own sub-pages: chip + h1 header in the 1080px column (About),
   a glass card over the hills (Get started), and a centered back-chip header (blog post). */

/* Page header */
.page-top .wrap { padding: 200px 0 0; }
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
.page-head h1 { max-width: 800px; }
.page-head > p { max-width: 540px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
.page-block .wrap { padding: 140px 0 0; }

/* Numbered steps: three glow cards inside one black frame */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.steps > .glow.outer, .facts > .glow.outer { position: absolute; inset: -8px; border-radius: 24px; }
.steps > .glow.outer > .glow-fill, .facts > .glow.outer > .glow-fill { border-radius: 23px; background: #000; }
.step .glow, .fact .glow { height: 100%; }
.step .glow > .glow-fill, .fact .glow > .glow-fill { background: var(--glass); }
.step .glow-body { display: flex; flex-direction: column; gap: 80px; height: 100%; padding: 36px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); display: grid; place-items: center; font: 400 14px/1 var(--font); letter-spacing: -.02em; color: var(--ink); }
.step .txt { display: flex; flex-direction: column; gap: 12px; }
.step .txt .small { color: var(--ink-65); }

/* Intake (sell, buy, refer): the first screen. Copy and a short step list beside a glass form card,
   hills and forest behind (Get started page); on narrow screens copy, form, then steps */
.intake { overflow: clip; background: linear-gradient(180deg, #000 0%, #000 35%, var(--g1) 100%); }
.intake .wrap { padding: 128px 0 280px; }
.intake-land { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; }
.intake-land img { width: 100%; height: 100%; object-fit: cover; }
.intake-land.near { aspect-ratio: 2.90566; bottom: 1px; }
.intake-land.fore { aspect-ratio: 5.04918; }
.intake-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 372px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 48px; width: 100%; }
.intake-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 8px; }
.intake-card { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.intake-card .glow > .glow-fill { background: rgba(23, 23, 23, .8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.intake-card .glow-body { padding: 40px; }
.mini-steps { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 20px; }
.mini-steps ol { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.mini-steps li { display: flex; align-items: flex-start; gap: 16px; }
.mini-steps .step-num { width: 32px; height: 32px; flex: none; font-size: 12px; }
.mini-steps li div { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.mini-steps li .small + .small { color: var(--ink-65); }

/* Form fields */
.lead-form { position: relative; display: flex; flex-direction: column; gap: 32px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font: 400 14px/1.5 var(--font); letter-spacing: -.02em; color: var(--ink); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select { width: 100%; height: 48px; margin: 0; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: 400 14px/1.5 var(--font); letter-spacing: -.02em; outline: none; transition: border-color .2s, background .2s; }
.field input::placeholder { color: rgba(255, 255, 255, .4); }
.field input:not([type="radio"]):not([type="checkbox"]):hover, .field select:hover { border-color: rgba(255, 255, 255, .2); }
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field select:focus { border-color: rgba(255, 255, 255, .45); background-color: rgba(0, 0, 0, .55); }
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8l8 8 8-8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; }
.field select:invalid { color: rgba(255, 255, 255, .4); }
.field option { background: #171717; color: var(--ink); }
.field small { font: 400 12px/1.5 var(--font); letter-spacing: -.02em; color: var(--ink-65); }
.field select:disabled { opacity: .4; cursor: not-allowed; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 400 12px/1.5 var(--font); letter-spacing: -.02em; color: var(--ink-65); }
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.form-foot [data-ac-form-message] { color: var(--ink-65); }
/* After a submit the message becomes its own banner row: teal with a check when received, warm red when it failed */
.form-foot [data-ac-form-message][data-state] { flex-basis: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid; font: 500 16px/1.4 var(--font); letter-spacing: -.02em; color: var(--ink); }
.form-foot [data-ac-form-message][data-state]::before { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 13px/1 var(--font); color: #fff; }
.form-foot [data-ac-form-message][data-state="ok"] { background: rgba(2, 145, 150, .18); border-color: rgba(2, 145, 150, .65); }
.form-foot [data-ac-form-message][data-state="ok"]::before { content: "✓"; background: var(--teal); }
.form-foot [data-ac-form-message][data-state="error"] { background: rgba(211, 151, 148, .14); border-color: rgba(211, 151, 148, .6); }
.form-foot [data-ac-form-message][data-state="error"]::before { content: "!"; background: var(--g3); }
/* Shown under the received banner: a nudge to the other form (sell ↔ buy) */
.form-next:not([hidden]) { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 12px 12px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.form-next p { margin: 0; color: var(--ink); }

/* Resource directory: the seller-board frame with wrapping cells */
.board.dir table { min-width: 960px; table-layout: fixed; }
.board.dir td { white-space: normal; vertical-align: top; padding-top: 18px; padding-bottom: 18px; }
.board.dir td strong { font-weight: 500; color: var(--ink); }
.board.dir td:last-child { vertical-align: middle; }
.board.dir .board-note { padding-top: 24px; }
.board.dir .board-top { flex-wrap: wrap; }
.board-top .scroll-hint { display: none; }

/* Program guide: centered back chip and title (blog post), fact cards, note card */
.guide .wrap { padding: 180px 0 160px; align-items: center; }
.guide-head { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; text-align: center; }
.guide-head h1 { max-width: 760px; }
.guide-head > p.body { max-width: 560px; }
.guide-head .meta { display: flex; align-items: center; gap: 8px; color: var(--ink-65); }
.guide-head .meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-65); }
.chip.back { padding-left: 12px; gap: 8px; }
.chip.back::before { display: none; }
.chip.back svg { width: 14px; height: 14px; }
.facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.fact .glow-body { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; height: 100%; min-height: 200px; padding: 32px; }
.fact .label { color: var(--ink-65); }
.guide-note { width: 100%; max-width: 720px; }
.guide-note .glow > .glow-fill { background: var(--glass); }
.guide-note .glow-body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px; }
.guide-note .stack { display: flex; flex-direction: column; gap: 16px; }
.guide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

@media (max-width: 1279.98px) {
  .page-top .wrap { padding: 160px 0 0; }
  .page-block .wrap { padding: 120px 0 0; }
  .step .glow-body { padding: 28px; gap: 64px; }
  .intake .wrap { padding: 120px 0 320px; }
  .intake-land.near { left: -152px; right: -152px; }
  .intake-land.fore { left: -120px; right: -120px; }
  .intake-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .intake-copy, .intake-card, .mini-steps { grid-column: 1; grid-row: auto; }
  .intake-copy { max-width: 540px; }
  .board-top .scroll-hint { display: inline; }
  .guide .wrap { padding: 160px 0 120px; }
  .fact .glow-body { padding: 28px; }
}

@media (max-width: 809.98px) {
  .page-top .wrap { padding: 140px 0 0; }
  .page-block .wrap { padding: 96px 0 0; }
  .steps, .facts { grid-template-columns: minmax(0, 1fr); }
  .step .glow-body { gap: 36px; }
  .fact .glow-body { min-height: 0; }
  .intake .wrap { padding: 112px 0 240px; }
  .intake-card .glow-body { padding: 24px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .board.dir .board-top > .small { display: block; }
  .guide .wrap { padding: 140px 0 96px; }
  .guide-note .glow-body { padding: 28px; }
}

/* Contact: pick one method, fill one box */
.fields .contact, .fields .full { grid-column: 1 / -1; }
.contact-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.contact-head > span { font: 400 14px/1.5 var(--font); letter-spacing: -.02em; color: var(--ink); }
.contact-pills { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.contact-pills label { position: relative; cursor: pointer; }
.contact-pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.contact-pills span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; font: 400 14px/1 var(--font); letter-spacing: -.02em; color: var(--ink-65); transition: background .2s, color .2s; }
.contact-pills label:hover span { color: var(--ink); }
.contact-pills input:checked + span { background: rgba(255, 255, 255, .1); border-color: var(--line); color: var(--ink); }
.contact-pills input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.contact-pills input:focus-visible + span { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
