/* Developers page (developers.html): put the feed on your website, ask for a key, and the team's review screens.
   Builds on styles.css (tokens, top bar, buttons, dark mode). Same look as the feed: round, bright, Plus Jakarta Sans. */
.dev main { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px }
.dev-top .top-nav { margin-left: auto }
.dev-tag { font-size: 12px; font-weight: 800; color: var(--ink-3); background: var(--soft); border-radius: 12px; padding: 4px 10px; white-space: nowrap }
.dv-sec { margin: 56px 0 0; scroll-margin-top: 80px }
.dv-h { display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; max-width: 720px }
.dv-h h2, .dv-rules h2, .dv-docs h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em }
.dv-h p { margin: 0; color: var(--ink-2); font-size: 17px }
.dv-small { font-size: 14px; color: var(--ink-3) }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--soft); border-radius: 6px; padding: 1px 6px }

/* hero: yellow band with a little wall of the smart tiles */
.dv-hero { margin: 8px 0 0; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--yellow); color: #111111; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center }
.dv-hero h1 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.045em; line-height: 1.02 }
.dv-lede { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: #3B3415; max-width: 34em }
.dv-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0 }
.dv-hero .btn.ghost { background: rgba(255,255,255,.75); color: #111111 } .dv-hero .btn.ghost:hover { background: #FFFFFF }
.dv-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.dv-points li { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.7); border-radius: 14px; padding: 6px 12px }
.dv-hero-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 74px; gap: 10px; transform: rotate(-2deg) }
.hw { position: relative; border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12) }
.hw-k { font-size: 11px; font-weight: 800; line-height: 1.2 }
.hw-count { grid-row: span 3; background: #2B59FF; color: #FFFFFF; justify-content: space-between }
.hw-count b { font-size: 64px; font-weight: 800; line-height: .85; letter-spacing: -0.05em; margin-top: auto } .hw-count small { font-size: 16px; margin-left: 4px; letter-spacing: 0 }
.hw-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25) } .hw-bar i { display: block; width: 72%; height: 100%; border-radius: 3px; background: #FFE45C }
.hw-money { grid-column: span 2; grid-row: span 2; background: #111111; color: #FFE45C } .hw-money b { font-size: 72px; line-height: .8; font-weight: 800; position: absolute; right: 18px; bottom: 10px } .hw-money .hw-k { color: #FFFFFF }
.hw-video { grid-row: span 2; background: linear-gradient(160deg, #3A3A3A, #111111); color: #FFFFFF }
.hw-play { position: absolute; left: 50%; top: 40%; width: 40px; height: 40px; border-radius: 20px; background: #FFFFFF; transform: translate(-50%, -50%) } .hw-play::after { content: ""; position: absolute; left: 16px; top: 12px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #111111 }
.hw-quote { grid-row: span 2; background: #161616; color: #FFFFFF } .hw-q { position: absolute; top: 4px; left: 12px; font-size: 60px; font-weight: 800; color: #3D68FF; line-height: 1 }
.hw-near { grid-row: span 2; background: #DDF3E6; color: #111111 } .hw-pin { position: absolute; left: 50%; top: 38%; width: 22px; height: 22px; border-radius: 11px; background: #2BC48A; border: 4px solid #FFFFFF; box-shadow: 0 0 0 14px rgba(43,196,138,.2); transform: translate(-50%, -50%) }
.hw-stack { grid-column: span 2; grid-row: span 1; background: #E9E2FF; color: #111111; flex-direction: row; align-items: center; justify-content: flex-start } .hw-stack i { flex: 1 1 0; height: 10px; border-radius: 5px; background: rgba(255,255,255,.85) }

/* try it */
.dv-try-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 24px; align-items: start }
.dv-conf { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 28px; background: var(--soft) }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0 }
.fld > label, .fld .lbl, .fld legend { font-size: 14px; font-weight: 800 }
.fld > label span, .fld legend span { font-weight: 500; color: var(--ink-3) }
.fld input[type=text], .fld input[type=email], .fld input[type=url], .fld select, .fld textarea { width: 100%; max-width: none; background: var(--bg); color: var(--ink) }
.fld textarea { min-height: 96px; font-size: 16px; padding: 14px 18px; border: 0; border-radius: 22px; font: inherit; resize: vertical; outline: none }
.dv-conf select { background-color: var(--bg) }
.seg { display: flex; flex-wrap: wrap; gap: 6px }
.seg label { position: relative } .seg input { position: absolute; opacity: 0; pointer-events: none }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--bg); font-size: 14px; font-weight: 700; cursor: pointer }
.seg input:checked + span { background: var(--ink); color: var(--bg) }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px }
.fld-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer }
.tog input, .agree input { width: 20px; height: 20px; accent-color: var(--accent) }
.fld-inl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700 }
.fld-inl select { min-height: 40px; padding: 0 34px 0 14px; background-color: var(--bg) }
.code-card { border-radius: 20px; background: #161616; color: #F2F2F2; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px }
.code-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; color: #A0A0A0 }
.copy { border: 0; border-radius: 16px; background: #FFE45C; color: #111111; font-weight: 800; font-size: 13px; padding: 6px 14px; cursor: pointer }
.copy:hover { background: #FFF08C }
.code-card pre, .doc-code { margin: 0; font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all }
.code-n { margin: 0; font-size: 12px; color: #A0A0A0 } .code-n code { background: rgba(255,255,255,.1); color: #F2F2F2 }
.dv-demo { min-width: 0 }

/* how it works */
.dv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.step { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 210px }
.step .n { font-size: 56px; font-weight: 800; line-height: .9; letter-spacing: -0.05em; margin-bottom: auto }
.step h3 { font-size: 22px } .step p { margin: 0; font-size: 15px; line-height: 1.5 }
.step.s1 { background: var(--accent); color: #FFFFFF } .step.s2 { background: var(--yellow); color: #111111 } .step.s3 { background: var(--mint); color: var(--ink) }

/* the request form */
.req-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: clamp(20px, 3vw, 32px); border-radius: 32px; background: var(--soft); max-width: 980px }
.fld-wide { grid-column: 1 / -1 }
.req-form input[type=text], .req-form input[type=email], .req-form input[type=url] { width: 100% }
.dev input[type=url] { min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; font-size: 16px; outline: none }
.kind { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px } .kind legend { margin-bottom: 8px; padding: 0 }
.kind-o { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 22px; background: var(--bg); cursor: pointer; border: 2px solid transparent }
.kind-o:has(input:checked) { border-color: var(--accent) }
.kind-o input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto }
.kind-o span { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-2) } .kind-o b { font-size: 15px; color: var(--ink) }
.req-setup { margin: 0; font-size: 14px; color: var(--ink-2) } .req-setup:empty { display: none }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600 } .agree input { flex: 0 0 auto; margin-top: 1px }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.msg { margin: 0; padding: 12px 16px; border-radius: 16px; background: #FFE8E6; color: #9A1C12; font-weight: 600; font-size: 14px }
.msg.ok { background: #DDF3E6; color: #0F5C3D }
.req-done { max-width: 980px; padding: clamp(22px, 3vw, 34px); border-radius: 32px; background: var(--mint); display: flex; flex-direction: column; gap: 12px }
.req-done h3 { font-size: 26px } .req-done p { margin: 0; max-width: 60ch }

/* fair use + reference */
.dv-rules ul { margin: 18px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 980px }
.dv-rules li { padding: 16px 18px; border-radius: 20px; background: var(--soft); font-size: 15px; color: var(--ink-2) } .dv-rules li b { color: var(--ink) }
.dv-rules > p { max-width: 760px }
.dv-docs { max-width: 980px } .dv-docs h3 { font-size: 20px; margin: 30px 0 10px } .dv-docs p { color: var(--ink-2); max-width: 70ch }
.doc-code { padding: 16px 18px; border-radius: 18px; background: #161616; color: #F2F2F2; overflow-x: auto }
.tbl { overflow-x: auto; margin: 6px 0 0 }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line) }
.tbl th { font-size: 12px; font-weight: 800; color: var(--ink-3) }
.tbl td:first-child { white-space: nowrap }
#sector-list code { display: inline-block; margin: 2px 2px 2px 0 }

/* status / review / admin panel */
.dv-panel { margin: 16px 0 0; padding: clamp(20px, 3vw, 34px); border-radius: 32px; background: var(--soft); scroll-margin-top: 80px; display: flex; flex-direction: column; gap: 14px }
.dv-panel.st-pending { background: var(--yellow); color: #111111 }
.dv-panel.st-approved { background: var(--mint) }
.dv-panel.st-declined, .dv-panel.st-revoked { background: var(--soft) }
.dv-panel h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em }
.dv-panel p { margin: 0; max-width: 70ch }
.pn-k { font-size: 12px; font-weight: 800; letter-spacing: .02em; opacity: .75 }
.pn-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 15px }
.pn-facts dt { font-weight: 700; color: var(--ink-3) } .pn-facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap }
.dv-panel.st-pending .pn-facts dt { color: #5B5221 }
.pn-key { font: 600 15px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); color: var(--ink); border-radius: 14px; padding: 12px 14px; word-break: break-all }
.pn-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.pn-form { display: flex; flex-direction: column; gap: 12px; max-width: 720px }
.btn.danger { background: #C4281C } .btn.danger:hover { background: #A21F15 }
.pn-tbl { overflow-x: auto; background: var(--bg); border-radius: 20px; padding: 6px 14px }
.pn-tbl table { width: 100%; border-collapse: collapse; font-size: 14px }
.pn-tbl th, .pn-tbl td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top }
.pn-tbl th { font-size: 12px; color: var(--ink-3) }
.pn-tbl tr:last-child td { border-bottom: 0 }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 10px; padding: 3px 9px; background: var(--soft) }
.badge.pending { background: var(--yellow); color: #111111 } .dv-panel.st-pending .badge.pending { background: #FFFFFF } .badge.approved { background: var(--mint); color: #0F5C3D } .badge.declined, .badge.revoked { background: #FFE8E6; color: #9A1C12 }

@media (max-width: 980px) {
  .dv-hero { grid-template-columns: minmax(0, 1fr) }
  .dv-hero-wall { max-width: 520px; transform: none }
  .dv-try-grid { grid-template-columns: minmax(0, 1fr) }
  .dv-conf { position: static }
}
@media (max-width: 760px) {
  .dev main { padding: 0 10px 32px }
  .dev-tag { display: none }
  .dv-hero { border-radius: 24px; padding: 22px 18px }
  .dv-hero-wall { grid-auto-rows: 56px; gap: 8px }
  .hw-count b { font-size: 46px } .hw-money b { font-size: 54px }
  .dv-steps, .dv-rules ul, .kind { grid-template-columns: minmax(0, 1fr) }
  .step { min-height: 0 } .step .n { font-size: 40px; margin-bottom: 8px }
  .req-form { grid-template-columns: minmax(0, 1fr); border-radius: 24px; padding: 18px }
  .dv-conf { padding: 16px; border-radius: 24px }
  .dev-top .top-nav a:not(.pill) { display: none }
}
[data-mode="dark"] .dv-hero, [data-mode="dark"] .step.s2, [data-mode="dark"] .dv-panel.st-pending { color: #111111 }
[data-mode="dark"] .seg input:checked + span { color: #111111 }
[data-mode="dark"] .msg { background: #3A1512; color: #FFB4AC } [data-mode="dark"] .msg.ok { background: #17382A; color: #BFF0D6 }
[data-mode="dark"] .badge.declined, [data-mode="dark"] .badge.revoked { background: #3A1512; color: #FFB4AC }
[data-mode="dark"] .badge.approved { color: #BFF0D6 }
